I can't believe this bug has still not been solved with Ubuntu 14.04 ? On my 2 laptops, Acer and Asus, on a random basis, the keyboard layout switch from FR to EN.
This is very frustrating when you type a password and can't see the letters.
How to solve that for good ?
This should fix the problem in 13.10 and 14.04:
In the ubuntu software center, install "dconf Editor" (
dconf-editor
) (if you don't already have it). Open it, then open desktop -> ibus -> general. Now enable the property "use-system-keyboard-layout". (You want it to have a checkmark next to it.)Source: https://bugs.launchpad.net/ubuntu/+source/indicator-keyboard/+bug/1240198
Run command:
Now use the Keyboard Icon to reset to whatever it should be - viz the diagram.
I found at http://ubuntuforums.org/showthread.php?t=1376466 the solution. It appears that there is a issue in defining the keyboard layout when the UID of the user is 1000.
You must logout of your current session and login as root (if you didn't previously, before logout set a root password by running in terminal
sudo passwd root
and follow the steps).At login screen hit on the keyboard CTRL + ALT + F1.
Do login as root. Type
usermod -u 1001 your_user_name
. 1001 is just a suggestion, you can put another. Then reboot by typingreboot
.Hope it works!
Just run the following command line in a terminal and configure your keyboard layout correctly:
then reboot and enjoy. :)
Just type:
on a terminal.
I tried it on Raspberry Pi, Debian, Ubuntu and Fedora.
Trashing the file in
/home/user/.config/ibus
solved the issue.