This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| comfilepi:set_date_and_time [2026/03/31 04:03] – [Drift Compensation] mfranklin | comfilepi:set_date_and_time [2026/04/05 23:54] (current) – [System Clock Compensation] mfranklin | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| ===== Drift Compensation ===== | ===== Drift Compensation ===== | ||
| + | |||
| + | There are two clocks that have the potential to drift: | ||
| + | |||
| + | ==== RTC Drift Compensation ==== | ||
| + | |||
| If you notice the RTC drifting over time, and the drift is consistent and predictable, | If you notice the RTC drifting over time, and the drift is consistent and predictable, | ||
| Line 46: | Line 51: | ||
| Reboot, and after booting, the ComfilePi should have its system time synchronized with the RTC, and adjusted to compensate for the RTC's drift. | Reboot, and after booting, the ComfilePi should have its system time synchronized with the RTC, and adjusted to compensate for the RTC's drift. | ||
| + | |||
| + | ==== System Clock Compensation ==== | ||
| + | |||
| + | After configuring the RTC's drift compensation, | ||
| + | |||
| + | Run the following commands in a terminal. | ||
| + | < | ||
| + | sudo apt update | ||
| + | sudo apt install adjtimex | ||
| + | sudo adjtimexconfig | ||
| + | sudo systemctl enable adjtimex.service | ||
| + | </ | ||
| + | |||
| + | The '' | ||
| [[comfilepi: | [[comfilepi: | ||