Repository navigation
arm64: dts: apple: t6041-j616c: enable MTP touch states - #4072
Draft
allanclempe wants to merge 1 commit into
Draft
allanclempe wants to merge 1 commit into
allanclempe wants to merge 1 commit into
Conversation
On the MacBook Pro 16-inch M4 Max (J616c), the MTP trackpad runs the AppleMTPFirmwareMac-6310.85.7 firmware family whose standard 38-byte header contact records carry the contact touch state in the high byte and the firmware path ID in the low byte of the first word (the same format verified on J813 with firmware 6310.85.7 and J815 with 6300.85.6, and already used by hid-magicmouse for T6041 palm contact IDs). Without apple,touch-states on the multi-touch node, hid-magicmouse leaves msc->mtp_states false: - off-surface approaching/leaving contacts (states 1, 2, 5, 6) with non-zero touch_major are reported as active evdev touches; - magicmouse_raw_event_mtp() falls back to input_mt_assign_slots() with dmax = 0 instead of input_mt_get_slot_by_key(), handing an active slot over to another contact whenever one lifts as another lands in the same 8 ms frame, which libinput logs as "kernel bug: Touch jump detected and discarded."; - out-of-range (state 7) records do not clear msc->mtp_palm_ids before path-ID reuse. Add apple,touch-states to the J616c multi-touch node alongside its firmware-name, matching t8142-j813.dts and t8142-j815.dts. Signed-off-by: Allan Clempe <allan.clempe@gmail.com>
7 of 8 tasks
This branch has not been deployed
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: Add
apple,touch-states;to&mtp_hid'smulti-touchnode int6041-j616c.dtssohid-magicmouseuses firmware touch states and path IDs (matchingt8142-j813.dtsandt8142-j815.dts) instead of unbounded slot reassignment that triggers libinputTouch jump detected and discarded..Tested: J616c DTB at
5ccc09add:scripts/checkpatch.pl --strict --no-tree(0 errors, 0 warnings, 0 checks) andcpp+dtccompilation oft6041-j616c.dtbpass with+apple,touch-states;inmulti-touchas the sole DTB diff (draft pending live boot test).Risk: two-way door · J616c (
apple,j616cMTP trackpad node only).Not yet: Live boot and multi-touch/palm-rejection trackpad test on J616c hardware (keeping as draft until boot-verified).
Details
On J616c (MacBook Pro 16" M4 Max), the MTP trackpad uses the
6310.85.7firmware family (matching J813 in #2613), whose standard 38-byte contact records encode contact touch state in the high byte and firmware path ID in the low byte of the first word (unknown1).Without
apple,touch-states;int6041-j616c.dts,hid-magicmouseleavesmsc->mtp_statesfalse:magicmouse_raw_event_mtp()falls back toinput_mt_assign_slots(..., dmax = 0)instead ofinput_mt_get_slot_by_key(), handing an active MT slot to another contact when one lifts and another lands in the same 8 ms frame (logged by libinput under Hyprland askernel bug: Touch jump detected and discarded.).7does not clearmsc->mtp_palm_idsbefore path-ID reuse.Evidence
git format-patch -1 --stdout | perl scripts/checkpatch.pl --strict --no-tree -:0 errors, 0 warnings, 0 checks, 11 lines checkedcpp+dtconarch/arm64/boot/dts/apple/t6041-j616c.dts: clean compile;dtc -I dtb -O dtsdiff againstcff875630adds onlyapple,touch-states;inside&mtp_hid'smulti-touchnode.7.3.0-1-2.3-ARCH/7.3.0-1-3.1-ARCH):hyprland.logrecords repeatedkernel bug: Touch jump detected and discarded.events whileapple,touch-statesis absent from/proc/device-tree.