mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
Don't tag i2c mice as pointing sticks (#39264)
There are no real i2c mice but there are i2c `FooBar Mouse` devices that are an artifact of how the HID kernel drivers split up event nodes. These nodes will be seen for some i2c keyboards and touchpads, depending on the HID report descriptor. Let's not tag those as pointing sticks. Closes #36677
This commit is contained in:
@@ -5,4 +5,15 @@ ACTION=="remove", GOTO="id_input_end"
|
||||
SUBSYSTEM=="input", ENV{ID_INPUT}=="", IMPORT{builtin}="input_id"
|
||||
SUBSYSTEM=="input", IMPORT{builtin}="hwdb --subsystem=input --lookup-prefix=id-input:modalias:"
|
||||
|
||||
# id-input:<bus>:v<vid>p<pid>:name:<name>:*
|
||||
KERNELS=="input*", ATTRS{id/bustype}=="0003", \
|
||||
IMPORT{builtin}="hwdb 'id-input:usb:v$attr{id/vendor}p$attr{id/product}:name:$attr{name}:'", \
|
||||
GOTO="id_input_end"
|
||||
KERNELS=="input*", ATTRS{id/bustype}=="0005", \
|
||||
IMPORT{builtin}="hwdb 'id-input:bluetooth:v$attr{id/vendor}p$attr{id/product}:name:$attr{name}:'", \
|
||||
GOTO="id_input_end"
|
||||
KERNELS=="input*", ATTRS{id/bustype}=="0018", \
|
||||
IMPORT{builtin}="hwdb 'id-input:i2c:v$attr{id/vendor}p$attr{id/product}:name:$attr{name}:'", \
|
||||
GOTO="id_input_end"
|
||||
|
||||
LABEL="id_input_end"
|
||||
|
||||
Reference in New Issue
Block a user