You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f481d84
Browse filesBrowse the repository at this point in the historyBrowse files
lee
committed
Add Wi-Fi indicator dot; sync dot now tracks sync freshness
The upper-left indicator dot shows Wi-Fi link status (PICLOCK_WIFI_DOT,
default on; PICLOCK_WIFI_IFACE=wlan0), read every tick straight from
/sys/class/net/<iface>/operstate — one in-process file read (~140us on a
Zero 2 W), no subprocess. A missing interface (e.g. a Wi-Fi firmware
crash took wlan0 away) reads as down.
The sync dot no longer keys on NTPSynchronized alone: on current systemd
that is the kernel's maxerror estimate and lags an NTP outage by ~9
hours. The dot now also requires timesyncd's stamp file
(/run/systemd/timesync/synchronized, touched on every successful sync) to
be fresher than PICLOCK_SYNC_FRESH (default 4500s, ~2x timesyncd's max
poll interval), so it darkens within about an hour of syncs stopping —
including the case where Wi-Fi is fine but the NTP server is down.
Dashes-until-first-sync and free-running behavior still key on
NTPSynchronized; without the stamp file (dev machine, non-timesyncd) the
dot falls back to the old behavior.
Verified logic-only (pytest + a null-display loop run); sysfs read cost
and stamp-file touch behavior measured on real Zero 2 W hardware.
0 commit comments