1

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.

theotherreceive
  • 8,365
  • 1
  • 31
  • 44
George IV
  • 375
  • 3
  • 11

3 Answers3

1

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.

George IV
  • 375
  • 3
  • 11
  • does this solve the issue with locking from the gui? if you enable it in xset it should work from the gui too. I don't have solaris to play with right now. – egorgry Jul 14 '09 at 18:58
0

Is the system using the gnome screen saver?

If it is then you can do this:

$ gnome-screensaver-command --lock
theotherreceive
  • 8,365
  • 1
  • 31
  • 44
0

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.

egorgry
  • 2,871
  • 2
  • 23
  • 21