[Linux-aus] Ubuntu 20.04 resume time problem

Lucas Symons l.symons at live.com
Tue Jun 28 12:23:54 AEST 2022

I would assume NTP will kick in and check to see if everything is synced. I believe it is configured automatically out of the box.

Timedatectl is what controls this it's provided by systemd.

The man pages have some interesting notes about using "set-local-rtc"


From: linux-aus <linux-aus-bounces at lists.linux.org.au> on behalf of Russell Coker via linux-aus <linux-aus at lists.linux.org.au>
Sent: Tuesday, June 28, 2022 12:15:26 PM
To: Linux Australia <linux-aus at lists.linux.org.au>
Subject: [Linux-aus] Ubuntu 20.04 resume time problem

I have a laptop that is dual boot Ubuntu 20.04 and Windows. I've configured it
for "RTC in local TZ" with timedatectl so it can have the same time as Windows
(I'm aware that I could change Windows via regedit to use UTC for the hwclock
but I'm trying to work out the best option for a corporate rollout).  The
problem is that I resume from suspend and the system immediately treats the
RTC as if it was in UTC thus being out by 10 hours (time zone +1000).

How does Ubuntu get the time from the RTC on resume? Any clues as to where to
look would be really appreciated. I've done Google searches and found nothing
helpful. Even if you just know which program does it that would help a lot, I
could read the source.

Before someone says "oh what about the time change at the start/end of DST",
for a laptop it's not a big deal as it will probably be in sleep mode then. As
timedatectl supports this feature I think it's not unreasonable to expect it
to work.

My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/

linux-aus mailing list
linux-aus at lists.linux.org.au

To unsubscribe from this list, send a blank email to
linux-aus-unsubscribe at lists.linux.org.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.org.au/pipermail/linux-aus/attachments/20220628/40b9cd3c/attachment.html>

More information about the linux-aus mailing list