屏幕锁定后显示器崩溃

屏幕锁定后显示器崩溃

我在 Lenovo Ideapad 上使用 Ubuntu 20.04 版本

每当我锁定我的笔记本电脑(或者它被锁定在不活动状态)并尝试解锁时,我的显示屏就会崩溃。我看到如下屏幕

在此输入图像描述

我有另一个外部显示器连接到这台笔记本电脑,并且该显示器看起来不错。

这种情况是在几天后才开始发生的。我还尝试查看是否有任何最近的更新导致了此问题。但我看不到任何相关内容。这是日志。

Start-Date: 2022-01-09  11:22:08
Commandline: /usr/bin/unattended-upgrade
Remove: linux-headers-5.11.0-41-generic:amd64 (5.11.0-41.45~20.04.1), linux-hwe-5.11-headers-5.11.0-41:amd64 (5.11.0-41.45~20.04.1)
End-Date: 2022-01-09  11:22:10

Start-Date: 2022-01-17  06:57:33
Commandline: /usr/bin/unattended-upgrade
Upgrade: libsystemd0:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15), systemd-timesyncd:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15), systemd-sysv:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15), libpam-systemd:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15), systemd:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15), libnss-systemd:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15)
End-Date: 2022-01-17  06:57:40

Start-Date: 2022-01-17  06:57:44
Commandline: /usr/bin/unattended-upgrade
Upgrade: libgs9:amd64 (9.50~dfsg-5ubuntu4.4, 9.50~dfsg-5ubuntu4.5), ghostscript:amd64 (9.50~dfsg-5ubuntu4.4, 9.50~dfsg-5ubuntu4.5), ghostscript-x:amd64 (9.50~dfsg-5ubuntu4.4, 9.50~dfsg-5ubuntu4.5), libgs9-common:amd64 (9.50~dfsg-5ubuntu4.4, 9.50~dfsg-5ubuntu4.5)
End-Date: 2022-01-17  06:57:46

Start-Date: 2022-01-17  06:57:50
Commandline: /usr/bin/unattended-upgrade
Upgrade: linux-libc-dev:amd64 (5.4.0-92.103, 5.4.0-94.106)
End-Date: 2022-01-17  06:57:50

Start-Date: 2022-01-17  06:57:54
Commandline: /usr/bin/unattended-upgrade
Install: linux-image-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1, automatic), linux-modules-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1, automatic), linux-headers-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1, automatic), linux-modules-extra-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1, automatic), linux-hwe-5.11-headers-5.11.0-46:amd64 (5.11.0-46.51~20.04.1, automatic)
Upgrade: linux-headers-generic-hwe-20.04:amd64 (5.11.0.44.48~20.04.22, 5.11.0.46.51~20.04.23), linux-image-generic-hwe-20.04:amd64 (5.11.0.44.48~20.04.22, 5.11.0.46.51~20.04.23), linux-generic-hwe-20.04:amd64 (5.11.0.44.48~20.04.22, 5.11.0.46.51~20.04.23)
End-Date: 2022-01-17  06:58:33

Start-Date: 2022-01-17  06:58:36
Commandline: /usr/bin/unattended-upgrade
Upgrade: python3-pil:amd64 (7.0.0-4ubuntu0.4, 7.0.0-4ubuntu0.5)
End-Date: 2022-01-17  06:58:37

Start-Date: 2022-01-17  06:58:41
Commandline: /usr/bin/unattended-upgrade
Upgrade: udev:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15), libudev1:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15)
End-Date: 2022-01-17  06:58:57

Start-Date: 2022-01-17  06:59:00
Commandline: /usr/bin/unattended-upgrade
Upgrade: firefox:amd64 (95.0.1+build2-0ubuntu0.20.04.1, 96.0+build2-0ubuntu0.20.04.1)
End-Date: 2022-01-17  06:59:05

Start-Date: 2022-01-17  06:59:09
Commandline: /usr/bin/unattended-upgrade
Upgrade: firefox-locale-en:amd64 (95.0.1+build2-0ubuntu0.20.04.1, 96.0+build2-0ubuntu0.20.04.1)
End-Date: 2022-01-17  06:59:09

Start-Date: 2022-01-17  06:59:13
Commandline: /usr/bin/unattended-upgrade
Upgrade: libexiv2-27:amd64 (0.27.2-8ubuntu2.6, 0.27.2-8ubuntu2.7)
End-Date: 2022-01-17  06:59:13

Start-Date: 2022-01-18  06:46:44
Commandline: /usr/bin/unattended-upgrade
Remove: linux-image-5.11.0-43-generic:amd64 (5.11.0-43.47~20.04.2), linux-modules-extra-5.11.0-43-generic:amd64 (5.11.0-43.47~20.04.2), linux-modules-5.11.0-43-generic:amd64 (5.11.0-43.47~20.04.2)
End-Date: 2022-01-18  06:46:50

Start-Date: 2022-01-18  06:46:53
Commandline: /usr/bin/unattended-upgrade
Remove: linux-headers-5.11.0-43-generic:amd64 (5.11.0-43.47~20.04.2)
End-Date: 2022-01-18  06:46:54

Start-Date: 2022-01-18  06:46:58
Commandline: /usr/bin/unattended-upgrade
Remove: linux-hwe-5.11-headers-5.11.0-43:amd64 (5.11.0-43.47~20.04.2)
End-Date: 2022-01-18  06:46:58

