我的 Ubuntu 22.04 会定期冻结。这种情况随时可能发生,但似乎在使用 Web 浏览器时最常发生。我不确定这是软件问题还是硬件问题。
我附上了常规启动日志来帮助您更好地理解我的问题。
dmesg
日志 -https://drive.google.com/file/d/17ij2ceQBwwZXwyFRSN2-PIG-mGhs6kJu/view?usp=sharing。journalctl -xe
-https://drive.google.com/file/d/1uZaqmpHns11lua5v-GfQFpdco3WTcHyw/view?usp=sharing。
Nov 07 11:45:48 valerii-HP-Laptop-14s-dq2xxx kernel: rtw_8821ce 0000:01:00.0: failed to send h2c command
Nov 07 11:45:51 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:46:02 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:46:03 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:46:04 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:46:05 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:46:06 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:46:06 valerii-HP-Laptop-14s-dq2xxx kernel: rtw_8821ce 0000:01:00.0: failed to send h2c command
Nov 07 11:46:19 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:46:20 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:46:21 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:46:26 valerii-HP-Laptop-14s-dq2xxx kernel: rtw_8821ce 0000:01:00.0: timed out to flush queue 1
Nov 07 11:46:27 valerii-HP-Laptop-14s-dq2xxx kernel: rtw_8821ce 0000:01:00.0: timed out to flush queue 1
Nov 07 11:46:27 valerii-HP-Laptop-14s-dq2xxx kernel: rtw_8821ce 0000:01:00.0: timed out to flush queue 1
Nov 07 11:46:32 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:46:33 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:46:46 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Nov 07 11:46:46 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Nov 07 11:46:46 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Nov 07 11:46:46 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Nov 07 11:46:46 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Nov 07 11:46:46 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Nov 07 11:46:46 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Nov 07 11:46:46 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Nov 07 11:46:46 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Nov 07 11:46:56 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Nov 07 11:46:56 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Nov 07 11:46:56 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Nov 07 11:46:56 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Nov 07 11:46:56 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Nov 07 11:46:56 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Nov 07 11:46:56 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Nov 07 11:46:56 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Nov 07 11:46:56 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Nov 07 11:47:01 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Nov 07 11:47:01 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Nov 07 11:47:01 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Nov 07 11:47:01 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Nov 07 11:47:01 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Nov 07 11:47:01 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Nov 07 11:47:01 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Nov 07 11:47:01 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Nov 07 11:47:01 valerii-HP-Laptop-14s-dq2xxx gnome-shell[2519]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Nov 07 11:47:21 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:47:48 valerii-HP-Laptop-14s-dq2xxx kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
Nov 07 11:49:04 valerii-HP-Laptop-14s-dq2xxx kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
Nov 07 11:49:05 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:49:06 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:49:21 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
Nov 07 11:49:33 valerii-HP-Laptop-14s-dq2xxx wpa_supplicant[725]: wlo1: CTRL-EVENT-BEACON-LOSS
11:41:52 kernel: rtw_8821ce 0000:01:00.0: failed to send h2c command
11:20:23 bluetoothd: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Host is down
11:20:14 kernel: rtw_8821ce 0000:01:00.0: failed to send h2c command
11:19:54 bluetoothd: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Host is down
11:19:16 kernel: rtw_8821ce 0000:01:00.0: failed to send h2c command
09:18:24 gdm-session-wor: GLib-GObject: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
09:18:20 systemd: Failed to start Application launched by gnome-session-binary.
09:18:20 kernel: rtw_8821ce 0000:01:00.0: failed to send h2c command
09:18:19 gdm-session-wor: gkr-pam: unable to locate daemon control file
09:18:13 kernel: rtw_8821ce 0000:01:00.0: failed to send h2c command
09:18:04 gnome-session-b: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
09:18:03 bluetoothd: Failed to set mode: Failed (0x03)
09:18:01 kernel: ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20221020/psobject-220)
答案1
系统“冻结”通常是由于运行过多、过大的程序,导致可用内存不足造成的。使用free
来查看是否有交换空间,阅读man mkswap swapon fstab fallocate
来创建一些交换空间。交换空间必须是连续的。使用mkswap
或fallocate
,而不是dd
。传统上,建议使用 1.5 × RAM 的交换空间,但 YMMV。如果您不打算让系统休眠,则可以拥有少于 1.0 × RAM 的空间。