Ubuntu 17.04 - Apple Magic Mouse 2 滚动不工作

Jes*_*cal 6 mouse mouse-scroll apple 17.04

我正在运行 Ubuntu 17.04(内核:4.10.0-35-generic)并且“触摸”滚动在我的Apple Magic Mouse 2上不起作用,而且从来没有。

我一直在做研究,我找不到任何似乎可以解决这个问题的东西(至少没有任何东西可以使用当前内核为我解决这个问题)。

当我跑步时,xinput --list我可以看到我的鼠标(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)]
Run Code Online (Sandbox Code Playgroud)

使用此 ID,我可以使用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
Run Code Online (Sandbox Code Playgroud)

我可以看到libinput Scroll Methods Available (290)被设置为0, 0, 1,但libinput Scroll Method Enabled (291)被设置为0, 0, 0所以我认为改变这个 viaxinput --set-prop 21 291 0 0 1可能会使滚动开始。虽然它似乎没有任何区别。

附带说明一下,滚动在我的触摸板上工作得很好(虽然这是两指滚动,与 Magic Mouse 的单指滚动不太一样,但我不知道这是否有区别)。

任何人都可以指出我如何才能使滚动工作的正确方向吗?

干杯

小智 3

它几乎适用于我的 ubuntu 18.04。

内核 4.15.0-13-通用模块 mac_hid

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 Natural Scrolling Enabled (277):   0
libinput Natural Scrolling Enabled Default (278):   0
libinput Scroll Methods Available (279):    0, 0, 1
libinput Scroll Method Enabled (280):   0, 0, 1
libinput Scroll Method Enabled Default (281):   0, 0, 0
libinput Button Scrolling Button (282): 3
libinput Button Scrolling Button Default (283): 3
libinput Accel Speed (284): -0.237410
libinput Accel Speed Default (285): 0.000000
libinput Accel Profiles Available (286):    1, 1
libinput Accel Profile Enabled (287):   1, 0
libinput Accel Profile Enabled Default (288):   1, 0
libinput Send Events Modes Available (262): 1, 0
libinput Send Events Mode Enabled (263):    0, 0
libinput Send Events Mode Enabled Default (264):    0, 0
Device Node (265):  "/dev/input/event22"
Device Product ID (266):    76, 617
libinput Drag Lock Buttons (291):   <no items>
libinput Horizontal Scroll Enabled (292):   1
Run Code Online (Sandbox Code Playgroud)

libinput Scroll Method Enabled (280): 0, 0, 1最初是0, 0, 0. 更改为0, 0, 1单击并按住右键后可以通过移动鼠标进行滚动