Ubuntu 22.04 使用 Wayland 显示服务器。应用程序要么本地使用 wayland,要么通过 X/xorg 兼容层。(Xwayland)。另请参阅如何判断应用程序是否正在使用 XWayland
在我的盒子上,大多数应用程序都是本机 Wayland,但 Firefox 默认情况下使用 Xwayland。
我相信输入事件是由libinput处理的。如果我从 libinput-tools 包运行该工具libinput debug-events,它会显示两个手指滚动的事件。该文档描述了如何为Wayland 应用程序和 xorg 应用程序配置输入设备。
xinput 似乎不再是配置输入设备的正确工具。请参阅手册页中的警告。如果有的话,它只能使用 Xwayland 兼容层配置应用程序。
对于 Wayland 应用程序,libinput 常见问题解答指出:
使用桌面环境提供的配置工具(例如 gnome-control-center)
由于ubuntu设置目前不提供配置两指滚动速度的选项,我相信目前不可能做到这一点。
您可以使 Firefox 使用本机 wayland 而不是 Xwayland,对我来说,它提高了滚动速度(减慢了速度)。怎么做:
sudo gedit /etc/environmentMOZ_ENABLE_WAYLAND=1来源:https ://ubuntuhandbook.org/index.php/2022/09/enable-wayland-firefox-chrome/
希望这可以帮助
小智 6
尝试以下步骤:
跑步:
sudo xinput list
Run Code Online (Sandbox Code Playgroud)
'id of touchpad'并找到计算机触摸板 ( ) 的 ID 。
下次运行:
xinput list-props 'id of touchpad'
Run Code Online (Sandbox Code Playgroud)
输出将类似于:
Synaptics Scrolling Distance (351): -88, 88
Run Code Online (Sandbox Code Playgroud)
如您所见,它需要两个值。我的是-88和88。
现在尝试运行:
xinput set-prop 12 "Synaptics Scrolling Distance" -300 300
Run Code Online (Sandbox Code Playgroud)
-300并300为我提供了平滑的滚动感觉,但尝试你自己的价值观。
| 归档时间: |
|
| 查看次数: |
43378 次 |
| 最近记录: |