Skip to content

iptsd: bring the Surface Laptop 7 touchpad back after resume - #2147

Merged
ryanrhughes merged 1 commit into
omacom:masterfrom
mrjbj:iptsd/romulus15-resume
Nov 11, 2026
Merged

ryanrhughes merged 1 commit into
omacom:masterfrom
mrjbj:iptsd/romulus15-resume

Conversation

@mrjbj

@mrjbj mrjbj commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does: it adds a small service to the iptsd package 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:

spi_hid_of spi0.0: Spontaneous FW reset!
spi_hid_of spi0.0: Response timed out
spi_hid_of spi0.0: failed to set report

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.service restarts 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 condition passes it on romulus15 and fails it for microsoft,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

  • That local unit had no ConditionFirmware line and was enabled with [Install] rather than this package's suspend.target.wants symlink. The packaged file passes systemd-analyze verify.
  • I haven't built this package or run test.sh. CI will be the first run of both.
  • Hibernate isn't wired up, only suspend.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds a suspend-resume workaround for the Surface Laptop 7 15-inch.

  • Surface Laptop 7 touchpad gestures recover after resume.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Suspend finishes] --> B[suspend.target]
  B --> C{Device is microsoft,romulus15?}
  C -->|No| D[Skip service]
  C -->|Yes| E[Wait two seconds]
  E --> F[Restart loaded iptsd instances]
Loading

Reviews (1) · Last reviewed commit: "iptsd: bring the Surface Laptop 7 touchp..." · Reviewed by Greptile

@birkskyum birkskyum added the build-approved Maintainer approved this PR to build on the self-hosted pool label Nov 11, 2026
@ryanrhughes
ryanrhughes enabled auto-merge (squash) November 11, 2026 21:11
@ryanrhughes
ryanrhughes merged commit 7f471e5 into omacom:master Nov 11, 2026
12 of 15 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: iptsd (aarch64, PR artifact)

  • edge/aarch64: iptsd-3.1.0-3-aarch64

Commit 7f471e5 · run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-approved Maintainer approved this PR to build on the self-hosted pool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants