How can I lock the screen via the shell?
System:
- Solaris 10
- GNOME desktop environment
For some reason Launch > Lock Screen does not work. A fix for that would also be much appreciated. Thank you.
How can I lock the screen via the shell?
System:
For some reason Launch > Lock Screen does not work. A fix for that would also be much appreciated. Thank you.
After reading @egorgry's answer, I tried xlock
randomly. I figured xset
worked, and lock is what I'm trying to achieve so why not try xlock
? It worked!
So for future reference:
The xlock
command locks your screen.
Is the system using the gnome screen saver?
If it is then you can do this:
$ gnome-screensaver-command --lock
use xset -q to see if locking is enabled or disabled. read the xset man to see how to change these settings. I hope this helps you.