我在运行Arch Linux。在最近更新的Xorg中,evdev被libinput所取代(默认情况下)。当发生这种情况时,我丢失了用于使我的TrackPoint正常运行的xinput属性。具体来说,我所依赖的属性是:
我不得不将我的系统转回使用evdev。显然,这只是一个短期的解决方案。
我如何在libinput中设置TrackPoint的加减速?xinput list-props没有列出任何明显(对我来说)替代了上述属性的属性。
是否还有其他人使用带有最新xorg服务器和libinput的TrackPoint,并使用自定义的加减速值?
我有很大的显示器,所以我需要光标快速移动,当我有一个长距离的旅行,但我需要它有良好的控制时,选择字符和做其他细节工作。
这些基于evdev的属性很适合我:
Device 'Synaptics Inc. Composite TouchPad / TrackPoint (Stick)':
Device Enabled (152): 1
Coordinate Transformation Matrix (154): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (276): 5
Device Accel Constant Deceleration (277): 3.700000
Device Accel Adaptive Deceleration (278): 4.700000
Device Accel Velocity Scaling (279): 60.000000
Device Product ID (271): 1739, 9
Device Node (272): "/dev/input/event7"
Evdev Axis Inversion (280): 0, 0
Evdev Axes Swap (282): 0
Axis Labels (283): "Rel X" (162), "Rel Y" (163)
Button Labels (284): "Button Left" (155), "Button Middle" (156), "Button Right" (157), "Button Wheel Up" (158), "Button Wheel Down" (159)
Evdev Scrolling Distance (285): 0, 0, 0
Evdev Middle Button Emulation (286): 0
Evdev Middle Button Timeout (287): 50
Evdev Third Button Emulation (288): 0
Evdev Third Button Emulation Timeout (289): 1000
Evdev Third Button Emulation Button (290): 3
Evdev Third Button Emulation Threshold (291): 20
Evdev Wheel Emulation (292): 1
Evdev Wheel Emulation Axes (293): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (294): 10
Evdev Wheel Emulation Timeout (295): 200
Evdev Wheel Emulation Button (296): 2
Evdev Drag Lock Buttons (297): 0我还使用xset m 5给我最后的加速度,我需要。
问题是,如何使用libinput和最新的xorg-server复制这些设置?
发布于 2020-08-10 21:37:06
您仍然可以在新内核和x服务器版本中使用evdev。
我使用的是Debian系统,但它的工作方式应该是类似的。我给出的链接是给阿奇的。
您需要从archlinux的“额外”存储库中安装xf86 86-输入-evdev。
一旦完成,您可以在xorg.conf中指定要为特定设备使用evdev。在我的Thinkpad上,我实际上更喜欢用于trackpoint的libinput,但是对于绝对的其他一切,我更喜欢evdev;也就是说,当设置为使用evdev时,我将向您展示您的跟踪点配置。
# Your Trackpoint evdev rules
Section "InputClass"libinput
Identifier "TrackPoint - force evdev"
Driver "evdev"
# Note: The actual trackpoint name can vary from system to system.
MatchProduct "Synaptics Inc. Composite TouchPad / TrackPoint (Stick)"
Option "AccelerationProfile" "5" # Power function
Option "ConstantDeceleration" "3.7"
Option "AdaptiveDeceleration" "4"
Option "VelocityScale" "60"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "EmulateWheelInertia" "10"
Option "EmulateWheelTimeout" "200"
Option "EmulateThirdButton" "false"
# Maybe this too?
# Option "YAxisMapping" "4 5"
# Can't find an option for middle button timeout, so that may have to be set using xinput afterwards like you're probably already doing.
EndSection
# a device I want to use evdev for, but set all the properties of myself using xinput
Section "InputClass"
Identifier "MS Trackball Optical"
MatchProduct "Microsoft Microsoft Trackball Optical®"
Driver "evdev"
EndSectionhttps://unix.stackexchange.com/questions/341392
复制相似问题