There is a file in your home folder that allows you to configure some settings for Hulu Desktop: ~/.huludesktop
. It has an option for scripts to run to dis/en-able the screensaver.
I would like to write a script to be called by Hulu while watching video. It seems that in Ubuntu 10.04 the gconftool settings idle_activation_enabled
& idle_activation_enabled
no longer inhibit the gnome-screensaver or monitor sleep.
These are the commands I tried to use:
gconftool-2 --set /apps/gnome-screensaver/idle_activation_enabled --type bool TRUE
gconftool-2 --set /apps/gnome-powermanager/idle_activation_enabled --type bool TRUE
I have also found gnome-screensaver-command
with the --inhibit
option, but that blocks while active which means that my suspend script would be hard to fit into the two .huludesktop
options (suspend_script
& resume_script
)
I would prefer not to use Caffine as this is under Ubuntu NBR and top panel space is valuable.
DISPLAY=:0
ENV variable or else the gnome-screensaver-command errors:** Message: Failed to connect to the D-BUS daemon: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
– Rob Oct 04 '10 at 15:50export DISPLAY=:0;
– Rob Oct 13 '10 at 14:10