Ubuntu 17.04 - Rolagem Apple Magic Mouse 2 não está funcionando

4

Estou executando o Ubuntu 17.04 (kernel: 4.10.0-35-generic) e a rolagem "touch" não está funcionando no Apple Magic Mouse 2 e nunca foi.

Eu tenho feito pesquisas e não consigo encontrar nada que pareça resolver isso (pelo menos nada que resolva isso para mim usando o kernel atual).

Quando executo xinput --list , posso ver meu 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)]

Usando esse ID, posso ver os acessórios do dispositivo usando 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

Eu posso ver que libinput Métodos de rolagem disponíveis (290) está definido como 0, 0, 1 e ainda libinput Método de rolagem ativado (291) está definido como 0, 0, 0 Eu percebi que mudar isso via xinput --set-prop 21 291 0 0 1 poderia fazer o pergaminho entrar. Mas não pareceu fazer nenhuma diferença.

Em uma nota lateral, a rolagem funciona bem no meu touchpad (que é a rolagem com dois dedos, não exatamente o mesmo que a rolagem de um único dedo do Magic Mouse, mas não sei se isso faz diferença).

Alguém pode me apontar na direção certa de como eu poderia fazer a rolagem funcionar?

Felicidades

    
por Jess Rascal 22.09.2017 / 15:33

1 resposta

2

quase funciona para mim com o Ubuntu 18.04.

kernel 4.15.0-13-genérico módulo 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 inicialmente foi 0, 0, 0 . Depois de alterar para 0, 0, 1 , clicar e segurar o botão direito ativa a rolagem movendo o mouse

    
por Yuri G. 05.04.2018 / 07:28