我想在我的 RasPi 4 中完全禁用鼠标加速。从未使用过也不需要这样的功能。
pg@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
pg@raspberrypi:~ $ uname -a
Linux raspberrypi 5.15.84-v8+ #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 aarch64 GNU/Linux
pg@raspberrypi:~ $ xinput --list --short
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ MOSART Semi. 2.4G Wireless Mouse id=6 [slave pointer (2)]
⎜ ↳ MOSART Semi. 2.4G Wireless Mouse Consumer Control id=7 [slave pointer (2)]
pg@raspberrypi:~ $ xinput --list-props 6
Device 'MOSART Semi. 2.4G Wireless Mouse':
Device Enabled (152): 1
Coordinate Transformation Matrix (153): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (282): 0
libinput Natural Scrolling Enabled Default (283): 0
libinput Scroll Methods Available (284): 0, 0, 1
libinput Scroll Method Enabled (285): 0, 0, 0
libinput Scroll Method Enabled Default (286): 0, 0, 0
libinput Button Scrolling Button (287): 2
libinput Button Scrolling Button Default (288): 2
libinput Button Scrolling Button Lock Enabled (289): 0
libinput Button Scrolling Button Lock Enabled Default (290): 0
libinput Middle Emulation Enabled (291): 0
libinput Middle Emulation Enabled Default (292): 0
libinput Accel Speed (293): 1.000000
libinput Accel Speed Default (294): 0.000000
libinput Accel Profiles Available (295): 1, 1
libinput Accel Profile Enabled (296): 1, 0
libinput Accel Profile Enabled Default (297): 1, 0
libinput Left Handed Enabled (298): 0
libinput Left Handed Enabled Default (299): 0
libinput Send Events Modes Available (300): 1, 0
libinput Send Events Mode Enabled (301): 0, 0
libinput Send Events Mode Enabled Default (302): 0, 0
Device Node (303): "/dev/input/event0"
Device Product ID (304): 1578, 16642
libinput Drag Lock Buttons (305): <no items>
libinput Horizontal Scroll Enabled (306): 1
尝试失败:
/usr/share/X11/xorg.conf.d/50-mouse-acceleration.conf
根据创建如何在 Debian 上禁用鼠标加速?/usr/share/X11/xorg.conf.d/95-mouse-accel.conf
根据创建https://www.reddit.com/r/linux_gaming/comments/535ng5/how_to_disable_mouse_acceleration_with_libinput/- 使用
"Device Accel Constant Deceleration"
按照https://askubuntu.com/questions/205676/how-to-change-mouse-speed-sensitivity - 按照
libinput Accel Speed
和的值进行操作Coordinate Transformation Matrix
https://patrickmn.com/aside/lowering-gaming-mouse-sensitivity-in-ubuntu-9-10/ /usr/share/X11/xorg.conf.d/50-mouse-acceleration.conf
根据创建不同https://wiki.archlinux.org/title/Mouse_acceleration#Setting_mouse_accelerationxset 5 1
按照https://ubuntuforums.org/showthread.php?t=748412#4- 设置
Access Profile Enabled -1
为我想法 https://www.x.org/wiki/Development/Documentation/PointerAcceleration/表明 - 显然我认为错了
每个选项都一一测试,首先重新加载 lightdm,然后由于没有更改而重新启动系统。
同样的鼠标在我的日常驱动程序以及 Debian 11(较低内核)上运行得非常好。
用 Gentoo 测试,没有任何鼠标延迟。 Debian ARM 版本有问题吗?
答案1
如何完全禁用鼠标加速:
/boot/cmdline.txt
在文本编辑器中打开- 添加到命令行
usbhid.mousepoll=0
- 重启