Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I just installed Ubuntu 13.10, and really enjoy it. I am from Denmark, and use the supported Danish keyboard-layout (and chose it as default in the install), but whenever I reboot Ubuntu switches back to English keyboard-layout, though the little icon in the panel says it's in Danish. I have to click on the icon every time to change it back to Danish. I tried removing the English keyboard-layout, but it didn't help. Any suggestions?

share|improve this question
Same problem with Hebrew layout (Ubuntu 13.10 with Gnome3). I switch layouts via a key combo, the indicator shows 'he' for Hebrew, but english characters come out. Clicking the language selector with the mouse does change the language but even so its not working all the time. It was actually better before in 13.04 when the language indicator did not appear at all but the keyboard layout did change... –  Harel Nov 3 '13 at 23:52
possible duplicate of Keyboard layout isn't kept upon reboot –  Eliah Kagan Aug 17 '14 at 17:17
You want to do this for Ubuntu 14.04: askubuntu.com/a/505362/11333 –  Natim Feb 10 at 16:45

7 Answers 7

I'm Italian and I had the same problem as you before yesterday evening. I came also in this thread but I didn't find a solution.

Default layout keyboard was selected as Italian but at every boot "switched back to English keyboard-layout, though the little icon in the panel says it was in Italian. I have to click on the icon every time to change it back to Italian. I tried removing the English keyboard-layout, but it didn't help". It was frustrasting.

I solved my problem changing Text settings from these:

enter image description here

to these, that work fine for me:

enter image description here

Now my default keyboard layout is italian and works as italian by default, not as english. Now I don't have to click on the icon every time to change it back to Italian. I hope this can help you.

share|improve this answer

(Updated 2014-05-28, thanks to Bernard Decock's comment.)

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

share|improve this answer
You don't have to uninstall Ibus. Open dconf-editor and open the desktop.ibus.general folder. Make sure the "use-system-keyboard-layout" property is enabled. This will resolve the conflict between ibus and your keyboard settings. –  Bernard Decock May 17 '14 at 11:19
Just run: dconf write /desktop/ibus/general/use-system-keyboard-layout true –  Eduardo Santana Feb 6 at 18:12

I had the same problem, with Ubuntu 13.10 and after using it few weeks, my keyboard layout suddenly started to change from spanish to english every time I login.

As a workaround I created the following script and then added it to startup applications:


setxkbmap es

I tried adding the command setxkbmap es directly to startup applications, but it didn't work, for that reason I made the script.

share|improve this answer
If the @Francesco Marmo solution doesn't work, I will setup that one. Thanks. –  Natim Jan 5 '14 at 9:39

This is how I solved it (for me, at least - running 14.04):

In a terminal, type ibus-setup, the IBus Preferences window should open. Under the Advanced tab tick the use system keyboard layout option, like in the screenshot below.

enter image description here

share|improve this answer
This fixed the problem on many of the computer that had it. –  Natim Feb 10 at 16:45

I used:

setxkbmap es

and Finally! it worked, now I'm able to use the ñ and the tildes áéíóú in the right key in the keyboard!

share|improve this answer
I use Dvorak, and the following command is reset on reboot: setxkbmap -model pc104 -layout us -variant dvorak –  Sam King Dec 30 '13 at 23:25

This also affected me and I own a pt-br keyboard. I actually don't know how to solve the problem, but a possible workaround (it worked for me) is to use setxkbmap until they fix it:


I hope it helps.

share|improve this answer
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Braiam Oct 22 '13 at 7:38

First open Text Entry Settings, then put Danish on top of the input sources list:

Open Text Entry

Text Entry

share|improve this answer
I type in Dvorak, and I have Dvorak at the top, but it still starts up in Qwerty. –  Sam King Dec 30 '13 at 23:26

protected by Community Jan 14 '14 at 16:16

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.