Comments (12)
@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..
from linux-magic-trackpad-2-driver.
Which desktop are you using? For XFCE create the file like explained in the README.MD
from linux-magic-trackpad-2-driver.
@robotrovsky KDE Plasma
from linux-magic-trackpad-2-driver.
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.
from linux-magic-trackpad-2-driver.
@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
from linux-magic-trackpad-2-driver.
@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
from linux-magic-trackpad-2-driver.
@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.
from linux-magic-trackpad-2-driver.
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
from linux-magic-trackpad-2-driver.
@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 :)
from linux-magic-trackpad-2-driver.
@bitfabrikken you are welcome. Regarding three finger drag look into mtrack driver instead of using libinput.
https://github.com/BlueDragonX/xf86-input-mtrack
from linux-magic-trackpad-2-driver.
@robotrovsky thanks, but I've tried mtrack and it's too laggy when scrolling for me :)
from linux-magic-trackpad-2-driver.
@bitfabrikken i agree. Three finger-drag works very well, but the scrolling is ugly..
from linux-magic-trackpad-2-driver.
Related Issues (20)
- Regression for Magic Mouse v1: no touch events (incl scroll/middle button) HOT 3
- Windows Support HOT 3
- Support for Linux Kernel 5.2.15 please. HOT 2
- Support for Secondary Click HOT 3
- Is there any way to increase polling rate? HOT 2
- Did someone test it on 4.15.x?
- Driver not loading on startup HOT 7
- not working with Ubuntu 20.04 HOT 4
- Abnormal behaviour after installing in Ubuntu 16.04 HOT 3
- Ubuntu 18.04 - libinput installation help HOT 1
- How to integrate usr/share/X11/xorg.conf.d/90-magictrackpad.conf HOT 4
- No input device for USB connection HOT 2
- Don't scroll when moving the mouse HOT 4
- Thumb clicking moving cursor
- Mainline driver is broken HOT 1
- Support for Arch Linux (i3wm) HOT 1
- Spurious disconnections when using the bottom of the touchpad HOT 2
- Apple Magic Trackpad (A1339) turns off every few minutes. HOT 1
- Implement two vibration feedbacks when pressing the touchpad again HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linux-magic-trackpad-2-driver.