problems with keyboard-layout: evdev-Problem?
Daniel Spannbauer
ds at marco.de
Tue Nov 19 01:28:47 PST 2013
Am 11/19/2013 09:59 AM, schrieb Peter Hutterer:
> On Mon, Nov 04, 2013 at 01:42:03PM +0100, Daniel Spannbauer wrote:
>> Hello,
>>
>> on a Machine with opensuse 12.3 (X.Org X Server 1.13.2) the keyboard
>> layout is not always set correctly.
>> WIth our self developed keyboard (for explosive environments, connected
>> via usb) the layout is always US on a plain X-Server (started with
>> /usr/bin/X :0 vt07 -r -br -dpms -s off) with a started xterm.
>> In xorg.conf.d there is a german keyboard configured:
>>
>> Section "InputClass"
>> Identifier "LocalKeyboard"
>> MatchIsKeyboard "on"
>> Option "XkbLayout" "de"
>> Option "XkbVariant" "nodeadkeys"
>> EndSection
>
> silly question, but do any other layouts work? is the log different for the
> other keyboards?
>
> if you don't have a desktop environment changing the layout then the above
> should work, provided the input class is applied.
>
> Cheers,
> Peter
>
Hello Peter,
it doesn't matter which keyboard-layout is configured (always tested on
a plain X, only xterm running).
But only with our Embedded-Keyboard. If I "normal" usb keyboard is also
attached and I press only one key on that keyboard the Embedded-Keyboard
has configured layout also.
Here are the messages when connecting the usb keyboard:
[ 83087.315] (II) config/udev: Adding input device Microsoft Wired
Keyboard 400 (/dev/input/event12)
[ 83087.315] (**) Microsoft Wired Keyboard 400: Applying InputClass
"evdev keyboard catchall"
[ 83087.315] (**) Microsoft Wired Keyboard 400: Applying InputClass
"evdev keyboard catchall"
[ 83087.315] (**) Microsoft Wired Keyboard 400: Applying InputClass
"LocalKeyboard"
[ 83087.315] (II) Using input driver 'evdev' for 'Microsoft Wired
Keyboard 400'
[ 83087.315] (**) Microsoft Wired Keyboard 400: always reports core events
[ 83087.316] (**) evdev: Microsoft Wired Keyboard 400: Device:
"/dev/input/event12"
[ 83087.316] (--) evdev: Microsoft Wired Keyboard 400: Vendor 0x45e
Product 0x752
[ 83087.316] (--) evdev: Microsoft Wired Keyboard 400: Found keys
[ 83087.316] (II) evdev: Microsoft Wired Keyboard 400: Configuring as
keyboard
[ 83087.316] (**) Option "config_info"
"udev:/sys/devices/pci0000:00/0000:00:12.0/usb3/3-5/3-5:1.0/input/input12/event12"
[ 83087.316] (**) Option "xkb_rules" "evdev"
[ 83087.316] (**) Option "xkb_model" "evdev"
[ 83087.316] (**) Option "xkb_layout" "de"
Regards
Daniel
>>
>> According to xorg.0.log the keyboard is recognized correctly and the
>> german layout is used:
>>
>> [ 12.142] (II) XINPUT: Adding extended input device "USB-Serial
>> Controller" (type: KEYBOARD, id 9)
>> [ 12.142] (**) Option "xkb_rules" "evdev"
>> [ 12.142] (**) Option "xkb_model" "evdev"
>> [ 12.142] (**) Option "xkb_layout" "de"
>> [ 12.142] (**) Option "xkb_variant" "nodeadkeys"
>>
>> But the layout is definitly a US-Layout (the "/"-Key gives a "-", etc...).
>>
>> If i connect a normaly usb-keyboard (microsoft USB keyboard, our
>> keyboard is also connected), the layout is correct. After pressing only
>> one button (doesn't matter which one) on the microsoft keyboard then the
>> layout on our keyboard is also german.
>>
>> Any hints about this? there is also a bug-report on opensuse where
>> others have also a similar problem (but with bluetooth keyboards)
>> https://bugzilla.novell.com/show_bug.cgi?id=682903
>>
>> Regards
>>
>> Daniel
>
>
--
Daniel Spannbauer Systemadministration
marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11
Rechbergstr. 4-6, D 87727 Babenhausen Mobil +49 171 4033220
http://www.marco.de/ Email ds at marco.de
Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München
More information about the xorg
mailing list