[SDL] SDL tampers with display power settings on the sly
esigra at gmail.com
Tue Feb 26 09:07:16 PST 2008
Alberto Luaces skrev:
> El Tuesday 26 February 2008 14:25:09 Erik escribió:
>>> The feature was added because there are two cases where X will trigger
>>> the screen saver even though you're still interacting with the
>>> application: 1. Using non-keyboard/mouse input (e.g. gamepads)
>> While the X server is active, all input, including gamepads, must go
>> through the X server.
> That setup is very uncommon. While it is possible to configure a gamepad as a
> X input device, the vast majority of the systems out there doesn't do that
> way. As a disadvantage, you would loss the device's PnP capability, as
> current X servers seem to only look for devices at startup. You would have to
> restart X after plugging the pad for it to be recognized as a X input device.
That is the same problem as with mice. It is usually solved by having a
device called /dev/input/mice, which always exists and receives the
events from all mice that are currently connected. It is not a perfect
solution but better than nothing. The gamepad issue could be solved in
the same way; make X use /dev/input/gamepads.
More information about the SDL