我的加速(和其他)指针设置没有生效。
Xorg.0.log 显示以下内容:
[ 16276.122] (**) Synaptics Inc. Composite TouchPad / TrackPoint (Stick): Applying InputClass "TrackPointClass"
[ 16276.122] (II) Using input driver 'evdev' for 'Synaptics Inc. Composite TouchPad / TrackPoint (Stick)'
这就是我期望看到的。 “TrackPointClass”(我编写的)包含以下加速设置:
Section "InputClass"
Identifier "TrackPointClass"
MatchProduct "TrackPoint"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "Evdev Wheel Emulation" "1"
Option "Evdev Wheel Emulation Button" "2"
Option "Evdev Wheel Emulation Timeout" "200"
Option "Device Accel Profile" "5"
Option "Device Accel Constant Deceleration" "3.7"
Option "Device Accel Adaptive Deceleration" "4.7"
Option "Device Accel Velocity Scaling" "200"
Option "GrabDevice" "yes"
EndSection
根据 Xorg.0.log 中的上述几行,应该应用我的设置......但事实并非如此。
日志继续:
[ 16276.123] (II) systemd-logind: got fd for /dev/input/event7 13:71 fd 39 paused 0
[ 16276.123] (**) Synaptics Inc. Composite TouchPad / TrackPoint (Stick): always reports core events
[ 16276.123] (**) evdev: Synaptics Inc. Composite TouchPad / TrackPoint (Stick): Device: "/dev/input/event7"
[ 16276.198] (--) evdev: Synaptics Inc. Composite TouchPad / TrackPoint (Stick): Vendor 0x6cb Product 0x9
[ 16276.198] (--) evdev: Synaptics Inc. Composite TouchPad / TrackPoint (Stick): Found 3 mouse buttons
[ 16276.198] (--) evdev: Synaptics Inc. Composite TouchPad / TrackPoint (Stick): Found relative axes
[ 16276.198] (--) evdev: Synaptics Inc. Composite TouchPad / TrackPoint (Stick): Found x and y relative axes
[ 16276.198] (--) evdev: Synaptics Inc. Composite TouchPad / TrackPoint (Stick): Found absolute axes
[ 16276.198] (II) evdev: Synaptics Inc. Composite TouchPad / TrackPoint (Stick): Forcing absolute x/y axes to exist.
[ 16276.198] (II) evdev: Synaptics Inc. Composite TouchPad / TrackPoint (Stick): Configuring as mouse
[ 16276.198] (**) evdev: Synaptics Inc. Composite TouchPad / TrackPoint (Stick): YAxisMapping: buttons 4 and 5
[ 16276.198] (**) evdev: Synaptics Inc. Composite TouchPad / TrackPoint (Stick): EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
上面的 EmulateWheelButton: 4 不是我设置的...我设置了 2 下面的下一行(对我来说)表明 udev 配置可能正在应用(并覆盖以前应用的任何内容?)
[ 16276.198] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.4/1-14.4:1.1/input/input7/event7"
请注意,下面的加速曲线不是“TrackPointClass”中指定的。其他加速度值也没有被指定。
[ 16276.198] (II) XINPUT: Adding extended input device "Synaptics Inc. Composite TouchPad / TrackPoint (Stick)" (type: MOUSE, id 12)
[ 16276.198] (II) evdev: Synaptics Inc. Composite TouchPad / TrackPoint (Stick): initialized for relative axes.
[ 16276.198] (WW) evdev: Synaptics Inc. Composite TouchPad / TrackPoint (Stick): ignoring absolute axes.
[ 16276.198] (**) Synaptics Inc. Composite TouchPad / TrackPoint (Stick): (accel) keeping acceleration scheme 1
[ 16276.198] (**) Synaptics Inc. Composite TouchPad / TrackPoint (Stick): (accel) acceleration profile 0
[ 16276.198] (**) Synaptics Inc. Composite TouchPad / TrackPoint (Stick): (accel) acceleration factor: 2.000
[ 16276.198] (**) Synaptics Inc. Composite TouchPad / TrackPoint (Stick): (accel) acceleration threshold: 4
[ 16276.199] (II) config/udev: Adding input device Synaptics Inc. Composite TouchPad / TrackPoint (Stick) (/dev/input/mouse2)
启动 KDE 后,TrackPoint 没有我的加速配置值,并且中键滚动不起作用。
我可以通过运行此脚本来使其工作,该脚本的内容与上面列出的“TrackPointClass”相同。但是,我不想这样做,因为每次切换到虚拟控制台时我的设置都会丢失。我正在寻找持久的解决方案。
#!/bin/bash
xinput set-prop "Synaptics Inc. Composite TouchPad / TrackPoint (Stick)" "Device Accel Profile" "5"
xinput set-prop "Synaptics Inc. Composite TouchPad / TrackPoint (Stick)" "Device Accel Constant Deceleration" "3.7"
xinput set-prop "Synaptics Inc. Composite TouchPad / TrackPoint (Stick)" "Device Accel Adaptive Deceleration" "4.7"
xinput set-prop "Synaptics Inc. Composite TouchPad / TrackPoint (Stick)" "Device Accel Velocity Scaling" "200"
xinput set-prop "Synaptics Inc. Composite TouchPad / TrackPoint (Stick)" "Evdev Wheel Emulation" "1"
xinput set-prop "Synaptics Inc. Composite TouchPad / TrackPoint (Stick)" "Evdev Wheel Emulation Button" "2"
xinput set-prop "Synaptics Inc. Composite TouchPad / TrackPoint (Stick)" "Evdev Wheel Emulation Timeout" "200"
作为测试,我将 /usr/share/X11/xorg.conf.d/40-libinput.conf 移动到 40-libinput.conf.save。这没有帮助。我的“TrackPointClass”目前在 /usr/share/X11/xorg.conf.d/99-trackpoint.conf 中定义。我之前在 /etc/X11/xorg.conf.d/10-trackpoint.conf 中有它。这两个位置都没有解决我的问题。
问题:
- 为什么 xorg 配置没有被应用?
- 我如何解决它?
- 可选:这些默认规则/配置设置来自哪里?
背景:
我更喜欢使用 evdev 驱动程序来获得我需要的加速。根据我的经验,libinput 不足以支持与 3 个高分辨率显示器一起使用的 TrackPoint。使用 libinput 时,我的鼠标对于精细工作来说太快,而对于在屏幕上移动则太慢。
我正在使用 KDE 运行 Arch Linux
更新:
这也不起作用:
Section "InputClass"
Identifier "TrackPointClass"
MatchProduct "TrackPoint"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "WheelEmulation" "1"
Option "WheelEmulationButton" "2"
Option "WheelEmulationTimeout" "200"
Option "DeviceAccelProfile" "5"
Option "DeviceAccelConstantDeceleration" "3.7"
Option "DeviceAccelAdaptiveDeceleration" "4.7"
Option "DeviceAccelVelocityScaling" "200"
Option "GrabDevice" "yes"
EndSection