Subject: X11 and dead keys
To: None <current-users@NetBSD.org>
From: segv <segv@netctl.net>
List: current-users
Date: 08/03/2005 14:56:45
$ uname -a
NetBSD dhcli-192-168-0-4.netctl.net 3.0_BETA NetBSD 3.0_BETA (GENERIC) #0: Sun
Jul 31 19:28:27 BST 2005
roman@dhcli-192-168-0-8.netctl.net:/opt/obj.i386/sys/arch/i386/compile/GENERIC
i386

I updated netbsd-3 source tree a few weeks ago, built and installed a release
and now I found out that some keys don't work in X11. Mainly Page Up/Down,
Home/End and Arrow Up/Down/Left/Right etc. Those keys don't work in xterm (i.e.
mc) or gtk applications

Running 'xev' and pressing Arrow Up key, produces the following output. Looks
like the key has no symbol mapped to it??

KeyPress event, serial 33, synthetic NO, window 0x1200001,
    root 0x40, subw 0x0, time 177729, (-118,152), root:(542,172),
    state 0x0, keycode 208 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x1200001,
    root 0x40, subw 0x0, time 177833, (-118,152), root:(542,172),
    state 0x0, keycode 208 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 

Does anyone know what's wrong?


Here is a fragment from my /etc/X11/XF86Config

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "Protocol" "wskbd"
        Option      "Device" "/dev/wskbd"
        Option      "XkbLayout" "gb"
EndSection


And here is a fragment from /var/log/XFree86.0.log

(**) Option "Protocol" "wsmouse"
(**) Mouse0: Protocol: wsmouse
(**) Option "CorePointer"
(**) Mouse0: Core Pointer
(**) Option "Device" "/dev/wsmouse"
(==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
(**) Option "ZAxisMapping" "4 5"
(**) Mouse0: ZAxisMapping: buttons 4 and 5
(**) Mouse0: Buttons: 5
(**) Option "CoreKeyboard"
(**) Keyboard0: Core Keyboard
(**) Option "Protocol" "wskbd"
(**) Keyboard0: Protocol: wskbd
(**) Option "Device" "/dev/wskbd"
(--) XT: Keyboard type: Keyboard0
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xfree86"
(**) Keyboard0: XkbRules: "xfree86"
(**) Option "XkbModel" "pc101"
(**) Keyboard0: XkbModel: "pc101"
(**) Option "XkbLayout" "gb"
(**) Keyboard0: XkbLayout: "gb"
(**) Option "CustomKeycodes" "off"
(**) Keyboard0: CustomKeycodes disabled
(II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)