There is another case where this behaviour can be reliably reproduced: undocking and redocking a laptop. I do this frequently at work, and my setting (using Caps Lock as another control key) always has to be reset after this occurs. It's effectively the same operation that Brendan Kehoe (Hi Brendan!) and Cay have reported, as I have a Microsoft Natural keyboard permanently plugged into the docking station.
FWIW here's the excerpt from Xorg.0.log that seems to cover the undock/redock sequence: (EE) Microsoft Natural Keyboard Elite: Read error: No such device (II) config/hal: removing device Microsoft Natural Keyboard Elite (II) Microsoft Natural Keyboard Elite: Close (II) UnloadModule: "evdev" (II) config/hal: Adding input device Microsoft Natural Keyboard Elite (**) Microsoft Natural Keyboard Elite: always reports core events (**) Microsoft Natural Keyboard Elite: Device: "/dev/input/event6" (II) Microsoft Natural Keyboard Elite: Found keys (II) Microsoft Natural Keyboard Elite: Configuring as keyboard (II) XINPUT: Adding extended input device "Microsoft Natural Keyboard Elite" (type: KEYBOARD) (**) Option "xkb_rules" "evdev" (**) Microsoft Natural Keyboard Elite: xkb_rules: "evdev" (**) Option "xkb_model" "pc105" (**) Microsoft Natural Keyboard Elite: xkb_model: "pc105" (**) Option "xkb_layout" "us" (**) Microsoft Natural Keyboard Elite: xkb_layout: "us" -- Keyboard layout options get lost https://bugs.launchpad.net/bugs/305309 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs