Closed bitfabrikken closed 4 years ago
Which desktop are you using? For XFCE create the file like explained in the README.MD
@robotrovsky KDE Plasma
I haven't used KDE Plasma with the MT2 yet. But i think it might work in Kubuntu 19.10 as it is working in the standard Ubuntu as well. You could check in a virtual machine if it works for you in Kubuntu and compare the configuration with your own.
@robotrovsky I've tried in Kubuntu 19.10, and yep, it works correctly there. Only differences are: Kubuntu libinput 1.14.1 vs 1.12.6-2 on debian Kubuntu kernel 5.3.0-24-generic vs 5.3.9-2bpo10+1 (2019-11-13) Not too sure what to try next..
@bitfabrikken great, so we are a step closer ;-) The kernel version should be no problem as long as magicmouse driver (contains MT2) is included. About the libinput i am not sure, but i think it neither is the problem. You could now check the udev rule and the X / KDE configuration. I guess that is where the difference to your system is. I think the libinput driver is loaded but not configured correct.
I suppose you are using X11 with KDE. Have you tried creating the following file:
/usr/share/X11/xorg.conf.d/90-magictrackpad.conf
Section "InputClass"
Identifier "Touchpads"
Driver "libinput"
MatchProduct "Apple Inc. Magic Trackpad 2"
MatchDevicePath "/dev/input/event*"
EndSection
@robotrovsky closing in I hope :) I'll give some more verbose info:
I was on debian's stable kernel for a while (4.19.67-2+deb10u2), where I tried using this repos driver (via make, rmmod, insmod), but it didn't work and so switched to the backported kernel from testing (5.3.9-2~bpo10+1).
Now it works, but with the mentioned error where it stops moving the cursor when pressing too hard.
The 90-magictrackpad.conf file is also present (am running X11, X.Org version: 1.20.4) I've also tried with the /etc/libinput/local-overrides.quirks file and many, many different values for stuff. Also logging out of X for every change, doesn't seem to apply it correctly otherwise.
When comparing the Xorg logs for both systems, when MT2 is plugged in, there's 6 lines with "Applying InputClass" on the debian, that do not happen on the Kubuntu. Do you think the problem could be there?
I've noticed the error doesn't happen if I try the DKMS thing from the README.md, although it does seem to freeze the computer sometimes.
Plugging in via USB (haven't tried Bluetooth as I want USB to work first) on the real debian machine, Xorg.log:
[ 15940.014] (II) config/udev: Adding input device Apple Inc. Magic Trackpad 2 (/dev/input/mouse0)
[ 15940.014] (**) Apple Inc. Magic Trackpad 2: Ignoring device from InputClass "touchpad ignore duplicates"
[ 15940.221] (II) config/udev: Adding input device Apple Inc. Magic Trackpad 2 (/dev/input/event1)
[ 15940.221] (**) Apple Inc. Magic Trackpad 2: Applying InputClass "libinput touchpad catchall"
[ 15940.221] (**) Apple Inc. Magic Trackpad 2: Applying InputClass "Multitouch Touchpad"
[ 15940.221] (**) Apple Inc. Magic Trackpad 2: Applying InputClass "touchpad catchall"
[ 15940.221] (**) Apple Inc. Magic Trackpad 2: Applying InputClass "Default clickpad buttons"
[ 15940.221] (**) Apple Inc. Magic Trackpad 2: Applying InputClass "Disable clickpad buttons on Apple touchpads"
[ 15940.221] (**) Apple Inc. Magic Trackpad 2: Applying InputClass "Touchpads"
[ 15940.221] (II) Using input driver 'libinput' for 'Apple Inc. Magic Trackpad 2'
[ 15940.221] (**) Apple Inc. Magic Trackpad 2: always reports core events
[ 15940.221] (**) Option "Device" "/dev/input/event1"
[ 15940.221] (**) Option "_source" "server/udev"
[ 15940.280] (II) event1 - Apple Inc. Magic Trackpad 2: is tagged by udev as: Touchpad
[ 15940.280] (II) event1 - Apple Inc. Magic Trackpad 2: device is a touchpad
[ 15940.280] (II) event1 - Apple Inc. Magic Trackpad 2: device removed
[ 15940.312] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/usb1/1-7/1-7:1.1/0003:05AC:0265.001D/input/input39/event1"
[ 15940.312] (II) XINPUT: Adding extended input device "Apple Inc. Magic Trackpad 2" (type: TOUCHPAD, id 8)
[ 15940.313] (**) Option "AccelerationScheme" "none"
[ 15940.314] (**) Apple Inc. Magic Trackpad 2: (accel) selected scheme none/0
[ 15940.314] (**) Apple Inc. Magic Trackpad 2: (accel) acceleration factor: 2.000
[ 15940.314] (**) Apple Inc. Magic Trackpad 2: (accel) acceleration threshold: 4
[ 15940.372] (II) event1 - Apple Inc. Magic Trackpad 2: is tagged by udev as: Touchpad
[ 15940.372] (II) event1 - Apple Inc. Magic Trackpad 2: device is a touchpad
Plugging in via usb in the virtual machine Kubuntu, Xorg log:
[ 78.473] (II) config/udev: Adding input device Apple Inc. Magic Trackpad 2 (/dev/input/mouse0)
[ 78.473] (II) No input driver specified, ignoring this device.
[ 78.473] (II) This device may have been added with another device file.
[ 78.637] (II) config/udev: Adding input device Apple Inc. Magic Trackpad 2 (/dev/input/event2)
[ 78.637] (**) Apple Inc. Magic Trackpad 2: Applying InputClass "libinput touchpad catchall"
[ 78.637] (II) Using input driver 'libinput' for 'Apple Inc. Magic Trackpad 2'
[ 78.637] (**) Apple Inc. Magic Trackpad 2: always reports core events
[ 78.637] (**) Option "Device" "/dev/input/event2"
[ 78.638] (**) Option "_source" "server/udev"
[ 78.729] (II) event2 - Apple Inc. Magic Trackpad 2: is tagged by udev as: Touchpad
[ 78.730] (II) event2 - Apple Inc. Magic Trackpad 2: device is a touchpad
[ 78.730] (II) event2 - Apple Inc. Magic Trackpad 2: device removed
[ 78.769] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:05.0/usb2/2-1/2-1:1.1/0003:05AC:0265.0006/input/input8/event2"
[ 78.769] (II) XINPUT: Adding extended input device "Apple Inc. Magic Trackpad 2" (type: TOUCHPAD, id 7)
[ 78.771] (**) Option "AccelerationScheme" "none"
[ 78.772] (**) Apple Inc. Magic Trackpad 2: (accel) selected scheme none/0
[ 78.772] (**) Apple Inc. Magic Trackpad 2: (accel) acceleration factor: 2.000
[ 78.772] (**) Apple Inc. Magic Trackpad 2: (accel) acceleration threshold: 4
[ 78.833] (II) event2 - Apple Inc. Magic Trackpad 2: is tagged by udev as: Touchpad
[ 78.834] (II) event2 - Apple Inc. Magic Trackpad 2: device is a touchpad
@bitfabrikken i think this is a X11 misconfiguration. I would compare the xorg configuration files. I am sorry that i can't help you more. But i agree that you should get rid of the "Applying InputClass" lines in dmesg. Maybe when another driver gets loaded the values/thresholds get changed or something.
Thanks @robotrovsky, I'll have a look in sec.
I just noticed something else that perhaps could pinpoint? When using "libinput measure touchpad-pressure", I see that "palm" is active when I reach ~130 pressure. This appears to be exactly when the mouse cursor stops moving. The hardware "click" by the motor appears around 90.
I've currently got this in quirks: ModelAppleTouchpad=1 AttrSizeHint=104x75 AttrTouchSizeRange=150:130 AttrPalmSizeThreshold=800
@robotrovsky I ended up going to debian testing instead of stable. Works out of the box now! Haven't run debian for desktop in 20ish years, and apparantly stable is waaaay behind. Anyways, appreciate all your help the last few days!
Unrelated, but perhaps you can point me in the right direction to have three-finger touch move windows? Am also wanting to make four fingers resize windows. You probably know if any of those things is even doable :)
@bitfabrikken you are welcome. Regarding three finger drag look into mtrack driver instead of using libinput. https://github.com/BlueDragonX/xf86-input-mtrack
@robotrovsky thanks, but I've tried mtrack and it's too laggy when scrolling for me :)
@bitfabrikken i agree. Three finger-drag works very well, but the scrolling is ugly..
Does anyone know how to make the Magic Trackpad 2 keep dragging, even though you're pressing hard? As it is now, I have to drag with a feather-light touch, and it's hard to get used to.
I've tried changing AttrPressureRange, but it doesn't seem to do anything. Perhaps someone knows what to change in regards to dragging pressure?
When I press hard while dragging, the pointer just stops moving completely.
Debian Buster, 5.3.0-0.bpo.2-amd64 xorg-server 2:1.20.4-1
xorg log when plugging in:
xinput list-props 8
on x start I run this: