Skip to content

Deactivate xscreensaver via SSH

Terminal window
xscreensaver-command -deactivate

If you happen to use gnome-screensaver (default in Ubuntu), the following command might help (not tested):

Terminal window
DISPLAY=:0 gnome-screensaver-command -p

Thanks to YaronSh on the Ubuntu forums.