I have Ubuntu 11.10. I have an English keyboard and have set the keyboard layout to English (UK) in the System settings -> Keyboard Layout. It is the only layout listed.

Recently my keyboard has gone to US layout. I don't know why and I cannot change it back.
The " and @ are in the wrong place.

I've typed man loadkeys and the documentation tells me that the default keymap is probably in a file called defkeymap.map either in /usr/share/keymaps or in /usr/src/linux/drivers/char. I can find neither of these directories. Can anybody tell me where the defkeymap.map file is in my distribution, or if it is there at all?


I had the same issue. Even though English (UK) was selected for everything it was still using a US layout.

For some reason adding English (US) keyboard layout below the English (UK) entry in System Settings -> Region & Language -> Layouts made everything work.


I have this problem in 14.04 According to everything that I look at I'm using En1 (UK) but it is actually En2 (US). eg

/etc/default/keyboard says "gb"

It switches back regularly. It says UK but it isn't. The keyboard layout chart shows things as they should be, but they aren't.

Workaround #1: If I switch from En1 to En2 & back it corrects itself until the next time I reboot.

It looks like we're dealing with this bug:

https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/1284635

A workaround involving customising ibus-setup from this page did not work for me.

Removing Ibus seems to work. Hooray! Well it takes most of the Unity System Settings with it. Not good :(

Workaround #2: Look in your home directory & press control h to see hidden files. Open ~/.config/ibus/bus & delete the file therein. Then reboot.

This works until the next time that you do an upgrade, then you need to do it again, unless, after that first reboot, you change the permissions to make the file read-only.