Keyboard layout not working in Ubuntu 18.04

21,255

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.

Share:
21,255

Related videos on Youtube

Vitaliy Terziev
Author by

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, 2022

Comments

  • Vitaliy Terziev
    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
      Gunnar Hjalmarsson over 5 years
      Rebooting may be worth a try.
    • Vitaliy Terziev
      Vitaliy Terziev over 5 years
      Yep, I was thinking the same thing, will try it bit later and will leave a note here, thanks.
    • Vitaliy Terziev
      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
      Gunnar Hjalmarsson over 5 years
      Great. Please post the answer yourself. Then, after a couple of days, you'll be able to accept it.
    • Gunnar Hjalmarsson
      Gunnar Hjalmarsson over 3 years
      It's worth mentioning that this is a 18.04 bug which is about to be fixed.
  • Maxim Imakaev
    Maxim Imakaev almost 5 years
    Sometimes restarting the system is not possible. For me, logging out and logging back in worked just fine.
  • Maxim Imakaev
    Maxim Imakaev almost 5 years
    Ubuntu 18.04 - didn't work for me. What did work was logging out and logging back in.
  • Achim Krauß
    Achim Krauß over 4 years
    DONT DO THIS, it can break your language configuration like for me, and I need to configure it again using UI
  • funerr
    funerr over 4 years
    This was enough for me: gsettings reset org.gnome.desktop.input-sources xkb-options
  • Bojan Komazec
    Bojan Komazec about 4 years
    This worked for me on Ubuntu 18.04.
  • Marc
    Marc almost 4 years
    Using 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.