From d9b5e8ccee5ae173ed23fa95a9f90fe9989cdc6d Mon Sep 17 00:00:00 2001 From: Sebastian Dichler Date: Tue, 4 Feb 2025 09:15:14 +0100 Subject: [PATCH 1/7] Update quirks file --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 5bc71fa..1eebbd0 100644 --- a/README.md +++ b/README.md @@ -74,8 +74,7 @@ More information can be found [here](https://askubuntu.com/questions/1283762/cus To configure the Apple Magic Trackpad Parameters for libinput create quirks file `/usr/share/libinput/local-overrides.quirks` with following content: ```bash -[Apple Magic Trackpad USB C Bluetooth] -MatchBus=bluetooth +[Apple Magic Trackpad USB C Bluetooth & USB] MatchVendor=0x004C MatchProduct=0x0324 AttrTouchSizeRange=20:10 From be3c90352a64d6cbfd01cd0883bc35348d3e4017 Mon Sep 17 00:00:00 2001 From: Sebastian Dichler Date: Tue, 4 Feb 2025 09:17:24 +0100 Subject: [PATCH 2/7] Update Name of quirk setting --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1eebbd0..9ef10e4 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ More information can be found [here](https://askubuntu.com/questions/1283762/cus To configure the Apple Magic Trackpad Parameters for libinput create quirks file `/usr/share/libinput/local-overrides.quirks` with following content: ```bash -[Apple Magic Trackpad USB C Bluetooth & USB] +[Apple Magic Trackpad USB C (Bluetooth, USB)] MatchVendor=0x004C MatchProduct=0x0324 AttrTouchSizeRange=20:10 From 3d5e30e93ee6ae14d0355aba8523222dd5695847 Mon Sep 17 00:00:00 2001 From: Sebastian Dichler Date: Tue, 4 Feb 2025 11:28:33 +0100 Subject: [PATCH 3/7] Fix quirk since Apple uses different vendor number for bluetooth and usb connection --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ef10e4..8414835 100644 --- a/README.md +++ b/README.md @@ -74,13 +74,23 @@ More information can be found [here](https://askubuntu.com/questions/1283762/cus To configure the Apple Magic Trackpad Parameters for libinput create quirks file `/usr/share/libinput/local-overrides.quirks` with following content: ```bash -[Apple Magic Trackpad USB C (Bluetooth, USB)] +[Apple Magic Trackpad USB-C (Bluetooth)] +MatchBus=bluetooth MatchVendor=0x004C MatchProduct=0x0324 AttrTouchSizeRange=20:10 AttrPressureRange=3:0 AttrPalmSizeThreshold=900 AttrThumbSizeThreshold=700 + +[Apple Magic Trackpad USB-C (USB)] +MatchBus=usb +MatchVendor=0x05AC +MatchProduct=0x0324 +AttrTouchSizeRange=20:10 +AttrPressureRange=3:0 +AttrPalmSizeThreshold=900 +AttrThumbSizeThreshold=700 ``` ## Data Layout of Trackpad From 97443227344e579bc5877aa60e6770af4126c389 Mon Sep 17 00:00:00 2001 From: Sebastian Dichler Date: Tue, 4 Feb 2025 13:00:38 +0100 Subject: [PATCH 4/7] Add upstream patch info for libinput --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8414835..c5ea03e 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ sudo dpkg -r magicmouse-hid ``` ## Configure libinput -For better responsibility, specially multi touch gestures, libinput parameters need to be implemented. +For better responsibility, specially multi touch gestures, libinput parameters need to be implemented, if not supported already. A [upstream patch](https://gitlab.freedesktop.org/libinput/libinput/-/issues/1080) for the trakcpad has been accepted already. More information can be found [here](https://askubuntu.com/questions/1283762/custom-libinput-quirk-for-apple-magic-trackpad-2). To configure the Apple Magic Trackpad Parameters for libinput create quirks file `/usr/share/libinput/local-overrides.quirks` with following content: From 40f6642ce15ca8fb32ecbc0aec012114e99e3b24 Mon Sep 17 00:00:00 2001 From: Sebastian Dichler Date: Tue, 4 Feb 2025 13:02:39 +0100 Subject: [PATCH 5/7] Add merge url (first) instead of issue number --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c5ea03e..6133c1f 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ sudo dpkg -r magicmouse-hid ``` ## Configure libinput -For better responsibility, specially multi touch gestures, libinput parameters need to be implemented, if not supported already. A [upstream patch](https://gitlab.freedesktop.org/libinput/libinput/-/issues/1080) for the trakcpad has been accepted already. +For better responsibility, specially multi touch gestures, libinput parameters need to be implemented, if not supported already. A [upstream patch](https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1131/diffs) for the trackpad has been accepted already. More information can be found [here](https://askubuntu.com/questions/1283762/custom-libinput-quirk-for-apple-magic-trackpad-2). To configure the Apple Magic Trackpad Parameters for libinput create quirks file `/usr/share/libinput/local-overrides.quirks` with following content: From 61da9d8dd1d114693c6d1d7371814524757dd543 Mon Sep 17 00:00:00 2001 From: Sebastian Dichler Date: Tue, 4 Feb 2025 14:56:05 +0100 Subject: [PATCH 6/7] Update upstream patch in libinput with new merge diff link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6133c1f..dde3f1d 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ sudo dpkg -r magicmouse-hid ``` ## Configure libinput -For better responsibility, specially multi touch gestures, libinput parameters need to be implemented, if not supported already. A [upstream patch](https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1131/diffs) for the trackpad has been accepted already. +For better responsibility, specially multi touch gestures, libinput parameters need to be implemented, if not supported already. An [upstream patch](https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1134/diffs) for the trackpad has been accepted already. More information can be found [here](https://askubuntu.com/questions/1283762/custom-libinput-quirk-for-apple-magic-trackpad-2). To configure the Apple Magic Trackpad Parameters for libinput create quirks file `/usr/share/libinput/local-overrides.quirks` with following content: From c77404e73039f45bfbb6f563bd8f10c09bb4fa77 Mon Sep 17 00:00:00 2001 From: Sebastian Dichler Date: Tue, 4 Feb 2025 15:54:53 +0100 Subject: [PATCH 7/7] Add commit instead of PR from libinput --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dde3f1d..9d0cb23 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ sudo dpkg -r magicmouse-hid ``` ## Configure libinput -For better responsibility, specially multi touch gestures, libinput parameters need to be implemented, if not supported already. An [upstream patch](https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1134/diffs) for the trackpad has been accepted already. +For better responsibility, specially multi touch gestures, libinput parameters need to be implemented, if not supported already. An [upstream patch](https://gitlab.freedesktop.org/libinput/libinput/-/commit/b566d64c172bc397f47a07edbd9d9c1a755595ce) for the trackpad has been accepted already. More information can be found [here](https://askubuntu.com/questions/1283762/custom-libinput-quirk-for-apple-magic-trackpad-2). To configure the Apple Magic Trackpad Parameters for libinput create quirks file `/usr/share/libinput/local-overrides.quirks` with following content: