我正在使用 linux mint 18.3。linux 内核 4.15.0-29-generic。
不久前,我的 Apple Magic Mouse 鼠标中键滚动功能突然停止工作。Mac 上可以正常使用,所以我确定不是鼠标的问题
下面列出的‘John Doe's Mouse’是我的老鼠。
xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=13 [slave pointer (2)]
⎜ ↳ John Doe’s Mouse id=15 [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)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ Integrated Camera: Integrated C id=11 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=12 [slave keyboard (3)]
↳ ThinkPad Extra Buttons id=14 [slave keyboard (3)]
↳ USB Keyboard id=9 [slave keyboard (3)]
↳ USB Keyboard id=10 [slave keyboard (3)]
xinput --list-props 15
Device 'John Doe’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 (284): 0.000000
libinput Accel Speed Default (285): 0.000000
libinput Accel Profiles Available (509): 1, 1
libinput Accel Profile Enabled (510): 1, 0
libinput Accel Profile Enabled Default (511): 1, 0
libinput Natural Scrolling Enabled (286): 0
libinput Natural Scrolling Enabled Default (287): 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
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 (512): 2
libinput Button Scrolling Button Default (513): 274
libinput Middle Emulation Enabled (296): 0
libinput Middle Emulation Enabled Default (297): 0
Device Node (265): "/dev/input/event17"
Device Product ID (266): 1452, 781
libinput Drag Lock Buttons (300): <no items>
libinput Horizonal Scroll Enabled (267): 1
您是否发现上述情况存在任何问题并可能导致此问题?
编辑:
evtest /dev/input/event17 然后 xinput --test
evtest 输出https://pastebin.com/gTc45Lfy
xinput 测试输出https://pastebin.com/7VyWAmAd
我注意到当我在中间滚动时,没有新的事件出现
答案1
我最终只是做了一个解决方法
libinput 按钮滚动按钮 (512):2
xinput 设置属性 15 512 3
这样当我按住右键并移动鼠标时,它就会滚动。虽然不太理想,但确实有效