Support for LVDS laptop screens
Ampnbsp opened this issue · comments
Ampnbsp commented
I have an old laptop with LVDS screen, so when I use the program with the closed lid it doesn't count this state.
Alexander Courtis commented
To enable lid detection we need:
- Name of the display: hardcoded to
""eDP.*"
- State of the lid: looks for
/proc/acpi/button/lid/.*/state
1 Name
We can add configuration for name as per the wayland version of this tool way-displays: LAPTOP_DISPLAY_PREFIX: 'eDP
What's the name of the display e.g.
:; ./xlayoutdisplay
eDP1 active 31cm/17cm 2560x1440+0+0 60Hz
*+ 2560x1440 60Hz
!2560x1440 60Hz
...
2 State
Is there a state file for your lid? I see:
:; find /proc/acpi/button/lid
/proc/acpi/button/lid
/proc/acpi/button/lid/LID
/proc/acpi/button/lid/LID/state
:; cat /proc/acpi/button/lid/LID/state
state: open