Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 5852  / 1 Year ago, sat, april 1, 2023, 2:29:32

I was using virtualbox on a laptop and closed the lid which locked the screen and sleep the computer. Now it came back from sleep, the screen is locked, but I can not type my password. The mouse work, I can set focus in the password box, but typing does nothing.



I guess the keyboard is held by virtualbox.



I tried plugin in a keyboard, no luck. I tried killing unity-panel-service --lockscreen-mode, it seems to have a watchdog that restart it.



I'll find some command line to sleep my vm, but is there anyway to unlock the screen from command line ?


More From » unity

 Answers
6

Go to TTY and run the command:



sleep 5; xdotool type <yourpassword>; xdotool key Return


and then go back to the login screen and click in the password box. Wait ~5 secs and your password will be typed and enter will have been pressed.



My pronouns are He / Him


[#23888] Sunday, April 2, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
herfor

Total Points: 490
Total Questions: 101
Total Answers: 110

Location: Guadeloupe
Member since Mon, Jan 24, 2022
2 Years ago
;