您尚未登录。

#1 2023-01-27 20:33:43

念念
会员
注册时间: 2021-07-20
帖子: 7

更新内核后重启黑屏,需要长按电源键关机后再开机

应该是最近十个小版本的内核出现这种情况,更新完内核后重启会黑屏,必须手动按电源键再次关机后开机。继续重启正常关机开机,只有更新内核后会出现这种情况

离线

#2 2023-01-27 20:34:13

念念
会员
注册时间: 2021-07-20
帖子: 7

Re: 更新内核后重启黑屏,需要长按电源键关机后再开机

目前自己没有排查思路,想请教下大家

离线

#3 2023-01-27 20:43:02

zhuangzhuang
会员
注册时间: 2022-08-14
帖子: 164
个人网站

Re: 更新内核后重启黑屏,需要长按电源键关机后再开机

kms出问题了?更新完内核重启时在grub中加上nomodeset试试会不会黑屏?


上学中

离线

#4 2023-07-18 11:44:40

AllenWu233
禁忌·四重存在
所在地: 幻想乡红魔馆
注册时间: 2022-10-18
帖子: 48
个人网站

Re: 更新内核后重启黑屏,需要长按电源键关机后再开机

请问楼主解决了吗?我的笔记本也遇到同样的问题,已经持续几周了


既自以心为形役,奚惆怅而独悲?

离线

#5 2023-07-18 11:51:15

AllenWu233
禁忌·四重存在
所在地: 幻想乡红魔馆
注册时间: 2022-10-18
帖子: 48
个人网站

Re: 更新内核后重启黑屏,需要长按电源键关机后再开机

zhuangzhuang 说:

kms出问题了?更新完内核重启时在grub中加上nomodeset试试会不会黑屏?

我加了nomodeset后笔记本主屏黑屏,且屏幕左上角有一个“_”,外接的显示器正常显示。如果不用外接显示器的话就无法正常使用


既自以心为形役,奚惆怅而独悲?

离线

#6 2023-07-18 15:39:25

matrikslee
会员
注册时间: 2017-04-21
帖子: 442
个人网站

Re: 更新内核后重启黑屏,需要长按电源键关机后再开机

发生问题重启之后用journalctl -b -1 -k看日志,搞清楚系统发生了什么先
-b -1表示上一次启动后的log
如果不确定的话,就去掉-b -1看所有的log然后找问题发生的位置

离线

#7 2023-07-19 11:08:57

matrikslee
会员
注册时间: 2017-04-21
帖子: 442
个人网站

Re: 更新内核后重启黑屏,需要长按电源键关机后再开机

7月 18 12:30:05 Allen-Arch plasmashell[1953]: kde.systemtray: Could not find DBusMenu interface, falling back to calling ContextMenu()
7月 18 12:40:28 Allen-Arch plasmashell[1953]: file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/PlasmoidItem.qml:125: TypeError: Cannot read property 'compactRepresentationItem' of null
7月 18 12:40:31 Allen-Arch sddm[727]: Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"
7月 18 12:40:31 Allen-Arch sddm[727]: Auth: sddm-helper (--socket /tmp/sddm-auth-6fd0543a-6a8d-4408-a876-6d07e460c9cb --id 1 --start /usr/bin/startplasma-x11 --user Allen) crashed (exit code 1)
7月 18 12:40:31 Allen-Arch sddm[727]: Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"
7月 18 12:40:31 Allen-Arch sddm[727]: Auth: sddm-helper exited with 1
7月 18 12:40:31 Allen-Arch sddm[727]: Signal received: SIGTERM
7月 18 12:40:31 Allen-Arch ksmserver[1908]: The X11 connection broke (error 1). Did the X11 server die?
7月 18 12:40:31 Allen-Arch kwin_x11[1911]: The X11 connection broke (error 1). Did the X11 server die?
7月 18 12:40:31 Allen-Arch systemd[1831]: plasma-ksmserver.service: Failed with result 'exit-code'.
7月 18 12:40:31 Allen-Arch kded5[1910]: The X11 connection broke (error 1). Did the X11 server die?
7月 18 12:40:31 Allen-Arch kded5[1910]: kf.notifications: Playing audio notification failed: Destroyed
7月 18 12:40:31 Allen-Arch systemd[1831]: plasma-kwin_x11.service: Failed with result 'exit-code'.
7月 18 12:40:32 Allen-Arch systemd[1831]: plasma-kded.service: Failed with result 'exit-code'.
7月 18 12:40:32 Allen-Arch kactivitymanagerd[1972]: The X11 connection broke (error 1). Did the X11 server die?

