我正在使用 Xubuntu 17.10。
我试图摆脱鼠标加速,我通过执行以下步骤实现了这一点:
sudo nano /usr/share/X11/xorg.conf.d/50-mouse-acceleration.conf
Run Code Online (Sandbox Code Playgroud)
并在此文件中粘贴以下内容:
Section "InputClass"
Identifier "My Mouse"
MatchIsPointer "yes"
Option "AccelerationProfile" "-1"
Option "AccelerationScheme" "none"
Option "AccelSpeed" "-1"
EndSection
Run Code Online (Sandbox Code Playgroud)
因此,鼠标加速被禁用。尽管设置中的鼠标灵敏度为 30,但速度非常慢。有没有人知道如何停用鼠标加速(不会将鼠标速度降低到这种程度)的不同方法,或者将鼠标灵敏度提高到超过其极限的方法?(我为 Ubuntu 尝试了一些方法,但似乎都不起作用)
我用来xinput控制鼠标速度(我有一个 SteelSeries Rival 310 鼠标):
$ xinput\n\xe2\x8e\xa1 Virtual core pointer id=2 [master pointer (3)]\n\xe2\x8e\x9c \xe2\x86\xb3 SteelSeries SteelSeries Rival 310 eSports Mouse id=12 [slave pointer (2)]\nRun Code Online (Sandbox Code Playgroud)\n\n请注意id=12. 现在发出此命令列出您可以为鼠标操作的所有可能的属性:
$ xinput --list-props 12\nDevice \'SteelSeries SteelSeries Rival 310 eSports Mouse\':\nDevice Enabled (152): 1\nCoordinate Transformation Matrix (154): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000\nlibinput Accel Speed (292): -0.700000\nlibinput Accel Speed Default (293): 0.000000\nlibinput Accel Profiles Available (294): 1, 1\nlibinput Accel Profile Enabled (295): 1, 0\nlibinput Accel Profile Enabled Default (296): 1, 0\nlibinput Natural Scrolling Enabled (288): 0\nlibinput Natural Scrolling Enabled Default (289): 0\nlibinput Send Events Modes Available (273): 1, 0\nlibinput Send Events Mode Enabled (274): 0, 0\nlibinput Send Events Mode Enabled Default (275): 0, 0\nlibinput Left Handed Enabled (297): 0\nlibinput Left Handed Enabled Default (298): 0\nlibinput Scroll Methods Available (299): 0, 0, 1\nlibinput Scroll Method Enabled (300): 0, 0, 0\nlibinput Scroll Method Enabled Default (301): 0, 0, 0\nlibinput Button Scrolling Button (302): 2\nlibinput Button Scrolling Button Default (303): 2\nlibinput Middle Emulation Enabled (304): 0\nlibinput Middle Emulation Enabled Default (305): 0\nDevice Node (276): "/dev/input/event3"\nDevice Product ID (277): 4152, 5920\nlibinput Drag Lock Buttons (290): <no items>\nlibinput Horizontal Scroll Enabled (291): 1\nRun Code Online (Sandbox Code Playgroud)\n\n请注意libinput Accel Speed (292): -0.700000. 这是您想要更改的属性。像这样设置新值:
$ xinput --set-prop 12 "libinput Accel Speed" -0.7\nRun Code Online (Sandbox Code Playgroud)\n\n尝试不同的值以找到最适合您的值。
\n根据ArchLinux 说明,您可以尝试另一种控制加速的方法。
注释掉文件中的这三行:
# Option "AccelerationProfile" "-1"
# Option "AccelerationScheme" "none"
# Option "AccelSpeed" "-1"
Run Code Online (Sandbox Code Playgroud)
并在它们下面插入这些行:
# set the following to 1 1 0 respectively to disable acceleration.
Option "AccelerationNumerator" "2"
Option "AccelerationDenominator" "1"
Option "AccelerationThreshold" "4"
Run Code Online (Sandbox Code Playgroud)
最初尝试此操作,然后将数字一直减少到1, 1,0如果需要完全禁用加速。
上面链接的 ArchLinux 说明包含指向Xorg 文档的链接,其中包含更多详细信息。如果您无法获得满意的结果,请参阅这些说明。deceleration一个关键点是,当你acceleration独自一人无法完成工作时,你可以集中精力。
libinput使用synaptics您可以使用不同的驱动程序;libinput这改变了旧的synaptics做事方式。你必须小心地做出适当的改变。此问答提供了控制鼠标的不同方法libinput:Ubuntu 17.10 上触摸板的自适应加速。
在我的Ubuntu 16.04中,鼠标没有特殊的覆盖并且可以完美地开箱即用:
$ xinput --list-props 10
Device 'Logitech Performance MX':
Device Enabled (159): 1
Coordinate Transformation Matrix (161): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (288): 0
Device Accel Constant Deceleration (289): 1.000000
Device Accel Adaptive Deceleration (290): 1.000000
Device Accel Velocity Scaling (291): 10.000000
Device Product ID (277): 1133, 4122
Device Node (278): "/dev/input/event7"
Evdev Axis Inversion (292): 0, 0
Evdev Axes Swap (294): 0
Axis Labels (295): "Rel X" (169), "Rel Y" (170), "Rel Horiz Wheel" (286), "Rel Vert Wheel" (287)
Button Labels (296): "Button Left" (162), "Button Middle" (163), "Button Right" (164), "Button Wheel Up" (165), "Button Wheel Down" (166), "Button Horiz Wheel Left" (167), "Button Horiz Wheel Right" (168), "Button Side" (281), "Button Extra" (282), "Button Forward" (283), "Button Back" (284), "Button Task" (285), "Button Unknown" (280), "Button Unknown" (280), "Button Unknown" (280), "Button Unknown" (280), "Button Unknown" (280), "Button Unknown" (280), "Button Unknown" (280), "Button Unknown" (280), "Button Unknown" (280), "Button Unknown" (280), "Button Unknown" (280), "Button Unknown" (280)
Evdev Scrolling Distance (297): 1, 1, 1
Evdev Middle Button Emulation (298): 0
Evdev Middle Button Timeout (299): 50
Evdev Third Button Emulation (300): 0
Evdev Third Button Emulation Timeout (301): 1000
Evdev Third Button Emulation Button (302): 3
Evdev Third Button Emulation Threshold (303): 20
Evdev Wheel Emulation (304): 0
Evdev Wheel Emulation Axes (305): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (306): 10
Evdev Wheel Emulation Timeout (307): 200
Evdev Wheel Emulation Button (308): 4
Evdev Drag Lock Buttons (309): 0
Run Code Online (Sandbox Code Playgroud)
我使用常规的 Ubuntu 16.04 设置菜单来设置鼠标灵敏度:
配置文件全部默认:
$ ll /usr/share/X11/xorg.conf.d/
total 44
drwxr-xr-x 2 root root 4096 Mar 4 09:22 ./
drwxr-xr-x 5 root root 4096 Mar 4 09:21 ../
-rw-r--r-- 1 root root 92 Feb 15 2017 10-amdgpu.conf
-rw-r--r-- 1 root root 1099 Mar 3 2016 10-evdev.conf
-rw-r--r-- 1 root root 1350 Oct 13 07:59 10-quirks.conf
-rw-r--r-- 1 root root 590 Mar 3 2016 11-evdev-quirks.conf
-rw-r--r-- 1 root root 364 Mar 3 2016 11-evdev-trackpoint.conf
-rw-r--r-- 1 root root 1751 Mar 3 2016 50-synaptics.conf
-rw-r--r-- 1 root root 115 Mar 3 2016 50-vmmouse.conf
-rw-r--r-- 1 root root 1385 Mar 3 2016 50-wacom.conf
-rw-r--r-- 1 root root 590 Mar 3 2016 51-synaptics-quirks.conf
Run Code Online (Sandbox Code Playgroud)