Problem is that if keyboard layout is set to Russian when screen is locked I can't login using password input field. Only way is to press Switch User and then enter password for my current user.

But if keyboard layout is set to English when screen is locked everything is OK and I can login normally.

Yes, I've checked keyboard layout before entering password.It is set to En. But it makes no sense when I'm trying to change it on locked screen. I use Ubuntu 16.04 with Gnome.

I've checked it on different PCs and on different Virtual machines, the result is the same - can't login when screen is locked with keyboard layout set to Russian and all works normally when it is English or any other English-like keyboard layout. And all woks fine if I press Switch user and log in from start page (the page with password prompt you see when starting PC).

Only idea I have is that language in screen lock don't changes to English from Russian even when you switch manually. How to fix that? Any workarounds of fixes?

  • Please show us the output of cat /etc/default/keyboard. – Gunnar Hjalmarsson Nov 28 '17 at 13:22
  • XKBLAYOUT=lv,ru XKBVARIANT=apostrophe, BACKSPACE=guess – St Pavel Nov 28 '17 at 19:03

You may want to open /etc/default/keyboard for editing and change the lines:




After next reboot, that would make the English (US) layout available to the login screen, and possibly it makes a difference to the lock screen as well. But I'm not sure of this; your feedback would be appreciated.

  • Thanks for reply, but this didn't helped. Seems that there is some soft bug in Gnome env, because there were no such problems in Unity. – St Pavel Dec 1 '17 at 17:38
  • @StPavel: Ok, it was a long shot. May be bug #1652618. – Gunnar Hjalmarsson Dec 1 '17 at 17:51
  • Yes, that's it. I hope that there will be a fix asap. – St Pavel Dec 3 '17 at 6:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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