I'm looking for a way to disable screen dimming and desktop locking timeout from a bash script on Ubuntu 13.10. The script should be run when user logs in (configured in Startup Applications window) or as a service before lightdm (from init.d).
I have found this answer and tried the command:
gconftool-2 -s /apps/gnome-screensaver/idle_activation_enabled --type bool false
It has actually changed that setting (I've checked with gconftool-2 -g
and gconf-editor
), but it doesn't seem to work like expected. Settings window still states that screen will turn off, and in fact, after 5 minutes screen turns off and I'm prompted to enter my password when I wake it up.
I've also tried looking around in gconf-editor
, but I haven't found any settings that looked relevant.
So, how can I disable desktop locking and screen off timeout from a script?