summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-08-12 16:48:18 +0200
committerHans de Goede <hdegoede@redhat.com>2023-08-13 14:50:25 +0200
commit2b6aa6610dc9690f79d305ca938abfb799a4f766 (patch)
treea8688b60b57a4a50ca9cebdea899764499d86b5c /ipc
parentd66a8aab7dc36c975bbaa6aa74cf7445878e7c69 (diff)
downloadlinux-stable-2b6aa6610dc9690f79d305ca938abfb799a4f766.tar.gz
linux-stable-2b6aa6610dc9690f79d305ca938abfb799a4f766.tar.bz2
linux-stable-2b6aa6610dc9690f79d305ca938abfb799a4f766.zip
platform/x86: lenovo-ymc: Only bind on machines with a convertible DMI chassis-type
The lenovo-ymc driver is causing the keyboard + touchpad to stop working on some regular laptop models such as the Lenovo ThinkBook 13s G2 ITL 20V9. The problem is that there are YMC WMI GUID methods in the ACPI tables of these laptops, despite them not being Yogas and lenovo-ymc loading causes libinput to see a SW_TABLET_MODE switch with state 1. This in turn causes libinput to ignore events from the builtin keyboard and touchpad, since it filters those out for a Yoga in tablet mode. Similar issues with false-positive SW_TABLET_MODE=1 reporting have been seen with the intel-hid driver. Copy the intel-hid driver approach to fix this and only bind to the WMI device on machines where the DMI chassis-type indicates the machine is a convertible. Add a 'force' module parameter to allow overriding the chassis-type check so that users can easily test if the YMC interface works on models which report an unexpected chassis-type. Fixes: e82882cdd241 ("platform/x86: Add driver for Yoga Tablet Mode switch") Link: https://bugzilla.redhat.com/show_bug.cgi?id=2229373 Cc: André Apitzsch <git@apitzsch.eu> Cc: stable@vger.kernel.org Tested-by: Andrew Kallmeyer <kallmeyeras@gmail.com> Tested-by: Gergő Köteles <soyer@irl.hu> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20230812144818.383230-1-hdegoede@redhat.com
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions