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
F68545789: D21612.diff
Sat, Sep 30, 3:00 PM
Unknown Object (File)
Thu, Sep 21, 12:51 PM
Unknown Object (File)
Mon, Sep 18, 5:46 PM
Unknown Object (File)
Wed, Sep 6, 4:29 AM
Unknown Object (File)
Aug 20 2023, 12:35 PM
Unknown Object (File)
Aug 14 2023, 7:08 PM
Unknown Object (File)
Aug 14 2023, 8:29 AM
Unknown Object (File)
Jul 18 2023, 7:28 PM

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
Build Status
Buildable 49519
Build 46409: arc lint + arc unit

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 ?