Skip to content

Commit 95cd2cd

Browse files
tao-jbentiss
authored andcommitted
HID: multitouch: add quirks to enable Lenovo X12 trackpoint
This applies the similar quirks used by previous generation devices such as X1 tablet for X12 tablet, so that the trackpoint and buttons can work. This patch was applied and tested working on 5.17.1 . Cc: stable@vger.kernel.org # 5.8+ given that it relies on 40d5bb8 Signed-off-by: Tao Jin <tao-j@outlook.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Link: https://lore.kernel.org/r/CO6PR03MB6241CB276FCDC7F4CEDC34F6E1E29@CO6PR03MB6241.namprd03.prod.outlook.com
1 parent 10ec4af commit 95cd2cd

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@
768768
#define USB_DEVICE_ID_LENOVO_X1_COVER 0x6085
769769
#define USB_DEVICE_ID_LENOVO_X1_TAB 0x60a3
770770
#define USB_DEVICE_ID_LENOVO_X1_TAB3 0x60b5
771+
#define USB_DEVICE_ID_LENOVO_X12_TAB 0x60fe
771772
#define USB_DEVICE_ID_LENOVO_OPTICAL_USB_MOUSE_600E 0x600e
772773
#define USB_DEVICE_ID_LENOVO_PIXART_USB_MOUSE_608D 0x608d
773774
#define USB_DEVICE_ID_LENOVO_PIXART_USB_MOUSE_6019 0x6019

drivers/hid/hid-multitouch.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,6 +2034,12 @@ static const struct hid_device_id mt_devices[] = {
20342034
USB_VENDOR_ID_LENOVO,
20352035
USB_DEVICE_ID_LENOVO_X1_TAB3) },
20362036

2037+
/* Lenovo X12 TAB Gen 1 */
2038+
{ .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT,
2039+
HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
2040+
USB_VENDOR_ID_LENOVO,
2041+
USB_DEVICE_ID_LENOVO_X12_TAB) },
2042+
20372043
/* MosArt panels */
20382044
{ .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE,
20392045
MT_USB_DEVICE(USB_VENDOR_ID_ASUS,

0 commit comments

Comments
 (0)