Comment 144 for bug 196277

Revision history for this message
David Huggins-Daines (dhuggins) wrote : Re: [hardy] keyboard layout switching shortcut doesn't work after reboot

The libxklavier author is correct, this is not a bug in libxklavier. It does everything exactly as it should, and calls XkbWriteToServer() to set the new keymap, and checks its return value. I have verified this.

The problem is that XkbWriteToServer() is failing silently, for no apparent reason, during startup when autologin is enabled (or, it seems, when GNOME is started via xinit). And yet it works just fine once everything has settled down.

I conjecture that the reason it works with manual login is because in that case, the X server has completely started up well before the point where GNOME tries to apply keyboard settings.

Maybe moving gnome-settings-daemon later in the startup sequence would fix this? I'm revealing my ignorance of how GNOME actually starts up here...