简单看了一下你发的log,只有一份可以看,另一份直接乱码,还有这一份可以看的log因为加了-p 4参数导致不连贯,看不太出来发生了什么,只知道你x11挂掉了,看起来你用的是nvidia驱动,你-b后面没有加数字参数,所以导致-k参数没生效,
你可以再看看journalctl -k命令的输出,别加多余的参数

PS:log如果没啥敏感信息可以直接发出来,没必要单独给我发mail./doge
贴log的地方可以找在线剪贴板,例如:https://fars.ee

离线

#8 2023-07-19 19:03:53

AllenWu233
禁忌·四重存在
所在地: 幻想乡红魔馆
注册时间: 2022-10-18
帖子: 48
个人网站

Re: 更新内核后重启黑屏,需要长按电源键关机后再开机

matrikslee 说:
7月 18 12:30:05 Allen-Arch plasmashell[1953]: kde.systemtray: Could not find DBusMenu interface, falling back to calling ContextMenu()
7月 18 12:40:28 Allen-Arch plasmashell[1953]: file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/PlasmoidItem.qml:125: TypeError: Cannot read property 'compactRepresentationItem' of null
7月 18 12:40:31 Allen-Arch sddm[727]: Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"
7月 18 12:40:31 Allen-Arch sddm[727]: Auth: sddm-helper (--socket /tmp/sddm-auth-6fd0543a-6a8d-4408-a876-6d07e460c9cb --id 1 --start /usr/bin/startplasma-x11 --user Allen) crashed (exit code 1)
7月 18 12:40:31 Allen-Arch sddm[727]: Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"
7月 18 12:40:31 Allen-Arch sddm[727]: Auth: sddm-helper exited with 1
7月 18 12:40:31 Allen-Arch sddm[727]: Signal received: SIGTERM
7月 18 12:40:31 Allen-Arch ksmserver[1908]: The X11 connection broke (error 1). Did the X11 server die?
7月 18 12:40:31 Allen-Arch kwin_x11[1911]: The X11 connection broke (error 1). Did the X11 server die?
7月 18 12:40:31 Allen-Arch systemd[1831]: plasma-ksmserver.service: Failed with result 'exit-code'.
7月 18 12:40:31 Allen-Arch kded5[1910]: The X11 connection broke (error 1). Did the X11 server die?
7月 18 12:40:31 Allen-Arch kded5[1910]: kf.notifications: Playing audio notification failed: Destroyed
7月 18 12:40:31 Allen-Arch systemd[1831]: plasma-kwin_x11.service: Failed with result 'exit-code'.
7月 18 12:40:32 Allen-Arch systemd[1831]: plasma-kded.service: Failed with result 'exit-code'.
7月 18 12:40:32 Allen-Arch kactivitymanagerd[1972]: The X11 connection broke (error 1). Did the X11 server die?

简单看了一下你发的log,只有一份可以看,另一份直接乱码,还有这一份可以看的log因为加了-p 4参数导致不连贯,看不太出来发生了什么,只知道你x11挂掉了,看起来你用的是nvidia驱动,你-b后面没有加数字参数,所以导致-k参数没生效,
你可以再看看journalctl -k命令的输出,别加多余的参数

PS:log如果没啥敏感信息可以直接发出来,没必要单独给我发mail./doge
贴log的地方可以找在线剪贴板,例如:https://fars.ee

`journalctl -k`的输入如下:http://fars.ee/7xz7
不过这几次启动又恢复正常了......


既自以心为形役,奚惆怅而独悲?

离线

#9 2023-07-19 20:03:38

AllenWu233
禁忌·四重存在
所在地: 幻想乡红魔馆
注册时间: 2022-10-18
帖子: 48
个人网站

Re: 更新内核后重启黑屏,需要长按电源键关机后再开机

