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 644814 - [Optimization] Avoid waking up every second to change the clock
[Optimization] Avoid waking up every second to change the clock
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: calendar
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on: 644771
Blocks:
 
 
Reported: 2011-03-15 11:22 UTC by David Zeuthen (not reading bugmail)
Modified: 2012-08-28 19:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Zeuthen (not reading bugmail) 2011-03-15 11:22:15 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
Comment 1 Florian Müllner 2012-08-28 19:11:54 UTC
Fixed by moving to GnomeWallClock (at least that's what the commit message claims!)