Repository navigation
brightness: retry initial DDC read - #3287
Conversation
|
/claude review |
Claude reviewNo issues found. Verified the retry loop is correct: success returns immediately (unchanged fast path), the failure log fires exactly once on the last attempt, One non-blocking note (not a defect, no change requested): a bus that ACKs the x37 probe but never answers VCP now costs ~950ms instead of ~250ms (2x100ms backoff plus the 50ms sleep + 200ms poll timeout per attempt), and that runs while Checked: single-hunk change to |
port 1.6 (cherry picked from commit ec22e9e)
Closes #3060
Retry the initial DDC brightness read when probing a monitor. Some monitors accept the probe but are not ready to answer the first VCP request, leaving the startup brightness at 0 until the user moves the slider.
Retrying only the initial read makes startup state recoverable without changing the successful path or brightness writes.
Validation: gofmt and git diff --check pass. The brightness package tests could not start because the repository's current lipgloss/cellbuf module graph does not provide github.com/charmbracelet/x/cellbuf.