GNOME Bugzilla – Bug 720295
Turn off touchscreen when screensaver is on
Last modified: 2014-10-28 12:54:33 UTC
When the screen is DPMS'ed, also turn off the touchscreen.
We should also do that when disabling outputs, and not just for touchscreens, but also for wacom tablets (such as Cintiqs).
Created attachment 281734 [details] [review] common: Fix possible crash in GsdDeviceMapper If the input device isn't known to the device mapper (say a keyboard for example), we'd crash trying to check which output it was attached to.
Created attachment 281735 [details] [review] power: Disable touchscreens when turning off its screen For example, turning off a tablet's touchscreen when the screenlock kicks in.
The reason why I'm not pushing that is because X.org seems to replay a bunch of touch events when turning the screen back on, leading to very bizarre behaviour. I can reproduce the problem by doing: xinput disable 9 ; sleep 5 ; xinput enable 9 With 9 being the device ID for the touchscreen.
Filed as https://bugs.freedesktop.org/show_bug.cgi?id=81781
Carlos, can you review the patches?
Attachment 281734 [details] pushed as 311849e - common: Fix possible crash in GsdDeviceMapper Attachment 281735 [details] pushed as ab2b808 - power: Disable touchscreens when turning off its screen