[hardy beta] Error activating XKB configuration

Bug #217210 reported by Mitsuya Shibata
2
Affects Status Importance Assigned to Milestone
Ubuntu Japanese Kaizen Project
Confirmed
High
Unassigned

Bug Description

フォーラムの投稿:http://forum.ubuntulinux.jp/viewtopic.php?id=1751

日本語キーボードを利用しているマシンで7.10からHardyにアップグレードすると、X起動時に下記のエラーメッセージが表示され、英語キーボードとして扱われます。これは、Hardyのクリーンインストール時には再現されません。また、/etc/X11/xorg.confの
        Option "XkbVariant" "latin,"
のlatinの指定をはずすことで、問題を回避可能です。

---
Error activating XKB configuration.
It can happen under various circumstances:
- a bug in libxklavier library
- a bug in X server (xkbcomp, xmodmap utilities)
- X server with incompatible libxkbfile implementation

X server version data:
The X.Org Foundation
10400090

If you report this situation as a bug, please include:
- The result of xprop -root | grep XKB
- The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd

Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

問題が起きているとき:
$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "jp106", "jp,jp", "latin,",
"grp:alt_shift_toggle,grp_led:scroll"
_XKB_RULES_NAMES(STRING) = "xorg", "jp106", "jp,jp", "latin,",
"grp:alt_shift_toggle,grp_led:scroll"

$ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = []
 model =
 options = [grp grp:alt_shift_toggle,grp_led grp_led:scroll,ctrl ctrl:nocaps]
 overrideSettings = true

latinをはずしたとき:
$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "jp106", "jp,jp", "",
"grp:alt_shift_toggle,grp_led:scroll"
_XKB_RULES_NAMES(STRING) = "xorg", "jp106", "jp,jp", ",",
"grp:alt_shift_toggle,grp_led:scroll,ctrl:nocaps"

$ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = []
 model =
 options = [grp grp:alt_shift_toggle,grp_led grp_led:scroll,ctrl ctrl:nocaps]
 overrideSettings = true

7.10ではlatin付きでも問題ありません:
$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "jp106", "jp,jp", "latin,",
"grp:alt_shift_toggle,grp_led:scroll"
_XKB_RULES_NAMES(STRING) = "xorg", "jp106", "jp,jp", "latin,",
"grp:alt_shift_toggle,grp_led:scroll,ctrl:nocaps"

$ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = []
 model =
 options = [grp grp:alt_shift_toggle,grp_led grp_led:scroll,ctrl ctrl:nocaps]
 overrideSettings = true

"ctrl:nocaps"はシステム>設定>キーボードの、"Make CapsLock an additional Ctrl"によって設定されたものと思われます。Hardyのlatin付きで、xpropにその設定が反映されてないということは、GNOMEよりもXのキーボード設定が優先されるようになった?

description: updated
Revision history for this message
Jun Kobayashi (jkbys) wrote :
  • jp Edit (5.8 KiB, text/plain)

Option "XkbVariant" "latin,"

でアンダースコアが入らないのは、

/usr/share/X11/xkb/symbols/jp

に latin の定義が含まれなくなったのが原因のようです。
試しに、添付ファイルのように latin の定義を加えたところ、アンダースコアも入力できるようになりました。

私の環境では、「Error activating XKB configuration.」のエラーメッセージは表示されなかったのですが、
このファイルに差し替えてもエラーが表示されるか確認してもらえますか?

Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

対応ありがとうございます。

上記添付ファイル+latin指定で、
・XKB関係のエラーが出なくなった
・アンダースコアも入力できる
・CapsLockにCtrlを割り当てる
ことを確認しました。

Revision history for this message
Fumihito YOSHIDA (hito) wrote :

8.04の新規インストールでは以下のようになります。

Section "InputDevice"
        Identifier "Generic Keyboard"
        Driver "kbd"
        Option "XkbRules" "xorg"
        Option "XkbModel" "jp106"
        Option "XkbLayout" "jp,jp"
        Option "XkbVariant" "106,"
        Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll"
EndSection

Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

7.10のxorg.confです。

Section "InputDevice"
        Identifier "Generic Keyboard"
        Driver "kbd"
        Option "CoreKeyboard"
        Option "XkbRules" "xorg"
        Option "XkbModel" "jp106"
        Option "XkbLayout" "jp,jp"
        Option "XkbVariant" "latin,"
        Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll"
EndSection

Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

symbols/jpからlatinがなくなったのはchangelog.Debian.gzを読む限り、
xkeyboard-config (0.9+cvs.20070428-1)の
  * Patches obsoleted or merged upstream:
     + japan.diff
の部分で、japan.diffが、debian/patches/obsolete_merged-upstream/ディレクトリに移動され、適用されなくなったためだと思います。japan.diffの冒頭では
http://bugs.freedesktop.org/show_bug.cgi?id=8503
にリンクが張ってあって、CVSでFIXされたよ、とのことです。

Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :
Jun Kobayashi (jkbys)
Changed in ubuntu-jp-improvement:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Fumihito YOSHIDA (hito) wrote :

次の方法でも回避できることを確認しました。

[システム]->[設定]->[キーボード]の"レイアウト"の[追加]で、「レイアウト:日本」の
キーボードを追加し、既存のキーボードレイアウトを削除してください。

xorg.confを修正する必要はありません。

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.