<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
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. </div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
<br>
</div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
Timedatectl is what controls this it's provided by systemd. </div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
<br>
</div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
The man pages have some interesting notes about using "set-local-rtc" </div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
<br>
</div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
<a href="https://manpages.ubuntu.com/manpages/focal/man1/timedatectl.1.html">https://manpages.ubuntu.com/manpages/focal/man1/timedatectl.1.html</a></div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
<br>
</div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> linux-aus <linux-aus-bounces@lists.linux.org.au> on behalf of Russell Coker via linux-aus <linux-aus@lists.linux.org.au><br>
<b>Sent:</b> Tuesday, June 28, 2022 12:15:26 PM<br>
<b>To:</b> Linux Australia <linux-aus@lists.linux.org.au><br>
<b>Subject:</b> [Linux-aus] Ubuntu 20.04 resume time problem</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">I have a laptop that is dual boot Ubuntu 20.04 and Windows. I've configured it
<br>
for "RTC in local TZ" with timedatectl so it can have the same time as Windows <br>
(I'm aware that I could change Windows via regedit to use UTC for the hwclock <br>
but I'm trying to work out the best option for a corporate rollout). The <br>
problem is that I resume from suspend and the system immediately treats the <br>
RTC as if it was in UTC thus being out by 10 hours (time zone +1000).<br>
<br>
How does Ubuntu get the time from the RTC on resume? Any clues as to where to <br>
look would be really appreciated. I've done Google searches and found nothing <br>
helpful. Even if you just know which program does it that would help a lot, I <br>
could read the source.<br>
<br>
Before someone says "oh what about the time change at the start/end of DST", <br>
for a laptop it's not a big deal as it will probably be in sleep mode then. As <br>
timedatectl supports this feature I think it's not unreasonable to expect it <br>
to work.<br>
<br>
-- <br>
My Main Blog <a href="http://etbe.coker.com.au/">http://etbe.coker.com.au/</a><br>
My Documents Blog <a href="http://doc.coker.com.au/">http://doc.coker.com.au/</a><br>
<br>
<br>
<br>
_______________________________________________<br>
linux-aus mailing list<br>
linux-aus@lists.linux.org.au<br>
<a href="http://lists.linux.org.au/mailman/listinfo/linux-aus">http://lists.linux.org.au/mailman/listinfo/linux-aus</a><br>
<br>
To unsubscribe from this list, send a blank email to<br>
linux-aus-unsubscribe@lists.linux.org.au<br>
</div>
</span></font></div>
</body>
</html>