diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2014-03-19 07:55:38 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-03-20 07:31:06 +1000 |
commit | 24c660a8ed16c04ed938355c9c2009af476d7638 (patch) | |
tree | ece6715a2a0ed5534362276a06d7cfa3586419a8 /conf/wacom.rules | |
parent | 47c983478ab1094c02a5b3251cf5564153730645 (diff) | |
download | xf86-input-wacom-24c660a8ed16c04ed938355c9c2009af476d7638.tar.gz |
conf: ship a udev rule and a systemd service file for inputattach
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Jason Gerecke <killertofu@gmail.com>
Diffstat (limited to 'conf/wacom.rules')
-rw-r--r-- | conf/wacom.rules | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/conf/wacom.rules b/conf/wacom.rules new file mode 100644 index 0000000..6093af3 --- /dev/null +++ b/conf/wacom.rules @@ -0,0 +1,17 @@ +ACTION!="add|change", GOTO="wacom_end" + +# Match all serial wacom tablets with a serial ID starting with WACf +# Notes: We assign NAME though we shouldn't, but currently the server requires it +# We assign the lot to subsystem pnp too because server reads NAME from +# the parent device. Once all that's fixed, as simple SUBSYSTEM="tty" +# will do and the ENV{NAME} can be removed. +SUBSYSTEM=="tty|pnp", SUBSYSTEMS=="pnp", ATTRS{id}=="WACf*", ENV{ID_MODEL}="Serial Wacom Tablet $attr{id}", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1", ENV{NAME}="Serial Wacom Tablet $attr{id}" +SUBSYSTEM=="tty|pnp", SUBSYSTEMS=="pnp", ATTRS{id}=="FUJ*", ENV{ID_MODEL}="Serial Wacom Tablet $attr{id}", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1", ENV{NAME}="Serial Wacom Tablet $attr{id}" + +# comment out the next line if your distribution does not provide systemd +# If a /dev/ttySx device with the WACf name is detected, start the +# wacom-inputattach service with the kernel name as parameter +SUBSYSTEM=="tty|pnp", KERNEL=="ttyS[0-9]*", ATTRS{id}=="WACf*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="wacom-inputattach@%k.service" + +LABEL="wacom_end" + |