禁用Logitech轨迹球的“后退”


9

我有一个带四个按钮的Logitech大理石鼠标轨迹球:

在此处输入图片说明

使用说明书在这里,我得50-marblemouse.conf(的xorg.conf)成立,使得保持了“返回”按钮,让我滚动:

Section "InputClass"
        Identifier  "Marble Mouse"
        MatchProduct "Logitech USB Trackball"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "EmulateWheel" "true"
        Option "EmulateWheelButton" "8"
EndSection

但是,有时“保留”注册为单击“后退”,这在我浏览网页时非常烦人。 有什么方法可以使用按钮滚动但禁用单击?

通常的解决方法似乎是使用“前进”按钮进行滚动,因为单击该按钮几乎没有害处,但是我发现不得不用无名指单击该按钮,而不是用拇指按“后退”按钮。



别客气。让我们看看它是否有任何作用,这里没有回答很多问题。
雷维塔夫(Revetahw)说恢复莫妮卡(Monica)

有任何答案对您有帮助吗?我需要奖励或放弃赏金。
雷维塔夫(Revetahw)说恢复莫妮卡(Monica)

@Fiksdal我本周要旅行,无法访问我的桌面,所以我无法尝试它们。
lambshaanxy

Answers:


2

我认为您正在寻找的选项是ButtonMapping。我的鼠标也有类似的烦人功能(https://www.kensington.com/en/no/4493/k72327eu/slimblade-trackball),因此前一阵子已经弄清楚了。

即使禁用按钮或重新分配映射,“ EmulateWheelButton”选项仍然应该起作用。

现在,我仅在evdev上使用xinput进行了测试。使用xinput尝试进行操作要快得多,然后您只需将脚本添加到“启动应用程序”中,而不必修改/ etc / X11 /并一遍又一遍地重新启动X。

因此,这应该是xorg.d / mouse.conf中所需的全部内容(注释行是如果您不想使用登录脚本为每个用户执行此操作所需要的行),尽管您可能不需要在如果使用xinput,则全部使用:

Section "InputDevice"
    Identifier  "Configured Mouse"
    Driver    "evdev"
    Option    "Device"                "/dev/input/mice"
    Option    "Protocol"              "auto"
    #Option    "EmulateWheel"          "1"
    #Option    "EmulateWheelButton"    "8"
    #Option    "ButtonMapping"        "1 2 3 4 5 6 7 0 9 10 11 12"
EndSection

这是我为找出解决方案所做的工作(很明显,在以下命令中将设备替换为设备):

显示设备:

$ xinput list
Virtual core pointer                        id=2    [master pointer  (3)]
  ↳ Virtual core XTEST pointer                  id=4    [slave  pointer  (2)]
  ↳ ELAN Touchscreen                            id=11   [slave  pointer  (2)]
  ↳ SynPS/2 Synaptics TouchPad                  id=13   [slave  pointer  (2)]
  ↳ Kensington Kensington Slimblade Trackball   id=18   [slave  pointer  (2)]

查看该设备支持哪些属性:

$ xinput list-props "Kensington Kensington Slimblade Trackball"
Device 'Kensington Kensington Slimblade Trackball':
    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
    Device Accel Profile (273):        0
    Device Accel Constant Deceleration (274):        1.000000
    Device Accel Adaptive Deceleration (275):        1.000000
    Device Accel Velocity Scaling (276):        10.000000
    Device Product ID (260):        1149, 8257
    Device Node (261):        "/dev/input/event17"
    Evdev Axis Inversion (277):        0, 0
    Evdev Axes Swap (279):        0
    Axis Labels (280):        "Rel X" (152), "Rel Y" (153), "Rel Vert Wheel" (573)
    Button Labels (281):        "Button Left" (145), "Button Middle" (146), "Button Right" (147), "Button Wheel Up" (148), "Button Wheel Down" (149), "Button Horiz Wheel Left" (150), "Button Horiz Wheel Right" (151), "Button Side" (679), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263)
    Evdev Scrolling Distance (282):        1, 1, 1
    Evdev Middle Button Emulation (283):        0
    Evdev Middle Button Timeout (284):        50
    Evdev Third Button Emulation (285):        0
    Evdev Third Button Emulation Timeout (286):        1000
    Evdev Third Button Emulation Button (287):        3
    Evdev Third Button Emulation Threshold (288):        20
    Evdev Wheel Emulation (289):        1
    Evdev Wheel Emulation Axes (290):        0, 0, 4, 5
    Evdev Wheel Emulation Inertia (291):        10
    Evdev Wheel Emulation Timeout (292):        200
    Evdev Wheel Emulation Button (293):        8
    Evdev Drag Lock Buttons (294):        0

现在让我们试一下:

$ xinput set-button-map "Kensington Kensington Slimblade Trackball" 1 2 3 4 5 6 7 0 9 10 11 12
$ xinput set-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation" 1
$ xinput set-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Button" 8

现在,我的右上角按钮仅作为自动滚动而不是令人反感的行为!


1

这是我在2009年在Ubuntu上为这个非常出色的跟踪球所做的配置。我希望它仍然有效,也许您会与“ Driver”和“ Device”有一些区别。但是,按钮选项应该相同。

Code: Section "InputDevice"
Identifier    "Marble Mouse"
Driver        "mouse"
Option        "CorePointer"
Option        "Device"   "/dev/input/mice"
Option        "Protocol"        "ExplorerPS/2"
Option        "Emulate3Buttons"    "true"
Option        "Buttons"        "9"
Option        "EmulateWheel"        "1"
Option        "EmulateWheelButton"    "8"
Option        "YAxisMapping"        "4 5"
Option        "XAxisMapping"        "6 7"
EndSection

因此,我们有:

  • 第三个按钮位于“前进”(9)上,非常方便。
  • 仿真轮在“后退”上(8)
  • 请注意,我同时定义了X和Y轴,这意味着当用拇指按下“后退”时,您可以使用球在两个方向上滚动,就像使用触摸板一样。

0

使用“示例配置#3,放弃‘通过您所提供的后退’按钮”说明链接,你可以重新映射后退按钮更多的东西无害的,如点击鼠标右键。

我不知道你到底如何将其与上面的配置文件合并。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.