如何改变鼠标速度/灵敏度?
我在Ubuntu 12.10上使用Asus Zenbook UX32VD。 在12.04和12.10中我都无法改变鼠标速度(即鼠标/触摸板对话框中的“灵敏度”)。 我可以更改滑块,但没有任何变化。
这对我来说是个大问题,因为鼠标速度有点慢。 有什么建议?
问题在于触摸板和鼠标。
首先,我们需要识别输入device ID
以更改速度/灵敏度。 打开终端并运行以下命令:
xinput --list --short
输出:
abcd@abcd-abcde:~$ xinput --list --short Virtual core pointer ↳ SynPS/2 Synaptics TouchPad id=11 [slave pointer (2)] ↳ Logitech USB RECEIVER id=12 [slave pointer (2)]
我的指点设备是Logitech USB RECEIVER
和Synaptics TouchPad
。 列出设备属性:
xinput --list-props "SynPS/2 Synaptics TouchPad"
编辑:
另一种选择: xinput --list-props 11
as 11
是上面在其父属性(SynPS / 2 Synaptic TouchPad)中显示的数字。
现在减少它的属性值以满足您的需要:
Device Accel Constant Deceleration (267): 2.500000
使用此命令:
xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Constant Deceleration" 1.5
编辑:
另一种选择: xinput --set-prop 11 267 1.5
其中11
是设备,就像上面一样, 267
是设备属性的ID(Device Accel Constant Decleration),你可以看到当设备11
列出所有属性时附着,最后1.5
是你想要的速度。
您可能需要稍微使用此数字来根据需要进行设置。
如果您需要在每次Ubuntu启动时自动设置此值,那么:
创建一个.sh文件
#!/bin/sh xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Constant Deceleration" 1.5
将文件更改为可执行文件:
chmod +x
并将其放入启动应用程序列表中。
来源: 手动配置鼠标速度
Ubuntu 12.10 64位,罗技无绳TrackMan
xinput对我没有任何帮助。
xset q
检查设置
xset mouse 3 0
这将加速度设置为3,将阈值设置为零。 不是很好的设置,但比以前更好。
如果要使用小数值,可以输入小数(即3/2)而不是浮点数。
手册页说明在注销/重启时设置将丢失。
您可以使用这些脚本设置每个系统启动的触摸板和鼠标速度:
#!/bin/sh TP=$(xinput --list --short|grep -i touchpad|cut -f 1 | cut -d" " -f 5-|sed 's/\s\+$//g') xinput --set-prop "$TP" "Device Accel Constant Deceleration" 1.5 xinput --set-prop "$TP" "Device Accel Velocity Scaling" 10
对我来说,我认为1.5和10是适合触摸板的值。
我也使用罗技usb鼠标。
因此,对于Logitech鼠标,请使用以下脚本:
#!/bin/sh MOUSE=$(xinput --list --short|grep -i Logitech| cut -f 1|cut -d" " -f 5-|sed 's/\s\+$//g') xinput --set-prop "$MOUSE" "Device Accel Constant Deceleration" 1.2 xinput --set-prop "$MOUSE" "Device Accel Velocity Scaling" 10
对我来说,我认为1.2和10是适合鼠标的值。
我在Github上创建了一个项目: https : //github.com/rubo77/mouse-speed
运行sudo xset m 1 1
对我sudo xset m 1 1
。 我的鼠标速度现在表现为Windows平台中的正常行为。
上面提到的“Device Accel …”选项在我的机器上不存在。 联想T440s运行Ubuntu 18.04
相反,我成功使用这些:
xinput --set-prop "TPPS/2 IBM TrackPoint" "Coordinate Transformation Matrix" 0.5 0 0 0 0.5 0 0 0 1
原来的“坐标转换矩阵”是1 0 0 0 1 0 0 0 1我现在有一半的速度,这对我来说足够慢。
使用此语法,我们可以分别调整水平和垂直速度。
我使用’简单’配置文件来增加鼠标分辨率而不加速。
#!/bin/bash device="Dell Dell USB Optical Mouse" resolution_percent="241" # Greater than 100, use constant deceleration otherwise with profile -1. xinput set-prop "$device" "Device Accel Profile" 4 # Simple profile with threshold 0 allows constant scaling up xinput set-ptr-feedback "$device" 0 "$resolution_percent" 100 # Set threshold to 0 and acceleration to $resolution_percent/100
您必须使用特定的设备名称修改脚本。 您可以通过运行不带参数的xinput来查找它。 此外,每次连接鼠标或启动系统时都必须运行脚本。
在将指针移动到屏幕上的某个位置之前,我通过闭上眼睛来微调减速度。 经过5次调整,现在我的鼠标移动了很多,就像我期待的那样。
这就是我现在使用的那条线:
xinput --set-prop "Bluetooth Mouse M557" "Device Accel Constant Deceleration" 2.3
只想添加以前的答案,可能不会有"Device Accel Constant Deceleration"
属性。 例如,我没有在Kubuntu 17.04中使用Logitech G600。 但是有"Coordinate Transformation Matrix"
,它更具力量
我在Mac上运行16.04,xinput与Magic Mouse一起运行良好。 我唯一需要做的就是以root身份运行它:
sudo xinput --set-prop 14 271 3.0
(我对这只鼠标的快速性印象深刻)