AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 688270
Accepted
Killdashnein TV
Killdashnein TV
Asked: 2015-10-22 13:13:54 +0800 CST2015-10-22 13:13:54 +0800 CST 2015-10-22 13:13:54 +0800 CST

鼠标速度太快

  • 772

我的鼠标速度有问题...我有一个带有硬件开关(1000 dpi、1600 dpi、2000 dpi)的游戏鼠标,我将其设置为 1000 dpi,我将鼠标加速度和阈值设置为0. 我尝试用 xset 和 xinput 解决,但它似乎根本不起作用。我不知道如何在最小值下设置鼠标灵敏度...请帮助!运行 Ubuntu 15.04 x86;鼠标:Redragon Centrophorus;提前致谢。


我看了一下:manpages.ubuntu.com/manpages/vivid/man4/mousedrv.4.html,我发现了这个(点击我)

第二个是我已经尝试过的(但没有用)有人知道如何使用第一个选项吗?

mouse
  • 5 5 个回答
  • 28717 Views

5 个回答

  • Voted
  1. Best Answer
    Edward Torvalds
    2015-10-28T10:53:11+08:002015-10-28T10:53:11+08:00
    1. 打开一个终端
    2. 运行命令:xinput --list --short

    罗技 USB 光电鼠标 id=10 [从指针 (2)]

    (这是您将看到的输出的一部分,我找到了鼠标的名称Logitech USB Optical Mouse)

    1. 记下您的设备名称。
    2. 为设备设置恒定减速度:

    xinput --set-prop "Logitech USB 光电鼠标" "设备加速恒减速" 5

    你需要玩数字,这里是 5。不要失去对终端的关注,因为鼠标速度可能变得太快或太慢。数字越小速度越快,同样,数字越高速度越慢。对我1来说太快了,又100太慢了。

    1. 要查看设备的当前设置:

    xinput --list-props “罗技 USB 光电鼠标”

    如果这对您不起作用,您可以随时将其还原:

    xinput --set-prop "Logitech USB Optical Mouse" "Device Accel Velocity Scaling" 1
    xinput --set-prop "Logitech USB Optical Mouse" "Device Accel Profile" -1
    

    参考

    • 26
  2. Mr Invader
    2017-02-21T12:44:44+08:002017-02-21T12:44:44+08:00

    我最终不得不做

    xinput --list --short
    

    正如原始回答者所说,但必须这样做

    xinput set-prop 17(my device id) "Device Accel Constant Deceleration" 2
    

    让它在我的 Xubuntu 16.04 设置上工作,因为我有多个设备匹配 'Microsoft Microsoft Nano Transceiver 1.1' ..

    • 4
  3. Torstein S
    2018-07-04T02:17:14+08:002018-07-04T02:17:14+08:00

    对于 Corsair M65 游戏鼠标,我做了以下操作

    $xinput --list --short ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Corsair Corsair M65 Gaming Mouse id=9 [slave pointer (2)] ⎜ ↳ Corsair Corsair M65 Gaming Mouse id=11 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Power Button id=8 [slave keyboard (3)] ↳ Corsair Corsair M65 Gaming Mouse id=10 [slave keyboard (3)] ↳ Metadot - Das Keyboard Das Keyboard id=12 [slave keyboard (3)] ↳ Metadot - Das Keyboard Das Keyboard id=13 [slave keyboard (3)] ↳ Corsair Corsair M65 Gaming Mouse id=14 [slave keyboard (3)]

    所以我的鼠标 ID 是 9。我得到与此鼠标关联的寄存器:

        $ xinput --list-props 9
    Device Corsair Corsair M65 Gaming Mouse:
        Device Enabled (149):   1
        Coordinate Transformation Matrix (151): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        libinput Natural Scrolling Enabled (286):   0
        libinput Natural Scrolling Enabled Default (287):   0
        libinput Scroll Methods Available (288):    0, 0, 1
        libinput Scroll Method Enabled (289):   0, 0, 0
        libinput Scroll Method Enabled Default (290):   0, 0, 0
        libinput Button Scrolling Button (291): 2
        libinput Button Scrolling Button Default (292): 2
        libinput Middle Emulation Enabled (293):    1
        libinput Middle Emulation Enabled Default (294):    0
        libinput Accel Speed (295): 0
        libinput Accel Speed Default (296): 0.000000
        libinput Accel Profiles Available (297):    1, 1
        libinput Accel Profile Enabled (298):   1, 0
        libinput Accel Profile Enabled Default (299):   1, 0
        libinput Left Handed Enabled (300): 0
        libinput Left Handed Enabled Default (301): 0
        libinput Send Events Modes Available (271): 1, 0
        libinput Send Events Mode Enabled (272):    0, 0
        libinput Send Events Mode Enabled Default (273):    0, 0
        Device Node (274):  "/dev/input/event3"
        Device Product ID (275):    6940, 6917
        libinput Drag Lock Buttons (302):   <no items>
        libinput Horizontal Scroll Enabled (303):   1
    

    我将 libinput Accel Speed (295) 设置为 -1 以减慢速度。

    $xinput -set-prop 9 295 -1
    

    然后我将其添加到启动应用程序中。

    • 4
  4. buyus
    2018-07-15T10:47:57+08:002018-07-15T10:47:57+08:00

    如果ConstantDeceleration不可用,您可以使用负加速度。

    在 Debian XFCE 中,我使用了:

    xinput set-prop 8 "libinput Accel Speed" -0.9
    
    • 3
  5. Craig Hicks
    2017-08-15T13:03:10+08:002017-08-15T13:03:10+08:00

    今天早上我的老鼠一定是喝了太多咖啡。我试图通过它使它镇静,System Setting | Mouse & Touchpad但它绝对没有效果。这里的问答对我很有帮助。我描述了我自己的经验,可能对其他人有用:


    一些相关的在线文档: https ://www.x.org/wiki/Development/Documentation/PointerAcceleration 说明如下:

    场景

    如果你的鼠标移动得太快,?ConstantDeceleration 是你的朋友。设置为 2 或更高以相应地划分速度。这不会丢弃精度(至少仅在 nv-reset 上,参见速度近似或下文)。

    如果您的高性能设备对加速反应不佳,您可能需要先降低速度缩放。

    如果您喜欢速度但需要在像素级别进行更多控制,则应将 ?AdaptiveDeceleration 设置为 2 或更多。这允许将缓慢的运动减速到给定的因素。您可能希望通过将 ?VelocityReset 设置为 500 ms 来避免 nv-resets,并且可能调整速度缩放以调整结果。

    第 1 步 - 查找设备 ID:(如@edward-torvalds 的回答)

    (lf-env) craig@craig-desktop:~/work/leaflet-1$ xinput --list --short
    ⎡ Virtual core pointer                      id=2    [master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
    ⎜   ↳ MOSART Semi. 2.4G Wireless Mouse          id=11   [slave  pointer  
    

    我的鼠标是id==11,这个数字可以用来设置属性。也可以使用字段名称。 将命令写入启动文件时,应使用字段名称,因为设备 ID 可以动态更改(参见此处)。

    第 2 步 - 查找当前设备设置和属性 ID 号:

    (lf-env) craig@craig-desktop:~/work/leaflet-1$ xinput -list-props 11
    Device 'MOSART Semi. 2.4G Wireless Mouse':
        ...
        Device Accel Profile (262): 0
        Device Accel Constant Deceleration (263):   1.000000
        Device Accel Adaptive Deceleration (264):   1.000000
        Device Accel Velocity Scaling (265):    10.000000
        ...
    

    我最终决定调整的属性如下:

    Device Accel Constant Deceleration (263):   [original value 1.0]
    Device Accel Adaptive Deceleration (264):   [original value 1.0]
    Device Accel Velocity Scaling (265):            [original value 100.0]
    

    上面提到的在线文档给出了这些值的描述。在这里,我根据主观“感觉”和该文档添加了一些描述。

    • Device Accel Constant Deceleration (263):——鼠标灵敏度。较低的设置较慢。感觉鼠标速度除以这个因素。

    • Device Accel Adaptive Deceleration (264):——当鼠标以低速移动时,速度进一步除以该因子。整体感觉是有两个独立的档位,低速档和高速档。就我个人而言,我通过将设置与生理传动装置相匹配获得了最佳结果:对于低速传动装置,我的掌跟向下并且我用我的手指肌肉进行精细的鼠标移动。对于高速档,我的掌跟向上或滑动,我用手臂肌肉做大幅度的运动,同时牢牢抓住鼠标。控制过渡可能有点棘手——如果有另一个输入来判断掌跟是向上/滑动还是向下/固定,那就完美了!

    • Device Accel Velocity Scaling (265):——这个因子划分原始数值数据,作用类似于“Device Accel Constant Deceleration”,但也丢弃了整数分辨率。?也许。

    我目前的设置如下:

    (lf-env) craig@craig-desktop:~/work/leaflet-1$ xinput -set-prop 11 263 10
    (lf-env) craig@craig-desktop:~/work/leaflet-1$ xinput -set-prop 11 264 1000
    (lf-env) craig@craig-desktop:~/work/leaflet-1$ xinput -set-prop 11 265 10
    
    (lf-env) craig@craig-desktop:~/work/leaflet-1$ xinput -list-props 11
    Device 'MOSART Semi. 2.4G Wireless Mouse':
    ...
        Device Accel Profile (262): 0
        Device Accel Constant Deceleration (263):   10.000000
        Device Accel Adaptive Deceleration (264):   1000.000000
        Device Accel Velocity Scaling (265):    10.000000
    ...
    
    • 1

相关问题

  • 安装过程中无法识别键盘/鼠标

  • 为什么我不能点击东西(软件相关问题)?[关闭]

  • Firefox 鼠标中键滚动

  • 如何为不同的鼠标设置不同的设置?

  • 什么可能会阻止 xrandr 屏幕之间的鼠标移动?[关闭]

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve