Alo*_*nbs 5 mouse mouse-scroll xinput 18.04
我简直不敢相信我花了将近 2 个小时来寻找适合我的答案 - 但我找不到 oune。我知道这之前已经被问过很多次了 - 但似乎没有解决方案适用于我的鼠标(Microsoft 的无线鼠标 + 键盘(单个加密狗))。
问题是滚动太快了,但是当我取出并插入加密狗时,现在滚动太慢了:(。
这是 xinput list short 的输入:
? Virtual core pointer id=2 [master pointer (3)]
? ? Virtual core XTEST pointer id=4 [slave pointer (2)]
? ? Microsoft Microsoft® 2.4GHz Transceiver v7.0 id=9 [slave pointer (2)]
? ? Microsoft Microsoft® 2.4GHz Transceiver v7.0 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)]
? Power Button id=7 [slave keyboard (3)]
? Sleep Button id=8 [slave keyboard (3)]
? Jabra Jabra UC VOICE 150a MS id=12 [slave keyboard (3)]
? Eee PC WMI hotkeys id=13 [slave keyboard (3)]
? Microsoft Microsoft® 2.4GHz Transceiver v7.0 id=10 [slave keyboard (3)]
? Microsoft Microsoft® 2.4GHz Transceiver v7.0 id=14 [slave keyboard (3)]
? Microsoft Microsoft® 2.4GHz Transceiver v7.0 id=15 [slave keyboard (3)]
Run Code Online (Sandbox Code Playgroud)
这是输入:xinput list-props 11:
Device 'Microsoft Microsoft® 2.4GHz Transceiver v7.0':
Device Enabled (152): 1
Coordinate Transformation Matrix (154): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (288): 0
libinput Natural Scrolling Enabled Default (289): 0
libinput Scroll Methods Available (290): 0, 0, 1
libinput Scroll Method Enabled (291): 0, 0, 1
libinput Scroll Method Enabled Default (292): 0, 0, 0
libinput Button Scrolling Button (293): 2
libinput Button Scrolling Button Default (294): 2
libinput Middle Emulation Enabled (295): 0
libinput Middle Emulation Enabled Default (296): 0
libinput Accel Speed (297): -0.007194
libinput Accel Speed Default (298): 0.000000
libinput Accel Profiles Available (299): 1, 1
libinput Accel Profile Enabled (300): 1, 0
libinput Accel Profile Enabled Default (301): 1, 0
libinput Left Handed Enabled (302): 0
libinput Left Handed Enabled Default (303): 0
libinput Send Events Modes Available (273): 1, 0
libinput Send Events Mode Enabled (274): 0, 0
libinput Send Events Mode Enabled Default (275): 0, 0
Device Node (276): "/dev/input/event4"
Device Product ID (277): 1118, 1861
libinput Drag Lock Buttons (304): <no items>
libinput Horizontal Scroll Enabled (305): 1
Run Code Online (Sandbox Code Playgroud)
现在,正如您所看不到的,没有:“设备加速恒定减速”,也没有“Evdev 滚动距离”,这是我读过的一些属性,我应该更改以获得我想要的。
不用说,当我按照其他答案中的建议进行操作时,我得到:
$ xinput set-prop 11 “Evdev 滚动距离” 8 1 1
属性 'Evdev Scrolling Distance' 不存在,您需要指定其类型和格式
$xinput set-prop 11 '设备加速恒定减速' 3
属性 'Device Accel Constant Deceleration' 不存在,您需要指定其类型和格式。
我也尝试定义这些属性 - 但没有成功。请帮助我 - 这让我发疯。
谢谢。
小智 1
我也有这个问题。到目前为止,这不会引发错误:
$ xinput --set-prop 17 --type=float --format=32 "Evdev 滚动距离" 1
但它实际上并没有改变任何事情,至少对我来说。我会继续努力...
编辑:我在这里找到了 evdev 的联机帮助页。我没有从中收集到足够的信息来解决它。不过,我确信下次再确定时间会很有趣。
在继续阅读的过程中,我发现一个名为imwheel的小程序可以运行。
须藤 apt 安装 imwheel
然后创建一个rc文件:
vim ~/.imwheelrc
".*"
None, Up, Button4, 7
None, Down, Button5, 7
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
Run Code Online (Sandbox Code Playgroud)
其中第 2 行和第 3 行以“7”结尾,这是滚动距离(默认为“3”)。尝试使用它,imwheel --kill然后imwheel重新加载更改。最后四行介绍了移动/控制和滚动之间的标准行为。
完整指南在这里并包含更多信息。
| 归档时间: |
|
| 查看次数: |
1123 次 |
| 最近记录: |