Ubuntu – Keyboard Layout indicator doesn’t display current layout in Ubuntu 18.04 (empty drop down box)


I see an empty drop down box where the language code of the current keyboard layout should be.

To reproduce the bug: Lock screen or log out and log in again.

screenshot of keyboard layout indicator on gnome shell

I also get the same behavior on the lock screen at the time when I try to log in with my password:

screenshot of keyboard layout indicator on gdm

After I tried the workaround (below) the language code on the login screen disappeared as soon as I typed the first character of my password.

Workaround (not permanent): Switching with keyboard (Super+space) or mouse.

System info: Ubuntu 18.04.1 LTS, GNOME 3.28.2.

system info

Please indicate in the bug report if also affects you.

Best Answer

A fix was released, already verified on Cosmic and Bionic.


Until is added to normal repos, to enable them on Bionic (18.04) as said here, follow these instructions to enable the proposed archive, which basically say:

  1. Enable pre-release updates: emphasized text
  2. Add to /etc/apt/preferences.d/proposed-updates

    Package: *
    Pin: release a=bionic-proposed
    Pin-Priority: 400

    If sudo apt-get upgrade -s return any package, something went wrong.

  3. Run sudo aptitude -t bionic-proposed
  4. Update with u
  5. Select the proposed related packages:
    • gnome-shell-common 3.28.3+git20190124-0ubuntu18.04.1
    • gnome-shell 3.28.3+git20190124-0ubuntu18.04.1
  6. Upgrade with g
  7. Restart GNOME.

Please test it and eventually suggest changes to this post. If everything went OK upvote and share your love with the developers.