Repository navigation
iptsd: start it for the Surface Laptop 7 touchpad when the boot-time start is lost - #2798
Merged
ryanrhughes merged 3 commits intoNov 15, 2026
Merged
Conversation
…start is lost On some boots the touchpad stops answering just as its HID device is re-bound, iptsd's udev rule finds it silent and iptsd is never started, so the pad stays in its mouse mode. iptsd-romulus15-boot.service re-runs the rule until iptsd is up. It does nothing on any other machine.
Contributor
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryAdds a boot-time recovery service for the Surface Laptop 7 15" touchpad.
Reviews (3) · Last reviewed commit: "iptsd: check once more after the last bo..." · Reviewed by Greptile |
A start the eighth re-run of the udev rule brings was still reported as a failure, leaving the service failed on a touchpad that works.
birkskyum
marked this pull request as ready for review
November 15, 2026 17:26
ryanrhughes
enabled auto-merge (squash)
November 15, 2026 17:32
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does: on the Surface Laptop 7 15", iptsd sometimes never starts for the touchpad at boot, and the pad is then a one-finger mouse until the next boot. This adds a small service to the
iptsdpackage that starts it once the pad is ready. It does nothing on any other machine.This is a draft on purpose. It is a workaround, and whoever knows iptsd's udev rule may prefer to fix the cause there instead; see "A better fix?" below.
What goes wrong
On 3 of 7 boots of my laptop:
hid-generic, and iptsd's udev rule startsiptsd@dev-hidrawN.service.hid-multitouch. The hidraw node goes away and iptsd is stopped.spi_hid_of spi0.0: failed to set reportsix times, thenResponse timed outonce a second for about five seconds.iptsd-check-devicegets no answer from the pad, andSYSTEMD_WANTSis not set. Nothing asks for iptsd again.On the other boots, step 2 is followed 25 ms later by a clean start. My reading, not proven, is that iptsd is cut off mid-conversation with the pad, which leaves the pad silent for those five seconds.
Two things that don't recover it:
systemctl start iptsd@dev-hidrawN.servicestarts and stops within 2 ms: the unit hasStopWhenUnneeded=yesand nothing wants it.iptsd-romulus15-resume.servicerunssystemctl restart iptsd@*.service, which only restarts units that exist.What does:
udevadm trigger --action=change /dev/hidrawN, once the pad answers again.What changes
iptsd-romulus15-boot(to/usr/lib/iptsd/): every 5 seconds for up to 40, it finds the touchpad's hidraw node (045E:0C77), checks whether its iptsd unit is active, and re-runs the udev rule for that node if not.iptsd-romulus15-boot.service: a oneshot wanted bymulti-user.target, withConditionFirmware=device-tree-compatible(microsoft,romulus15)like the resume service.pkgrel3 to 4, a paragraph inREADME.package.md, and three checks intest.sh.Tested
On my own Surface Laptop 7 15", kernel 7.3.0-62-omarchy, iptsd 3.1.0-3, with the same script and an equivalent unit installed by hand under
/usr/local/binand/etc/systemd/system(the lines fromtouchpad_iddown are identical to the packaged script):bash pkgbuilds/iptsd/test.shpasses, and the checksums of the four local sources match.Not tested
bin/buildor installed it, so the/usr/lib/iptsdpath and themulti-user.target.wantslink are unexercised.A better fix?
The service treats a symptom. If the cause is the udev rule starting iptsd on the
hid-genericbinding only to have it stopped by the re-bind, a rule that waits for the final driver, or aniptsd-check-devicethat retries, would remove the race. I don't know iptsd well enough to say which is right, and I'm glad to test either on this hardware.Related
iptsdon this laptop (as does Install iptsd on the Surface Laptop 7 15" omarchy#17617).Written with Claude Fable 5.2. I ran every command and test on my own laptop.