system/roles/acpi
Marty Oehme 421df69cc9
feat(acpi): Add custom LID event handling
We disable the default ACPI handler script logic for LID events.
We _only_ disable that in the script - the default handler script will
still fire for LID events, just not do anything in its routine. That is
so that in the future it is easy to rectify with any upstream changes.
If, over time we add more custom event and action chain to our ACPI
settings, we can think about spinning out all event types into our own
rules and completely disabling the deafult handler script.

Our custom LID action only fires for LID open close events, and only
logs that the lid has been opened for open events. For close events, it
adds one extra step before suspending: Checking if any DP screens are
connected - and inhibiting suspend then. That way we still automatically
suspend when closing the screen lid if we are in portable mode (no
external screens connected) but do nothing if they are.
2025-03-13 11:24:17 +01:00
..
files feat(acpi): Add custom LID event handling 2025-03-13 11:24:17 +01:00
handlers feat(acpi): Add custom LID event handling 2025-03-13 11:24:17 +01:00
tasks feat(acpi): Add custom LID event handling 2025-03-13 11:24:17 +01:00