我安装了 Arch Linux 并使用 Plasma 作为我的 DE。突然,我的笔记本电脑键盘在 Plasma 和登录屏幕上停止工作。它仍然可以在 Windows 上运行(我有双启动),如果我通过 Ctrl+Alt+F2 切换到终端(我连接了 USB 键盘来执行此操作),它也可以运行
因此,键盘仅在 Plasma GUI 中不起作用
我做了一些检查,系统看到键盘并显示它已启用xinput
journalctl -b | grep -i translated
Oct 16 12:23:27 archlinux kernel: iommu: Default domain type: Translated
Oct 16 12:23:27 archlinux kernel: input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4
Oct 16 12:23:31 archlinux systemd-logind[435]: Watching system buttons on /dev/input/event4 (AT Translated Set 2 keyboard)
grep Translated Xorg.0.log
[ 8.880] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event4)
[ 8.880] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[ 8.880] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[ 8.880] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[ 8.880] (**) AT Translated Set 2 keyboard: always reports core events
[ 8.883] (II) event4 - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[ 8.883] (II) event4 - AT Translated Set 2 keyboard: device is a keyboard
[ 8.898] (II) event4 - AT Translated Set 2 keyboard: device removed
[ 8.899] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 19)
[ 8.902] (II) event4 - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[ 8.902] (II) event4 - AT Translated Set 2 keyboard: device is a keyboard
xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ USB Keyboard Consumer Control id=15 [slave pointer (2)]
⎜ ↳ Elan Touchpad id=17 [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)]
↳ Asus Wireless Radio Control id=7 [slave keyboard (3)]
↳ Video Bus id=8 [slave keyboard (3)]
↳ Video Bus id=9 [slave keyboard (3)]
↳ Power Button id=10 [slave keyboard (3)]
↳ Sleep Button id=11 [slave keyboard (3)]
↳ USB Keyboard id=12 [slave keyboard (3)]
↳ USB Keyboard System Control id=13 [slave keyboard (3)]
↳ USB Keyboard id=14 [slave keyboard (3)]
↳ USB2.0 VGA UVC WebCam: USB2.0 V id=16 [slave keyboard (3)]
↳ Asus WMI hotkeys id=18 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=19 [slave keyboard (3)]
↳ USB Keyboard Consumer Control id=20 [slave keyboard (3)]
xinput list-props "AT Translated Set 2 keyboard"
Device 'AT Translated Set 2 keyboard':
Device Enabled (180): 1
Coordinate Transformation Matrix (182): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Send Events Modes Available (300): 1, 0
libinput Send Events Mode Enabled (301): 0, 0
libinput Send Events Mode Enabled Default (302): 0, 0
Device Node (303): "/dev/input/event4"
Device Product ID (304): 1, 1
我还应该检查什么以及什么可能会损坏它?
答案1
如果其他人遇到这个问题,它与华硕键盘和最近的内核更新有关。解决方法在这个线程中https://bbs.archlinux.org/viewtopic.php?pid=1922517#p1922517