PDA

View Full Version : [ubuntu] [SOLVED] keyboard layout disappears on boot



nikosm
July 5th, 2008, 10:42 AM
Dear community,

I have three keyboard layouts that I use, configured to switch with left alt + shift. They work well, but every time I boot, alt + shift doesn't do anything. Clicking on the language indicator on the panel circulates between the first two layouts in the indication, but the layout doesn't actually change. Also, "show current layout" opens an empty window.

A fix I found is the following: open the keyboard preferences and add a fourth layout (e.g. Albanian) and remove it imediately. Alt+shift works and the keyboard layouts are there.

...but it would be nice not to have to do this at each boot! :)

Thanks a lot for any advice,
Nikos

P.S. It seems that adding a fourth language causes some service to restart - is it?

prshah
July 5th, 2008, 03:12 PM
I have three keyboard layouts that I use, configured to switch with left
add a fourth layout (e.g. Albanian) and remove it imediately. Alt+shift works and the keyboard layouts are there.

...but it would be nice not to have to do this at each boot! :)


Add the following command to your startup sessions
setxkbmap; post back if you need more detailed steps.

Eg, if you're using gnome, click on System-Preferences-Sessions-Add, then fill in the blanks as follows:

Name: setxkbmap (or whatever you like)
Command: setxkbmap
Comment: Restore keyboard layout settings (or whatever you like)

nikosm
July 5th, 2008, 04:21 PM
[QUOTE=prshah;5324374]Add the following command to your startup sessions
setxkbmap

Thanks! That fixed it!

cheers,
Nikos