Skip to content

Wait longer before the blackout rescue right after a wake - #215

Merged
didriksg merged 1 commit into
mainfrom
cold-wake-168
Oct 10, 2026
Merged

didriksg merged 1 commit into
mainfrom
cold-wake-168

Conversation

@didriksg

Copy link
Copy Markdown
Owner

Within 15 s of a wake, the blackout rescue now re-polls 40 times (about 6 s) instead of 10 (about 3 s) before it turns a disconnected built-in back on. On #168 the monitor came back about 250 ms after the rescue had given up. An unplug while awake keeps the 3 s window.

Since 1.7.0 parks the record, a rescue that fires too early no longer loses the disconnect, but the built-in still lights up for a few seconds at each such wake. This removes that.

Tested on my desk with the built-in disconnected next to one monitor: an unplug while awake restores after 10 re-polls, a normal wake stands down at 0 re-polls, and an unplug 8 s after a wake restores after 40 re-polls (6.4 s). The parked record turns the built-in off again after each replug.

Refs #168. The issue stays open until a capture from the reporter shows a wake that needs the longer window.

A monitor coming out of standby can take longer than the rescue's 3 s to come back at a wake. On #168 the display came online about 250 ms after the rescue had given up, so every wake turned the built-in back on and dropped the disconnect.

Within 15 s of a wake, full or display, the settle now allows 40 re-polls instead of 10, about 6 s, the same window softReconnect gives a link handshake. An undock while awake keeps the short window, so its dark time doesn't grow. The limit is read on every pass, because the wake notification can arrive after the first callback of the wake has started the settle. Each wake logs a `wake noted` line, and the restoring line now carries its re-poll count, so a capture shows which window applied.
@didriksg
didriksg merged commit 6b5f5ac into main Oct 10, 2026
2 checks passed
@didriksg
didriksg deleted the cold-wake-168 branch October 10, 2026 12:24
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