After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 359589 - mouse movement wakes screensaver
mouse movement wakes screensaver
Status: RESOLVED FIXED
Product: gnome-screensaver
Classification: Deprecated
Component: general
2.14.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-screensaver maintainers
gnome-screensaver maintainers
Depends on:
Blocks:
 
 
Reported: 2006-10-04 13:19 UTC by Timo Aaltonen
Modified: 2006-11-06 17:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
change min_distance to a percentage of screen width (839 bytes, patch)
2006-11-02 22:01 UTC, Thomas Andersen
committed Details | Review

Description Timo Aaltonen 2006-10-04 13:19:27 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
Comment 1 William Jon McCann 2006-10-12 15:55:34 UTC
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?
Comment 2 Tero Karvinen 2006-10-23 10:36:29 UTC
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. 
Comment 3 William Jon McCann 2006-10-31 16:27:02 UTC
I'd accept a patch to change it to be a percentage of the screen size instead of 50 pixels.
Comment 4 Thomas Andersen 2006-11-02 22:01:16 UTC
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.
Comment 5 William Jon McCann 2006-11-06 17:50:36 UTC
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