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

If using an external monitor, turn off the internal display on lid close #4278

Open
wants to merge 1 commit into
base: testing
Choose a base branch
from

Conversation

dimkr
Copy link
Contributor

@dimkr dimkr commented Apr 27, 2024

This PR makes Puppy:

  1. Turn off the internal display and disable suspend on lid close, if there's at least one external monitor
  2. Turn on the internal display on lid open, in case the laptop was suspended while connected to an external monitor, then disconnected and opened

@@ -0,0 +1,4 @@
"EV_KEY" 0x01 "KEY_POWER" 116 1 "button/power PWRF 00000080"
"EV_KEY" 0x01 "KEY_POWER" 116 1 "button/power PWRB 00000080"
"EV_SW" 0x05 "SW_LID" 0 1 "button/lid LID0 00000080"
Copy link
Contributor Author

@dimkr dimkr Apr 27, 2024

Choose a reason for hiding this comment

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

The first 3 are hardcoded in busybox acpid.c, if acpi.map is missing - by default, it runs /etc/acpi/LID/00000080 only on lid close and the fourth line runs the same script on lid open

@dimkr dimkr marked this pull request as ready for review April 28, 2024 10:47
@dimkr dimkr changed the title Turn off the internal display without suspending on lid close If using an external monitor, turn off the internal display on lid close Apr 28, 2024
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.

None yet

1 participant