<p dir="ltr"><br>
On 5 Dec 2013 07:48, "Peter Hutterer" <<a href="mailto:peter.hutterer@who-t.net">peter.hutterer@who-t.net</a>> wrote:<br>
><br>
> When I fired up F20 on one of my laptops here I noticed that inputattach<br>
> doesn't work anymore for serial Wacom devices. It used to be started through<br>
> udev, but that doesn't work anymore. So moving to a systemd service it is,<br>
> but I'd like a review of the changes please.<br>
><br>
> The goal is to start inputattach for a serial Wacom device if the pnpid<br>
> matches a certain set. The old udev rule was:<br>
><br>
> SUBSYSTEM=="tty|pnp", KERNEL=="ttyS[0-9]*", ATTRS{id}=="WACf*", \<br>
> RUN+="/usr/sbin/modprobe wacom_w8001", \<br>
> RUN+="/usr/sbin/inputattach --daemon -w8001 /dev/%k"<br>
><br>
> the new rule now is:<br>
><br>
> SUBSYSTEM=="tty|pnp", KERNEL=="ttyS[0-9]*", ATTRS{id}=="WACf*", \<br>
> ENV{SYSTEMD_WANTS}="wacom-inputattach@%k.service",TAG+="systemd"<br>
><br>
><br>
> And the matching wacom-inputattach@.service file shows:<br>
><br>
> [Unit]<br>
> Description="Start inputattach for Wacom ISDv4-compatible serial devices"<br>
><br>
> [Service]<br>
> Type=simple<br>
> ExecStartPre=/usr/sbin/modprobe wacom_w8001</p>
<p dir="ltr">Seems like this should be auto loaded? If not, you might want to load it directly from the udev rule using the kmod built-in.</p>
<p dir="ltr">Cheers,</p>
<p dir="ltr">Tom</p>
<p dir="ltr">> ExecStart=/usr/bin/inputattach -w8001 /dev/%I<br>
><br>
> Anything I'm missing, anything I should change?<br>
><br>
> Also, do I need this in any target, or is dropping this into<br>
> /usr/lib/systemd/system/ enough?<br>
><br>
> Thanks in advance.<br>
><br>
> Cheers,<br>
> Peter<br>
> ~<br>
><br>
> _______________________________________________<br>
> systemd-devel mailing list<br>
> <a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</p>