matrikslee 说:
7月 18 12:30:05 Allen-Arch plasmashell[1953]: kde.systemtray: Could not find DBusMenu interface, falling back to calling ContextMenu()
7月 18 12:40:28 Allen-Arch plasmashell[1953]: file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/PlasmoidItem.qml:125: TypeError: Cannot read property 'compactRepresentationItem' of null
7月 18 12:40:31 Allen-Arch sddm[727]: Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"
7月 18 12:40:31 Allen-Arch sddm[727]: Auth: sddm-helper (--socket /tmp/sddm-auth-6fd0543a-6a8d-4408-a876-6d07e460c9cb --id 1 --start /usr/bin/startplasma-x11 --user Allen) crashed (exit code 1)
7月 18 12:40:31 Allen-Arch sddm[727]: Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"
7月 18 12:40:31 Allen-Arch sddm[727]: Auth: sddm-helper exited with 1
7月 18 12:40:31 Allen-Arch sddm[727]: Signal received: SIGTERM
7月 18 12:40:31 Allen-Arch ksmserver[1908]: The X11 connection broke (error 1). Did the X11 server die?
7月 18 12:40:31 Allen-Arch kwin_x11[1911]: The X11 connection broke (error 1). Did the X11 server die?
7月 18 12:40:31 Allen-Arch systemd[1831]: plasma-ksmserver.service: Failed with result 'exit-code'.
7月 18 12:40:31 Allen-Arch kded5[1910]: The X11 connection broke (error 1). Did the X11 server die?
7月 18 12:40:31 Allen-Arch kded5[1910]: kf.notifications: Playing audio notification failed: Destroyed
7月 18 12:40:31 Allen-Arch systemd[1831]: plasma-kwin_x11.service: Failed with result 'exit-code'.
7月 18 12:40:32 Allen-Arch systemd[1831]: plasma-kded.service: Failed with result 'exit-code'.
7月 18 12:40:32 Allen-Arch kactivitymanagerd[1972]: The X11 connection broke (error 1). Did the X11 server die?

简单看了一下你发的log,只有一份可以看,另一份直接乱码,还有这一份可以看的log因为加了-p 4参数导致不连贯,看不太出来发生了什么,只知道你x11挂掉了,看起来你用的是nvidia驱动,你-b后面没有加数字参数,所以导致-k参数没生效,
你可以再看看journalctl -k命令的输出,别加多余的参数

PS:log如果没啥敏感信息可以直接发出来,没必要单独给我发mail./doge
贴log的地方可以找在线剪贴板,例如:https://fars.ee

刚刚重启又出现这个问题,`journalctl -b -1 -k`输出如下:http://fars.ee/-JE2
麻烦大佬了


既自以心为形役,奚惆怅而独悲?

离线

#10 2023-07-19 23:04:01

matrikslee
会员
注册时间: 2017-04-21
帖子: 442
个人网站

Re: 更新内核后重启黑屏,需要长按电源键关机后再开机

看起来错误是gpu驱动不响应用户态图形程序

检查一下你的系统里面是否存在 /etc/X11/xorg.conf 这个配置文件,如果有可以试试将它拿掉(直接删掉 或者 移动到别的地方 或者改成别的非.conf结尾的名字例如xorg.conf.bak

另外,如果可以,贴一下你的/var/log/Xorg.0.log  可以帮忙分析xorg报告了啥错误

离线

#11 2023-07-19 23:06:14

AllenWu233
禁忌·四重存在
所在地: 幻想乡红魔馆
注册时间: 2022-10-18
帖子: 48
个人网站

Re: 更新内核后重启黑屏,需要长按电源键关机后再开机

matrikslee 说:

看起来错误是gpu驱动不响应用户态图形程序

检查一下你的系统里面是否存在 /etc/X11/xorg.conf 这个配置文件,如果有可以试试将它拿掉(直接删掉 或者 移动到别的地方 或者改成别的非.conf结尾的名字例如xorg.conf.bak

另外,如果可以,贴一下你的/var/log/Xorg.0.log  可以帮忙分析xorg报告了啥错误

来了 http://fars.ee/lbLB
大佬辛苦了 smile


既自以心为形役,奚惆怅而独悲?

离线

#12 2023-07-20 09:25:53

matrikslee
会员
注册时间: 2017-04-21
帖子: 442
个人网站

Re: 更新内核后重启黑屏,需要长按电源键关机后再开机

[     6.017] (==) Using config file: "/etc/X11/xorg.conf"

看log确实有用到配置文件,你把它删掉试试

离线

#13 2023-07-20 18:17:24

AllenWu233
禁忌·四重存在
所在地: 幻想乡红魔馆
注册时间: 2022-10-18
帖子: 48
个人网站

Re: 更新内核后重启黑屏,需要长按电源键关机后再开机

matrikslee 说:

[     6.017] (==) Using config file: "/etc/X11/xorg.conf"

看log确实有用到配置文件,你把它删掉试试

已经删了,能正常启动了。谢谢大佬 smile


既自以心为形役,奚惆怅而独悲?

离线

页脚