这个问题被问了很多次,没有答案。我已经使用了我的基本 Google 技能,但还没有找到修复方法。这是系统范围的。我的鼠标滚动得太快了。
我一般是 ubuntu 和 linux 的新手。切换样式或其他任何名称(Ubuntu、KDE、Xubuntu)有帮助吗?有我可以输入的终端代码吗?
小智 476
我移除了无线鼠标随附的 USB 加密狗并将其插回并立即修复了我的滚动速度。
Mao*_*ani 65
已确认在 20.04 开始工作:
sudo apt install imwheelbash <(curl -s http://www.nicknorton.net/mousewheel.sh)bash <(curl -s https://gist.githubusercontent.com/AshishKapoor/6f054e43578659b4525c47bf279099ba/raw/0b2ad8b67f02ebb01d99294b0ecb6feacc078f67/mousewheel.sh)Wheel Scroll Speed、命令= imwheel、注释= Activates wheel scroll speed fix on system startup(或您喜欢的任何内容)重要的提示:
如果您有额外的鼠标按钮,这可能会使其功能变得混乱。如果按照这些说明操作后发现某些按钮行为异常,您可以随时通过删除imwheel启动应用程序并重新启动计算机来“返回”。
但是,您仍然可以通过在命令中指定要修改的按钮来完成此操作imwheel。
imwheel -b "45"这可能适用于某些鼠标类型。
imwheel -b "4 5 6 7"这也可能有效。
无论如何,您可以尝试找出您自己的特定鼠标滚轮的按钮编号,并仅指定它们。
首次运行时以及作为启动应用程序输入的命令时,请使用带有按钮编号的命令。
解决方案摘自此处
基于此的重要说明
小智 34
更改鼠标参数:
列出外围设备,记下带有鼠标设备名称的好编号!
xinput list
Run Code Online (Sandbox Code Playgroud)列出外围设备编号 9 的参数
xinput list-props 9
Run Code Online (Sandbox Code Playgroud)将外围设备 9 的加速度设置为值 3。该值越高,您除以的加速度越多。对于等于 1 的值,加速度是最大值。“基数”值似乎是 1.7,对我来说......
xinput set-prop 9 'Device Accel Constant Deceleration' 3
Run Code Online (Sandbox Code Playgroud)要永久设置更改:
目录中的隐藏文件是“.profile”(Ctrl+H 查看隐藏文件)双击并打开它。将上一个命令复制粘贴到最后。就是这样!
PS 要对所有用户应用相同的命令,您可以编辑文件 /etc/profile(不是隐藏文件)。
玩得开心。
Léo*_* 준영 29
首先检查哪个设备是鼠标:
xinput list
Run Code Online (Sandbox Code Playgroud)
现在在那里选择鼠标的 ID,并列出其当前设置:
xinput list-props <device-id>
Run Code Online (Sandbox Code Playgroud)
然后像这样更改设置 Evdev scrolling distance [vertical] [horizontal] [dial]
xinput set-prop <device-id> 'Evdev Scrolling Distance' 1 3 5
Run Code Online (Sandbox Code Playgroud)
其中最后三个数字的组合取决于鼠标:
小智 25
我有一个 Logitech PerformanceMouse MX,这里没有一个解决方案有效。唯一对我有用的是使用这个项目的某些部分。
xserver-xorg-input-evdev.rules.d/install.sh. 它会将 udev 规则复制到适当的位置,并在必要时询问权限。plugdev组中:$ sudo gpasswd -a <your-username plugdev现在您可以使用以下xinput命令(source)设置滚动速度:
$ xinput set-prop <devnum> "Evdev Scrolling Distance" 8 1 1 # for smooth scroll
$ xinput set-prop <devnum> "Evdev Scrolling Distance" -8 1 1 # for smooth 'natural' scroll
Run Code Online (Sandbox Code Playgroud)
将 更改8为较低的值会增加灵敏度。将其翻转为负值会更改滚动方向。增加该值会降低灵敏度。
小智 22
这个解决方案对我有用:
sudo apt-get install imwheel zenity
Run Code Online (Sandbox Code Playgroud)
创建一个 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<<EOF
".*"
None, Up, Button4, 1
None, Down, Button5, 1
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
EOF
fi
##########################################################
CURRENT_VALUE=$(awk -F 'Button4,' '{print $2}' ~/.imwheelrc)
NEW_VALUE=$(zenity --scale --window-icon=info --ok-label=Apply --title="Wheelies" --text "Mouse wheel speed:" --min-value=1 --max-value=100 --value="$CURRENT_VALUE" --step 1)
if [ "$NEW_VALUE" == "" ];
then exit 0
fi
sed -i "s/\($TARGET_KEY *Button4, *\).*/\1$NEW_VALUE/" ~/.imwheelrc # find the string Button4, and write new value.
sed -i "s/\($TARGET_KEY *Button5, *\).*/\1$NEW_VALUE/" ~/.imwheelrc # find the string Button5, and write new value.
cat ~/.imwheelrc
imwheel -kill
# END OF SCRIPT FILE
Run Code Online (Sandbox Code Playgroud)
现在运行脚本并设置所需的鼠标滚轮速度。
感谢:http : //www.nicknorton.net/? q= node/10
tes*_*t30 20
我编写了一个简单的脚本,它允许您找到哪个设备具有此属性(该脚本基本上遍历所有 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
Run Code Online (Sandbox Code Playgroud)
请注意,例如在 Firefox 中,您可以设置 about:config
mousewheel.system_scroll_override_on_root_content.vertical.factor
Run Code Online (Sandbox Code Playgroud)
记得设置
mousewheel.system_scroll_override_on_root_content.enabled
Run Code Online (Sandbox Code Playgroud)
为真。
小智 5
除了所有这些你可以使用旧的好的突触驱动程序(是的,我知道它不再受支持,但老实说,libinput文档很糟糕)。
如果您使用的是 18.04 或更高版本,只需安装突触:
sudo apt-get install xserver-xorg-input-synaptics
Run Code Online (Sandbox Code Playgroud)
现在去/usr/share/X11/xorg.conf.d编辑文件70-synaptics.conf
cd /usr/share/X11/xorg.conf.d
sudo nano 70-synaptics.conf
Run Code Online (Sandbox Code Playgroud)
找到该部分,Section "InputClass" Identifier "touchpad catchall"然后添加这些选项:
Option "VertScrollDelta" "16"
Option "HorizScrollDelta" "16"
Run Code Online (Sandbox Code Playgroud)
默认数字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
Run Code Online (Sandbox Code Playgroud)
保存文件并关闭它(Ctrl + O然后Enter然后Ctrl + X)。
注销并重新登录以使更改生效。
Synaptics 驱动程序是一个具有大量选项的驱动程序,我不知道世界上谁决定转向 NO OPTION libinput。
其他选项可以在以下位置找到:https :
//www.x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html