This didn't work. I have a desktop computer not a laptop. Is this why it didn't work?druggo wrote:I just simply turn off dpms:Code: Select all
xset -dpms
I don't have any screensaver. As I said it is vanilla dwm. No wallpaper either just black background.Hu wrote:Disabling DPMS is probably the wrong solution anyway, since it would remain disabled until reactivated, which the user would need to do after the game or set a watchdog process to restore later.
The display is probably being put into sleep mode by the screensaver, not by the X server itself. What screensaver/locker do you use?

Code: Select all
xset -dpms
xset s offCode: Select all
xset qThanks it totally worked.Chiitoo wrote:There's also the built-in(?) X screen saver, which can be configured via 'xset s'.
Traditionally, I've had the following two lines include in my '.xinitrc' to stop any blanking/power-offing:
That written, it seems the default there for the screen saver might be 600 seconds (10 minutes instead of 15), so perhaps it's not that either.Code: Select all
xset -dpms xset s off
Running
will show the current values.Code: Select all
xset q
Code: Select all
xset s off -dpms