gnome-screensaver uses too much CPU
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNOME Screensaver |
Fix Released
|
Medium
|
|||
gnome-screensaver (Fedora) |
Fix Released
|
Undecided
|
Unassigned | ||
gnome-screensaver (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: gnome-screensaver
gnome-screensaver on my machine is configured to just blank the screen after 10 minutes. No animations, no pretty pictures, nothing.
Yet, over an uptime of 20 days, the gnome-screensaver process shows 225 minutes of CPU time.
For comparison, gnome-terminal has 623 minutes, Xorg has 729 minutes, xemacs has 6 minutes and eclipse has 51 minutes.
Given that gnome-screensaver should be doing almost NOTHING, it seems very wrong to me that its CPU usage is so large.
This is on Ubuntu 8.04, with gnome-screensaver 2.22.2-0ubuntu1
A very quick strace of the gnome-screensaver process shows that it does a fair amount of work every time I move the mouse. I've not tried an strace while the screen is blanked, so I can't say whether more CPU is used while blanked or not.
If the CPU usage is simply because the process wakes up and does stuff every time my mouse moves by a pixel, perhaps the process should be a bit cleverer. e.g. it could sleep for 10 seconds after noticing the mouse move, before checking for further movements. That way it would still spot idle periods but wouldn't need to do lots of stuff for every little mouse twitch. The screen blanking interval would be slightly less accurate, but +/- 10 seconds for a blank time of 10 minutes surely can't be critical.
Related branches
Changed in gnome-screensaver: | |
status: | New → Unknown |
Changed in gnome-screensaver: | |
status: | Unknown → New |
Changed in gnome-screensaver: | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
Changed in gnome-screensaver: | |
status: | Unknown → Fix Released |
Changed in gnome-screensaver: | |
importance: | Unknown → Medium |
Same here... Any fix????