页次: 1
内核:linux-zen
描述:在内核升级到6.5.1后,切换至tty2(无图形界面)尝试登录时键盘失效。
判断:
内核问题确定:升级到6.5.1后问题出现,切换linux、linux-lts问题均在,降级回6.1.4后问题解决
键盘失效判定:在切换tty2后,键盘键入任意字符无反应,Caps、NumLock均失效(无自定义keymap),尝试Ctrl-Alt-F1切换无果,Ctrl-Alt-Delete无果
求问如何解决以上问题。
最近编辑记录 问题满头转 (2023-01-15 12:33:40)
离线
dmesg里有没有什么信息?
有没有识别到键盘?
离线
你这应该是个例,我今早也滚更到6.1.5-xanmod内核,tty2没有出现键盘问题,有可能不是内核问题。
离线
切换到 tty2 才出的问题?那切换之前是哪里?可以做什么么?
你可以开个 sshd,然后通过另一台电脑或者手机连接上去,查看实时日志或者 sudo chvt N 切换 tty 啥的。
离线
切换到 tty2 才出的问题?那切换之前是哪里?可以做什么么?
你可以开个 sshd,然后通过另一台电脑或者手机连接上去,查看实时日志或者 sudo chvt N 切换 tty 啥的。
在切换前是在tty1的X图形界面,一切正常。
在主机切换到非图形界面的tty后,通过ssh访问主机没有问题,也可以通过 sudo chvt 1 回到图形界面,lsusb有键盘连接,在ssh中启用一个图形界面后,切换到有图形界面的tty下,键盘仍旧正常工作。
查看日志的什么我不太会。不过我粗略看了下 journalctl 的输出结果,没有什么特殊发现。这里列出我启用新的tty时的日志记录(它和之前能正常使用tty的输出如出一辙):
$ journalctl --system |grep -ni "1月 15 11:16:01"
275130:1月 15 11:16:01 Chglish systemd[1]: Started Getty on tty4.
275131:1月 15 11:16:01 Chglish audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=getty@tty4 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
275132:1月 15 11:16:01 Chglish kernel: audit: type=1130 audit(1673752561.163:374): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=getty@tty4 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
我不太清楚应该在这放出dmesg的什么输出,不过我尝试了一下命令:
$ sudo dmesg |grep -ni keyboard
451:[ 4.790133] usb 1-5: Product: USB Keyboard
526:[ 6.458567] input: SONiX USB Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:09DA:2268.0001/input/input3
527:[ 6.512270] hid-generic 0003:09DA:2268.0001: input,hidraw0: USB HID v1.11 Keyboard [SONiX USB Keyboard] on usb-0000:00:14.0-5/input0
528:[ 6.515644] input: SONiX USB Keyboard Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.1/0003:09DA:2268.0002/input/input4
534:[ 6.572093] input: SONiX USB Keyboard System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.1/0003:09DA:2268.0002/input/input5
535:[ 6.572156] hid-generic 0003:09DA:2268.0002: input,hidraw1: USB HID v1.11 Device [SONiX USB Keyboard] on usb-0000:00:14.0-5/input1
$ sudo dmesg |grep -ni input
270:[ 1.522928] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input0
272:[ 1.522974] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
415:[ 4.426042] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input2
508:[ 6.458567] input: SONiX USB Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:09DA:2268.0001/input/input3
509:[ 6.512270] hid-generic 0003:09DA:2268.0001: input,hidraw0: USB HID v1.11 Keyboard [SONiX USB Keyboard] on usb-0000:00:14.0-5/input0
510:[ 6.515644] input: SONiX USB Keyboard Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.1/0003:09DA:2268.0002/input/input4
516:[ 6.572093] input: SONiX USB Keyboard System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.1/0003:09DA:2268.0002/input/input5
517:[ 6.572156] hid-generic 0003:09DA:2268.0002: input,hidraw1: USB HID v1.11 Device [SONiX USB Keyboard] on usb-0000:00:14.0-5/input1
518:[ 6.573816] input: PixA琀 USB Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:093A:2510.0003/input/input6
519:[ 6.573872] hid-generic 0003:093A:2510.0003: input,hidraw2: USB HID v1.11 Mouse [PixA琀 USB Optical Mouse] on usb-0000:00:14.0-6/input0
531:[ 6.626094] input: PC Speaker as /devices/platform/pcspkr/input/input7
553:[ 7.096292] snd_hda_codec_realtek hdaudioC0D0: inputs:
561:[ 7.247404] input: HDA Intel PCH Front Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input8
562:[ 7.247441] input: HDA Intel PCH Rear Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input9
563:[ 7.247473] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1f.3/sound/card0/input10
564:[ 7.247505] input: HDA Intel PCH Line Out as /devices/pci0000:00/0000:00:1f.3/sound/card0/input11
565:[ 7.247535] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input12
566:[ 7.247570] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input13
567:[ 7.247601] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input14
568:[ 7.247663] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input15
还有什么是需要提供的吗?
如果没有解决办法,降级内核是否为目前最为稳妥的解决方案?
离线
你降级内核吧。大概是内核又哪里 bug 了。
离线
谢谢,现在linux内核6.1.6出来了,升级后问题就解决了。
离线
页次: 1