こんにちは、鶴谷です。

> > ただし、マウスを動かすなどしないと、画面が更新されません。
> 
> そういえば、そういう症状はmousedとhaldを同時に動かしている時に経験しま
> した。

これはおっしゃるとおりでした。
しかし、「再現性の確認」をした際には、これは既に解消していました。
なお、その際には、mousedは無効にし、haldは常に起動させていました。
xorg.confの設定だけを変えたことになります。

fvwm2で、Kanjiキー単独でkinput2のon/offをするように設定し、
うまく行くときといかないときのキーイベントを拾ってみました。
うまくいくとき:
KeyPress event, serial 31, synthetic NO, window 0x1600001,
    root 0x1a7, subw 0x0, time 5589156, (117,117), root:(757,671),
    state 0x0, keycode 49 (keysym 0xff21, Kanji), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x1600001,
    root 0x1a7, subw 0x0, time 5589301, (117,117), root:(757,671),
    state 0x0, keycode 49 (keysym 0xff21, Kanji), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

いかないとき(kinput2をoffにできないとき):
KeyPress event, serial 28, synthetic NO, window 0x1600001,
    root 0x1a7, subw 0x0, time 5702602, (52,2), root:(692,556),
    state 0x10, keycode 49 (keysym 0xff21, Kanji), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x1600001,
    root 0x1a7, subw 0x0, time 5702730, (52,2), root:(692,556),
    state 0x10, keycode 49 (keysym 0xff21, Kanji), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False


実質的な違いは、stateだけだと思うのですが、これがどういうことを意味しているのか、
私にはよくわかりません。

うまくいかないときのxorg.conf:
Section "ServerLayout"
        Identifier     "X.org 7.4"
        Screen         0 "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/local/lib/xorg/modules"
        FontPath     "/usr/local/lib/X11/fonts/local:unscaled"
        FontPath     "/usr/local/lib/X11/fonts/misc:unscaled"
        FontPath     "/usr/local/lib/X11/fonts/75dpi:unscaled"
        FontPath     "/usr/local/lib/X11/fonts/100dpi:unscaled"
        FontPath     "/usr/local/lib/X11/fonts/TrueType"
        FontPath     "/usr/local/share/fonts/truetype"
        FontPath     "/usr/local/lib/X11/fonts/TTF"
        FontPath     "/usr/local/lib/X11/fonts/OTF"
        FontPath     "/usr/local/lib/X11/fonts/local"
        FontPath     "/usr/local/lib/X11/fonts/misc"
        FontPath     "/usr/local/lib/X11/fonts/Type1"
        FontPath     "/usr/local/lib/X11/fonts/75dpi"
        FontPath     "/usr/local/lib/X11/fonts/100dpi"
        FontPath     "/usr/local/lib/X11/fonts/non-cjk"
        FontPath     "/usr/local/lib/X11/fonts/cyrillic"
        FontPath     "/usr/local/lib/X11/fonts/URW"
        FontPath     "/usr/local/lib/X11/fonts/bitstream-vera"
        FontPath     "/usr/local/lib/X11/fonts/ol100dpi"
        FontPath     "/usr/local/lib/X11/fonts/ol75dpi"
        FontPath     "/usr/local/lib/X11/fonts/olmisc"
EndSection

Section "Module"
        Load  "extmod"
        Load  "glx"
        Load  "dbe"
        Load  "bitmap"
EndSection

Section "ServerFlags"
##      Option      "AllowEmptyInput" "No"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbSymbols" "jp(jp106)"
        Option      "XkbModel" "jp106"
        Option      "XkbLayout" "jp"
        Option      "XkbRules"  "xorg"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "Auto"
        Option      "Device" "/dev/sysmouse"
        Option      "Buttons" "5"
        Option      "Resolution" "100"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Buffalo"
        ModelName    "FTD-G722AS"
        HorizSync    63.0 - 70.0
        VertRefresh  59.9 - 80.0
        Modeline "800x600"  38.22  800 832 912 1024  600 601 604 622  -HSync 
+Vsync
        Modeline "1280x1024"  108.88  1280 1360 1496 1712  1024 1025 1028 1060  
-HSync +Vsync
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "nvidia"
        VendorName  "nVidia"
        BoardName   "GeForce 6100"
        Option      "NvAGP" "1"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth      24
        SubSection "Display"
                Depth     24
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
EndSection

--- 
鶴谷直樹
turut...@scphys.kyoto-u.ac.jp

メールによる返信