我在这里看到了一些关于 Matebook D 的帖子,并尝试了几种解决方案,但到目前为止似乎都没有奏效。我正在运行 Ubuntu 19.04(一周前还是 18.04)。我已将内核更新到 5.3.7。通过我的 Windows 分区,我确保 BIOS 已更新(我相信是 1.22)。我仍然发现在 Chromium 浏览器上它会在 1 分钟到 1 天内冻结。这种情况似乎更常发生在 JS 密集型网站上,这些网站涉及大量内容的自动加载,例如 Facebook。在日志中我得到了:
09:49:50 bluetoothd: Failed to set mode: Blocked through rfkill (0x12)
09:49:50 spice-vdagent: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0
09:49:46 gdm-session-wor: gkr-pam: unable to locate daemon control file
09:49:19 systemd: Failed to start Postfix Mail Transport Agent (instance -).
09:49:17 dhclient: Timeout too large reducing to: 2147483646 (TIME_MAX - 1)
09:49:16 bluetoothd: Failed to set mode: Blocked through rfkill (0x12)
09:49:16 spice-vdagent: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0
09:49:12 bluetoothd: Failed to set mode: Blocked through rfkill (0x12)
09:49:12 kernel: kvm: disabled by bios
09:49:11 systemd: Failed to start Load/Save Screen Backlight Brightness of backlight:acpi_video1.
09:49:11 kernel: kvm: disabled by bios
09:49:11 kernel: kfd kfd: device 1002:15dd NOT added due to errors
09:49:11 kernel: kvm: disabled by bios
09:49:11 kernel: snd_pci_acp3x 0000:02:00.5: Invalid ACP audio mode : 1
09:49:11 kernel: Couldn't get size: 0x800000000000000e
09:49:11 kernel: MODSIGN: Couldn't get UEFI db list
09:49:11 kernel: Couldn't get size: 0x800000000000000e
09:49:11 kernel: tpm_crb MSFT0101:00: can't request region for resource [mem 0x8f7a6000-0x8f7a9fff]
09:49:11 kernel: pci 0000:00:00.2: AMD-Vi: Unable to write to IOMMU perf counter.
09:49:11 kernel: AMD-Vi: Disabling interrupt remapping
有人能建议我该怎么做才能阻止这种情况发生吗?如果我需要提供更多信息,请告诉我
答案1
看来 ryzen 处理器的 IOMMU 存在大量问题。我也遇到过这种情况。尝试在 /etc/default/grub 的 GRUB_CMDLINE_LINUX_DEFAULT 行中添加以下选项:
iommu=soft
然后运行
$> sudo update-grub
最后重启
答案2
尝试向内核启动选项添加如下内容:
processor.max_cstate=1 // or 5