I couldn't solve this problem despite spending many hours (two days), so I decided to ask here. How can I restore the default settings for the Apple Magic Trackpad 2 when using on Ubuntu?
My problem is the following: I am using Ubuntu 20.04 LTS. After using my Apple Magic Trackpad 2 for some time without major issues, it stopped working. (I am using it via a cable). I always have to click on it very hard to be able to move my cursor. Unusable. I was able to find a kind of a workaround here (Apple Magic Trackpad 2 configuration )
It suggest using a command like
xinput set-prop 17 296 2, 2, 0
With xinput list
I first identify the trackpad's id (not persistent!). Now it is 21.
⎜ ↳ Apple Inc. Magic Trackpad 2 id=21 [slave pointer (2)]
These are its properties that I identify by typing xinput watch-props 21
.
Device 'Apple Inc. Magic Trackpad 2':
Device Enabled (171): 1
Coordinate Transformation Matrix (173): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (304): 1
Device Accel Constant Deceleration (305): 2.500000
Device Accel Adaptive Deceleration (306): 1.000000
Device Accel Velocity Scaling (307): 22.886030
Synaptics Edges (331): -3031, 3287, -2048, 2157
Synaptics Finger (332): 70, 75, 0
Synaptics Tap Time (333): 180
Synaptics Tap Move (334): 402
Synaptics Tap Durations (335): 180, 180, 100
Synaptics ClickPad (336): 1
Synaptics Middle Button Timeout (337): 0
Synaptics Two-Finger Pressure (338): 279
Synaptics Two-Finger Width (339): 7
Synaptics Scrolling Distance (340): -182, 182
Synaptics Edge Scrolling (341): 0, 0, 0
Synaptics Two-Finger Scrolling (342): 1, 1
Synaptics Move Speed (343): 1.000000, 1.750000, 0.021875, 0.000000
Synaptics Off (344): 0
Synaptics Locked Drags (345): 0
Synaptics Locked Drags Timeout (346): 5000
Synaptics Tap Action (347): 0, 0, 0, 0, 1, 3, 2
Synaptics Click Action (348): 1, 3, 2
Synaptics Circular Scrolling (349): 0
Synaptics Circular Scrolling Distance (350): 0.100000
Synaptics Circular Scrolling Trigger (351): 0
Synaptics Circular Pad (352): 0
Synaptics Palm Detection (353): 1
Synaptics Palm Dimensions (354): 10, 198
Synaptics Coasting Speed (355): 20.000000, 50.000000
Synaptics Pressure Motion (356): 29, 158
Synaptics Pressure Motion Factor (357): 1.000000, 1.000000
Synaptics Resolution Detect (358): 1
Synaptics Grab Event Device (359): 0
Synaptics Gestures (360): 1
Synaptics Capabilities (361): 1, 0, 0, 1, 1, 1, 0
Synaptics Pad Resolution (362): 44, 47
Synaptics Area (363): 0, 0, 0, 0
Synaptics Soft Button Areas (364): 0, 0, 0, 0, 0, 0, 0, 0
Synaptics Noise Cancellation (365): 45, 45
Device Product ID (297): 1452, 613
Device Node (296): "/dev/input/event25"
So far, I haven't modified anything. According to the above mentioned workaround, we now need to identify the 'Synaptics Finger'-ID which is 332 in this case (not persistent either):
xinput set-prop 21 332 2, 2, 0
After that, it seems to work.
However, whenever I restart either the computer or the trackpad, all of the changes disappear. I initially added a shortcut for these commands; however, it is not effective as ids tend to change after unplugging the trackpad. I also considered writing a script, however, it should come into effect whenever I plug in/turn on the trackpad - not when the computer is turned on.
I want to delete all of the settings stored when connecting this trackpad. Just as it was at the beginning. Similar to the following solution for macos.
So far, I've also tried the following commands restoring settings - they weren't effective.
dconf reset -f /
dconf reset -f /org/gnome/desktop/peripherals/mouse/
dconf reset -f /org/gnome/desktop/peripherals/touchpad/
How can I restore the default settings for the Apple Magic Trackpad 2 when using on Ubuntu? Alternatively, how can I make these changes persistent?
Thank you so much for any help!