Keyboard layout not working in Ubuntu 18.04
Solution 1
The solution was - restarting the system.
Solution 2
Just for information, if someone is in a similar situation and wants to avoid restarting, this worked for me. TL;DR:
sudo dpkg-reconfigure keyboard-configuration
gsettings reset org.gnome.desktop.input-sources xkb-options
Solution 3
Reloading Gnome after changing the keyboard language also works, which is less "destructive" than than logging out or restarting:
ALT + F2
to bring up the command box, r
and Enter
to reload.
Related videos on Youtube
Vitaliy Terziev
There are more stars in the Milky Way than loose change between your couch cushions. If you can’t solve a problem then there is an easier problem you can solve. Find it.
Updated on September 18, 2022Comments
-
Vitaliy Terziev over 1 year
I was able to add additional keyboard layout in
Settings -> Regional & Language -> Input Sources
Bulgarian (new phonetic) to be specific. SuperSpace works fine, the Gnome icon also works fine for switching. The thing is that the layout is the same for English (US) and Bulgarian (new phonetic). Nothing changes if I try to switch, English (US) in both cases.
Any thoughts on this?
I've googled for about 20 minutes, the problems I've found are mostly not able to Super etc. and Gnome icons not working.-
Gunnar Hjalmarsson over 5 yearsRebooting may be worth a try.
-
Vitaliy Terziev over 5 yearsYep, I was thinking the same thing, will try it bit later and will leave a note here, thanks.
-
Vitaliy Terziev over 5 years@GunnarHjalmarsson, ineed, it is working after restart. "password you entered was incorrect" was my first clue.. ;d, you can post it as answer so I can close this one or I'll do it tomorrow.
-
Gunnar Hjalmarsson over 5 yearsGreat. Please post the answer yourself. Then, after a couple of days, you'll be able to accept it.
-
Gunnar Hjalmarsson over 3 yearsIt's worth mentioning that this is a 18.04 bug which is about to be fixed.
-
-
Maxim Imakaev almost 5 yearsSometimes restarting the system is not possible. For me, logging out and logging back in worked just fine.
-
Maxim Imakaev almost 5 yearsUbuntu 18.04 - didn't work for me. What did work was logging out and logging back in.
-
Achim Krauß over 4 yearsDONT DO THIS, it can break your language configuration like for me, and I need to configure it again using UI
-
funerr over 4 yearsThis was enough for me:
gsettings reset org.gnome.desktop.input-sources xkb-options
-
Bojan Komazec about 4 yearsThis worked for me on Ubuntu 18.04.
-
Marc almost 4 yearsUsing Linux for a while now. Wow, I learned again new things: alt + F2 plus the "r" command to reload, plus it fixed the keyboard issue. Grazie.