Wednesday, 3 August 2011

Ubuntu - changing screensaver settings from terminal!

Every now and again someone calls me for support regarding their screensaver, usually after playing around with the settings... To save you some time, heres a mini howto:

The settings are all stored in a database, to view the database and descriptions of each key, run the command: gconf-editor

The actual screensaver settings for Ubuntu 10.04.3 LTS:

gconftool --set /apps/gnome-screensaver/lock_enabled --type bool 0
gconftool --set /apps/gnome-screensaver/idle_activation_enabled --type bool 1
gconftool --set /apps/gnome-screensaver/mode --type string random

The config above also helps avoid that auto-lock screen feature after installing Ubuntu and is perfect for those preseed installs too!

1 comment:

  1. Someone I know likes to do this:
    Set gdm to autologin user, and then
    in Auto-Started applications create new entries
    gnome-screensaver-command -l
    firefox
    gnome-terminal
    so that user is autologged in, firefox and terminal are launched and the screen is locked.

    ReplyDelete