cannot switch keyboard layout after reconnecting keyboard

Bug #325200 reported by Jan Obdrzalek on 2009-02-04
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libxklavier (Ubuntu)
Low
Unassigned

Bug Description

Binary package hint: gnome-applets

I use M$ Comfort Curve USB keyboard, connected through a monitor. I have two keyboard layouts, USA and "Czechia qwerty, extended Backslash". When I log-in for the first time, both layouts work and I can switch between them. When I switch the monitor off and on again (effectively disconnecting the keyboard), I'm stuck with the USA keyboard layout. HOWEVER the keyboard indicator applet still shows both layouts. I cannot switch the layouts, though. Neither by using a keyboard shortcut (Alt-Shift), nor by using the applet. The solution is to remove the Czechia layout in the keyboard indicator applet and immediately add it back. My system is Ubuntu 8.10

Changed in gnome-applets:
assignee: nobody → desktop-bugs
importance: Undecided → Low
affects: gnome-applets (Ubuntu) → libxklavier (Ubuntu)
Changed in libxklavier (Ubuntu):
assignee: Ubuntu Desktop Bugs (desktop-bugs) → nobody
Download full text (5.1 KiB)

I see this also with layout options. I have capslock and control swapped. If I unplug the keyboard (usb Dell keyboard) and then plug it back in again, the swap is forgotten. If I change the layout option and then change it right back to swapped capslock and control, the swap is again in effect.

It doesn't matter that the keyboard is plugged into the monitor hub; using the usb ports on the front of the pc does the same thing.

It doesn't matter if the keyboard is plugged into the same port; the behavior is the same.

syslog output from the plugging:
Apr 22 16:51:20 borkborkbork kernel: [10589.600727] usb 2-3.3: USB disconnect, address 8
Apr 22 16:51:27 borkborkbork kernel: [10596.152138] usb 4-1: new low speed USB device using uhci_hcd and address 2
Apr 22 16:51:27 borkborkbork kernel: [10596.359400] usb 4-1: configuration #1 chosen from 1 choice
Apr 22 16:51:27 borkborkbork kernel: [10596.416412] input: Dell Dell USB Keyboard as /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/input/input8
Apr 22 16:51:27 borkborkbork kernel: [10596.440120] dell 0003:413C:2105.0007: input,hidraw2: USB HID v1.10 Keyboard [Dell Dell USB Keyboard] on usb-0000:00:1a.1-1/input0
Apr 22 16:51:57 borkborkbork kernel: [10626.456050] usb 4-1: USB disconnect, address 2
Apr 22 16:51:59 borkborkbork kernel: [10628.184015] usb 4-2: new low speed USB device using uhci_hcd and address 3
Apr 22 16:51:59 borkborkbork kernel: [10628.401844] usb 4-2: configuration #1 chosen from 1 choice
Apr 22 16:51:59 borkborkbork kernel: [10628.454834] input: Dell Dell USB Keyboard as /devices/pci0000:00/0000:00:1a.1/usb4/4-2/4-2:1.0/input/input9
Apr 22 16:51:59 borkborkbork kernel: [10628.484086] dell 0003:413C:2105.0008: input,hidraw2: USB HID v1.10 Keyboard [Dell Dell USB Keyboard] on usb-0000:00:1a.1-2/input0
Apr 22 16:52:36 borkborkbork kernel: [10664.896780] usb 4-2: USB disconnect, address 3
Apr 22 16:52:40 borkborkbork kernel: [10669.108268] usb 4-2: new low speed USB device using uhci_hcd and address 4
Apr 22 16:52:40 borkborkbork kernel: [10669.371148] usb 4-2: configuration #1 chosen from 1 choice
Apr 22 16:52:40 borkborkbork kernel: [10669.424430] input: Dell Dell USB Keyboard as /devices/pci0000:00/0000:00:1a.1/usb4/4-2/4-2:1.0/input/input10
Apr 22 16:52:40 borkborkbork kernel: [10669.448101] dell 0003:413C:2105.0009: input,hidraw2: USB HID v1.10 Keyboard [Dell Dell USB Keyboard] on usb-0000:00:1a.1-2/input0

relevant xorg.0.log output;

(**) Dell Dell USB Keyboard: Device: "/dev/input/event4"
(II) Dell Dell USB Keyboard: Found keys
(II) Dell Dell USB Keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "Dell Dell USB Keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Dell Dell USB Keyboard: xkb_rules: "evdev"
(**) Option "xkb_model" "pc105"
(**) Dell Dell USB Keyboard: xkb_model: "pc105"
(**) Option "xkb_layout" "us"
(**) Dell Dell USB Keyboard: xkb_layout: "us"
(EE) Dell Dell USB Keyboard: Read error: No such device
(II) config/hal: removing device Dell Dell USB Keyboard
(II) Dell Dell USB Keyboard: Close
(II) UnloadModule: "evdev"
(II) config/hal: Adding input device Dell Dell USB Keyboard
(**) Dell Dell USB Keyboard: always reports core ...

Read more...

I can confirm this issue in Jaunty. This happens to me with my Logitech Wave USB keyboard if I unplug it and plug it back again. I'm using Slovenian and USA layouts.

KennoVO (kenno-xs4all) wrote :

I can confirm this issue in Lucid. Here's a workaround (in a terminal):
setxkbmap cz
setxkbmap us

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers