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