Evdev keyboard sends keycodes but no keysyms

Dan Nicholson dbn.lists at gmail.com
Wed Nov 17 19:25:01 PST 2010


On Wed, Nov 17, 2010 at 3:26 PM, Simon Thum <simon.thum at gmx.de> wrote:
> On 11/17/10 00:01, Peter Hutterer wrote:
>> On Wed, Nov 17, 2010 at 01:33:34AM +0100, Simon Thum wrote:
>>> Hi all,
>>>
>>> no dice so far. I get some additional lines:
>>>
>>> [ 16085.444] (II) config/udev: Adding input device AT Translated Set 2
>>> keyboard (/dev/input/event4)
>>> [ 16085.444] (**) AT Translated Set 2 keyboard: Applying InputClass
>>> "evdev keyboard catchall"
>>> [ 16085.444] (**) AT Translated Set 2 keyboard: Applying InputClass
>>> "keyboard-de"
>>> [ 16085.444] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
>>> [ 16085.444] (**) AT Translated Set 2 keyboard: always reports core events
>>> [ 16085.444] (**) AT Translated Set 2 keyboard: Device: "/dev/input/event4"
>>> [ 16085.448] (--) AT Translated Set 2 keyboard: Found keys
>>> [ 16085.448] (II) AT Translated Set 2 keyboard: Configuring as keyboard
>>> [ 16085.448] (**) Option "config_info"
>>> "udev:/sys/devices/platform/i8042/serio0/input/input4/event4"
>>> [ 16085.448] (II) XINPUT: Adding extended input device "AT Translated
>>> Set 2 keyboard" (type: KEYBOARD)
>>> [ 16085.448] (**) Option "xkb_rules" "evdev"
>>> [ 16085.448] (**) Option "xkb_model" "evdev"
>>> [ 16085.448] (**) Option "xkb_layout" "us"
>>> [ 16085.448] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
>>> [ 16085.448] (II) XKB: Reusing cached keymap
>>> [ 16085.448] (II) config/udev: Adding input device SynPS/2 Synaptics
>>> TouchPad (/dev/input/event7)
>>>
>>> I even added the option "xkb_layout", recompiled the whole stuff and so on.
>>>
>>> I'm using startx -- -logverbose, is that OK?
>>
>> try -logverbose 12 or something, otherwise you'll just increase by one.
>> also, try to remove the cached keymaps, I wonder if something goes wrong
>> there.
> That seems strange - I got an empty /var/cache/xkb (except for a
> README.compiled, might be installed by gentoo). Yet still, I'm getting
> that messag three timese: XKB: Reusing cached keymap.
>
> From my reading of the code that means it's initializing 4 keyboards?

It's reusing the in-memory cached keymap. Since it doesn't think
you've changed the Xkb options
(evdev/evdev/us//terminate:ctrl_alt_bksp), it's using the same keymap
it got from xkbcomp on the previous run. And yes, you have 4 keyboards
(3 by my count) in the sense that the kernel is presenting that many
devices with keys.

The real question is why Applying InputClass "keyboard-de" doesn't
change the layout to de even though it's the last class merged in. I
thought this log would give more info about how the settings are being
merged together, but I guess that part never really got done.

Looks like Peter confirmed it's a bug.

--
Dan



More information about the xorg mailing list