systemd: enable systemd-timesyncd (and swclock-offset where applicable)
Describe your issue
What's the expected behaviour?
The time should remain correct and should be set automatically via network.
What's the current behaviour?
The time has to be set manually, can't be set via network, GNOME Settings doesn't present a way to set it automatically via network, and it's set back to epoch on reboot.
How to reproduce your issue?
Have a GNOME Shell systemd install on a OnePlus 6.
What device are you using?
OnePlus 6
On what postmarketOS version did you encounter the issue?
-
edge (
master
branch) -
v24.06
-
v23.12
(supported until 2024-07-16) -
edge (
master_staging_systemd
branch) -
I confirm that the issue still is present after running
sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
- GNOME Shell on Mobile
- Phosh
- Plasma Mobile
-
Sxmo (Wayland/Sway) Please post the output of
sxmo_version.sh
- Other: Please fill out
How did you get postmarketOS image?
- from https://images.postmarketos.org
- I built it using pmbootstrap
- It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
2024-06-15
Additional information
The systemd-timesyncd
package is missing, installing it and rebooting fixes all the issues, and GNOME Settings allows enabling automatic time setting via network. It probably should be installed by default in systemd-based images from the master_staging_systemd
branch.
On Android phones, which have a read-only RTC, need also swclock-offset
, so the initial time before a network sync is correct too.