This is my personal blog. I also have a professional blog at http://siliconsparrow.com/

18 July 2006

Disabling screen blanking in xorg

Filed under: Nerd Notes — adam @ 10:21 am

I’m writing this down because I always forget how to do it. Usually your window manager would take care of this for you but here in the embedded Linux world, we don’t always use a window manager.

There’s a lot of detailed information here but in a nutshell, put the following code into the Monitor section of /etc/X11/xorg.conf

        Option          "DPMS"

and then, put this in the ServerLayout section:

        Option          "BlankTime"     "0"
        Option          "StandbyTime"   "0"
        Option          "SuspendTime"   "0"
        Option          "OffTime"       "0"

PS. I could have used the “NODPMS” option but this way leaves it open in future to set some screen blanking timeouts if I so desire.

6 Comments »

  1. Comment by steve — 10 September 2006 @ 4:08 am

    Half an hour googling and lots of trying to turn off screen blanking. Remming the dpms line as said elsewhere didnt work. Your hack did – cheers

  2. Comment by Garlic — 21 March 2007 @ 1:51 pm

    You can also put that in Section “SeverFlags” if you have multiple layouts (eg: twinview and dualview on Nvidia cards) that you switch between without having to cut’n'paste it into each ServerLayout.

    Sadly, Option “NoPM” “true” doesn’t seem to work by itself. It should also be noted that at least in Fedora Core 6, when the driver blanks, the vncserver module won’t respond until you wake it up again.

    Cheers!

    p.s.: this site was ranked 2 in google for: ‘xorg disable blanking’

  3. Comment by adam — 21 March 2007 @ 7:35 pm

    Thanks for the dual-head tip Garlic.

  4. Comment by daveg — 8 February 2008 @ 11:15 am

    This didn’t actually work on my setup for some reason (I’m also using an NVidia card). I’ve had to add the command “xset -dpms” to my X startup scripts to full disable DPMS.

  5. Comment by FOXAlthea35 — 12 May 2010 @ 9:28 pm

    One acknowledges that modern life is high priced, however people need money for various things and not every one earns big sums cash. Therefore to receive some credit loans or just consolidation loans would be good way out.

  6. Comment by Jason — 25 June 2010 @ 1:18 am

    Since this still comes up high in google searches, I thought I’d add some info.

    For recent versions of Xorg, there is no longer an xorg.conf file. Everything is automatically figured out. Instead of creating an xorg.conf file, one can create a configuration file in directory /etc/X11/xorg.conf.d
    I created on named 01-disable-dpms-off.conf, then put the following in the file:
    Section “ServerFlags”
    Option “BlankTime” “0″
    Option “StandbyTime” “0″
    Option “SuspendTime” “0″
    Option “OffTime” “0″
    EndSection

    This did the trick for me on Fedora 13, which has Xorg version 1.8.0.

RSS feed for comments on this post.

Leave a comment

COMMENTS ARE DISABLED DUE TO EXCESSIVE SPAM. I'm sorry about this, I really love to read your comments but the amount of time I spend deleting spam is too much.


Powered by WordPress