Skip to content

Treat LVDS panels as internal displays - #6752

Merged
dhh merged 2 commits into
omacom:quattrofrom
yashranaway:fix/classify-lvds-internal-display
Aug 13, 2026
Merged

dhh merged 2 commits into
omacom:quattrofrom
yashranaway:fix/classify-lvds-internal-display

Conversation

@yashranaway

Copy link
Copy Markdown
Contributor

Stops LVDS and DSI laptop panels from being mistaken for physically connected external monitors. Closes #5906.

<<< AI wording below >>>

Problem

Quattro already recognizes eDP, LVDS, and DSI as internal displays in its Hyprland helpers, but omarchy-hw-external-monitors still excludes only eDP. On an LVDS laptop, the lid-close path can therefore believe the only display is external and try to disable it.

Fix

Use the same internal connector set in the physical DRM check, skip missing glob matches, and make the DRM root overridable for isolated tests.

Verification

  • eDP, LVDS, and DSI panels are ignored as internal.
  • A connected external display alongside LVDS is detected.
  • Disconnected external ports are ignored.
  • External-only systems still report their display.
  • Existing monitor recovery tests.
  • ./test/cli.

Copilot AI balanced review requested due to automatic review settings August 12, 2026 13:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates physical monitor detection to consistently recognize eDP, LVDS, and DSI panels as internal displays.

Changes:

  • Expands internal connector detection and supports an overridable DRM path.
  • Adds connector behavior tests.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
bin/omarchy-hw-external-monitors Excludes common internal panels from external monitor detection.
test/shell.d/hw-external-monitors-test.sh Tests internal, external, and disconnected connectors.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings August 12, 2026 14:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.

@dhh
dhh merged commit 090574e into omacom:quattro Aug 13, 2026
@yashranaway
yashranaway deleted the fix/classify-lvds-internal-display branch August 14, 2026 16:47
nick1udwig pushed a commit to nick1udwig/omarchy that referenced this pull request Sep 9, 2026
* Treat LVDS panels as internal displays

* Test empty DRM monitor discovery
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.

Treat LVDS laptop panels as internal displays

3 participants