Lockscreen: Looses keyboard input on monitor wakeup / login
Affected version
Ubuntu: 20.04.2 Version: 3.36.x XOrg
Bug summary
On Ubuntu 19.10 / 19.04 / perhaps earlier, my PC would transition to the lock screen after X minutes of inactivity, then the monitor would go to sleep after Y more minutes of inactivity. When the time comes for me to continue work on my PC, I could just begin typing my password quickly while the monitor is asleep. Once the monitor wakeups, gnome would have automatically picked my user-account and have written the entered keys directly into that password input. (I only have one account on my PC). (If I hit enter as well, my monitor would essentially wake up to me logged in, which is lovely.)
Although this still does work for the most part on the latest gnome, if I DONT wait for my monitor to wakeup (or at move the mouse and wait at minimum a second or two), Gnome does NOT capture any input. So to repeat the issue. I'm resuming work, I start typing keys, My monitor wakes up and Gnome did select my account, but NO input is entered into the prompt. Sometimes there's only 1 or 2 characters entered.. Its seems like the input prompt doesn't have focus until very late in the lockscreen wakeup process, therefore loosing input.
Note: Since I updated to the latest Ubuntu 20.04 / Gnome with the NEW lock screen, this issue has been occurring. I've just been moving my mouse and waiting for my monitor to wakeup (a good couple of seconds) before proceeding with logging in. It didn't bother me at first, but since changing my lock-time / monitor sleep time, its beginning to become quite frustrating now.
Steps to reproduce
- Wait for system to go to the lock screen (or just lock your PC)
- Wait for system to put monitor to sleep
- Start typing 123456789 quickly WHILE monitor is asleep
- Wait for monitor to wakeup
- Check if your user account was selected AND the input 123456789 was entered into the password prompt.
What happened
Input prompt lost my input (or partial start of input) while waking up
What did you expect to happen
Capture all of my input.