bik*_*ode 5 xorg trackball ubuntu ubuntu-10.04
我有一个肯辛顿轨道光学轨迹球。它有两个按钮和一个轨迹球。我正在使用 Ubuntu 10.04。
我希望将其设置为当我单击并按住鼠标右键(根据 xev 为按钮 3)并移动轨迹球时,我会得到鼠标滚动行为。
过去我曾经通过一些 xorg.conf 文件破坏完成了这一点,但那可能是一年半前的事情了,由于最近的降级,我丢失了配置文件,几个小时的谷歌搜索让我失去了运气。
更让我不高兴的是 xorg.conf 文件本身不再存在,所以似乎还有另一个地方需要配置。这是一个只有两天大的 vanilla Ubuntu 10.04 安装。
我需要什么样的配置来覆盖 evdev 的默认值?
当我加载时,Xorg.0.log 文件会吐出这个:
(II) config/udev: Adding input device Kensington Kensington USB/PS2 Orbit (/dev/input/event5)
(**) Kensington Kensington USB/PS2 Orbit: Applying InputClass "evdev pointer catchall"
(**) Kensington Kensington USB/PS2 Orbit: always reports core events
(**) Kensington Kensington USB/PS2 Orbit: Device: "/dev/input/event5"
(II) Kensington Kensington USB/PS2 Orbit: Found 3 mouse buttons
(II) Kensington Kensington USB/PS2 Orbit: Found relative axes
(II) Kensington Kensington USB/PS2 Orbit: Found x and y relative axes
(II) Kensington Kensington USB/PS2 Orbit: Configuring as mouse
(**) Kensington Kensington USB/PS2 Orbit: YAxisMapping: buttons 4 and 5
(**) Kensington Kensington USB/PS2 Orbit: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Kensington Kensington USB/PS2 Orbit" (type: MOUSE)
(II) Kensington Kensington USB/PS2 Orbit: initialized for relative axes.
Run Code Online (Sandbox Code Playgroud)
解决办法暂时是xinput。我有一个可以运行的小脚本,因此为了将来的知识,我正在寻找的内容包括以下内容:
xinput 实际上将其设置为按我想要的方式工作。具体来说:
xinput set-int-prop "Kensington Kensington USB/PS2 Orbit" "Evdev Wheel Emulation Button" 8 3 xinput set-int-prop "Kensington Kensington USB/PS2 Orbit" "Evdev Wheel Emulation" 8 1
8 并不意味着很多。“3”是我想要映射的按钮。“1”基本上是布尔值 true。
| 归档时间: |
|
| 查看次数: |
2375 次 |
| 最近记录: |