为什么我的屏幕会冻结?

为什么我的屏幕会冻结?

最近,我的 22.04 安装开始以特定方式冻结:

  1. 屏幕冻结;
  2. 键盘输入似乎没有任何作用;
  3. 计算机仍在工作。

我知道3这是真的,因为我在 Zoom 通话时遇到过这种情况;通话继续进行,我可以听到人们说话的声音,但是,正如我所说的,屏幕冻结了,我用键盘进行的任何操作(例如++ Ctrl)都没有任何反应。AltF1

我升级到 23.04 但问题仍然存在。

我在系统冻结之前检查过系统日志,但是无法从中找出发生了什么。

问题答案:

  1. 我没有更改默认图形驱动程序。
  2. 我的内核是6.2.xxx。

更新:

我认为这与 Firefox 有关。我插入了一个新的下面的日志(由于字数问题,删除了旧的日志)立即地打开 Firefox 后。

Oct 11 10:20:14 thinkpad-E580 systemd[3585]: Started app-gnome-firefox-7954.scope - Application launched by gnome-shell.
Oct 11 10:20:15 thinkpad-E580 systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Oct 11 10:20:15 thinkpad-E580 kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=8c:16:45:27:f1:31:98:da:c4:a8:9a:a6:08:00 SRC=18.67.91.56 DST=192.168.1.107 LEN=52 TOS=0x00 PREC=0x00 TTL=249 ID=56662 PROTO=TCP SPT=80 DPT=51182 WINDOW=131 RES=0x00 ACK FIN URGP=0 
Oct 11 10:20:15 thinkpad-E580 firefox.desktop[7954]: ATTENTION: default value of option mesa_glthread overridden by environment.
Oct 11 10:20:15 thinkpad-E580 firefox.desktop[7954]: ATTENTION: default value of option mesa_glthread overridden by environment.
Oct 11 10:20:16 thinkpad-E580 dbus-daemon[3006]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service' requested by ':1.92' (uid=1000 pid=7954 comm="/usr/local/bin/firefox" label="unconfined")
Oct 11 10:20:16 thinkpad-E580 systemd[1]: Starting systemd-timedated.service - Time & Date Service...
Oct 11 10:20:16 thinkpad-E580 dbus-daemon[3006]: [system] Successfully activated service 'org.freedesktop.timedate1'
Oct 11 10:20:16 thinkpad-E580 systemd[1]: Started systemd-timedated.service - Time & Date Service.
Oct 11 10:20:16 thinkpad-E580 rtkit-daemon[3934]: Supervising 6 threads of 3 processes of 1 users.
Oct 11 10:20:16 thinkpad-E580 rtkit-daemon[3934]: Supervising 6 threads of 3 processes of 1 users.
Oct 11 10:20:16 thinkpad-E580 rtkit-daemon[3934]: Supervising 6 threads of 3 processes of 1 users.
Oct 11 10:20:16 thinkpad-E580 rtkit-daemon[3934]: Supervising 6 threads of 3 processes of 1 users.
Oct 11 10:20:16 thinkpad-E580 rtkit-daemon[3934]: Supervising 6 threads of 3 processes of 1 users.
Oct 11 10:20:16 thinkpad-E580 rtkit-daemon[3934]: Supervising 6 threads of 3 processes of 1 users.
Oct 11 10:20:16 thinkpad-E580 rtkit-daemon[3934]: Successfully made thread 8192 of process 7954 owned by '1000' RT at priority 10.
Oct 11 10:20:16 thinkpad-E580 rtkit-daemon[3934]: Supervising 7 threads of 4 processes of 1 users.
Oct 11 10:20:17 thinkpad-E580 rtkit-daemon[3934]: Supervising 7 threads of 4 processes of 1 users.
Oct 11 10:20:17 thinkpad-E580 rtkit-daemon[3934]: Supervising 7 threads of 4 processes of 1 users.
Oct 11 10:20:17 thinkpad-E580 rtkit-daemon[3934]: Supervising 7 threads of 4 processes of 1 users.
Oct 11 10:20:17 thinkpad-E580 rtkit-daemon[3934]: Supervising 7 threads of 4 processes of 1 users.
Oct 11 10:20:17 thinkpad-E580 rtkit-daemon[3934]: Supervising 7 threads of 4 processes of 1 users.
Oct 11 10:20:17 thinkpad-E580 rtkit-daemon[3934]: Supervising 7 threads of 4 processes of 1 users.
Oct 11 10:20:17 thinkpad-E580 rtkit-daemon[3934]: Supervising 7 threads of 4 processes of 1 users.
Oct 11 10:20:17 thinkpad-E580 rtkit-daemon[3934]: Supervising 7 threads of 4 processes of 1 users.
Oct 11 10:20:19 thinkpad-E580 rtkit-daemon[3934]: Supervising 7 threads of 4 processes of 1 users.
Oct 11 10:20:19 thinkpad-E580 rtkit-daemon[3934]: Supervising 7 threads of 4 processes of 1 users.
Oct 11 10:20:35 thinkpad-E580 kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=8c:16:45:27:f1:31:98:da:c4:a8:9a:a6:08:00 SRC=142.250.71.67 DST=192.168.1.107 LEN=52 TOS=0x00 PREC=0x00 TTL=122 ID=6468 PROTO=TCP SPT=80 DPT=46552 WINDOW=261 RES=0x00 ACK FIN URGP=0 
Oct 11 10:20:46 thinkpad-E580 systemd[1]: systemd-timedated.service: Deactivated successfully.
Oct 11 10:20:46 thinkpad-E580 systemd-logind[3061]: Power key pressed short.
Oct 11 10:20:48 thinkpad-E580 systemd-logind[3061]: Power key pressed short.
Oct 11 10:20:51 thinkpad-E580 systemd-logind[3061]: Power key pressed short.
Oct 11 10:21:00 thinkpad-E580 kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=8c:16:45:27:f1:31:98:da:c4:a8:9a:a6:08:00 SRC=34.117.65.55 DST=192.168.1.107 LEN=76 TOS=0x00 PREC=0x00 TTL=122 ID=26377 PROTO=TCP SPT=443 DPT=52442 WINDOW=285 RES=0x00 ACK PSH URGP=0 
Oct 11 10:21:01 thinkpad-E580 kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=8c:16:45:27:f1:31:98:da:c4:a8:9a:a6:08:00 SRC=34.117.65.55 DST=192.168.1.107 LEN=76 TOS=0x00 PREC=0x00 TTL=122 ID=26378 PROTO=TCP SPT=443 DPT=52442 WINDOW=285 RES=0x00 ACK PSH URGP=0 
Oct 11 10:21:01 thinkpad-E580 kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=8c:16:45:27:f1:31:98:da:c4:a8:9a:a6:08:00 SRC=34.117.65.55 DST=192.168.1.107 LEN=76 TOS=0x00 PREC=0x00 TTL=122 ID=26379 PROTO=TCP SPT=443 DPT=52442 WINDOW=285 RES=0x00 ACK PSH URGP=0 
Oct 11 10:21:01 thinkpad-E580 kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=8c:16:45:27:f1:31:98:da:c4:a8:9a:a6:08:00 SRC=34.117.65.55 DST=192.168.1.107 LEN=76 TOS=0x00 PREC=0x00 TTL=122 ID=26380 PROTO=TCP SPT=443 DPT=52442 WINDOW=285 RES=0x00 ACK PSH URGP=0 
Oct 11 10:21:02 thinkpad-E580 kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=8c:16:45:27:f1:31:98:da:c4:a8:9a:a6:08:00 SRC=34.117.65.55 DST=192.168.1.107 LEN=76 TOS=0x00 PREC=0x00 TTL=122 ID=26381 PROTO=TCP SPT=443 DPT=52442 WINDOW=285 RES=0x00 ACK PSH URGP=0 
Oct 11 10:21:03 thinkpad-E580 systemd-logind[3061]: Power key pressed short.
Oct 11 10:21:04 thinkpad-E580 kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=8c:16:45:27:f1:31:98:da:c4:a8:9a:a6:08:00 SRC=142.250.71.67 DST=192.168.1.107 LEN=52 TOS=0x00 PREC=0x00 TTL=122 ID=6469 PROTO=TCP SPT=80 DPT=46552 WINDOW=261 RES=0x00 ACK FIN URGP=0 
Oct 11 10:21:04 thinkpad-E580 kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=8c:16:45:27:f1:31:98:da:c4:a8:9a:a6:08:00 SRC=34.117.65.55 DST=192.168.1.107 LEN=76 TOS=0x00 PREC=0x00 TTL=122 ID=26382 PROTO=TCP SPT=443 DPT=52442 WINDOW=285 RES=0x00 ACK PSH URGP=0 
Oct 11 10:21:08 thinkpad-E580 kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=8c:16:45:27:f1:31:98:da:c4:a8:9a:a6:08:00 SRC=34.117.65.55 DST=192.168.1.107 LEN=76 TOS=0x00 PREC=0x00 TTL=122 ID=26383 PROTO=TCP SPT=443 DPT=52442 WINDOW=285 RES=0x00 ACK PSH URGP=0 
Oct 11 10:21:10 thinkpad-E580 kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=01:00:5e:00:00:01:98:da:c4:a8:9a:a6:08:00 SRC=192.168.1.1 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2 
Oct 11 10:21:21 thinkpad-E580 kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=8c:16:45:27:f1:31:98:da:c4:a8:9a:a6:08:00 SRC=198.252.206.25 DST=192.168.1.107 LEN=113 TOS=0x00 PREC=0x00 TTL=47 ID=37646 DF PROTO=TCP SPT=443 DPT=42052 WINDOW=63 RES=0x00 ACK PSH URGP=0 
Oct 11 10:21:22 thinkpad-E580 kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=8c:16:45:27:f1:31:98:da:c4:a8:9a:a6:08:00 SRC=198.252.206.25 DST=192.168.1.107 LEN=113 TOS=0x00 PREC=0x00 TTL=47 ID=37647 DF PROTO=TCP SPT=443 DPT=42052 WINDOW=63 RES=0x00 ACK PSH URGP=0 
Oct 11 10:21:26 thinkpad-E580 kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=8c:16:45:27:f1:31:98:da:c4:a8:9a:a6:08:00 SRC=198.252.206.25 DST=192.168.1.107 LEN=113 TOS=0x00 PREC=0x00 TTL=47 ID=37650 DF PROTO=TCP SPT=443 DPT=42052 WINDOW=63 RES=0x00 ACK PSH URGP=0 
Oct 11 10:21:26 thinkpad-E580 systemd-logind[3061]: Power key pressed short.

答案1

不幸的是,日志没有给出问题根源的任何明确指示。

此问题通常是由不稳定的图形驱动程序引起的。乱用图形驱动程序可能会损坏您的操作系统(因此请先备份!),但您可以尝试转到 Ubuntu 中的“其他驱动程序”应用程序并尝试其他驱动程序。如果这些不起作用,您也可以直接从制造商处安装驱动程序(如果他们提供)。

此问题也可能是由内存 (RAM) 损坏引起的,但如果发生这种情况,我不希望 zoom 等继续工作。您可以使用 memtest86+ 之类的工具来测试这一点。

相关内容