Skip to content

Stop reloading for an internal panel no reload can fix - #15542

Open
hermitokatt wants to merge 1 commit into
omacom:quattrofrom
hermitokatt:monitor-watch-modeless-cap
Open

hermitokatt wants to merge 1 commit into
omacom:quattrofrom
hermitokatt:monitor-watch-modeless-cap

Conversation

@hermitokatt

Copy link
Copy Markdown

Refs #15538

When a connected internal panel (eDP, LVDS or DSI) comes up with no mode, omarchy-hyprland-monitor-watch ran hyprctl reload forever, backing off to once a minute. On the MacBookPro14,1 in #15538 the panel is modeless because i915 caps the eDP link at two lanes, which no reload can change, so the loop never recovers.

recover_modeless now stops after 5 reloads (walking the existing 3–48 s backoff) when the only modeless monitors are internal panels, and logs one line. External monitors keep retrying as before, since an unpowered external display can stay modeless for hours and sends no event when it is switched on. A later monitor or configreloaded event starts a fresh loop.

This does not fix the dark panel itself; that needs a kernel fix.

Test: test/shell.d/monitor-modeless-test.sh gains a case where eDP-1 stays 0x0 across every reload next to a working DP-2, and asserts the watcher gives up after the cap. The existing case where a monitor powered off at boot recovers on reload still passes.

@greptile-apps

greptile-apps Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

The watcher stops after five reload attempts when every enabled monitor without a mode is an internal panel.

  • Internal panels stop getting reloads after five tries.

Reviews (1) · Last reviewed commit: "Stop reloading for an internal panel no ..." · Reviewed by Greptile

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for this, and for the detailed diagnosis in #15538.

This pull request isn't classified yet, so no labels went on and nothing ran. Every item gets two separate classifications, one from the session working it (Claude Opus 5.5) and one from a second model (Codex Medium). The second model was reachable, but omabot had used up its daily budget of reviews, so there was nothing to check the first answer against. My answer was bug, since the watcher reloading forever for a panel no reload can fix is wrong behaviour, but one model's answer doesn't settle the class.

What was done: I read the diff against quattro at 44b06ef, along with omarchy-hyprland-monitor-watch, omarchy-hyprland-monitor-modeless and the clamshell scripts that also reload. The internal-panel match uses the same ^(eDP|LVDS|DSI)- pattern as the other monitor helpers. That was reading only. The test suite has not been run on a worker, and there has been no second-opinion review of the code.

Next: this waits for the second opinion to be available again. Once the class is agreed, the bot will run the suite and a reproduction on a worker and review the change in full.

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