]>
Commit | Line | Data |
---|---|---|
4beaed36 KS |
1 | # do not edit this file, it will be overwritten on update |
2 | ||
58cfbcae | 3 | ACTION!="add|change", GOTO="persistent_input_end" |
521e3f78 KS |
4 | SUBSYSTEM!="input", GOTO="persistent_input_end" |
5 | KERNEL=="input[0-9]*", GOTO="persistent_input_end" | |
6 | ||
7 | # usb devices | |
7e827bcd | 8 | SUBSYSTEMS=="usb", IMPORT{program}="usb_id --export %p" |
775f5e35 KS |
9 | SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="01", ENV{ID_CLASS}="kbd" |
10 | SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="02", ENV{ID_CLASS}="mouse" | |
521e3f78 KS |
11 | |
12 | # other devices | |
775f5e35 KS |
13 | DRIVERS=="pcspkr", ENV{ID_CLASS}="spkr" |
14 | DRIVERS=="atkbd", ENV{ID_CLASS}="kbd" | |
15 | DRIVERS=="psmouse", ENV{ID_CLASS}="mouse" | |
16 | ATTRS{name}=="*dvb*|*DVB*|* IR *", ENV{ID_CLASS}="ir" | |
a689165b | 17 | # joystick (ABS_X || ABS_WHEEL || ABS_THROTTLE) && !BTN_TOUCH |
775f5e35 | 18 | ATTRS{modalias}=="input:*-*a[068],*|input:*-*a*,[68],*m*", ATTRS{modalias}!="input:*-*k*14A,*r*", ENV{ID_CLASS}="joystick" |
521e3f78 | 19 | |
0809c264 KS |
20 | # fill empty serial number |
21 | ENV{ID_CLASS}=="?*", ENV{ID_SERIAL}=="", ENV{ID_SERIAL}="noserial" | |
521e3f78 KS |
22 | |
23 | # by-id links | |
878645dc | 24 | KERNEL=="mouse*|js*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_CLASS}" |
521e3f78 KS |
25 | KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{ID_CLASS}" |
26 | ||
27 | # by-path | |
28 | IMPORT{program}="path_id %p" | |
01acecef KS |
29 | ENV{ID_PATH}=="?*", KERNEL=="mouse*|js*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}" |
30 | ENV{ID_PATH}=="?*", KERNEL=="event*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{ID_CLASS}" | |
521e3f78 KS |
31 | |
32 | LABEL="persistent_input_end" | |
33 |