https://weibo.com/1649763572/PpvgGsC19
Incorrect system time after suspending
Apr 2023
when i start my system (hp spectre x360) after suspension. the system time is usually incorrect. i』ve recently reinstalled my system, after this reinstall it started showing this behaviour which it didnt before.
If i run sudo hwclock -s the time gets corrected until i suspend again. if automatic time sync and automatic timezone are on this behaviour still occurs.
edit: i』m not 100% certain this only happens after a system suspends or if it always happens. but but after a start after suspension is usually when i notice it
https://discussion.fedoraproject.org/t/incorrect-system-time-after-suspending/81056
執行sudo hwclock -s命令也可以模擬筆記本合上蓋子再打開的過程,可立即復現該bug。
sudo hwclock -s命令用於將硬體時鐘RTC的時間同步到系統時鐘,即讀取主板上的硬體時鐘時間並設置為作業系統的時間。該命令等價於sudo hwclock --hctosys。
oct1158@fedora:~/Documents$ timedatectl
Local time: Wed 2026-01-07 14:47:19 CST
Universal time: Wed 2026-01-07 06:47:19 UTC
RTC time: Wed 2026-01-07 14:47:19
Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: yes
NTP service: inactive
RTC in local TZ: no
oct1158@fedora:~/Documents$ sudo hwclock -s
oct1158@fedora:~/Documents$ timedatectl
Local time: Wed 2026-01-07 22:47:26 CST
Universal time: Wed 2026-01-07 14:47:26 UTC
RTC time: Wed 2026-01-07 14:47:26
Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: no
NTP service: inactive
RTC in local TZ: no
oct1158@fedora:~/Documents$ sudo hwclock -r
2026-01-07 22:49:16.122097+08:00
oct1158@fedora:~/Documents$



合上筆記本蓋子後再打開,fedora會自動將bios硬體時間讀回系統,所以系統時間就出錯了。