首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在17.04中禁用鼠标加速

如何在17.04中禁用鼠标加速
EN

Ask Ubuntu用户
提问于 2017-04-17 18:04:00
回答 2查看 3.4K关注 0票数 4

我不希望鼠标加速某一特定的鼠标,但它已在一般启用。为了做到这一点,我以前使用了一个简单的一行程序,当我升级到17.04时,它已经停止工作了。

老单身汉:

代码语言:javascript
复制
xinput --set-prop 'USB OPTICAL MOUSE' 'Device Accel Profile' -1

这可以通过查看xinpuit --list-props 'USB OPTICAL MOUSE'现在列出的内容来解释:

代码语言:javascript
复制
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并没有解决这个问题,所以我没有头绪,我想知道正确的命令是什么。

EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2017-04-19 13:30:29

显然,底层代码中的一些更改使您有必要更改用于:xinput --set-prop 'USB OPTICAL MOUSE' 'libinput Accel Profile Enabled' 0, 1的命令。

票数 3
EN

Ask Ubuntu用户

发布于 2017-05-11 12:35:38

简短的如何@ to 429‘S回答其他老鼠。

编辑不依赖ID。每次重新启动时,它们都会改变(包括libinput的ID)。

(在本例中,G9显示两次;比较xinput list-props 9xinput list-props 10表明id=9是正确的。)

首先,使用xinput list获取设备ID。

代码语言:javascript
复制
~> 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具有以下属性:

代码语言:javascript
复制
~> 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也可以工作:

代码语言:javascript
复制
xinput set-prop 9 280 0, 1
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/905911

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档