Disabling XOrg Standby, Suspend, and Sleep Mode

While wanting to watch Hulu on the computer connected to my TV I ran into the issue where every 5 minutes the TV would go into sleep mode. I was not able to find anything in KDE to prevent this from happening.

I did find a command that would allow you to set this option until XOrg was restarted.


# xset q

This will get you information about the keyboard, pointer, screen saver, colors, font path, and DPMS (which is what we want)

Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000002
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    on     02: Scroll Lock: off
    03: Compose:     off    04: Kana:        off    05: Sleep:       off
    06: Suspend:     off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:     off    13: Mouse Keys:  off
  auto repeat delay:  250    repeat rate:  30
  auto repeating keys:  00ffffffdffffbbf
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  45/10    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  600
  default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
DPMS (Energy Star):
  Standby: 300    Suspend: 600    Off: 900
  DPMS is Enabled
  Monitor is On

To keep the monitor from turning off or anything run the following command as root:

xset dpms 0 0 0