为什么我的 Fedora/Ubuntu 经常在挂起后挂起?

为什么我的 Fedora/Ubuntu 经常在挂起后挂起?

有时,当我让我的电脑因超时而进入休眠状态时,它会在登录时冻结。所有应用程序都会关闭,无法打开任何内容,我的文件未列出,某些应用程序图标未显示。我总是不得不强制关机。

Here is some more info:
dredre@fedora:~$ dmesg
[    0.000000] microcode: updated early: 0x429 -> 0x430, date = 2023-06-07
[    0.000000] Linux version 6.6.9-200.fc39.x86_64 (mockbuild@40899ab643a34e108460506c3edafa2d) (gcc (GCC) 13.2.1 20231205 (Red Hat 13.2.1-6), GNU ld version 2.40-13.fc39) #1 SMP PREEMPT_DYNAMIC Mon Jan  1 20:05:54 UTC 2024
[    0.000000] Command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.6.9-200.fc39.x86_64 root=UUID=c36a18fa-9ee8-4597-a529-b00b6b92a12a ro rootflags=subvol=root rhgb quiet
[    0.000000] x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009efff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009f000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000008c431fff] usable
[    0.000000] BIOS-e820: [mem 0x000000008c432000-0x0000000091b2efff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000091b2f000-0x000000009272efff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x000000009272f000-0x00000000927fefff] ACPI data
[    0.000000] BIOS-e820: [mem 0x00000000927ff000-0x00000000927fffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000092800000-0x0000000096ffffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000097a00000-0x0000000097bfffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000098400000-0x00000000a07fffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000c0000000-0x00000000cfffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fed20000-0x00000000fed7ffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000045f7fffff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] APIC: Static calls initialized
[    0.000000] efi: EFI v2.7 by Lenovo
[    0.000000] efi: ACPI=0x927fe000 ACPI 2.0=0x927fe014 TPMFinalLog=0x926ae000 SMBIOS=0x8e8af000 SMBIOS 3.0=0x8e8a2000 MEMATTR=0x8851f018 ESRT=0x8852c998 MOKvar=0x8c9da000 RNG=0x927fd018 TPMEventLog=0x6b025018 
[    0.000000] random: crng init done
[    0.000000] efi: Remove mem77: MMIO range=[0xc0000000-0xcfffffff] (256MB) from e820 map
[    0.000000] e820: remove [mem 0xc0000000-0xcfffffff] reserved
[    0.000000] secureboot: Secure boot disabled
[    0.000000] SMBIOS 3.4.0 present.
[    0.000000] DMI: LENOVO 21E6CTO1WW/21E6CTO1WW, BIOS R1SET49W(1.20) 04/13/2023
[    0.000000] tsc: Detected 2500.000 MHz processor
[    0.000000] tsc: Detected 2496.000 MHz TSC

有人可以帮帮我吗?

答案1

我遇到了类似的问题,屏幕没有冻结,但只是无法打开。更新内核(从 6.0.* 到 6.2.0)解决了这个问题。

启动时检查错误消息:我明白了

ACPI BIOS Error (bug): AE_AML_PACKAGE_LIMIT, Index (0x0000000005) is beyond end of object ...

(即使在更新内核之后)。这可能有助于发现问题。

关于交换,对于 16 GB RAM,零交换应该足够了(或者可能不够),但我有点确定这不是问题。 (我听说 8G 时交换区应等于 RAM,小于 8G 时则应等于 RAM 的两倍。)

最后,检查您的设备是否开启“Ubuntu 认证硬件”列表。我发现我的笔记本电脑与 Ubuntu 20.04 LTS 兼容,但不与 22.04 兼容,直到我更新了内核,它才可以工作。

相关内容