我在 Arch Linux Xfce 4.12 上运行。
我的鼠标滚轮滚动太慢,所以我想增加每个滚动“滴答”的行数。我读到这可以通过设置Evdev Scrolling Distancewith 来实现xinput,但是,我正在使用libinput并且没有看到与滚动距离相关的任何内容。
xinput list-props在我的鼠标上的输出:
Device Enabled (139): 1
Coordinate Transformation Matrix (141): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Accel Speed (275): -0.640000
libinput Accel Speed Default (276): 0.000000
libinput Accel Profiles Available (277): 1, 1
libinput Accel Profile Enabled (278): 1, 0
libinput Accel Profile Enabled Default (279): 1, 0
libinput Natural Scrolling Enabled (280): 0
libinput Natural Scrolling Enabled Default …Run Code Online (Sandbox Code Playgroud) 我昨天将我的 Fedora 笔记本升级到了 Fedora 22。有了这个,synclient 停止工作:
找不到突触属性。没有加载突触驱动程序?
尽管如此,xinput list显示:
? Virtual core pointer id=2 [master pointer (3)]
? ? Virtual core XTEST pointer id=4 [slave pointer (2)]
? ? SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
[…]
Run Code Online (Sandbox Code Playgroud)
这是我这边的配置问题吗(awesome 据我所知,我正在使用在 X11 下运行的窗口管理器(不确定 Fedora 是否做了一些隐式魔法,因为他们在 22 版本的某些部分引入了 wayland))或者这个看起来像分发错误?
如果这是我这边的配置问题,我该如何解决?
这也发生在 Debian 和许多其他较新的系统上;至于为什么,请看答案。
我最近对 Debian GNOME 进行了全新安装,并从稳定版更新为测试版。在更新到测试之前,我的触摸板有几个 GUI 设置。更新后,它们消失了,如屏幕截图所示:
例如,我希望在此设置页面上找到自然滚动的设置。
从终端打开此页面会产生以下错误消息
$ gnome-control-center mouse
(gnome-control-center:15084): mouse-cc-panel-WARNING **: Detected synaptics X driver, please migrate to libinput
Run Code Online (Sandbox Code Playgroud)
这表明问题与libinput未安装有关。
运行$ dpkg-query -l '*libinput*'在终端显示libinput-bin,libinput10:amd64,libinput5:amd64和xserver-xorg-input-libinput被安装。
Arch Wiki - Touchpad Synaptics说
请注意,如果您想要桌面集成(即通过 GNOME 控制中心或 KDE 设置配置触摸板的能力),您需要 xf86-input-libinput。
xserver-xorg-input-libinput安装的包是从xf86-input-libinputArch Wiki 中引用的构建而成的。
如何解决我的问题,以便找回丢失的设置?
我使用 10 键鼠标 (Logitech M705)。在 X11 下,我能够通过修改etc/X11/xorg.conf.d.
在 Wayland 下,这不再有效。我的研究表明我需要对libinput. 我认为这将是一个常见问题,但在任何地方都找不到答案。
有人可以解释如何重新映射鼠标按钮或解释为什么不能这样做吗?
我在 Wayland 桌面会话中为 /dev/uinput 设备运行用户空间驱动程序。说明建议运行xinput list以确认检测到设备。
当然,xinput 是一个 X.org 应用程序。Wayland 的等效命令是什么?(一个 GNOME GUI 等价物是可以接受的。)
我刚刚从 Xorg 切换到 Wayland,这意味着我也切换到了 libinput。我也在使用 GNOME 3 和 GDM。
自从切换以来,滚动变得非常跳跃。当我尽可能缓慢地垂直拖动两个手指在触摸板上并在移动时定期暂停时,在一定距离后它会“跳跃”。
这不会发生在所有应用程序中;我猜在 Xwayland 中运行的任何东西都没有问题。此类应用程序的滚动和加速速度仍然比我想要的要快,但我认为这是一个单独的问题。
该问题在 GTK+ 和 Qt 应用程序中都会出现。
例如在支持平滑滚动的 gedit 中滚动时:
跳转总是发生在我开始滚动的 5 行处。如果我停止滚动但将我的两个手指放在触摸板上,这实际上不算是停止。
我在 Yoga 900 上有一个 Synaptics 触摸板:
Device: SYNA2B29:00 06CB:77C6
Kernel: /dev/input/event14
Group: 5
Seat: seat0, default
Size: 91.53x59.95mm
Capabilities: pointer
Tap-to-click: disabled
Tap drag lock: disabled
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: n/a
Calibration: n/a …Run Code Online (Sandbox Code Playgroud) 我在 macbook 上运行 arch,仍然不时双启动进入 macos。
我不得不重新训练肌肉记忆的最困难的事情是“向右滑动返回浏览器”-来自 macos 的功能。
为了在 linux 中获得该功能,我已经安装libinput-gestures并配置~/.config/libinput-gestures.conf了:
gesture swipe left 3 xdotool key alt+Right
gesture swipe right 3 xdotool key alt+Left
Run Code Online (Sandbox Code Playgroud)
虽然这似乎是工作,我宁愿是能够改变3的2。但根据我的经验,这似乎行不通。
为什么不能用两指滑动?有解决办法吗?我在wayland下使用gnome3。
我有一个 Elantech 触摸板,正在i3wm开发 Manjaro。
我正在使用 libinput-gestures 以下列方式定义捏合手势:( ~/.config/libinput-gestures.conf)
# Zoom View In (Works in quite a few apps: Browser, Files, photos, etc...)
gesture: pinch out xdotool key control+shift+plus
#
# Zoom View Out (Works in quite a few apps: Browser, Files, photos, etc...)
gesture: pinch in xdotool key control+minus
#
Run Code Online (Sandbox Code Playgroud)
然而,这以离散的方式表现。也就是说,例如在我的 Firefox 浏览器上,缩放不是连续的而是增量的。有没有办法以libinput-gestures连续的方式配置缩放?
干杯
我需要禁用笔记本电脑的触摸板。我在 Wayland 上使用 Gnome 。
\n\nlibinput应该提供此功能,但显然没有。xinput不起作用,因为我在 Wayland。如果我想禁用输入设备,这真的要求太多了吗?
\n\n编辑:xinput不是解决方案!
它的手册页有一整节关于 Wayland 的内容(重点是我的):
\n\n\n爱克斯威兰
\n\nXwayland 是一个使用 Wayland Compositor 作为后端的 X 服务器。Xwayland 充当 X 协议和 Wayland 协议之间的转换层,但不能直接访问硬件。Xwayland 创建的 X 输入扩展设备(“xwayland-pointer”、“xwayland-keyboard”等)映射到 Wayland 协议设备,而不是物理设备。这些 X 输入扩展设备仅对连接到同一 Xwayland 进程的其他 X 客户端可见。更改 Xwayland 设备上的属性只会影响这些客户端的行为。例如,使用 xinput 禁用 Xwayland 设备不会在 Wayland 本机应用程序中禁用该设备。其他更改可能根本没有任何影响。在大多数情况下,将 xinput 与 …
我刚刚从 xf86-input-evdev 切换到 xf86-input-libinput,它破坏了我的键盘布局——带有右 alt 的箭头键、上下文菜单键、删除键、数字键盘输入等,所有这些都奇怪地交换了。libinput debug-events不过,显示了正确的密钥。检查后Xorg.conf,我注意到以下行:
Option "XkbRules" "base"
Run Code Online (Sandbox Code Playgroud)
将其更改为 后evdev,键盘工作正常。
我找到了“ XKB 配置指南”,其中提到了各种规则,但没有详细说明它们的区别。
这两种布局有什么区别?即使使用 libinput 也可以使用 evdev 规则吗?