GNOME Bugzilla – Bug 339330
Screensaver not throttled when session not displayed.
Last modified: 2006-07-12 23:18:14 UTC
When gnome-screensaver is running on a session which is not being displayed (for example, when using fast user switch applet), the screensaver is not throttled. This wastes resources and is disruptive, since the screensaver is not being displayed, and the user is typically using the computer at the time.
*** Bug 339331 has been marked as a duplicate of this bug. ***
FUSA tries to throttle via gnome-screensaver-command when it switches users. However, gnome-power-manager also tries to throttle and unthrottle when display power management changes. So, I've fixed g-s to do reference counting and life cycle tracking of callers of Throttle. This means that I've had to remove throttling from gnome-screensaver-command because it doesn't stay on the bus and FUSA shouldn't do it because it never unthrottles. So, we're back to the age old problem of user switching: getting signals when the console changes. We need a good solution for this.
Created attachment 68786 [details] [review] backport to 2.14 Turns out there is a clean way to do this. Here is a backport to 2.14 of the patch that I've committed to cvs head. Can you test this?
Created attachment 68787 [details] [review] tiny tweak