我是一个经验丰富的 linux 人,试图在我的戴尔 XPS 13 9350 上设置 Ubuntu。过去我已经能够毫无问题地启动和运行 Arch,但我正在努力在 Ubuntu 中安装一个软件包。
包是 libinput,由xserver-xorg-input-libinput. 当我尝试使用 apt 安装它时,它会响应
The following packages have unmet dependencies.
xserver-xorg-input-libinput : Depends: xserver-xorg-core (>= 2:1.17.99.902)
Run Code Online (Sandbox Code Playgroud)
尝试安装会xserver-xorg-core警告大量软件包将被删除。reddit 上有人指出一个包已被重命名,这就是它无法安装的原因。有没有办法解决?
编辑:输出 apt-cache policy xserver-xorg-core xserver-xorg-input-libinput
xserver-xorg-core:
Installed: (none)
Candidate: 2:1.18.4-0ubuntu0.2
Version table:
2:1.18.4-0ubuntu0.2 500
500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
2:1.18.3-1ubuntu2 500
500 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
xserver-xorg-input-libinput:
Installed: (none)
Candidate: 0.18.0-1
Version table:
0.18.0-1 500
500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64
Packages
Run Code Online (Sandbox Code Playgroud) 我希望在 ubuntu 19.10 上,我的触摸板的两指轻击可以像鼠标中键一样工作。Ubuntu 中的默认设置是三指轻击,但我更喜欢使用两指。
这在我以前的笔记本电脑中使用突触驱动程序选项非常容易(如这里所解释的https://askubuntu.com/a/156545/1035668),但看起来这台新笔记本电脑使用的是不同的驱动程序,我无法弄清楚如何按照我的意愿配置它。
在这里你有输出xinput list:
xinput list
? Virtual core pointer id=2 [master pointer (3)]
? ? Virtual core XTEST pointer id=4 [slave pointer (2)]
? ? MSFT0001:02 06CB:CD3E Touchpad id=10 [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)]
? …Run Code Online (Sandbox Code Playgroud) 我在这里找到了一个非常好的答案,如果它有效的话会很棒:https : //askubuntu.com/a/820098/134500
我想libinput用来让滚动以及其他触控板和指向功能正常工作。当我尝试启用它时,不幸的是键盘 + 触控板(罗技 K400+)完全停止工作。
在/etc/X11/xorg.conf.d我下面:
20-touchpad.conf:
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "NaturalScrolling" "on"
Option "MiddleEmulation" "on"
Option "Tapping" "off"
Option "DisableWhileTyping" "on"
EndSection
Run Code Online (Sandbox Code Playgroud)
30-pointer.conf
Section "InputClass"
Identifier "libinput pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "NaturalScrolling" "on"
EndSection
Run Code Online (Sandbox Code Playgroud)
我认为它libinput在 16.04 上已经处于活动状态,但是,如上所述,键盘输入完全停止。我在日志中没有看到问题。关于如何确保libinput正常工作以及如何让它与这个罗技 K400+ 一起工作有什么吗?
也许libinput只是Wayland,并且由于它正在运行xorg,因此这就是这种情况下的困境?如果是这样,这里的正确方法是什么?
回到突触触摸板,可以使用:
synclient TapButton2=2 synclient TapButton3=3
并设置两指和三指点击。Libinput 的配置是什么?
经过几周的实验,libinput我相信它的许多与鼠标相关的高级功能尚未(尚未?)实现。对我来说最重要的是,您不能用它阻挡鼠标滚轮,也不能用中键在系统范围内模拟鼠标滚轮。我的问题有两个:
libinput将我的 Ubuntu 从 切换到是否有意义evdev?从长远来看,我会失去任何重要的东西吗?apt列出了这两种产品的数十个包装,有些有标签hwe,有些没有。我应该删除什么以及应该安装什么?我的 lenovo x230 上的触摸板没有运行突触驱动程序,我需要它来增加功能。相反,它使用 libinput。如何让突触驱动程序在启动时优先?
触摸板是(xinput list):
? ? PS/2 Synaptics TouchPad id=13 [slave pointer (2)]
Run Code Online (Sandbox Code Playgroud)
我可以检查它正在使用什么驱动程序grep -i "Using input driver" /var/log/Xorg.0.log:
(II) Using input driver 'libinput' for 'PS/2 Synaptics TouchPad'
Run Code Online (Sandbox Code Playgroud)
但是,我肯定安装了突触驱动程序 ( sudo apt install xserver-xorg-input-synaptics):
Reading package lists... Done
Building dependency tree
Reading state information... Done
xserver-xorg-input-synaptics is already the newest version (1.9.0-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud)
我可以在 libinput 驱动程序 ( ls /usr/share/X11/xorg.conf.d/)旁边看到 Synaptics …
如您所见,这是我的第一篇文章。所以,我已经尝试和研究了很多,但我仍然无法解决这个问题。
我真的很喜欢自然滚动,但不仅在我的触摸板上,而且在我的鼠标上 - 但这到目前为止还不起作用。我目前的设置是 Ubuntu 18.04.2,在 2012 年末(第一款 hidpi)MacBook 上使用 i3 wm,我使用性能 MX 罗技鼠标。这是我昨天安装的一个非常新的设置。
我确实使用突触反转了我的触摸板滚动并尝试使用 xmodkeys 修改我的鼠标键,但它不起作用。
xmodmap -e 'pointer = 1 2 3 5 4 6 7 8 9 10 11 12'
奇怪的是,当我用 xev 测试时,我的鼠标按钮实际上是倒置的(4 和 5),但这不会影响滚动行为。我也可以重新映射其他鼠标键,但滚动似乎无法改变。
xinput
? Virtual core pointer id=2 [master pointer (3)]
? ? Virtual core XTEST pointer id=4 [slave pointer (2)]
? ? Logitech Performance MX id=10 [slave pointer (2)]
? ? bcm5974 id=13 [slave pointer (2)]
? Virtual core keyboard id=3 [master keyboard …Run Code Online (Sandbox Code Playgroud) 刚买了一个新鼠标(光荣的模型 o),我可以双击它(我单击一次,单击两次)但是我只能让它在 Windows 上注册两次单击。我做了一些研究,我很确定libinput默认情况下它会阻止双击。有什么办法可以使它不尝试取消双击吗?我知道对于大多数人来说,防止双击很有用,但是我希望能够双击以在 Minecraft 中获得更高的 CPS,而且我从未设法意外获得双击。
我最近买了一个 HP 14-an013nr,它是在过去两个月内发布的。它有一个似乎不起作用的 Elantech 触摸板。也就是说,我的手指的运动不会导致指针的相应运动。有时指针会向不同的方向移动。大多数时候指针是静止的。
我正在使用 Libinput 手势在我的 ubuntu 系统中使用多指手势。但是,每当我用三个手指向下滑动时,它会做两件事;两者都更改工作区并将剪贴板上的任何内容粘贴到光标选择的任何程序中。
我曾尝试关注其他线程,但没有人给我一个明确的答案,说明如何从三指手势中删除粘贴功能。
请提供一个简单的指南,因为我不是 ubuntu 专家。
谢谢!
我的笔记本电脑有一个不稳定的轨迹点,它会不断移动鼠标。
使用 xorg 时,我可以使用此命令将其关闭: xinput -set-prop "AlpsPS/2 ALPS DualPoint Stick" "Device Enabled" 0
好像 xinput 不是 wayland 上的东西?快速搜索给了我 libinput,但是 libinput 使我无法关闭轨迹点(据我所知)
那么如何关闭 Wayland 中的轨迹点呢?或者除了 xinput/libinput 之外还有其他方法吗?
系统信息:
东芝 Portege Z30A
Ubuntu 19.10 GNOME
*更新:
我找到了这个讨论:https://gist.github.com/fghaas/3406be59095de212182f1803a503a64b#file-75-input-rules
这似乎完全符合我的需要,但我不明白如何执行它。我可以得到一些帮助来理解它吗?我该把什么东西放在哪里?
我在 Acer aspire v3 572g、任何发行版和任何“新”版本上都遇到此问题(在 ubuntu 10.04 上没有出现问题)。触摸板在启动后工作正常,但在使用一段时间后(如果不使用/很少使用,它会继续工作)似乎触摸板进入某种节能模式:如果几秒钟不使用,它将有半秒的延迟在它检测到的第一个输入上。无论使用 nvidia 专有还是开源驱动程序,无论是否有 synaptics 驱动程序,甚至卸载 xserver-xorg-input-libinput 并使用 synaptics(键盘停止工作但问题仍然存在),问题仍然存在。我在这里粘贴了 Ubuntu 19.10 的一些 xinput 和 synclient 输出,但我不确定这些输出与该问题有什么关系:
\n\nx输入列表
\n\n\xe2\x8e\xa1 Virtual core pointer id=2 [master pointer (3)]\n\xe2\x8e\x9c \xe2\x86\xb3 Virtual core XTEST pointer id=4 [slave pointer (2)]\n\xe2\x8e\x9c \xe2\x86\xb3 SYN1B7E:01 06CB:2970 Touchpad id=12 [slave pointer (2)]\n\xe2\x8e\xa3 Virtual core keyboard id=3 [master keyboard (2)]\n \xe2\x86\xb3 Virtual core XTEST keyboard id=5 [slave keyboard (3)]\n \xe2\x86\xb3 Power Button id=6 [slave keyboard (3)]\n \xe2\x86\xb3 Video Bus id=7 [slave keyboard (3)]\n …Run Code Online (Sandbox Code Playgroud)