This is a glimpse of my /etc/systemd/timesyncd.conf file (system clock will sync with ntp servers every 32 seconds):
I had thought that, probably naively in retrospect, when I turned off gnome's "automatic date and time" feature, timesyncd service would not run, thus saving system resources and preserve battery life:
Fortunately, this intuition turns out to be prescient.
When the "automatic date and time" feature is on, NTP Service is signaled "Active.
ryzen@L32:~$ timedatectl status
Local time: Tue 2024-08-27 18:59:02 EDT
Universal time: Tue 2024-08-27 22:59:02 UTC
RTC time: Tue 2024-08-27 22:59:02
Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Then, when it was turned off, the NTP service changed to "inactive":
ryzen@L32:~$ timedatectl status
Local time: Tue 2024-08-27 19:12:57 EDT
Universal time: Tue 2024-08-27 23:12:57 UTC
RTC time: Tue 2024-08-27 23:12:57
Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes
NTP service: inactive
RTC in local TZ: no
As discussed above, since the timesyncd service can be normally turned off--and conveniently turned on when desired--, there seems to be no reason not to include systemd-timesyncd in the live images. ? ? ?
Code:
[Time]NTP=FallbackNTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.orgRootDistanceMaxSec=5PollIntervalMinSec=32PollIntervalMaxSec=2048ConnectionRetrySec=30SaveIntervalSec=60
Fortunately, this intuition turns out to be prescient.

ryzen@L32:~$ timedatectl status
Local time: Tue 2024-08-27 18:59:02 EDT
Universal time: Tue 2024-08-27 22:59:02 UTC
RTC time: Tue 2024-08-27 22:59:02
Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Then, when it was turned off, the NTP service changed to "inactive":
ryzen@L32:~$ timedatectl status
Local time: Tue 2024-08-27 19:12:57 EDT
Universal time: Tue 2024-08-27 23:12:57 UTC
RTC time: Tue 2024-08-27 23:12:57
Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes
NTP service: inactive
RTC in local TZ: no
As discussed above, since the timesyncd service can be normally turned off--and conveniently turned on when desired--, there seems to be no reason not to include systemd-timesyncd in the live images. ? ? ?
Statistics: Posted by pwzhangzz — 2024-08-27 23:20