ubuntu - 哪个 xinput 设置会反转鼠标滚轮的方向?

标签 ubuntu scroll vertical-scrolling xinput scrollwheel

我正在尝试遵循 this 的建议问题,使用 xinput为我的鼠标滚轮启用自然滚动的工具。

我通过 $ xinput list 列出我的输入设备并获得以下信息:

$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                     id=12   [slave  pointer  (2)]
⎜   ↳ Dell Dell USB Optical Mouse               id=14   [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                         id=9    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=10   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                    id=13   [slave  keyboard (3)]

相关设备是Dell Dell USB Optical Mouse id=14 .我通过 $ xinput list-props 14 列出了该设备的属性,并得到
$ xinput list-props 14
Device 'Dell Dell USB Optical Mouse':
        Device Enabled (140):   1
        Coordinate Transformation Matrix (142): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        Device Accel Profile (266):     0
        Device Accel Constant Deceleration (267):       1.000000
        Device Accel Adaptive Deceleration (268):       1.000000
        Device Accel Velocity Scaling (269):    10.000000
        Device Product ID (260):        16700, 12306
        Device Node (261):      "/dev/input/event12"
        Evdev Axis Inversion (306):     0, 0
        Evdev Axes Swap (308):  0
        Axis Labels (309):      "Rel X" (150), "Rel Y" (151), "Rel Vert Wheel" (775)
        Button Labels (310):    "Button Left" (143), "Button Middle" (144), "Button Right" (145), "Button Wheel Up" (146), "Button Wheel Down" (147), "Button Horiz Wheel Left" (148), "Button Horiz Wheel Right" (149)
        Evdev Scrolling Distance (311): 1, 1, 1
        Evdev Middle Button Emulation (312):    0
        Evdev Middle Button Timeout (313):      50
        Evdev Third Button Emulation (314):     0
        Evdev Third Button Emulation Timeout (315):     1000
        Evdev Third Button Emulation Button (316):      3
        Evdev Third Button Emulation Threshold (317):   20
        Evdev Wheel Emulation (318):    0
        Evdev Wheel Emulation Axes (319):       0, 0, 4, 5
        Evdev Wheel Emulation Inertia (320):    10
        Evdev Wheel Emulation Timeout (321):    200
        Evdev Wheel Emulation Button (322):     4
        Evdev Drag Lock Buttons (323):  0

我可以更改其中哪些(如果有)来反转滚轮方向?

我尝试调整 Evdev Axis Inversion (306)属性通过命令 $ xinput set-prop 14 306 1, 1 ,但这显然是针对鼠标移动方向,而不是滚轮方向——我不得不把它改回来。

做任何这些xinput设置反转滚轮方向?如果没有,那么也许我需要尝试另一种方法。我的操作系统是 Ubuntu 16.04.2 LTS。

最佳答案

尝试运行

$ xinput set-prop 14 311 -1 1 1

将“Evdev 滚动距离”设置为垂直移动的负值。

关于ubuntu - 哪个 xinput 设置会反转鼠标滚轮的方向?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44769753/

相关文章:

javascript - 当页面滚动到一定数量的像素时,可以使用 jQuery/Javascript 隐藏 html div 吗?

html - 无法使框水平滚动而不是垂直滚动

node.js - 无法连接到 EC2 + 弹性 IP

ubuntu - 在 Bluez 5.31 中禁用对 LE 广告的随机地址的支持

windows-7 - WAMP 和 EasyPHP 可以共存吗?为什么会这样?

html - 最大高度不适用于 table

javascript - 结合航点和水平滚动

Python: mechanize has no attribute 'TextControl' 错误

Android:是否可以在标签 View 的鳍状肢中使用 ScrollView ?

ios - CSS Scroll-Snapping 不断跳过它应该捕捉到的元素之一