Skip to content

idle: wake monitors after automatic lock - #3633

Merged
bbedward merged 1 commit into
duxlabs-dev:masterfrom
skamprogiannis:fix/idle-lock-wake
Oct 1, 2026
Merged

bbedward merged 1 commit into
duxlabs-dev:masterfrom
skamprogiannis:fix/idle-lock-wake

Conversation

@skamprogiannis

@skamprogiannis skamprogiannis commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

Displays powered off by the idle timeout can fail to wake after automatic locking. Locking rearms monitorOffMonitor, clearing its idle state while the displays remain off. Input before it becomes idle again produces no transition to request monitor-on.

Enable the existing lockWakeMonitor whenever DMS is enabled, the session is locked, and monitors are off. Its current condition excludes ordinary idle power-off. No new listener or timer behavior is added. Extends #2572.

This changes shared DMS idle handling; the failure was reproduced on Hyprland. Other compositors have not been tested.

Reproduction

Environment: NixOS, Hyprland 0.56.0, NVIDIA GeForce RTX 3080 (driver 595.99.02), two monitors.

  1. Disable suspend, immediate monitor power-off on lock, and the separate post-lock monitor timeout.
  2. Set monitor timeout to 15 seconds and lock timeout to 45 seconds, with both fades enabled.
  3. After the displays go dark, wait 35 seconds, press Shift, then try the mouse five seconds later if needed.

This failed twice: pointer movement reached the compositor, but DMS issued no monitor-on request. An independent 90-second recovery timer restored both displays through the compositor. No suspend occurred.

Testing

The equivalent patch has run on my DMS package based on c1f1da1 for several days without another occurrence or forced restart.

Checklist

  • Follows CONTRIBUTING.md
  • Tested locally, with the revision limits described above
  • QML lint passes without new warnings

AI assistance: Codex helped with diagnosis, the patch, and this description. The desktop observations are my own.

Locking rearms the normal idle monitors and can lose their wake transition.
Enable the existing locked-monitor wake listener for idle power-off too.
@skamprogiannis
skamprogiannis marked this pull request as ready for review September 30, 2026 09:50
@bbedward

bbedward commented Oct 1, 2026

Copy link
Copy Markdown
Member

/claude review

@claude

claude Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Claude review

Looks good; widening lockWakeMonitor to any monitors-off state while locked is safe.
No issues found.
Checked: lockWakeMonitor enable condition against monitorOffMonitor/postLockMonitorOffMonitor rearm on lock, overlap with the post-lock wake path (duplicate requestMonitorOn is guarded by monitorsOff), Lock.qml power-off/fade/unlock paths, and idle cost (monitor only exists while locked with displays off). Model: claude-opus-5-5.

@bbedward
bbedward merged commit 22fa08f into duxlabs-dev:master Oct 1, 2026
2 checks passed
bbedward pushed a commit that referenced this pull request Oct 7, 2026
Locking rearms the normal idle monitors and can lose their wake transition.
Enable the existing locked-monitor wake listener for idle power-off too.

(cherry picked from commit 22fa08f)
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.

2 participants