quirks: match 'ITE Device(8910)' keyboard by USB VID/PID

This allows the "Disable while typing" feature to work properly for:

  048d:c102 Integrated Technology Express, Inc. ITE Device(8910)

This keyboard was found in the following Lenovo laptops:

* Legion 5 Pro 16ARH7H
* Legion 5 15ARH7H

The quirk for 16ARH7H was added in 94c785a2 (see #933), however
matching by DMI does not work for 15ARH7H, so let's match by
USB VID/PID instead.

https://gitlab.freedesktop.org/libinput/libinput/-/issues/933#note_2099049
This commit is contained in:
Vadim Yanitskiy 2023-09-25 03:45:09 +07:00 committed by Vadim Yanitskiy
parent b6ea2f3976
commit 769cb992cc

View file

@ -247,6 +247,15 @@ MatchVendor=0x048D
MatchProduct=0xC100
AttrKeyboardIntegration=internal
# Tested on Legion 5 15ARH7H, should also work for Legion 5 Pro 16ARH7H
# 048d:c102 Integrated Technology Express, Inc. ITE Device(8910)
[Lenovo Legion 5 Keyboard (C102)]
MatchUdevType=keyboard
MatchBus=usb
MatchVendor=0x048D
MatchProduct=0xC102
AttrKeyboardIntegration=internal
[Lenovo Legion 5 Keyboard (C955)]
MatchUdevType=keyboard
MatchBus=usb
@ -321,9 +330,3 @@ MatchUdevType=keyboard
MatchBus=usb
MatchDMIModalias=dmi:*svnLENOVO:*:pvrLegionY9000PIRX8H*
AttrKeyboardIntegration=internal
[Lenovo Legion 5 Pro Gen7 AMD Keyboard]
MatchUdevType=keyboard
MatchName=ITE Tech. Inc. ITE Device(8910) Keyboard
MatchDMIModalias=dmi:*svnLENOVO:*:pvrLegion5Pro16ARH7H*
AttrKeyboardIntegration=internal