Skip to contentSkip to conversation

HID: multitouch: enable touchpad on Surface Book

PATCH Superseded Andy Shevchenko 2 participants 4 messages May 9, 2016 – May 10, 2016 HID

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: multitouch: enable touchpad on Surface Book

Microsoft Surface Book has HID multitouch connected device. Enable it here.

The change has been tested on bare metal by reading raw data from /dev/input/event4.

The patch uses HID device ID submitted earlier here:
http://marc.info/?l=linux-input&m=146280544721389&w=2

---
 drivers/hid/hid-multitouch.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/hid/hid-multitouch.c +5 -0
index c741f5e..c3df02d 100644
@@ -1377,6 +1377,11 @@ static const struct hid_device_id mt_devices[] = {
 		MT_USB_DEVICE(USB_VENDOR_ID_ILITEK,
 			USB_DEVICE_ID_ILITEK_MULTITOUCH) },
 
+	/* Microsoft Surface Book */
+	{ .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
+		MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
+			USB_DEVICE_ID_MS_SURFACE_BOOK) },
+
 	/* MosArt panels */
 	{ .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE,
 		MT_USB_DEVICE(USB_VENDOR_ID_ASUS,
Signature · 1 line
2.8.1
#1 lore raw

Hi Andy,

Quoted 18 lines · Andy Shevchenko

Microsoft Surface Book has HID multitouch connected device. Enable it here.

The change has been tested on bare metal by reading raw data from /dev/input/event4.

The patch uses HID device ID submitted earlier here:
http://marc.info/?l=linux-input&m=146280544721389&w=2

---
 drivers/hid/hid-multitouch.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/hid/hid-multitouch.c +0 -0
index c741f5e..c3df02d 100644

drivers/hid/hid-multitouch.c static const struct hid_device_id mt_devices[] = { · line 1384

Quoted 8 lines
drivers/hid/hid-multitouch.c +5 -0
@@ -1377,6 +1377,11 @@ static const struct hid_device_id mt_devices[] = {
 		MT_USB_DEVICE(USB_VENDOR_ID_ILITEK,
 			USB_DEVICE_ID_ILITEK_MULTITOUCH) },
 
+	/* Microsoft Surface Book */
+	{ .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
+		MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
+			USB_DEVICE_ID_MS_SURFACE_BOOK) },
+

I am a little bit lost here. In your previous patch, you unset the group MULTITOUCH to the USB_DEVICE_ID_MS_SURFACE_BOOK. But here, you bind a device to it which will never been present according to
http://marc.info/?l=linux-input&m=146280544721389&w=2

Also, please make sure all features are working on the keyboard (special functions/LEDs).
The good news is I have been sent a Surface 3 with the typecover. So I intend to work on either fixing hid-multitouch or enabling multitouch for hid-microsoft depending on which makes more sense.

Cheers,
Benjamin

Quoted 6 lines
drivers/hid/hid-multitouch.c +0 -0
 	/* MosArt panels */
 	{ .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE,
 		MT_USB_DEVICE(USB_VENDOR_ID_ASUS,
Signature · 1 line
2.8.1
#2 lore raw
Quoted 30 lines · Benjamin Tissoires

Hi Andy,

Quoted 27 lines · Andy Shevchenko

Microsoft Surface Book has HID multitouch connected device. Enable it here.

The change has been tested on bare metal by reading raw data from /dev/input/event4.

The patch uses HID device ID submitted earlier here:
http://marc.info/?l=linux-input&m=146280544721389&w=2

---
 drivers/hid/hid-multitouch.c | 5 +++++

 1 file changed, 5 insertions(+)
drivers/hid/hid- renamed from drivers/hid/hid-multitouch.c +0 -0

multitouch.c
index c741f5e..c3df02d 100644

drivers/hid/hid-multitouch.c +0 -0
@@ -1377,6 +1377,11 @@ static const struct hid_device_id
 mt_devices[] = {
  		MT_USB_DEVICE(USB_VENDOR_ID_ILITEK,
  			USB_DEVICE_ID_ILITEK_MULTITOUCH) },

drivers/hid/hid-multitouch.c +2 -0
+	/* Microsoft Surface Book */
+	{ .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
Quoted 8 lines

drivers/hid/hid-multitouch.c static const struct hid_device_id mt_devices[] = { · line 1384

Quoted 3 lines
drivers/hid/hid-multitouch.c +3 -0
+		MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
+			USB_DEVICE_ID_MS_SURFACE_BOOK) },
+

I am a little bit lost here. In your previous patch, you unset the group
MULTITOUCH to the USB_DEVICE_ID_MS_SURFACE_BOOK. But here, you bind a device to it which will never been present according to
http://marc.info/?l=linux-input&m=146280544721389&w=2

Yes, that line is redundant. So, the first hunk of that patch should be removed.

Quoted 4 lines

Also, please make sure all features are working on the keyboard (special
functions/LEDs).

Caps Lock LED is not functional. I have no idea yet what drives it.

Quoted 11 lines

The good news is I have been sent a Surface 3 with the typecover. So I intend to work on either fixing hid-multitouch or enabling multitouch for hid-microsoft depending on which makes more sense.

Cheers,
Benjamin

Quoted 4 lines

  /* MosArt panels */
  { .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE, MT_USB_DEVICE(USB_VENDOR_ID_ASUS,

Signature · 7 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw
Quoted 42 lines · Andy Shevchenko
Quoted 33 lines · Benjamin Tissoires

Hi Andy,

Quoted 29 lines · Andy Shevchenko

Microsoft Surface Book has HID multitouch connected device. Enable it here.

The change has been tested on bare metal by reading raw data from /dev/input/event4.

The patch uses HID device ID submitted earlier here:
http://marc.info/?l=linux-input&m=146280544721389&w=2

---
 drivers/hid/hid-multitouch.c | 5 +++++

 1 file changed, 5 insertions(+)
drivers/hid/hid- renamed from drivers/hid/hid-multitouch.c +0 -0

multitouch.c
index c741f5e..c3df02d 100644

drivers/hid/hid-multitouch.c +0 -0
@@ -1377,6 +1377,11 @@ static const struct hid_device_id
 mt_devices[] = {
  		MT_USB_DEVICE(USB_VENDOR_ID_ILITEK,
  			USB_DEVICE_ID_ILITEK_MULTITOUCH) },

drivers/hid/hid-multitouch.c +3 -0
+	/* Microsoft Surface Book */
+	{ .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
+		MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
Quoted 8 lines

drivers/hid/hid-multitouch.c static const struct hid_device_id mt_devices[] = { · line 1384

Quoted 2 lines
drivers/hid/hid-multitouch.c +2 -0
+			USB_DEVICE_ID_MS_SURFACE_BOOK) },
+

I am a little bit lost here. In your previous patch, you unset the group
MULTITOUCH to the USB_DEVICE_ID_MS_SURFACE_BOOK. But here, you bind a
device to it which will never been present according to
http://marc.info/?l=linux-input&m=146280544721389&w=2

Quoted 3 lines

Yes, that line is redundant. So, the first hunk of that patch should be
removed.

Okay, it seems I have to resend these two as one without mentioned hunk.

Signature · 7 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html