linux-surface / iptsd

Userspace daemon for Intel Precise Touch & Stylus
GNU General Public License v2.0
86 stars 39 forks source link

How to disable auto-start of the iptsd@* service? #134

Open analytic-bias opened 1 year ago

analytic-bias commented 1 year ago

The reason is that iptsd process is refusing to freeze every time the system suspends, so my ad-hoc solution is to just disable it and re-enable it when I need the touchscreen. But currently, the iptsd@* service is coming back randomly. Moreover, once the system tried to freeze it, the iptsd process goes unresponsive (i.e. sudo systemctl stop iptsd@* no longer works) and the only way I can recover this is to reboot.

So my question is: how to prevent iptsd@* from being automatically started.

japostoles commented 7 months ago

Any luck here? Running into the same issue and I can't seem to get iptsd to stop re-appearing and crashing my system on suspend,.

qzed commented 7 months ago

You could try masking the service with sudo systemctl mask iptsd@.service (or something along those lines). Not sure if that works with the @ though.

Another option could be blacklisting the touchscreen driver, so running one of

echo "install ipts /bin/false" >> /etc/modprobe.d/blacklist.conf
echo "install ithc /bin/false" >> /etc/modprobe.d/blacklist.conf

Depending on which device you have (you can also run both, doesn't hurt). That will also disable the single-touch fallback mode though, so be aware of that.

japostoles commented 7 months ago

Good call re: masking -- I gave it a try, fingers crossed my machine doesn't crash on suspend.

Thanks!