Friday, 24 September 2010

Hack: prevent screensaver from crashing fullscreen games on Ubuntu (II: xscreensaver)

I realised that this doesn't work if gnome-screensaver is disabled and xscreensaver put in its place.

In that case, preventing the screensaver from starting (and locking the system) during a fullscreen game can be accomplished with the following script:

#!/bin/bash
xscreensaver-command -exit
[COMMAND TO START GAME OR PROGRAM HERE]
xscreensaver -no-splash
[Ubuntu 10.04]

No comments :

Post a Comment