![20.04/gnome:检测到键盘/鼠标(?)但在 xorg 中不起作用](https://linux22.com/image/1068486/20.04%2Fgnome%EF%BC%9A%E6%A3%80%E6%B5%8B%E5%88%B0%E9%94%AE%E7%9B%98%2F%E9%BC%A0%E6%A0%87%EF%BC%88%EF%BC%9F%EF%BC%89%E4%BD%86%E5%9C%A8%20xorg%20%E4%B8%AD%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
总结
我的键盘和触控板可以在 GNOME Wayland 上使用,但不能在 Xorg 上使用。Fusuma 触控板手势在 Xorg 上仍然有效。
描述
我最近将我的 Thinkpad T460、英特尔显卡升级到了 Ubuntu 20.04。
我遇到了此处看到的问题,并按照说明进行操作:https://answers.launchpad.net/ubuntu/+source/linux/+question/689506。
(我根据上面链接的说明重新安装了 Xorg,使用如下命令:
sudo apt remove --purge xorg xserver-xorg gnome-session ubuntu-desktop-minimal ubuntu-desktop gdm3 xwayland
sudo autoremove --purge
mv /etc/X11 /etc/X11.bak
mv /usr/share/X11 /usr/share/X11.bak
sudo apt install gnome-session ubuntu-desktop-minimal
sudo apt install --reinstall xkb-data
reboot
)
后来,使用 Xorg 登录 Gnome 后,我的键盘和鼠标完全停止工作。有趣的是,我在跑步fusuma
,这些手势仍然有效,尽管我无法移动鼠标。
我的键盘和鼠标在 Wayland 中都能完美运行。
尝试的解决方案
重新安装
xkb-data
:sudo apt install --reinstall xkb-data`
安装并重新安装
xserver-org-input-all
:sudo apt install xserver-xorg-input-all
重复之前的说明(来自上面的启动板答案页面):
sudo apt remove --purge xorg xserver-xorg gnome-session ubuntu-desktop-minimal ubuntu-desktop gdm3 xwayland sudo apt autoremove --purge sudo mv /etc/X11 /etc/X11.bak sudo mv /usr/share/X11 /usr/share/X11.bak sudo apt install gnome-session ubuntu-desktop-minimal
尝试删除 fwupd,因为互联网上有人说这可能会有用:
sudo apt remove fwupd
尝试重新安装并重新配置 xorg 服务器:
sudo apt install --reinstall xserver-org sudo dpkg-reconfigure xserver-org
尝试删除
xserver-xorg-video-intel
:sudo apt-get remove xserver-xorg-video-intel
控制
.Xauthority
:sudo chown : ~/.Xauthority
- 尝试更新驱动程序,但没有可用。
当然,每次尝试修复之后我都会重新启动。
编辑:重新安装 synaptics 似乎修复了触摸板!所以现在触摸板可以使用,但其他输入设备都不能用。
与此一致,看起来我在 xorg 日志中遇到了驱动程序问题:
[ 2039.986] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
[ 2039.987] (II) No input driver specified, ignoring this device.
[ 2039.987] (II) This device may have been added with another device file.
[ 2039.987] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event5)
[ 2039.987] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"
[ 2039.987] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "Default clickpad buttons"
[ 2039.987] (II) LoadModule: "synaptics"
[ 2039.987] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
[ 2039.987] (II) Module synaptics: vendor="X.Org Foundation"
[ 2039.987] compiled for 1.20.8, module version = 1.9.1
[ 2039.987] Module class: X.Org XInput Driver
[ 2039.987] ABI class: X.Org XInput driver, version 24.1
[ 2039.987] (II) Using input driver 'synaptics' for 'SynPS/2 Synaptics TouchPad'
[ 2039.987] (**) SynPS/2 Synaptics TouchPad: always reports core events
[ 2039.987] (**) Option "Device" "/dev/input/event5"
[ 2040.039] (II) synaptics: SynPS/2 Synaptics TouchPad: found clickpad property
[ 2040.039] (--) synaptics: SynPS/2 Synaptics TouchPad: x-axis range 1266 - 5677 (res 44)
[ 2040.039] (--) synaptics: SynPS/2 Synaptics TouchPad: y-axis range 1093 - 4832 (res 65)
[ 2040.039] (--) synaptics: SynPS/2 Synaptics TouchPad: pressure range 0 - 255
[ 2040.039] (--) synaptics: SynPS/2 Synaptics TouchPad: finger width range 0 - 15
[ 2040.039] (--) synaptics: SynPS/2 Synaptics TouchPad: buttons: left double triple
[ 2040.039] (--) synaptics: SynPS/2 Synaptics TouchPad: Vendor 0x2 Product 0x7
[ 2040.039] (**) Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
[ 2040.039] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
[ 2040.039] (**) SynPS/2 Synaptics TouchPad: always reports core events
[ 2040.074] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input5/event5"
[ 2040.075] (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD, id 6)
[ 2040.075] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MinSpeed is now constant deceleration 2.5
[ 2040.075] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MaxSpeed is now 1.75
[ 2040.075] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) AccelFactor is now 0.035
[ 2040.075] (**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
[ 2040.075] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration profile 1
[ 2040.075] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
[ 2040.075] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
[ 2040.075] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
[ 2040.077] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
[ 2040.077] (**) SynPS/2 Synaptics TouchPad: Ignoring device from InputClass "touchpad ignore duplicates"
[ 2040.078] (II) config/udev: Adding input device TPPS/2 IBM TrackPoint (/dev/input/event13)
[ 2040.078] (II) No input driver specified, ignoring this device.
[ 2040.078] (II) This device may have been added with another device file.
[ 2040.079] (II) config/udev: Adding input device TPPS/2 IBM TrackPoint (/dev/input/mouse2)
[ 2040.079] (II) No input driver specified, ignoring this device.
[ 2040.079] (II) This device may have been added with another device file.
[ 2040.087] (II) config/udev: Adding input device ThinkPad Extra Buttons (/dev/input/event15)
[ 2040.087] (II) No input driver specified, ignoring this device.
[ 2040.087] (II) This device may have been added with another device file.
这是一个线索!
更新:已解决!
最终,看起来几乎核选项在这里起作用了——我只是删除了所有与 xserver 相关的内容并重新安装:
sudo apt-get purge xorg "xserver-*"
sudo apt-get purge lightdm plymouth
sudo apt-get autoremove
sudo apt-get install xauth xorg openbox lightdm plymouth
sudo apt-get install ubuntu-desktop
此后,一切又恢复正常。
如果能给出一个解释这里发生了什么的答案,我们将非常感激!:)
答案1
根据您的经验,我尝试sudo apt install xserver-xorg-input-libinput
修复 raspberrypi (lxqt) 上鼠标和键盘无法工作的问题。