iptsd
iptsd copied to clipboard
[email protected] unit file loses access to the ipts device unit service after a while
I could not get the stylus to work on my surface book 2 anymore, and after some troubleshooting it appeared -at least on my configuration using arch, haven't tried on other OS- that some config parameters in the iptsd@service unit flle might be wrong (https://raw.githubusercontent.com/linux-surface/iptsd/78bfa6958ba25831cb5b47e6ee32f2cf6a460afd/etc/systemd/iptsd%40.service.in):
[Unit]
Description=Intel Precise Touch & Stylus Daemon
Documentation=https://github.com/linux-surface/iptsd
StopWhenUnneeded=yes
BindsTo=%i.device
[Service]
Type=simple
ExecStart=@bindir@/iptsd /%I
- The BindsTo directive translates to "dev-hidraw1.device", which does not exist, so iptsd does not start. Simply changing it to /%I which translates to /dev/hidraw1 works fine.
- The StopWhenUnneeded directive makes the device disappear when udev gets reloaded on my system. I removed it.
This is my working version:
[Unit]
Description=Intel Precise Touch & Stylus Daemon
Documentation=https://github.com/linux-surface/iptsd
BindsTo=/%I
[Service]
Type=simple
ExecStart=/usr/bin/iptsd /%I