#672231 xserver-xorg-core: bluetooth keyboard has wrong layout on X start until internal keyboard used (udev)

Package:
xserver-xorg-core
Source:
xorg-server
Description:
Xorg X server - core server
Submitter:
Wouter Van Hemel
Date:
2013-12-23 00:09:04 UTC
Severity:
normal
#672231#5
Date:
2012-05-09 09:36:30 UTC
From:
To:
Hello,

Bluetooth keyboards don't follow the default xkb setting, probably due to a problem with udev rule triggers.

When KDM starts, my laptop's internal keyboard is set correctly to Finnish layout via /etc/default/keyboard and the udev rule. The bluetooth keyboard is set to the (presumably default) en-US layout as the keys show up wrong in the username/password field. When I push a key on my internal keyboard, the bluetooth keyboard changes layout to Finnish.

I'm guessing this might have something to do with bluetooth vs. input subsystem rules, although I don't understand how typing something on my internal keyboard switches the bluetooth keyboard's layout.

I expect bluetooth keyboards to act like other keyboards and follow the default Debian configuration; at least the layout switching when using the other keyboard seems like a bug.


Thanks for your time,

  Wouter

#672231#10
Date:
2012-05-09 12:18:26 UTC
From:
To:
Wouter Van Hemel <wouter-debian@publica.duodecim.org> (09/05/2012):

Check your X log, look for “xkb_”. In the one attached by reportbug, I
only see “"xkb_layout" "fi”. What's reported there comes from the XKB*
properties attached to the devices reported by udev (see the “udev
information” part of your bug report). AFAICT, everything looks set
to Finnish.

For some reasons, “(EE) Error loading keymap /var/lib/xkb/server-0.xkm”
appear several times in your X log. That might be related to your
issue.

Mraw,
KiBi.

#672231#15
Date:
2012-05-12 01:04:00 UTC
From:
To:


You're correct, the only settings anywhere related to the keyboard(s) are

those in /etc/default/keyboard. There shouldn't be any other layouts

anywhere else.



But the bluetooth keyboard *is* set to something else when you type, some

default en_US layout, until I use the built-in keyboard.



My guess is that the layout is set only when the device switches from

USB/bluetooth to the input subsystem or something along those lines. I just

don't understand why using the other keyboard triggers the layout being

set.



A web search turns up lots of similar bug reports:



https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/559557

https://bugs.launchpad.net/ubuntu/+source/kde-workspace/+bug/835447

https://bugs.launchpad.net/ubuntu/+source/kde-workspace/+bug/853416

https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/931607



I have noticed this line before, but I don't have a clue where it comes

from. There is nothing in /var/lib/xkb/; the directory is empty.



Thanks,



  Wouter

#672231#20
Date:
2013-12-23 00:07:36 UTC
From:
To:
Same here, however I'm just seeing this on the login screen (wheezy,
lightdm and gdm). Bluetooth keyboard is QWERTY, until I hit a key on the
USB keyboard (even shift), then bluetooth switches to QWERTZ, which is
default on my computer.

After that, it stays QWERTZ even if I un-plug the BT dongle and turn off
the bluetooth keyboard. Only a session logout or X server restart
returns it into QWERTY state. (Just hot-plugging does not switch it from
QWERTY to QWERTZ layout either.)

If I manage to log in to xfce4 with QWERTY layout, the X session
switches the bluetooth keyboard to QWERTZ too.