我最近安装了 Linux,我注意到它有时会冻结大约 5 秒钟,然后恢复正常运行。
查看日志journalctl
我发现笔记本电脑冻结时出现了这条消息:
nouveau 0000:01:00.0: DRM: failed to idle channel 0 [DRM]
我主要在使用 Chrome 时注意到了这个问题。我尝试Use hardware acceleration when available
在 Chrome 中禁用它,但问题仍然存在。
现在我已经切换到 Firefox,这个问题发生的频率降低了,但仍然存在。
有人知道这个问题是什么以及如何解决它吗?
我的设置:
- 华硕 ZenBook UM5500Q
- Ubuntu 22.04.1
- 窗口管理器:KDE Plasma
- 处理器(来自
lscpu
):AMD Ryzen 9 5900HX,配备 Radeon Graphics - 显卡(如下
lspci
):GeForce RTX 3050 Ti Mobile
还有一些其他信息:
$ sudo lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
01:00.0 3D controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (rev a1)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
03:00.0 Network controller: Intel Corporation Wireless-AC 9260 (rev 29)
04:00.0 Non-Volatile memory controller: SK hynix Gold P31 SSD
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne (rev c4)
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
06:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
答案1
你应该安装专有 NVIDIA 驱动程序。开源驱动程序nouveau
不支持您最近拥有的 GPU 上的所有功能,例如动态时钟恢复和 3D 支持。这是表明的在 Nouveau 的主页上。
要在 Ubuntu 22.04.1 上安装专有驱动程序,请按照以下说明操作:
确保 Ubuntu 安装是最新的:
这可确保安装内核和驱动程序包时冲突最少。
sudo apt update && sudo apt upgrade
我建议之后重新启动,然后再继续下一步:
sudo systemctl reboot
然后通过实用程序安装驱动程序ubuntu-drivers
。通过以下方式调用它:
ubuntu-drivers devices
查看有关 GPU 和建议安装的驱动程序的信息。
要安装推荐的驱动程序包ubuntu-drivers
,请运行:
sudo ubuntu-drivers autoinstall
完成后请务必重新启动,然后重新测试。
补充说明:
如果你需要使用 NVIDIA GPU 在 Firefox 中进行基于硬件的解码,请从以下位置构建并安装 NVIDIA VAAPI 驱动程序后端:这里。