两周前,我在我的 Amd Ryzen 5 1600 / Nvidia Gtx 1070 上安装了 Ubuntu 20.04,但 Ubuntu 不时完全冻结。
键盘和屏幕完全停止工作,鼠标有时能够继续移动。我试过使用神奇的 SysRq 键,但没有用。也尝试过alt+F1但也没有得到系统的任何响应。基本上我只需要按下电源按钮即可重新启动。
我怀疑Nvidia,但我不知道如何验证。
nvidia-smi
显示驱动程序版本 440.100。
发现这些日志/var/log/Xorg.1.log.old
显示我的计算机崩溃的时间。
[ 1223.234] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-22ms), your system is too slow
[ 1223.234] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-35ms), your system is too slow
[ 1488.529] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-0ms), your system is too slow
[ 1488.529] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-13ms), your system is too slow
[ 5125.223] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-14ms), your system is too slow
[ 5125.223] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-27ms), your system is too slow
[ 6038.321] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-9ms), your system is too slow
[ 6206.894] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-3ms), your system is too slow
[ 6206.894] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-16ms), your system is too slow
[ 6409.650] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-9ms), your system is too slow
[ 6409.650] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-22ms), your system is too slow
[ 10930.426] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-7ms), your system is too slow
[ 10930.426] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-20ms), your system is too slow
free -h
结果:
total used free shared buff/cache available
Mem: 15Gi 2.5Gi 11Gi 393Mi 1.9Gi 12Gi
Swap: 2.0Gi 0B 2.0Gi
sysctl vm.swappiness
结果:
vm.swappiness = 60
sudo lshw -C memory
结果:
*-firmware
description: BIOS
vendor: American Megatrends Inc.
physical id: 0
version: 1.L0
date: 12/28/2018
size: 64KiB
capacity: 16MiB
capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
*-memory
description: System Memory
physical id: f
slot: System board or motherboard
size: 16GiB
*-bank:0
description: 2933 MHz (0.3 ns) [empty]
product: Unknown
vendor: Unknown
physical id: 0
serial: Unknown
slot: DIMM 0
clock: 2933MHz (0.3ns)
*-bank:1
description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2933 MHz (0.3 ns)
product: CMK16GX4M2B3200C16
vendor: Unknown
physical id: 1
serial: 00000000
slot: DIMM 1
size: 8GiB
width: 64 bits
clock: 2933MHz (0.3ns)
*-bank:2
description: 2933 MHz (0.3 ns) [empty]
product: Unknown
vendor: Unknown
physical id: 2
serial: Unknown
slot: DIMM 0
clock: 2933MHz (0.3ns)
*-bank:3
description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2933 MHz (0.3 ns)
product: CMK16GX4M2B3200C16
vendor: Unknown
physical id: 3
serial: 00000000
slot: DIMM 1
size: 8GiB
width: 64 bits
clock: 2933MHz (0.3ns)
*-cache:0
description: L1 cache
physical id: 11
slot: L1 - Cache
size: 576KiB
capacity: 576KiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
configuration: level=1
*-cache:1
description: L2 cache
physical id: 12
slot: L2 - Cache
size: 3MiB
capacity: 3MiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
configuration: level=2
*-cache:2
description: L3 cache
physical id: 13
slot: L3 - Cache
size: 16MiB
capacity: 16MiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
configuration: level=3
grep -i swap /etc/fstab
结果:
/swapfile none swap sw 0 0
sudo dmidecode -s bios-version
结果:
1.L0
添加软件和更新屏幕截图
8月6日更新:
BIOS
微星 B350 战斧
您的 BIOS 版本 1.L0,日期为 2018 年 12 月 28 日。
这里有更新的 BIOS 。编号/命名约定与您现在的不同,这很不寻常。联系 MSI 支持并询问相关问题。
注意:请确认我拥有适合您的主板型号的正确网页。
注意:不要下载/使用/安装最新的 BETA 版本。
注意:在更新 BIOS 之前做好备份。
交换
让我们将您的 /swapfile 从 2G 增加到 4G。
注意:命令使用不当
dd
会导致数据丢失。建议复制/粘贴。将此行添加到 /etc/fstab...英伟达
您拥有 Nvidia 版本 440.100。
Software & Updates
表明这是当前版本。但是,有一个更新的版本 450.57 可以在这里下载。注意:在更新 Nvidia 驱动程序之前做好备份。
更新#1:
由于您不得不强行关闭计算机,让我们检查一下您的文件系统...
terminal
按Ctrl+ Alt+打开一个窗口Tsudo fdisk -l
sudo fsck -f /dev/sdXX
,替换sdXX
为您之前找到的数字fsck
如果有错误,请重复该命令reboot
更新#2:
安装 BIOS 更新...但请先联系 MSI 支持,以确认您需要哪个 BIOS 更新文件版本...因为它们的命名约定似乎已更改。
您已经安装了许多 GNOME Shell 扩展,其中任何一个都可能导致冻结,并且它们安装在“错误”的位置,因为它们是在系统范围内安装的,与用户特定的相对应。您可以在 /usr/share/gnome-shell/extensions 目录列表中看到它们,它们都以 gcampax.github.com 结尾。
删除它们的最安全方法是转到https://extensions.gnome.org/local/并删除除这三个扩展之外的所有扩展...
如果系统在一段时间内运行正常而没有冻结,则手动重新安装任何单个收藏夹,一次一个扩展,而不是安装扩展包/zip 文件。
在类似系统(Ryzen 5 1600X,Asus B350 Plus)上为我解决此问题的方法是在 BIOS 中禁用“自动 C 状态管理”。它在您的 BIOS 中的命名可能略有不同。