Skip to contentSkip to conversation

hid: Fix system-control buttons on a multitouch interface not working

PATCH In review Hans de Goede 2 participants 3 messages Aug 17, 2017 – Aug 22, 2017 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hid: Fix system-control buttons on a multitouch interface not working

Some laptops have system-control buttons (e.g. KEY_SLEEP) on the same interface as a hid-multitouch touch-pad.

This commit fixes these buttons not working.

---
 drivers/hid/hid-multitouch.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hid/hid-multitouch.c +1 -0
index 0a8689bb08e9..53d1413cd435 100644
@@ -930,6 +930,7 @@ static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi,
 	    field->application != HID_DG_PEN &&
 	    field->application != HID_DG_TOUCHPAD &&
 	    field->application != HID_GD_KEYBOARD &&
+	    field->application != HID_GD_SYSTEM_CONTROL &&
 	    field->application != HID_CP_CONSUMER_CONTROL &&
 	    field->application != HID_GD_WIRELESS_RADIO_CTLS &&
 	    !(field->application == HID_VD_ASUS_CUSTOM_MEDIA_KEYS &&
Signature · 1 line
2.13.4
#1 lore raw
Quoted 24 lines · Hans de Goede

Some laptops have system-control buttons (e.g. KEY_SLEEP) on the same interface as a hid-multitouch touch-pad.

This commit fixes these buttons not working.

---
 drivers/hid/hid-multitouch.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hid/hid-multitouch.c +1 -0
index 0a8689bb08e9..53d1413cd435 100644
@@ -930,6 +930,7 @@ static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi,
 	    field->application != HID_DG_PEN &&
 	    field->application != HID_DG_TOUCHPAD &&
 	    field->application != HID_GD_KEYBOARD &&
+	    field->application != HID_GD_SYSTEM_CONTROL &&
 	    field->application != HID_CP_CONSUMER_CONTROL &&
 	    field->application != HID_GD_WIRELESS_RADIO_CTLS &&
 	    !(field->application == HID_VD_ASUS_CUSTOM_MEDIA_KEYS &&
Signature · 1 line
2.13.4

Looks like you resent it this morning as https://patchwork.kernel.org/patch/9914313/

We can discard this one then I guess.

Cheers,
Benjamin

Quoted 1 line
#2 lore raw

Hi,

Quoted 11 lines · Benjamin Tissoires
Quoted 10 lines · Hans de Goede

Some laptops have system-control buttons (e.g. KEY_SLEEP) on the same interface as a hid-multitouch touch-pad.

This commit fixes these buttons not working.

---
  drivers/hid/hid-multitouch.c | 1 +
  1 file changed, 1 insertion(+)
Quoted 16 lines
Quoted 14 lines
drivers/hid/hid-multitouch.c +1 -0
index 0a8689bb08e9..53d1413cd435 100644
@@ -930,6 +930,7 @@ static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi,
  	    field->application != HID_DG_PEN &&
  	    field->application != HID_DG_TOUCHPAD &&
  	    field->application != HID_GD_KEYBOARD &&
+	    field->application != HID_GD_SYSTEM_CONTROL &&
  	    field->application != HID_CP_CONSUMER_CONTROL &&
  	    field->application != HID_GD_WIRELESS_RADIO_CTLS &&
  	    !(field->application == HID_VD_ASUS_CUSTOM_MEDIA_KEYS &&
Signature · 1 line
2.13.4

Looks like you resent it this morning as https://patchwork.kernel.org/patch/9914313/

Yes, sorry I wasn't sure I had send it and google could not find it, so I assumed I did not send it.

Quoted 1 line

We can discard this one then I guess.

Ack.

Regards,

Hans