Start-Date: 2022-01-19  06:44:47
Commandline: /usr/bin/unattended-upgrade
Install: linux-modules-5.13.0-25-generic:amd64 (5.13.0-25.26~20.04.1, automatic), linux-headers-5.13.0-25-generic:amd64 (5.13.0-25.26~20.04.1, automatic), linux-modules-extra-5.13.0-25-generic:amd64 (5.13.0-25.26~20.04.1, automatic), linux-image-5.13.0-25-generic:amd64 (5.13.0-25.26~20.04.1, automatic), linux-hwe-5.13-headers-5.13.0-25:amd64 (5.13.0-25.26~20.04.1, automatic)
Upgrade: linux-headers-generic-hwe-20.04:amd64 (5.11.0.46.51~20.04.23, 5.13.0.25.26~20.04.12), linux-image-generic-hwe-20.04:amd64 (5.11.0.46.51~20.04.23, 5.13.0.25.26~20.04.12), linux-generic-hwe-20.04:amd64 (5.11.0.46.51~20.04.23, 5.13.0.25.26~20.04.12)
End-Date: 2022-01-19  06:45:27

Start-Date: 2022-01-20  10:25:32
Commandline: /usr/bin/unattended-upgrade
Remove: linux-headers-5.11.0-44-generic:amd64 (5.11.0-44.48~20.04.2), linux-hwe-5.11-headers-5.11.0-44:amd64 (5.11.0-44.48~20.04.2)
End-Date: 2022-01-20  10:25:34

Start-Date: 2022-01-20  10:25:37
Commandline: /usr/bin/unattended-upgrade
Remove: linux-modules-extra-5.11.0-44-generic:amd64 (5.11.0-44.48~20.04.2)
End-Date: 2022-01-20  10:25:38

Start-Date: 2022-01-20  10:25:42
Commandline: /usr/bin/unattended-upgrade
Remove: linux-modules-5.11.0-44-generic:amd64 (5.11.0-44.48~20.04.2), linux-image-5.11.0-44-generic:amd64 (5.11.0-44.48~20.04.2)
End-Date: 2022-01-20  10:25:46

Start-Date: 2022-01-20  10:25:51
Commandline: /usr/bin/unattended-upgrade
Upgrade: linux-libc-dev:amd64 (5.4.0-94.106, 5.4.0-96.109)
End-Date: 2022-01-20  10:25:51

Start-Date: 2022-01-20  10:25:55
Commandline: /usr/bin/unattended-upgrade
Install: linux-modules-extra-5.13.0-27-generic:amd64 (5.13.0-27.29~20.04.1, automatic), linux-modules-5.13.0-27-generic:amd64 (5.13.0-27.29~20.04.1, automatic), linux-headers-5.13.0-27-generic:amd64 (5.13.0-27.29~20.04.1, automatic), linux-image-5.13.0-27-generic:amd64 (5.13.0-27.29~20.04.1, automatic), linux-hwe-5.13-headers-5.13.0-27:amd64 (5.13.0-27.29~20.04.1, automatic)
Upgrade: linux-headers-generic-hwe-20.04:amd64 (5.13.0.25.26~20.04.12, 5.13.0.27.29~20.04.13), linux-image-generic-hwe-20.04:amd64 (5.13.0.25.26~20.04.12, 5.13.0.27.29~20.04.13), linux-generic-hwe-20.04:amd64 (5.13.0.25.26~20.04.12, 5.13.0.27.29~20.04.13)
End-Date: 2022-01-20  10:26:34

Start-Date: 2022-01-21  09:54:26
Commandline: /usr/bin/unattended-upgrade
Remove: linux-headers-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1), linux-hwe-5.11-headers-5.11.0-46:amd64 (5.11.0-46.51~20.04.1)
End-Date: 2022-01-21  09:54:28

Start-Date: 2022-01-21  09:54:32
Commandline: /usr/bin/unattended-upgrade
Remove: linux-image-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1), linux-modules-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1), linux-modules-extra-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1)
End-Date: 2022-01-21  09:54:37

我有双启动。因此在 Windows 上尝试了同样的操作,即使在锁定屏幕后也能正常工作。我不知道 Ubuntu 中是否有任何视频驱动程序受到干扰。请任何帮助!

答案1

我有一台联想笔记本电脑(AMD 架构)也有同样的问题。问题出在最新更新的内核 5.13 中。

通过输入此命令检查您的内核版本

uname -r

如果您使用的是 5.13 或更高版本,则可以通过降级到较低版本(例如 5.11)来解决该问题。

这不是最终的解决方案,但在新补丁发布之前它可以为您提供帮助。

有一些教程可能有用:

答案2

正如建议的杜岱在他的回答,我检查了内核版本,确实是5.13。

然后,我检查了在安装 5.13 之前还有哪些其他版本,方法是:

dpkg --list | grep linux-image

选择旧版本 5.11.0-44 并再次安装

sudo apt install linux-image-5.11.0-44-generic

并启动到这个 5.11 内核。它解决了显示问题,但很多事情都不起作用。比如网络、外接显示器等...

尝试通过执行 a 来比较其他已安装内核的所有安装dpkg --list | grep linux-,发现 5.11 缺少 module-extra 软件包

引导回新内核(可以工作但有显示问题的内核)并安装缺少的软件包

sudo apt install linux-modules-extra-5.11.0-44-generic

启动进入 5.11,一切正常

相关内容