Skip to content

Bar clock: catch up at once after a wake or a clock change - #106

Merged
henrikklee merged 1 commit into
mainfrom
clock-wake
Nov 24, 2026
Merged

henrikklee merged 1 commit into
mainfrom
clock-wake

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

The bar clock's tick timer counts monotonic time, which stops in s2idle,
so after a wake it kept showing the time from before the sleep until the
armed tick finally fired; over several short wakes it could fall minutes
behind the lock screen, which recomputes every second. A two-second wall
clock check now re-ticks when the armed tick has gone missing, which also
covers the system clock being set.

The bar clock's tick timer counts monotonic time, which stops in s2idle,
so after a wake it kept showing the time from before the sleep until the
armed tick finally fired; over several short wakes it could fall minutes
behind the lock screen, which recomputes every second. A two-second wall
clock check now re-ticks when the armed tick has gone missing, which also
covers the system clock being set.
@henrikklee
henrikklee merged commit 671aca3 into main Nov 24, 2026
9 checks passed
@henrikklee
henrikklee deleted the clock-wake branch November 24, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant