Skip to content

Commit 0c56e5d

Browse files
tao-jgregkh
authored andcommitted
HID: multitouch: add quirks to enable Lenovo X12 trackpoint
commit 95cd2cd upstream. 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: [email protected] # 5.8+ given that it relies on 40d5bb8 Signed-off-by: Tao Jin <[email protected]> Signed-off-by: Benjamin Tissoires <[email protected]> Link: https://lore.kernel.org/r/CO6PR03MB6241CB276FCDC7F4CEDC34F6E1E29@CO6PR03MB6241.namprd03.prod.outlook.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d6822d8 commit 0c56e5d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@
743743
#define USB_DEVICE_ID_LENOVO_X1_COVER 0x6085
744744
#define USB_DEVICE_ID_LENOVO_X1_TAB 0x60a3
745745
#define USB_DEVICE_ID_LENOVO_X1_TAB3 0x60b5
746+
#define USB_DEVICE_ID_LENOVO_X12_TAB 0x60fe
746747
#define USB_DEVICE_ID_LENOVO_OPTICAL_USB_MOUSE_600E 0x600e
747748
#define USB_DEVICE_ID_LENOVO_PIXART_USB_MOUSE_608D 0x608d
748749
#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
@@ -1990,6 +1990,12 @@ static const struct hid_device_id mt_devices[] = {
19901990
USB_VENDOR_ID_LENOVO,
19911991
USB_DEVICE_ID_LENOVO_X1_TAB3) },
19921992

1993+
/* Lenovo X12 TAB Gen 1 */
1994+
{ .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT,
1995+
HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
1996+
USB_VENDOR_ID_LENOVO,
1997+
USB_DEVICE_ID_LENOVO_X12_TAB) },
1998+
19931999
/* MosArt panels */
19942000
{ .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE,
19952001
MT_USB_DEVICE(USB_VENDOR_ID_ASUS,

0 commit comments

Comments
 (0)