Wrong time - System clock synchronized "stopps"

(New to Linux)

I have 3 Notebooks with Fedora 40 KDE Spin. Acer Predator and MBPi13 work as expected.

My newest notebook is a LG gram 17" and has “time problems”

First every works correct, but I think it was after an update 2 oder 3 weeks ago, the notebook loses the correct time while sleeping (no matter if lid is closed).

When I wake up, the time is 2 hours ahead.

I found out, that I can use timedatectl status to narrow it down:

Before sleep: System clock synchronized: yes

~$ timedatectl status
Local time: Do 2024-08-08 12:06:12 CEST
Universal time: Do 2024-08-08 10:06:12 UTC
RTC time: Do 2024-08-08 12:06:13
Time zone: Europe/Busingen (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no

After wake from sleep: System clock synchronized: no

$ timedatectl status
Local time: Do 2024-08-08 15:26:57 CEST
Universal time: Do 2024-08-08 13:26:57 UTC
RTC time: Do 2024-08-08 13:26:58
Time zone: Europe/Busingen (CEST, +0200)
System clock synchronized: no
NTP service: active
RTC in local TZ: no

What I tried so far:

sudo systemctl restart systemd-timesyncd

After that the time is correct, and sync shows "yes"
After another sleep its back to wrong time and sync "no"

What cn I do to ensure, that “System clock synchronized” is always working?

One other thing:

$ systemctl status systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; disabled; preset: disabled)

And:

$ sudo systemctl restart systemd-timesyncd

does not enable anything (i think)

Time difference after waking up from suspend (local time vs UTC) - #4 by vgaetera

Default for Fedora is to use chronyd.service instead of systemd-timesyncd.service, and you can chose which one to be enabled, but only one of them should be enabled.

That has probably nothing to do with the problem, though. I would guess that the RTC has run out of batery power. If you can, check the BIOS date and time next time you boot. It should read two hours before your current wall clock time.

Your RTC is set to UTC, which means that if the RTC is running correctly, it should set the time correctly after wake-up.

PS: Büsingen is an iteresting place.

1 Like

The BIOS time was set to 01/01/2022 (what i don’t understand, as the notebook ist 1 month old).

After changing the bios clock, it seems to work now (although I don’t really understand the exact reason).

(and time zone is now Berlin :slight_smile: