Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8015

Beta testing • Re: RTC sync not working in trixie

$
0
0
Typically you disable/uninstall fake-hwclock (and tweak /lib/udev/hwclock-set) when you install a real one. But kudos for finding a bug in fake-hwclock!
Why tweak /lib/udev/hwclock-set ?

In Raspbian Bookworm
root@raspi1:~# cat /lib/udev/hwclock-set (has no RTC module)

Code:

#!/bin/sh# Reset the System Clock to UTC if the hardware clock from which it# was copied by the kernel was in localtime.dev=$1if [ -e /run/systemd/system ] ; then    exit 0fi/sbin/hwclock --rtc=$dev --systz/sbin/hwclock --rtc=$dev --hctosys
I see it is from package util-linux-extra

I now remember I had trouble with this; In my standard Debian Testing/Trixie (a VM on a RPI4 rhat serves a virtual RTC as UTC) i have not installed it explicitly and it works fine. I have not checked .rpm distros, but there it has worked flawlessly without any issues. I use UTC only, even now for triple boot where also Windows10 involved. Did take years to get it right.

=> Debian Testing/Trixie has no file hwclock-set anymore in util-linux-extra

Statistics: Posted by redvli — Sun Jul 27, 2025 7:33 am



Viewing all articles
Browse latest Browse all 8015

Trending Articles