Wednesday 15 September 2010

Hack: prevent screensaver from crashing fullscreen games on Ubuntu

Playing the Amnesia demo on Ubuntu, but after 5 mins the screensaver turns on and then the whole system locks up.

It seems that with some fullscreen games this happens.

Hack:
Create a shell-script:

#!/bin/bash
gconftool-2 --set /apps/gnome-screensaver/idle_activation_enabled --type bool 0
[COMMAND TO START GAME OR PROGRAM HERE]
gconftool-2 --set /apps/gnome-screensaver/idle_activation_enabled --type bool 1exit 0



And then make the shell-script executable, and link to it instead of to the game binary in the Games menu.

Seems to work so far.

[Ubuntu 10.04]

No comments :

Post a Comment