I have this bug on Ubuntu 18.04 with Gnome. My keyboard layout is ["en", "gr"].
As a workaround I am using the following bash script that changes the keyboard layout to the first language in the keyboards layout list, i.e "en" (index "0" in inputSources), before activating the gnome- screensaver. I am running this script using a custom keyboard shortcut, set to "Super + L", after deactivating the default one. Bash script: #!/bin/bash gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell \ --method org.gnome.Shell.Eval \ "imports.ui.status.keyboard.getInputSourceManager().inputSources[0].activate()" gnome-screensaver-command -l -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1286910 Title: Lock screen uses last active window's language instead of default keyboard language To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1286910/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs