File 65-wacom.rules of Package x11-input-wacom
DRIVER!="wacom", GOTO="wacom_input_end
ACTION!="add|change", GOTO="wacom_input_end"
SUBSYSTEM!="input", GOTO="wacom_input_end"
KERNEL=="input[0-9]*", GOTO="wacom_input_end
# generic link
KERNEL=="event[0-9]*", SYSFS{idVendor}=="056a", SYMLINK+="input/wacom"
# usb devices
SUBSYSTEMS=="usb", IMPORT{program}="usb_id --export"
SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="02", ENV{ID_CLASS}="mouse"
# other devices
ENV{ID_SERIAL}=="Tablet_ISD-V4", ENV{ID_CLASS}!="mouse", ENV{ID_CLASS}="touch"
ENV{ID_SERIAL}=="Tablet_ISD-V4", ENV{ID_CLASS}=="mouse", ENV{ID_CLASS}="stylus"
# by-id links
KERNEL=="mouse*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_CLASS}"
KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{ID_CLASS}"
# by-path
IMPORT{program}="path_id %p"
ENV{ID_PATH}=="?*", KERNEL=="mouse*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
ENV{ID_PATH}=="?*", KERNEL=="event*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{ID_CLASS}"
LABEL="wacom_input_end"