Page MenuHomeFreeBSD

acpi_cros_tbmc: New driver for Chromebook Tablet Mode Switch
Needs ReviewPublic

Authored by val_packett.cool on Sep 12 2019, 12:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 22, 7:29 PM
Unknown Object (File)
Fri, Mar 22, 7:29 PM
Unknown Object (File)
Fri, Mar 22, 7:29 PM
Unknown Object (File)
Fri, Mar 22, 7:29 PM
Unknown Object (File)
Sat, Mar 9, 10:17 PM
Unknown Object (File)
Sat, Mar 9, 10:17 PM
Unknown Object (File)
Sat, Mar 9, 10:04 PM
Unknown Object (File)
Feb 23 2024, 2:57 AM

Details

Reviewers
None
Group Reviewers
Contributor Reviews (src)
desktop
Summary

This ACPI device exposed by the Chrome EC reports when a laptop-tablet convertible Chromebook (e.g., Google Pixelbook) is switched to tablet mode. Like on Linux, the reporting is via evdev:

-event3   SWITCH_TOGGLE     +3.27s      switch tablet-mode state 1
 event3   SWITCH_TOGGLE     +8.63s      switch tablet-mode state 0

though it would be possible to add other kinds notifications I guess.

Sponsored by: https://www.patreon.com/valpackett

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

@imp Is it possible to get this and acpi_ibm autoloaded with devmatch? Not sure if it would work with current structure or need additional code paths inside devmatch itself.

val_packett.cool retitled this revision from acpi_cros_tbmc: New driver for Chromebook "Tablet Motion Controls" (tablet mode switch) to acpi_cros_tbmc: New driver for Chromebook Tablet Mode Switch.
val_packett.cool added a reviewer: desktop.

Added a manpage and a files entry for building into the kernel

oops, also don't add $FreeBSD$ to new files

No help is needed? :) That's the Linux patch adding support for the generic standard PNP0C60 device. And this here is the FreeBSD patch adding support for the Google specific GOOG0006 device.

Can you integrate Google specific GOOG0006 device into acpi_button driver ?