November 24, 2009

Keyboard layout is being messed up on Fedora 12

以前よりいろいろ問題の多かったキーボードまわりの設定だけれど、Fedora 12にアップグレードしたら案の定おかしくなってた。症状は\や_が入力できない、など。実際にはもっと広範囲にわたってキーレイアウトがぐちゃぐちゃに入れ替えられてる。カーソルキーが別の割り当てになってたりとか。
原因は以前EmulateWheelの件で設定した


Section "ServerFlags"
Option "AutoAddDevices" "false"
EndSection

の行が悪さをしていた模様。が、これを外すと前回と同じくEmulateWheelの設定が有効にならない。いろいろ試した末半ズボン先生のありがたいアドバイスによって解決。


Section "InputDevice"
Identifier "Keyboard0"
Driver "evdev"
Option "CoreKeyboard"
Option "XkbLayout" "jp"
Option "Device" "/dev/input/by-path/platform-i8042-serio-0-event-kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "evdev"
Option "CorePointer"
Option "Protocol" "ExplorerPS/2"
Option "EmulateWheel" "true"
Option "EmulateWheelTimeOut" "200"
Option "EmulateWheelButton" "2"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/input/by-path/platform-i8042-serio-1-event-mouse"
EndSection

こんな感じで手元のX61ではAutoAddDevicesなしでもキーボードもEmulateWheelも期待通りの動作をするようになった。

No comments: