GNOME Bugzilla – Bug 359589
mouse movement wakes screensaver
Last modified: 2006-11-06 17:50:36 UTC
Forwarded from: https://launchpad.net/distros/ubuntu/+source/gnome-screensaver/+bug/37139 Minor mouse movement (tram passing by, walking around) stops gnome-screensaver. With an optical mouse on an uneven surface, it is sometimes difficult to click an icon to throttle gnome-screensaver without immidiately stoping screensaver again. Disabling screensaver is very annoying if sleeping or doing non-computer work near a desktop computer. Suggestions: - Add option to ignore mouse movement events - Add a cli command to immidiatly go to the deepest DPMS sleep, only waking from keyboard input
We ignore movements less than 50 pixels. So, I don't understand why walking by should deactivate the screensavers. If the reporter is talking about DPMS itself and not the screensaver window then that's another story. Currently, DPMS policy is handled within the X Server. I don't know of any way to tell it to ignore events. Is that what the reporter is talking about?
Fifty pixels is a very low value, considering that it can be less than half a centimeter with a modern mouse. I would be happy if mouse movement could be ignored completely. I don't see any benefit in waking up screensaver from the slightest touch on the mouse.
I'd accept a patch to change it to be a percentage of the screen size instead of 50 pixels.
Created attachment 75893 [details] [review] change min_distance to a percentage of screen width The patch changes min_distance from 50 pixel to 5% of the screens width.
Looks good. I've increased it to 10% and committed to HEAD. Thanks! 2006-11-06 William Jon McCann <mccann@jhu.edu> * src/gs-window-x11.c: (gs_window_real_motion_notify_event): Only notice mouse motion of 10% of screen width instead of 50px. Patch from Thomas Andersen <phomes@gmail.com> Fixes #359589