ADAM'S WEB PRESENCE

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.

4 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.

RSS feed for comments on this post. TrackBack URI

Leave a comment


Powered by WordPress