Skip to content

fix: Detect internal laptop displays more broadly#5907

Open
jobenaus wants to merge 125 commits into
basecamp:devfrom
jobenaus:fix-lvds-internal-monitor-detection
Open

fix: Detect internal laptop displays more broadly#5907
jobenaus wants to merge 125 commits into
basecamp:devfrom
jobenaus:fix-lvds-internal-monitor-detection

Conversation

@jobenaus
Copy link
Copy Markdown

Summary

Fixes #5906.

This broadens internal laptop display detection from only eDP to common internal connector names:

  • eDP
  • LVDS
  • DSI

Why

Some older laptops expose their built-in panel as LVDS-1. Previously:

  • omarchy-hw-external-monitors only ignored eDP-*, so LVDS-1 was treated as an external monitor.
  • omarchy-hyprland-monitor-internal only selected monitors containing eDP, so it could fail to find the laptop panel.

That combination can make the lid-switch binding attempt to disable the only active display.

Changes

  • Add a small INTERNAL_MONITOR_MATCHES list.
  • Use it in omarchy-hw-external-monitors to skip internal display connectors.
  • Use it in omarchy-hyprland-monitor-internal to find the laptop panel.
  • Keep the existing no-internal-display guard before writing the disable toggle.

Tested

On a laptop with internal display LVDS-1:

  • hyprctl monitors detects LVDS-1.
  • omarchy-hw-external-monitors returns non-zero when no external display is connected.
  • Closing/reopening the lid no longer triggers the previous broken path/crash.

Copilot AI review requested due to automatic review settings May 19, 2026 15:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jobenaus jobenaus changed the title Detect internal laptop displays more broadly fix: Detect internal laptop displays more broadly May 19, 2026
@dhh dhh changed the base branch from master to dev May 20, 2026 19:27
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.

6 participants