Repository navigation
iptsd: bring the Surface Laptop 7 touchpad back after resume - #2147
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 4, 2026
[Low impact] The PR appears safe to merge; no actionable issues were found. SummaryAdds a suspend-resume workaround for the Surface Laptop 7 15-inch.
|
ryanrhughes
enabled auto-merge (squash)
November 11, 2026 21:11
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: it adds a small service to the
iptsdpackage that restarts iptsd about 2 seconds after the laptop wakes from suspend on the Surface Laptop 7 15" only. Without it, two-finger scrolling and pinch stop working after every suspend until iptsd is restarted by hand. It's installed and enabled with the package, and it does nothing on any other machine.This is a workaround rather than a root-cause fix: the touchpad resets itself during suspend and nothing tells iptsd. It can be removed once spi-hid or iptsd handles that reset.
Human Notes
This is part of work I did with Claude Opus 5.5 to get the touchpad on my Surface Laptop 7 working on Omarchy. It only matters once the touchpad itself is working, which is #2146, and iptsd is installed on the laptop, which is omacom/omarchy#17617.
The technical details below were written by AI. I can confirm I ran this restart on my laptop and tested it personally across two suspends in a row. Sharing in the hope that it helps others.
AI Notes
This PR was written with Claude Opus 5.5 and tested by me on my own laptop.
On the Surface Laptop 7 15", the touchpad resets during resume and comes back in its mouse mode:
The HID device stays, so a running iptsd doesn't notice and scrolling and pinch stay dead until it restarts. iptsd only sets multitouch when it starts.
iptsd-romulus15-resume.servicerestarts iptsd 2 seconds after a suspend.ConditionFirmware=device-tree-compatible(microsoft,romulus15)keeps it off every other machine, so the Surface Pro 11 is unaffected.systemd-analyze conditionpasses it on romulus15 and fails it formicrosoft,denali-oled. A better fix would be for spi-hid or iptsd to handle the reset, and then this can go.Depends on #2146 for the touchpad itself. On a kernel without it, this restarts nothing that matters.
Tested on a Surface Laptop 7 15" with the same restart as a local unit: two suspends in a row, with iptsd reconnecting 2 seconds after each wake and scroll, pinch and two-finger tap working again.
Not tested
ConditionFirmwareline and was enabled with[Install]rather than this package'ssuspend.target.wantssymlink. The packaged file passessystemd-analyze verify.test.sh. CI will be the first run of both.🤖 Generated with Claude Code