如何调整鼠标滚动速度?

这个问题多次被问到没有答案。 我已经使用了我的基本Google技能,并没有遇到过修复。 这是系统范围的。 我的鼠标滚动速度太快了。

我是ubuntu和linux的新手。 切换样式或其所谓的任何东西(Ubuntu,KDE,Xubuntu)都会有帮助吗? 我可以输入终端代码吗?

我移除了无线鼠标附带的USB加密狗并将其插回并立即修复了滚动速度。

要更改鼠标参数:

  • 列出外围设备,注意鼠标设备名称的好号码!

     xinput list 
  • 从外围号码9列出参数

     xinput list-props 9 
  • 将外围设备9的加速度设置为值3.值越高,加速度越大。 对于等于1的值,加速度是最大的。“基础”值似乎是1.7,对我来说……

     xinput set-prop 9 'Device Accel Constant Deceleration' 3 

要永久设置更改:
目录中的隐藏文件是“.profile”(Ctrl + H以查看隐藏文件)双击它并打开它。 复制粘贴上一个命令。 而已!

PS为所有用户应用相同的命令,您可以编辑文件/ etc / profile(不是隐藏文件)。

玩得开心。

我有一台Logitech PerformanceMouse MX,这里没有任何解决方案。 唯一对我有用的是使用这个项目的某些部分。

  1. 添加此 PPA,然后安装xserver-xorg-input-evdev
  2. 查看Solaar项目并运行rules.d/install.sh 。 它会将udev规则复制到适当的位置,并在必要时询问权限。
  3. 取下接收器并将其重新插入。
  4. 将自己添加到plugdev组: $ sudo gpasswd -a plugdev $ sudo gpasswd -a
  5. 退出并重新登录。

现在,您可以使用以下xinput命令设置滚动速度( 源 ):

 $ xinput set-prop  "Evdev Scrolling Distance" 8 1 1 # for smooth scroll $ xinput set-prop  "Evdev Scrolling Distance" -8 1 1 # for smooth 'natural' scroll 

8更改为较低值会增加灵敏度。 将其翻转为负值会改变滚动的方向。 增加该值会降低灵敏度。

首先检查哪个设备是鼠标:

 xinput list 

现在在那里选择鼠标的ID,并列出其当前设置:

 xinput list-props  

然后更改设置,因为Evdev scrolling distance [vertical] [horizontal] [dial]

 xinput set-prop  'Evdev Scrolling Distance' 1 3 5 

其中最后三个数字的组合是鼠标依赖的:

  • 第一个数字,滚动方向(减去反向)
  • 第二个数字,以某种方式滚动的速度
  • 第三个数字,以某种方式滚动的速度
  • 将这些值更改为更大的数字意味着您滚动更慢(AgentME)。

我编写了一个简单的脚本,允许您查找哪个设备具有此属性( 该脚本基本上遍历所有xinput设备并仅列出具有包含scroll任何属性的设备 )。

  xinput list | cut -f2 | cut -f2 -d'=' | xargs -d $'\n' -I'{}' sh -c "xinput list-props '{}' | grep -iq scroll && (echo Listing dev id '{}'; xinput list-props '{}')" xinput --set-prop 11 295 

请注意,例如在Firefox中,您可以设置about:config

 mousewheel.system_scroll_override_on_root_content.vertical.factor 

记得要设置

 mousewheel.system_scroll_override_on_root_content.enabled 

为真。

这个解决方案对我有用:

 sudo apt-get install imwheel zenity 

创建一个bash脚本并插入:

 #!/bin/bash # Version 0.1 Tuesday, 07 May 2013 # Comments and complaints http://www.nicknorton.net # GUI for mouse wheel speed using imwheel in Gnome # imwheel needs to be installed for this script to work # sudo apt-get install imwheel # Pretty much hard wired to only use a mouse with # left, right and wheel in the middle. # If you have a mouse with complications or special needs, # use the command xev to find what your wheel does. # ### see if imwheel config exists, if not create it ### if [ ! -f ~/.imwheelrc ] then cat >~/.imwheelrc< 

现在运行脚本并设置所需的鼠标滚轮速度。

感谢: http : //www.nicknorton.net/? q = node10

除了所有这些之外你可以使用旧的好的synaptics驱动程序(是的我知道它不再受支持但是老实说libinput文档很难吸收)。
如果您是18.04或以上,只需安装synaptics:

 sudo apt-get install xserver-xorg-input-synaptics 

现在转到/usr/share/X11/xorg.conf.d并编辑文件70-synaptics.conf

 cd /usr/share/X11/xorg.conf.d sudo nano 70-synaptics.conf 

找到Section "InputClass" Identifier "touchpad catchall"然后添加以下选项:

 Option "VertScrollDelta" "16" Option "HorizScrollDelta" "16" 

默认数字为26 ,滚动速度越快,滚动速度越慢。 最后它应该是这样的:

 Section "InputClass" Identifier "touchpad catchall" Driver "synaptics" MatchIsTouchpad "on" # This option is recommend on all Linux systems using evdev, but cannot be # enabled by default. See the following link for details: # http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html # MatchDevicePath "/dev/input/event*" Option "VertScrollDelta" "16" Option "HorizScrollDelta" "16" EndSection 

保存文件并关闭它( Ctrl + O然后按Enter然后按Ctrl + X )。

注销并重新登录以使更改生效。

Synaptics驱动程序是一个具有巨大选项的驱动程序我不知道世界上谁已决定转向NO OPTION libinput。
其他选项可在以下位置找到:
https://www.x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html