Page MenuHomeFreeBSD

Add EVDEV_SUPPORT to acpi_button and acpi_lid
ClosedPublic

Authored by hselasky on Feb 27 2020, 10:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 23 2024, 3:55 PM
Unknown Object (File)
Feb 23 2024, 3:54 PM
Unknown Object (File)
Feb 23 2024, 3:54 PM
Unknown Object (File)
Feb 23 2024, 3:54 PM
Unknown Object (File)
Feb 23 2024, 3:54 PM
Unknown Object (File)
Feb 23 2024, 3:39 PM
Unknown Object (File)
Jan 13 2024, 3:23 AM
Unknown Object (File)
Jan 8 2024, 2:44 AM
Subscribers

Details

Summary

On Linux, these ACPI devices are exposed as evdev. This is useful for a bunch of things — libinput disables touchpads when the lid is closed, various DEs can show power-off dialogs when the power is pressed, etc. (While the latter should be doable with devd, a cross-platform solution is nicer.)

Test Plan

Tested libinput's touchpad disablement on my Pixelbook.

Couldn't test acpi_button: the Pixelbook power button is part of the *keyboard*, while on my desktop the button is not getting to that code for some reason.. (no devd event either)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/dev/acpica/acpi_lid.c
119 ↗(On Diff #68919)

Can you test this w/ suspend and resume.

hselasky updated this revision to Diff 69058.
hselasky edited reviewers, added: val_packett.cool; removed: hselasky.

Mostly style nits and an init order fix in case of error.

This revision was not accepted when it landed; it landed in state Needs Review.Mar 2 2020, 9:45 AM
This revision was automatically updated to reflect the committed changes.