Universite-Gustave-Eiffel / Rail4Earth

OnoSensor (Open Noise Sensor) empowering communities through complete noise monitoring — From acquisition to distributed networked storage and visualization.
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Sync RTC with PiJuice on boot #56

Open nicolas-f opened 3 months ago

nicolas-f commented 3 months ago

https://github.com/PiSupply/PiJuice/tree/master/Software#sync-rtc-time-at-boot

Sync RTC time at boot

When the Raspberry Pi shutsdown and then reboots you must copy the RTC time back to the system clock at boot and you can do this in /etc/rc.local with sudo hwclock -s.

Note: This assumes that your PiJuice has sufficient power from the battery to keep the simulated RTC running in the PiJuice microcontroller while the Pi is shut down.