Как отключить прокрутку колесика мыши с помощью xinput?

xinput говорит, что моя мышь имеет идентификатор 11:

$ xinput
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ VirtualBox mouse integration              id=9    [slave  pointer  (2)]
⎜   ↳ ImExPS/2 Generic Explorer Mouse           id=11   [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)]
    ↳ Sleep Button                              id=7    [slave  keyboard (3)]
    ↳ Video Bus                                 id=8    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=10   [slave  keyboard (3)]

Настройка кнопок 4 и 5 на 0 работает:

$ xinput --set-button-map 11 1 2 3 0 0 6 7 8 9
$ xinput --get-button-map 11
1 2 3 0 0 6 7 8 9 

Однако прокрутка колесика мыши не отключена. Есть идеи, что с этим делать? Ubuntu 18.04.3.

ETA : Обратите внимание, что ответ, принятый в Как отключить прокрутку колесика мыши в Ubuntu 11.04 или 10.10? , не работает, по крайней мере, в моем случае.

ETA2 : добавлено согласно запросу:

$ xinput list-props 11
Device 'ImExPS/2 Generic Explorer Mouse':
    Device Enabled (127):   1
    Coordinate Transformation Matrix (129): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Natural Scrolling Enabled (266):   0
    libinput Natural Scrolling Enabled Default (267):   0
    libinput Scroll Methods Available (274):    0, 0, 1
    libinput Scroll Method Enabled (275):   0, 0, 0
    libinput Scroll Method Enabled Default (276):   0, 0, 0
    libinput Button Scrolling Button (277): 2
    libinput Button Scrolling Button Default (278): 2
    libinput Middle Emulation Enabled (279):    0
    libinput Middle Emulation Enabled Default (280):    0
    libinput Accel Speed (281): 0.000000
    libinput Accel Speed Default (282): 0.000000
    libinput Accel Profiles Available (283):    1, 1
    libinput Accel Profile Enabled (284):   1, 0
    libinput Accel Profile Enabled Default (285):   1, 0
    libinput Left Handed Enabled (270): 0
    libinput Left Handed Enabled Default (271): 0
    libinput Send Events Modes Available (249): 1, 0
    libinput Send Events Mode Enabled (250):    0, 0
    libinput Send Events Mode Enabled Default (251):    0, 0
    Device Node (252):  "/dev/input/event4"
    Device Product ID (253):    2, 6
    libinput Drag Lock Buttons (272):   <no items>
    libinput Horizontal Scroll Enabled (273):   1
1
задан 3 October 2019 в 17:25

1 ответ

Удалите libinput

sudo apt remove 'xserver-xorg-input-libinput.*'

, мышь будет обработана evdev, и будут работать все прежние решения.

0
ответ дан 23 October 2019 в 09:25

Другие вопросы по тегам:

Похожие вопросы: