GNOME Bugzilla – Bug 644814
[Optimization] Avoid waking up every second to change the clock
Last modified: 2012-08-28 19:11:54 UTC
In bug 635840 a patch was added to wake up once a second http://git.gnome.org/browse/gnome-shell/commit/?id=4b2d6f8a992e55027dcffba8f6c7aac2318522a8 While this is relatively cheap, it would be nice to only wake up when we actually need to change the displayed graphics. In order to avoid running into the same bugs that we originally dealt with, this needs to be rock solid. Essentially we need to force an update when o there is a discontinuity between monotonic time (e.g. what is used for the timeout triggering the update) and wall-clock time. This is e.g. when NTP updates kick in, when resuming from suspend/hibernate or when the clock is set via settimeofday(2) etc. We need this event delivered from the kernel. o the timezone changes - this is dealt with in bug 644761
Fixed by moving to GnomeWallClock (at least that's what the commit message claims!)