I am running Ubuntu 17.04 (kernel: 4.10.0-35-generic) and the "touch" scrolling is not working on my Apple Magic Mouse 2 and never has been.
I have been doing research and I can't find anything that seems to resolves this (at least nothing that resolves it for me using the current kernel).
When I run xinput --list
I can see my mouse (id = 21).
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Razer Razer DeathStalker id=13 [slave pointer (2)]
⎜ ↳ Razer Razer DeathStalker id=14 [slave pointer (2)]
⎜ ↳ DLL06E4:01 06CB:7A13 Touchpad id=15 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=18 [slave pointer (2)]
⎜ ↳ Rascal’s Mouse id=21 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Video Bus id=8 [slave keyboard (3)]
↳ Power Button id=9 [slave keyboard (3)]
↳ Sleep Button id=10 [slave keyboard (3)]
↳ Integrated_Webcam_HD id=11 [slave keyboard (3)]
↳ Razer Razer DeathStalker id=12 [slave keyboard (3)]
↳ Intel HID events id=16 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=17 [slave keyboard (3)]
↳ Dell WMI hotkeys id=19 [slave keyboard (3)]
↳ Razer Razer DeathStalker id=20 [slave keyboard (3)]
↳ 04:52:C7:61:D3:31 id=22 [slave keyboard (3)]
Using this ID, I can view the device's props using xinput --list-props 21
.
Device 'Rascal’s Mouse':
Device Enabled (142): 1
Coordinate Transformation Matrix (144): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Accel Speed (283): -0.700000
libinput Accel Speed Default (284): 0.000000
libinput Accel Profiles Available (285): 1, 1
libinput Accel Profile Enabled (286): 1, 0
libinput Accel Profile Enabled Default (287): 1, 0
libinput Natural Scrolling Enabled (279): 1
libinput Natural Scrolling Enabled Default (280): 0
libinput Send Events Modes Available (264): 1, 0
libinput Send Events Mode Enabled (265): 0, 0
libinput Send Events Mode Enabled Default (266): 0, 0
libinput Left Handed Enabled (288): 0
libinput Left Handed Enabled Default (289): 0
libinput Scroll Methods Available (290): 0, 0, 1
libinput Scroll Method Enabled (291): 0, 0, 0
libinput Scroll Method Enabled Default (292): 0, 0, 0
libinput Button Scrolling Button (293): 0
libinput Button Scrolling Button Default (294): 0
Device Node (267): "/dev/input/event19"
Device Product ID (268): 76, 617
libinput Drag Lock Buttons (281): <no items>
libinput Horizontal Scroll Enabled (282): 1
I can see that libinput Scroll Methods Available (290) is set to 0, 0, 1
and yet libinput Scroll Method Enabled (291) is set to 0, 0, 0
so I figured changing this via xinput --set-prop 21 291 0 0 1
might make the scroll kick in. It didn't seem to make any difference though.
On a side note, scrolling works on my touchpad fine (that's two-finger scrolling though, not quite the same as the Magic Mouse's single finger scroll but I don't know if that makes a difference).
Can anybody point me in the right direction as to how I might be able to get the scrolling working?
Cheers
Best Answer
it almost works for me with ubuntu 18.04.
kernel 4.15.0-13-generic module mac_hid
libinput Scroll Method Enabled (280): 0, 0, 1
initially was0, 0, 0
. After changing to0, 0, 1
clicking and holding right button enables scroll by moving the mouse