acpi_ibm: add support for ThinkPad PrivacyGuard
authorPhilip Paeps <philip@FreeBSD.org>
Thu, 30 Jan 2020 10:40:38 +0000 (10:40 +0000)
committerPhilip Paeps <philip@FreeBSD.org>
Thu, 30 Jan 2020 10:40:38 +0000 (10:40 +0000)
commit02aeba837468fad6e0a91c9acbddfd4e1eb006e0
treed6cac503ad0f85b62db20e92a0b3a6bd24a91190
parentb65f813c1ab99448278961c5ca80dc422b1eae29
acpi_ibm: add support for ThinkPad PrivacyGuard

ThinkPad PrivacyGuard is a built-in toggleable privacy filter that
restricts viewing angles when on. It is an available on some new
ThinkPad models such as the X1 Carbon 7th gen (as an optional HW
upgrade).

The privacy filter can be enabled/disabled via an ACPI call. This commit
adds a sysctl under dev.acpi_ibm that allows for getting and setting the
PrivacyGuard state.

Submitted by:   Kamila Součková <kamila@ksp.sk>
Reviewed By:    cem, philip
MFC after:      3  days
Differential Revision: https://reviews.freebsd.org/D23370
sys/dev/acpi_support/acpi_ibm.c