Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I do change the Turn screen off when incative for: often using the below screen in Ubuntu 12.04. How do I change the same from the terminal? I did check in the gconf-editor, but couldn't figure it out.

enter image description here

I use the below commands for turning the monitor off and for the locking the screen quickly from the terminal.

alias off='xset dpms force off'  
alias lock='gnome-screensaver-command -a'
share|improve this question
up vote 2 down vote accepted

You can change the time of inactivity after which to turn the screen off from terminal using next commands:

gsettings set org.gnome.settings-daemon.plugins.power sleep-display-ac <nr_of_sec>
gsettings set org.gnome.settings-daemon.plugins.power sleep-display-battery <nr_of_sec>
gsettings set org.gnome.desktop.session idle-delay <nr_of_sec>

Change <nr_of_sec> as you wish. For example, for 3 minutes, use 3x60=180:

gsettings set org.gnome.settings-daemon.plugins.power sleep-display-ac 180
gsettings set org.gnome.settings-daemon.plugins.power sleep-display-battery 180
gsettings set org.gnome.desktop.session idle-delay 180

If you will use 0, the screen will never turn off.


To change the brightness through terminal, use this answer: I tested this method on 13.04 and is working.

share|improve this answer
How about the brightness controls? – Seth Jun 27 '13 at 17:00
@Seth See – Radu Rădeanu Jun 27 '13 at 17:27
Is there any list of all the different properties for gesettings. I will try it out and upvote. – Praveen Sripati Jun 28 '13 at 1:02
@PraveenSripati See man gsettings. – Radu Rădeanu Jun 28 '13 at 6:11
Only idle-delay is needed on a desktop machine. Tested on 14.04.1 – Antonios Hadjigeorgalis Dec 3 '14 at 17:41

You can use

xrandr --output LVDS1 --brightness "X"

Where X is a number between 1 (being full brightness) and 0 (with the backlight off) :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.