3

Ubuntu 18.04.1 LTS In GNOME I have two keyboard layouts english and russian while system wide language is set to english. During OS installation I've set LUKS encription with a passphrase in english. Did not have any issues until recently, my passphrase for disk encryption would not work anymore. Because you can't see what you type, it took me some time to realize that something is wrong with a layout. I have entered my passphrase using Alt codes and it worked(eg. Alt-110 Alt-117 refering to http://charmap.ru/alt_table.htm). Somehow my input language has changed to russian by default for passphrase. In addition, shortcuts for switching input language do not work as well (have tried all possible shortcuts) How do I change it back to english?

Contents of /etc/default/keyboard:

XKBLAYOUT=us,ru

XKBVARIANT=,

BACKSPACE=guess
Ravexina
  • 57,256
QAN
  • 121

2 Answers2

9

echo "KEYMAP=Y" | sudo tee -a /etc/initramfs-tools/initramfs.conf update-initramfs -u

Solved my problem! Thanks!

QAN
  • 121
1

For me (Ubuntu 20.04 fresh install) this worked:

  1. Change the XKBLAYOUT in /etc/default/keyboard to XKBLAYOUT="us" (assuming you want us layout).
  2. run sudo uptdate-initramfs -u (this updates the cached layout, among other things)
grg
  • 11