How to activate or deactivate a Linux host with Gnome remotely?

I have a Fedora Linux server with Gnome 3. I want to lock / unlock the remote Gnome desktop remotely. How to activate or deactivate it remotely through SSH?

asked Feb 17, 2013 by anonymous

1 Answer

Best answer

Use gnome-screensaver-command. It is not specific to Gnome 3.

Turn the screensaver on (blank the screen):

$ gnome-screensaver-command -a

If the screensaver is active then deactivate it (un-blank the screen)

$ gnome-screensaver-command -d
answered Feb 18, 2013 by Adam (1,780 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost