keyboard layout EN after boot [duplicate]

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:

sudo dpkg-reconfigure xkb-data  

Now use the Keyboard Icon to reset to whatever it should be - viz the diagram.

enter image description here