Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to save lid state when using NVIDIA GPU (no eDP / LVDS output) #369

Open
sQVe opened this issue Nov 10, 2023 · 0 comments
Open

Unable to save lid state when using NVIDIA GPU (no eDP / LVDS output) #369

sQVe opened this issue Nov 10, 2023 · 0 comments

Comments

@sQVe
Copy link

sQVe commented Nov 10, 2023

Hey,

My laptop has an iGPU and dGPU, and I switch between them via a MUX Switch in BIOS. This switches the connected on a hardware level, rather than a software level, which leads to outputs having different namings.

When running solely on the dGPU my outputs are listed as:

DP-0
DP-1
HDMI-0
DP-2

Where DP-2 is my laptop monitor. Do note that it's missing the common eDP name. This makes autorandr unable to track if the lid is closed or not due to the following RegEx:

autorandr/autorandr.py

Lines 150 to 152 in bb98da7

def is_closed_lid(output):
if not re.match(r'(eDP(-?[0-9]\+)*|LVDS(-?[0-9]\+)*)', output):
return False

Would it be possible to track this in some other way?

@sQVe sQVe changed the title Unable to save lid state when using NVIDIA GPU Unable to save lid state when using NVIDIA GPU (no eDP / LVDS output) Nov 10, 2023
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

No branches or pull requests

1 participant