← Back to team overview

touch-packages team mailing list archive

[Bug 1328646] Re: Clock out of sync on resume from suspend

 

I'm seeing this bug in image 191 and found something interesting: the
datetime service is still pushing the right information to the bus, but
for some reason the panel and greeter aren't seeing it.

You can ask the datetime service what time it thinks it is by calling
this from phablet shell:

$ dbus-send --print-reply --dest=com.canonical.indicator.datetime \
 "/com/canonical/indicator/datetime" "org.gtk.Actions.Describe" string:"phone-header"

Which will give you something like:

> method return sender=:1.33 -> dest=:1.78 reply_serial=2
>   struct {
>     boolean true
>      signature ""
>      array [
>         variant             array [
>               dict entry(
>                  string "title"
>                  variant                      string "Upcoming"
>               )
>               dict entry(
>                  string "visible"
>                  variant                      boolean true
>               )
>               dict entry(
>                  string "label"
>                  variant                      string " 8:30 PM"
>               )
>               dict entry(
>                  string "accessible-desc"
>                  variant                      string " 8:30 PM"
>               )
>            ]
>      ]

The "label" here is updated at least every minute and should be updated
by the panel, but for some reason isn't.

The two screenshots above show this visually: the phone's panel and
greeter say it's 8:17 PM, but the system clock and indicatator-datetime
service say that it's 8:29 (screenshot 1) and 8:30 (screenshot 2). I
took the second to confirm that the service was still updating its label
each minute.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to indicator-datetime in
Ubuntu.
https://bugs.launchpad.net/bugs/1328646

Title:
  Clock out of sync on resume from suspend

Status in The Date and Time Indicator:
  New
Status in The Unity 8 shell:
  Triaged
Status in “indicator-datetime” package in Ubuntu:
  In Progress

Bug description:
  When the device is resumed by pressing the power button and the device
  is not connected over USB the clock is out of sync

  You need another system to compare the time to verify this bug report,
  and make sure both clocks are in sync.

  TEST CASE
  1. Unplug the device from its USB cable
  2. Press the power button to switch to suspend mode or wait until it goes to suspend
  3. Wait 2 or more minutes
  4. Press the power button again to resume the device
  5. Compare the time on the greeter and indicator with the time on the other system

  EXPECTED RESULT
  Clocks are in sync

  ACTUAL RESULT
  Time on the device is behind by several minutes. 

  The use case are people who use their device as a watch. You usually
  resume it, check the time, suspend it.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: unity8 7.88+14.10.20140606-0ubuntu1
  Uname: Linux 3.4.0-5-mako armv7l
  ApportVersion: 2.14.3-0ubuntu1
  Architecture: armhf
  Date: Tue Jun 10 19:11:42 2014
  InstallationDate: Installed on 2014-06-10 (0 days ago)
  InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20140610)
  SourcePackage: unity8
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/indicator-datetime/+bug/1328646/+subscriptions