如何在 Raspberry OS / Debian 11 上禁用鼠标加速?

如何在 Raspberry OS / Debian 11 上禁用鼠标加速?

我想在我的 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


尝试失败:

每个选项都一一测试,首先重新加载 lightdm,然后由于没有更改而重新启动系统。

同样的鼠标在我的日常驱动程序以及 Debian 11(较低内核)上运行得非常好。


用 Gentoo 测试,没有任何鼠标延迟。 Debian ARM 版本有问题吗?

答案1

如何完全禁用鼠标加速:

  1. /boot/cmdline.txt在文本编辑器中打开
  2. 添加到命令行usbhid.mousepoll=0
  3. 重启

相关内容