DPMS problems

I recently discovered and turned on the DPMS option in the X server, i.e. if
I leave it unattended for long enough the monitor goes into “standby” mode
(later followed by “suspend” and “off”, but I’m not sure what the difference
is). However, I noticed that when running some SDL games - including some I
compiled myself against SDL 1.1.6 - DPMS would kick in in mid-play. The
monitor wakes up if a press a key, but moving or clicking the mouse is not
enough. (I first noticed this when playing Heroes of Might and Magic III,
which is a point-and-click sort of game.)

Is this a problem with X - I’m using the Debian XFree86 4.0.1 packages which
are based on the 4.0.1d snapshot - or with SDL? Is there a workaround, or
should I just turn DPMS off while playing?

Torbj?rn Andersson

However, I noticed that when running some SDL games - including some I
compiled myself against SDL 1.1.6 - DPMS would kick in in mid-play. The
monitor wakes up if a press a key, but moving or clicking the mouse is not
enough.

This sounds like a definite bug in the X server. The X11 screen saver
normally kicks in after a preset time interval without any device
events (keyboard, mouse etc), so your DPMS handler should do the same

However, I noticed that when running some SDL games - including some I
compiled myself against SDL 1.1.6 - DPMS would kick in in mid-play. The
monitor wakes up if a press a key, but moving or clicking the mouse is not
enough.

This sounds like a definite bug in the X server. The X11 screen saver
normally kicks in after a preset time interval without any device
events (keyboard, mouse etc), so your DPMS handler should do the same

Although it’s possible that DGA mouse events don’t kick the X server
in the pants. You might report this to the XFree86 development group.
Check out http://www.xfree86.org/

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

(I hope this one will only be sent once this time.)

Although it’s possible that DGA mouse events don’t kick the X server
in the pants. You might report this to the XFree86 development group.
Check out http://www.xfree86.org/

I guess this would be a good time to admit that I don’t know the
difference between a DGA mouse event and common, garden-variety mouse
event. You may be right, though. If I set SDL_VIDEO_X11_DGAMOUSE to 0
DPMS works as expected.

So I guess I should write up a bug report and send to the XFree86
developers. I just wish I’d understand half of it myself first. :wink:

Torbj?rn Andersson