-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iptsd@.service unit file loses access to the ipts device unit service after a while #163
Comments
If one exists, the other will exist as well. Please post the output of
That's exactly what you want. When the device that the service is reading from disappears, you want the service to stop. Otherwise it just crashes. |
Here you go: systemctl status dev-hidraw1.device I can't explain it then, it does not work for me with this reference in the unit file, only the device path works. I do suspect others here might have the same issue reading some of the iptsd issues and manual fixes. Is it an issue to just use the device path if it ends up being the same result?
I think I understand the goal, but as a user I just need the daemon to be there when the device is, and it never seems to recover from this until a reboot. Not sure how that should work. Happy to test whatever you want. I have no developer experience unfortunately. |
So that is exactly what it should say.
What is the output of
I am not sure what is going on on your system. What do you mean by udev getting reloaded? Are you reloading it yourself? Can you post the output of |
It looks pretty normal and stylus is working: systemctl status $(iptsd-find-service) jun 03 22:08:36 lenny systemd[1]: Started Intel Precise Touch & Stylus Daemon.
So it stops working after a while when not rebooting the system, and I noticed during troubleshooting it consistently stopped working when I do "sudo udevadm control --reload-rules && sudo udevadm trigger" which is what I use to reproduce it. The dmesg output when it breaks using that udevadm command: [ma jun 3 22:11:12 2024] ipts 0000:00:16.4-3e8d0870-271a-4208-8eb5-9acb9402ae04: Stopping IPTS And: systemctl status $(iptsd-find-service) jun 03 22:08:36 lenny systemd[1]: Started Intel Precise Touch & Stylus Daemon. I have just rebooted with the service file using /dev/hidraw1, and doing that I can't get it to break using the udevadm command. The dmesg output doesn't show the "Failed to wait for flush: -11" error though: [ma jun 3 22:15:31 2024] ipts 0000:00:16.4-3e8d0870-271a-4208-8eb5-9acb9402ae04: Starting IPTS And it changed to "poll mode" apparently. So I am not sure this udevadm command is a good test to be honest. It can confirm it does stop working when leaving the laptop on for an extended periode of time (days). |
It certainly seems interesting. Looks almost like a systemd bug to me ... the device node is kept around but the device unit vanishes? I'll check if I can reproduce this on my machine. |
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):
This is my working version:
The text was updated successfully, but these errors were encountered: