Comment 170 for bug 196277

Revision history for this message
muadnu (web-cosas) wrote : Re: [Bug 196277] Re: [hardy] With autologin, keyboard layout switching shortcut/settings don't work

Anyway, I think running 'setxkbmap' provides a good enough workaround.
Simply create a script containing "sleep 25 && setxkbmap" and add it to
gnome-session...

On Tue, Jul 29, 2008 at 11:35 AM, Bug Watch Updater <
<email address hidden>> wrote:

> ** Changed in: opensuse
> Status: Unknown => Confirmed
>
> --
> [hardy] With autologin, keyboard layout switching shortcut/settings don't
> work
> https://bugs.launchpad.net/bugs/196277
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in libxklavier - XKB foundation libary: New
> Status in X.Org X server: Confirmed
> Status in "libgnomekbd" source package in Ubuntu: Invalid
> Status in "libxklavier" source package in Ubuntu: Confirmed
> Status in "xorg" source package in Ubuntu: Invalid
> Status in "xserver-xorg-input-keyboard" source package in Ubuntu: Triaged
> Status in "libgnomekbd" source package in Baltix: New
> Status in Fedora: Unknown
> Status in openSUSE: Confirmed
>
> Bug description:
> (This bug used to cover two separate but similar looking bugs. We split
> them now, and here we describe one of the two bugs. The other bug, Bug
> #251443, has to do with some shortcuts to switch between layouts not
> working. An example is the Alt+AltGr shortcut).
>
> If you enable autologin (it is in the settings, System/Administration/Login
> window/Security/Enable Automatic Login), then any settings about your
> keyboard layout including the shortcut to switch between layouts do not work
> on your next reboot.
>
> In other words, the system ignores any keyboard layout settings that have
> been configured in GNOME.
>
> This issue has been reported upstream (Freedesktop Project), and the link
> is shown above.
>
> A good description of the root of the problem is at this post by Peter
> Hutterer,
> http://lists.freedesktop.org/archives/xorg/2008-July/036947.html
>
> "setting the keyboard without a device flag changes the VCK. On the first
> keypress of a device however this setting is overwritten by the keyboard
> that is actually being used. If you hit a key before gnome sets the keyboard
> layout, the phys. keyboard's settings are already copied into the VCK and
> thus gnome can overwrite them again. consecutive keypresses don't overwrite
> it again, since the phys. keyboard doesn't change.
>
> "The correct solution here is to let gnome set the keyboard settings on
> each physical device they apply to."
>
> A workaround is to run "setxkbmap" (command line utility), which reapplies
> the layout settings in GNOME.
>
> Another workaround is to make a small change in the Keyboard layout
> settings, something that implicitly reapplies the settings from GNOME. For
> example, you can change the order of the layouts, then change them back.
>