Repository navigation
contacts/sls2: Add One-Euro position filter, MSC_TIMESTAMP, and SLS2 touchpad tuning - #239
Open
DavidObando wants to merge 3 commits into
Open
DavidObando wants to merge 3 commits into
DavidObando wants to merge 3 commits into
Conversation
DavidObando
marked this pull request as ready for review
November 22, 2026 22:24
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.
Summary
Improves pointer smoothness, velocity accuracy, and palm rejection on the Microsoft Surface Laptop Studio 2 haptic touchpad (
045E:0C46, related to #208):daemon: Emit MSC_TIMESTAMP events on touch framesEV_MSC/MSC_TIMESTAMPon theuinputtouch device and emits monotonic microsecond timestamps per frame solibinputdoes not have to rely solely on userspace wakeup jitter for pointer velocity.contacts: Add optional One-Euro position smoothing filter[Contacts] OneEuroFilter(OneEuroMinCutoff,OneEuroBeta,OneEuroDCutoff) inStabilizer.PositionThresholdMindeadzone freeze (which stalls sub-0.4 mm movements and jumps in steps) with an adaptive low-pass filter using physicalcm/scontact speed—attenuating Gaussian heatmap jitter when moving slowly while keeping lag near zero during fast swipes.OneEuroFilter = false) so existing devices are unaffected unless opted in.etc: Tune SLS2 touchpad preset and add libinput quirketc/presets/surface-laptop-studio-2.confwithDisableOnPalm = true,PositionThresholdMax = 5.0(prevents dropping fast swipes andlibinput"Touch jump detected and discarded" errors), and tuned One-Euro parameters (OneEuroMinCutoff = 1.8,OneEuroBeta = 0.45,OneEuroDCutoff = 1.0).etc/libinput/40-iptsd-surface-laptop-studio-2.quirks(installed to${datadir}/libinput/) providingAttrSizeHint=120x77,AttrInputProp=+INPUT_PROP_PRESSUREPAD,AttrTouchSizeRange=20:10,AttrThumbSizeThreshold=1350, andAttrPalmSizeThreshold=1750calibrated toiptsd'sDIAGONAL=12000. (Note: happy to drop this commit if maintainers prefer shipping the quirk upstream infreedesktop/libinput30-vendor-microsoft.quirksinstead.)Related Open PRs
This draft complements (and does not duplicate) existing open PRs:
BTN_LEFTacross contact lifts)deactivation_threshold)ithcinput nodes; note we found65-*.rulesordering +ENV{LIBINPUT_IGNORE_DEVICE}="1"+SUBSYSTEM=="input"needed on Ubuntu 26.04 / GNOME 50)iptsd@.service/ udev lifecycle fixes)Validation
g++ 15.2.0,meson,ninja,-Werror -Wconversion -Wdouble-promotion) and stage-installed (meson install).045E:0C46, GNOME 50 / Wayland,libinput 1.31.1) as a patchset on top of v3.1.0.