]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: ideapad-laptop: Ignore VPC event bit 10
authorHans de Goede <hdegoede@redhat.com>
Sun, 23 May 2021 17:23:31 +0000 (19:23 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 25 May 2021 12:48:36 +0000 (14:48 +0200)
commita65916f11fc2f5545773be22d761b1c713aaa8b9
tree9acf4b5b4ed8a96ebe9b12aabb5b97c81cd66e98
parent741a063a264a5a6a043bef8a610ec762d0b0a8bc
platform/x86: ideapad-laptop: Ignore VPC event bit 10

VPC event bit 10 gets set on a Yoga 300-11IBR when the EC believes that the
device has changed between laptop/tent/stand/tablet mode.

The EC relies on getting angle info from 2 accelerometers through a special
windows service calling a DSM on the DUAL250E ACPI-device. Linux does not
do this, making the laptop/tent/stand/tablet mode info unreliable.

Ignore VPC event bit 10 to avoid the warnings triggered by the default case
in ideapad_acpi_notify().

Note that the plan for Linux is to have iio-sensor-proxy read the 2
accelerometers and have it provide info about which mode 360° hinges
2-in-1s to the rest of userspace:
https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/issues/216

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210523172331.177834-1-hdegoede@redhat.com
drivers/platform/x86/ideapad-laptop.c