| 1 |
# udev rules for libwacom supported devices |
| 2 |
|
| 3 |
ACTION=="remove", GOTO="libwacom_end" |
| 4 |
KERNEL!="event[0-9]*", GOTO="libwacom_end" |
| 5 |
|
| 6 |
# HUION and GAOMON keyboard, consumer and system control devices are not tablets. |
| 7 |
ATTRS{name}=="* Consumer Control", GOTO="libwacom_end" |
| 8 |
ATTRS{name}=="* System Control", GOTO="libwacom_end" |
| 9 |
ATTRS{name}=="* Keyboard", GOTO="libwacom_end" |
| 10 |
|
| 11 |
# Match all serial wacom tablets with a serial ID starting with WACf |
| 12 |
ENV{ID_BUS}=="tty|pnp", ATTRS{id}=="WACf*", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1", GOTO="libwacom_end" |
| 13 |
ENV{ID_BUS}=="tty|pnp", ATTRS{id}=="FUJ*", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1", GOTO="libwacom_end" |
| 14 |
|
| 15 |
# use the /sys/class/input/eventXXX/device/modalias as lookup key, prefixed |
| 16 |
# by libwacom:<device name>: |
| 17 |
# This lookup key is a contract between the udev rules and the hwdb entries. |
| 18 |
# It is not considered public API and may change. |
| 19 |
KERNELS=="input*", \ |
| 20 |
IMPORT{builtin}="hwdb --subsystem=input '--lookup-prefix=libwacom:name:$attr{name}:'" |
| 21 |
|
| 22 |
# We can't unset properties through the hwdb but we can set them to zero. |
| 23 |
# So let's have a rule that converts the 0 properties to unset ones. |
| 24 |
ENV{ID_INPUT_JOYSTICK}=="0", ENV{ID_INPUT_JOYSTICK}="" |
| 25 |
|
| 26 |
LABEL="libwacom_end" |