Ubuntu 17.04 - Apple Magic Mouse 2 滚动不起作用

Ubuntu 17.04 - Apple Magic Mouse 2 滚动不起作用

我正在运行 Ubuntu 17.04(内核:4.10.0-35-generic),“触摸”滚动在我的苹果 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)]

使用这个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

我理解了libinput 可用的滚动方法(290)设置为0, 0, 1,但libinput 滚动方法已启用(291)设置为0, 0, 0,所以我认为通过改变它xinput --set-prop 21 291 0 0 1可能会使滚动开始。但它似乎没有任何区别。

顺便说一句,滚动在我的触摸板上很好用(虽然是两指滚动,与 Magic Mouse 的单指滚动不太一样,但我不知道是否有区别)。

有人能指出我如何才能使滚动正常工作的正确方向吗?

干杯

答案1

它对我来说几乎可以与 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

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

相关内容