header's timestamp can take a minute to update after resume from suspend

Bug #1359802 reported by Charles Kerr
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
indicator-datetime (Ubuntu)
Fix Released
Critical
Charles Kerr

Bug Description

Not the same as the bug #1328646, where the clock fell completely out-of-sync and never came back.

This bug has a milder but similar symptom, the clock is set to update once per minute, so after resume from suspend it will still show the wrong time until that periodic update timer triggers.

In addition to the periodic update, indicator-datetime should listen to powerd's Wakeup signal, or better yet, to com.canonical.Unity.Screen's DisplayPowerStateChange signal <http://bazaar.launchpad.net/~unity-system-compositor-team/unity-system-compositor/trunk/view/head:/src/dbus_screen.cpp#L100> to ensure that it makes the timestamp up-to-date whenever the screen is turned on.

Reported by ogra and dednick in #ubuntu-touch.

*edit:* also discussed by kgunn72 and aacid @ https://code.launchpad.net/~nick-dedekind/unity8/lp1328646/+merge/231335

Related branches

Charles Kerr (charlesk)
Changed in indicator-datetime (Ubuntu):
assignee: nobody → Charles Kerr (charlesk)
importance: Undecided → High
status: New → Triaged
Charles Kerr (charlesk)
description: updated
summary: - header's timestamp can take a minute to update after screen turned on
+ header's timestamp can take a minute to update after resume from suspend
description: updated
description: updated
Revision history for this message
Michał Sawicz (saviq) wrote :

You could probably listen to the powerd dbus interface for power changes and update on that.

Revision history for this message
Michał Sawicz (saviq) wrote :

Unless there's a way for us to force a refresh?

Charles Kerr (charlesk)
Changed in indicator-datetime (Ubuntu):
status: Triaged → In Progress
Charles Kerr (charlesk)
tags: added: rtm14 touch-2014-09-25
Revision history for this message
Nick Dedekind (nick-dedekind) wrote :

Not really sure how the suspend works, but maybe installing signal handler for SIG_CONT maybe to force a refresh would work?

Olli Ries (ories)
Changed in indicator-datetime (Ubuntu):
importance: High → Critical
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-datetime - 13.10.0+14.10.20140915-0ubuntu1

---------------
indicator-datetime (13.10.0+14.10.20140915-0ubuntu1) utopic; urgency=low

  [ Charles Kerr ]
  * Update the time strings when a powerd Wakeup signal is detected.
    (LP: #1359802)
 -- Ubuntu daily release <email address hidden> Mon, 15 Sep 2014 21:03:00 +0000

Changed in indicator-datetime (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.