Unlock Unity lockscreen from command line
By Daniel Rodriguez •
How do I unlock the lock screen in Unity from command line?
gnome-screensaver-command -l locks the screen, but gnome-screensaver-command -d doesn't unlock the lockscreen.
Is there another way to unlock the lock screen from the command line? Not via ssh, via script, for example:
gnome-screensaver-command -l && sleep 5 && <command to unlock> 6 1 Answer
For Ubuntu 16.04 and later:
loginctl unlock-sessionsNo need for root, but needs session permission obviously.
Note:
By default gnome-screensaver-command -d doesn't work anymore in Unity but with this workaround (enable on-screen keyboard) it does. Works for both 14.04 and 16.04.
More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"