Logitech M570
外观
Logitech M570 是一款无线轨迹球鼠标。它与 Logitech Marble Mouse 非常相似。
安装
无需安装额外的驱动程序。
配置
临时
如果系统未使用 libinput,则可以使用类似以下脚本的脚本即时配置鼠标。
#!/bin/sh dev="Logitech M570" we="Evdev Wheel Emulation" xinput set-int-prop "$dev" "$we" 8 1 xinput set-int-prop "$dev" "$we Button" 8 3
永久
要使更改永久生效,必须在启动/登录时运行类似上述的脚本,或者对 Xorg 配置文件进行更改。更改配置文件时,必须知道并使用 Xorg 报告的产品名称。通常,您的 M570 应识别为 Logitech M570,但检查 /var/log/Xorg.0.log 以匹配产品名称可能很有价值。
在以下两个配置文件中,仅进行了必要的更改以使按钮滚动生效。其他值得注意的选项是:
Option "EmulateWheelInertia" "5"Option "EmulateWheelTimeout" "100"
查明您的系统是仅使用 evdev 还是同时使用 libinput 和 evdev 很重要。请参阅 Xorg#Input devices 以了解如何检查正在使用的驱动程序。
对 Xorg 配置文件所做的更改在 X 会话重新启动之前不会生效。要重新启动 X 会话,只需从窗口管理器注销并重新登录即可。
使用 libinput
为 libinput 创建一个配置文件以识别它。
/etc/X11/xorg.conf.d/41-libinput.conf
Section "InputClass"
Identifier "Logitech M570"
MatchProduct "Logitech M570"
Driver "libinput"
Option "ScrollMethod" "button"
Option "ScrollButton" "3"
Option "MiddleEmulation" "on"
EndSection
使用 evdev
为 evdev 创建一个配置文件以识别它。
/etc/X11/xorg.conf.d/10-evdev.conf
Section "InputClass"
Identifier "Logitech M570"
MatchProduct "Logitech M570"
Driver "evdev"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "3"
EndSection