Xorg 和设置鼠标属性

Xorg 和设置鼠标属性

我买了一个 Logitech Trackman Marble Mouse,并找到了一些有关如何配置按钮的信息。我决定采用以下配置:

xinput set-button-map "Logitech USB Trackball" 1 9 3 4 5 6 7 8 2
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Button" 8 8
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation" 8 1
xinput set-prop "Logitech USB Trackball" "Evdev Wheel Emulation Axes" 6 7 4 5

然后我尝试将其转换为 Xorg 配置(/etc/X11/xorg.conf.d/50-marblemouse.conf):

Section "InputClass"
        Identifier "Marble Mouse"
        MatchProduct "Logitech USB Trackball"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"

        Option "Floating" "off"
        Option "Buttons" "9"
        Option "ButtonMapping" "1 9 3 4 5 6 7 8 2"
        Option "EmulateWheelButton" "8"
        Option "EmulateWheel" "on"
        Option "YAxisMapping" "4 5"
        Option "XAxisMapping" "6 7"
EndSection

从此配置开始一切都生效除了车轮模拟! 登录后:

% xinput list-props Logitech\ USB\ Trackball|grep "(294)"
        Evdev Wheel Emulation (294):    0

据我所知配置应该是正确的,是吗?

我选择的桌面环境 Gnome 会干扰我的 X 配置吗?

我还注意到,跳转到控制台并返回会将车轮模拟重置为 0。

相关内容