Repository navigation
ipts: Handle the button report of force touchpads - #237
Open
fidecastro wants to merge 1 commit into
Open
fidecastro wants to merge 1 commit into
fidecastro wants to merge 1 commit into
Conversation
The touchpad of the Surface Laptop 7 15" (045E:0C77) has no moving parts. It measures force and decides by itself when that amounts to a click, with a higher threshold for pressing than for releasing. It does not send the button report (0x90). Instead, every heatmap comes with a report of type 0x96 that carries the force and the state of the button, so pressing the touchpad did nothing while iptsd was running. Parse that report and pass it on as a button sample.
This was referenced Nov 15, 2026
Merged
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.
Pressing the touchpad does nothing under iptsd on the Surface Laptop 7 15" (Snapdragon, HID
045E:0C77): taps work, a press does not, so there is no press-and-drag and no two-finger press for a right click. This makes the press work.Cause. The pad has no moving parts. It measures force and decides by itself when that is a click. It never sends the button report (
0x90). Every HID report (id0x0a) carries, after the heatmap, report frames of types0x00 0x03 0x0b 0x04 0x07 0x32 0x94 0x96 0xff, and the button is in0x96, 48 bytes:u16u160x8003f32u8u8u16u1632767and0for two frames while a second finger landsu8Only the force and the button byte are used. The rest is described as I understand it and marked reserved where I don't.
Change. A
ForceButton = 0x96report type, aForceSamplestruct, andparse_force_button, which feeds the existingon_button. A report of any other size is ignored. Nothing changes for devices that send0x90.Tested on that laptop with this patch on v3.1.0: press to click, press and drag, and two-finger press for a right click work; a tap is still a tap and does not register as a press. Built on current
masterwith-Dwerror=trueas well. In a 20 second capture of one tap and six presses, the button byte was 0 through the tap and 1 through each press.Not tested: any other device. #192 describes the same symptom on the Intel Surface Laptop 7, whose touchpad is also a haptic one; if it sends
0x96too, this may fix it, but I have no way to check. A capture from that machine would tell.Prepared with Claude Fable 5.2.