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