Announcement

Collapse
No announcement yet.

Shell command for setting monitor power off time

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Shell command for setting monitor power off time

    Is there a shell command that sets the amount of idle time before the monitor turns off? It's the option in System Settings -> Monitor & Display -> Power Saving. Quake3-based games break monitor power saving (I remember the same problem on Windows a few years ago), so I wanted to just make a quick cron job as a workaround.

    #2
    Re: Shell command for setting monitor power off time

    Anyone?

    Comment


      #3
      Re: Shell command for setting monitor power off time

      http://www.die.net/doc/linux/man/man1/xset.1.html

      Comment


        #4
        Re: Shell command for setting monitor power off time

        Great, thanks. I remember coming across that when I was searching online, but I don't know why I didn't think it was what I needed. For the impatient that might find this thread, it's xset dpms <standby> <suspend> <off>, where each mode is a number of seconds (I use xset dpms 0 0 120 to just make the monitor turn off after 2 minutes).

        Edit: If you want to use this in a cron job, you have to explicitly give the display, e.g. xset -display :0 dpms 0 0 120

        Comment

        Working...
        X