我不希望鼠标加速某一特定的鼠标,但它已在一般启用。为了做到这一点,我以前使用了一个简单的一行程序,当我升级到17.04时,它已经停止工作了。
老单身汉:
xinput --set-prop 'USB OPTICAL MOUSE' 'Device Accel Profile' -1这可以通过查看xinpuit --list-props 'USB OPTICAL MOUSE'现在列出的内容来解释:
Device 'USB OPTICAL MOUSE':
Device Enabled (140): 1
Coordinate Transformation Matrix (142): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Accel Speed (278): 0.000000
libinput Accel Speed Default (279): 0.000000
libinput Accel Profiles Available (280): 1, 1
libinput Accel Profile Enabled (281): 1, 0
libinput Accel Profile Enabled Default (282): 1, 0
(etc.)xinput --set-prop 'USB OPTICAL MOUSE' 281 -1, 0并没有解决这个问题,所以我没有头绪,我想知道正确的命令是什么。
发布于 2017-04-19 13:30:29
显然,底层代码中的一些更改使您有必要更改用于:xinput --set-prop 'USB OPTICAL MOUSE' 'libinput Accel Profile Enabled' 0, 1的命令。
发布于 2017-05-11 12:35:38
简短的如何@ to 429‘S回答其他老鼠。
编辑不依赖ID。每次重新启动时,它们都会改变(包括libinput的ID)。
(在本例中,G9显示两次;比较xinput list-props 9和xinput list-props 10表明id=9是正确的。)
首先,使用xinput list获取设备ID。
~> xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech G9 Laser Mouse id=9 [slave pointer (2)]
⎜ ↳ Logitech G9 Laser Mouse id=10 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=13 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint id=14 [slave pointer (2)]您可以使用ID或设备的名称。在我的例子中,我必须使用ID,因为这个名称存在两次。ID 9具有以下属性:
~> xinput list-props 9
Device 'Logitech G9 Laser Mouse':
Device Enabled (140): 1
Coordinate Transformation Matrix (142): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Accel Speed (277): 0.000000
libinput Accel Speed Default (278): 0.000000
libinput Accel Profiles Available (279): 1, 1
libinput Accel Profile Enabled (280): 0, 1
(etc.)要更改加速配置文件,ID 280也可以工作:
xinput set-prop 9 280 0, 1https://askubuntu.com/questions/905911
复制相似问题