我是铁杆 Windows 用户,最近转到 Ubuntu 尝试 Linux,我发现 Linux 更好,我很喜欢它。
但是,我遇到了 Ubuntu 无响应的问题。基本上一切都冻结了,我只能移动鼠标,我可以听到背景音乐仍在播放。我注意到,无论是在 YouTube、VLC 上观看视频,还是在 Spotify 应用程序或 Microsoft Teams 应用程序中浏览,都会出现此问题。
我尝试通过Alt+ F2+重新启动 GNOME r,但什么也没发生。也尝试killall -3 gnome-shell
过从控制台重新启动,但没有帮助。我唯一的出路是重新启动计算机。我已经对这个问题进行了几个月的故障排除,我最终重新安装了 Ubuntu 18.04 几次,还安装了最新版本的 Ubuntu 20.04,但问题仍然存在。
我买了一台戴尔 Precision Tower 5810
我的显卡是:
lspci -k | grep -EA2 'VGA|3D'
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde GL [FirePro W4100]
Subsystem: Dell Cape Verde GL [FirePro W4100]
Kernel driver in use: radeon
我的 Ubuntu 版本是:
Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
内核版本:5.4.0-33-generic
更多硬件信息。
r2@r2-Dell-5810:/var/log$ free -h
total used free shared buff/cache available
Mem: 15Gi 2.4Gi 10Gi 185Mi 2.7Gi 12Gi
Swap: 2.0Gi 0B 2.0Gi
r2@r2-Dell-5810:/var/log$ sysctl vm.swappiness
vm.swappiness = 60
r2@r2-Dell-5810:/var/log$ sudo dmidecode -s bios-version
A14
r2@r2-Dell-5810:/var/log$ sudo lshw -C memory
*-firmware
description: BIOS
vendor: Dell Inc.
physical id: 0
version: A14
date: 07/01/2016
size: 64KiB
capacity: 16MiB
capabilities: pci pnp upgrade shadowing cdboot bootselect edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
*-cache:0
description: L1 cache
physical id: 75
slot: CPU Internal L1
size: 256KiB
capacity: 256KiB
capabilities: internal write-back
configuration: level=1
*-cache:1
description: L2 cache
physical id: 7a
slot: CPU Internal L2
size: 1MiB
capacity: 1MiB
capabilities: internal write-back unified
configuration: level=2
*-cache:2
description: L3 cache
physical id: 7f
slot: CPU Internal L3
size: 10MiB
capacity: 10MiB
capabilities: internal write-back unified
configuration: level=3
*-memory
description: System Memory
physical id: 2f
slot: System board or motherboard
size: 16GiB
capabilities: ecc
configuration: errordetection=multi-bit-ecc
*-bank:0
description: RIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <[email protected]>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2020-04-16 17:42+0000X-Generator: Launchpad (build 2e26c9bbd21cdca248baaea29aeffb920afcc32a) Synchronous 2400 MHz (0.4 ns)
product: 9ASF51272PZ-2G3B1
vendor: Micron
physical id: 0
serial: 133F18DB
slot: DIMM1
size: 4GiB
width: 64 bits
clock: 2400MHz (0.4ns)
*-bank:1
description: RIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <[email protected]>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2020-04-16 17:42+0000X-Generator: Launchpad (build 2e26c9bbd21cdca248baaea29aeffb920afcc32a) Synchronous [empty]
product: DIMM5_PartNumber
vendor: DIMM5_Manufacturer1
physical id: 1
serial: DIMM5_SerNum
slot: DIMM5
*-bank:2
description: RIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <[email protected]>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2020-04-16 17:42+0000X-Generator: Launchpad (build 2e26c9bbd21cdca248baaea29aeffb920afcc32a) Synchronous 2400 MHz (0.4 ns)
product: 9ASF51272PZ-2G3B1
vendor: Micron
physical id: 2
serial: 133F18AF
slot: DIMM3
size: 4GiB
width: 64 bits
clock: 2400MHz (0.4ns)
*-bank:3
description: RIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <[email protected]>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2020-04-16 17:42+0000X-Generator: Launchpad (build 2e26c9bbd21cdca248baaea29aeffb920afcc32a) Synchronous [empty]
product: DIMM7_PartNumber
vendor: DIMM7_Manufacturer1
physical id: 3
serial: DIMM7_SerNum
slot: DIMM7
*-bank:4
description: RIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <[email protected]>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2020-04-16 17:42+0000X-Generator: Launchpad (build 2e26c9bbd21cdca248baaea29aeffb920afcc32a) Synchronous 2400 MHz (0.4 ns)
product: 9ASF51272PZ-2G3B1
vendor: Micron
physical id: 4
serial: 133F2662
slot: DIMM2
size: 4GiB
width: 64 bits
clock: 2400MHz (0.4ns)
*-bank:5
description: RIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <[email protected]>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2020-04-16 17:42+0000X-Generator: Launchpad (build 2e26c9bbd21cdca248baaea29aeffb920afcc32a) Synchronous [empty]
product: DIMM6_PartNumber
vendor: DIMM6_Manufacturer1
physical id: 5
serial: DIMM6_SerNum
slot: DIMM6
*-bank:6
description: RIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <[email protected]>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2020-04-16 17:42+0000X-Generator: Launchpad (build 2e26c9bbd21cdca248baaea29aeffb920afcc32a) Synchronous 2400 MHz (0.4 ns)
product: 9ASF51272PZ-2G3B1
vendor: Micron
physical id: 6
serial: 133F26E0
slot: DIMM4
size: 4GiB
width: 64 bits
clock: 2400MHz (0.4ns)
*-bank:7
description: RIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <[email protected]>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2020-04-16 17:42+0000X-Generator: Launchpad (build 2e26c9bbd21cdca248baaea29aeffb920afcc32a) Synchronous [empty]
product: DIMM8_PartNumber
vendor: DIMM8_Manufacturer1
physical id: 7
serial: DIMM8_SerNum
slot: DIMM8
最后一次冻结发生在 6 月 6 日 23:13,我于 23:15 重启。请参阅当时的系统日志。
Jun 6 23:03:21 r2-Dell-5810 snapd[875]: autorefresh.go:397: auto-refresh: all snaps are up-to-date
Jun 6 23:04:15 r2-Dell-5810 rtkit-daemon[1282]: Supervising 6 threads of 5 processes of 1 users.
Jun 6 23:04:15 r2-Dell-5810 rtkit-daemon[1282]: Supervising 6 threads of 5 processes of 1 users.
Jun 6 23:09:01 r2-Dell-5810 spotify_spotify.desktop[13705]: [2020/06/06 23:09:01:6244] ERR: getaddrinfo failed: -3
Jun 6 23:15:52 r2-Dell-5810 /usr/lib/gdm3/gdm-x-session[1962]: (**) Option "fd" "25"
Jun 6 23:15:52 r2-Dell-5810 /usr/lib/gdm3/gdm-x-session[1962]: (II) event1 - Power Button: device removed
以下是 Kern.log
Jun 6 23:02:49 r2-Dell-5810 kernel: [19473.745225] perf: interrupt took too long (2518 > 2500), lowering kernel.perf_event_max_sample_rate to 79250
Jun 6 23:15:53 r2-Dell-5810 kernel: [20257.714790] rfkill: input handler enabled
Jun 6 23:15:53 r2-Dell-5810 kernel: [20257.715018] audit: type=1107 audit(1591481753.163:6206): pid=840 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="CheckPermissions" name=":1.11" mask="receive" pid=13705 label="snap.spotify.spotify" peer_pid=841 peer_label="unconfined"
Jun 6 23:15:53 r2-Dell-5810 kernel: [20257.715018] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
Jun 6 23:15:53 r2-Dell-5810 kernel: [20257.716336] audit: type=1107 audit(1591481753.163:6207): pid=840 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="CheckPermissions" name=":1.11" mask="receive" pid=13705 label="snap.spotify.spotify" peer_pid=841 peer_label="unconfined"
Jun 6 23:15:53 r2-Dell-5810 kernel: [20257.716336] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
答案1
BIOS
戴尔 Precision Tower 5810
你的 BIOS 很旧了,A14。
有更新的 BIOS 可用,即 A33,发布日期为 2020 年 5 月 4 日,可从以下网址下载这里。
笔记:请确认我已获得适合您型号的正确网页。
笔记:更新 BIOS 之前请做好备份。
/交换文件
我们将您的 /swapfile 从 2G 增加到 4G。
笔记:错误使用rm
和dd
命令可能会导致数据丢失。建议复制/粘贴。
在里面terminal
...
sudo swapoff -a # turn off swap
sudo rm -i /swapfile # remove old /swapfile
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
sudo chmod 600 /swapfile # set proper file protections
sudo mkswap /swapfile # init /swapfile
sudo swapon /swapfile # turn on swap
free -h # confirm 16G RAM and 4G swap
sudo -H gedit /etc/fstab
使用或编辑 /etc/fstab sudo pico /etc/fstab
。
确认 /etc/fstab 中的此 /swapfile 行...并确认没有其他“交换”行...在此行中使用空格...确认没有制表符...
/swapfile none swap sw 0 0
reboot # reboot and verify operation
答案2
重新安装操作系统无法解决冻结问题,这似乎表明您的计算机存在硬件问题。视频冻结但背景中仍在播放音频是图形处理器问题的特征。Dell Precision Tower 5810 配有 AMD FirePro W4100 显卡。显卡可能由于过度使用而出现故障,也可能由于过热而出现故障,因为计算机过热速度非常快,但在这种情况下,罪魁祸首通常是显卡。幸运的是,独立显卡很容易更换。
过热可能由以下原因造成:
灰尘和碎屑堵塞了 CPU 上铝制散热器散热片之间的开口。
一把破旧的风扇。
CPU 和 CPU 上的铝制散热器之间的导热膏有裂缝或磨损。
如果需要更换 CPU 风扇,则将 CPU 风扇和铝制冷却块作为一个组装单元一起更换可能是有意义的,如果这两个部件作为单个组装单元一起出售,并同时解决所有三个问题。
当你在等待决定如何解决你的电脑视频冻结问题时,你应该安装 Psensor (传感器) 图形温度监视器应用程序,它来自默认的 Ubuntu 存储库,用于提供有关计算机 CPU 和 GPU 温度的实时信息。Psensor 图标位于桌面右上角的通知区域。Psensor 图标看起来像一个小温度计,您可以单击它来显示风扇速度以及 CPU 和 GPU 温度。如果风扇的速度比正常速度慢,并且该风扇一直在旋转,这是一个很好的迹象,表明风扇由于轴承上的摩擦而开始磨损。
X传感器(xsensors) 是另一个来自默认 Ubuntu 存储库的图形温度监视器应用程序。XSensors 与 Psensor 类似,但它具有附加功能和更精致的图形用户界面。
答案3
经过多次冻结后,我将错误范围缩小到以下。
DMAR:[INTR-REMAP] 请求设备 [00:00.0] 故障索引 27 [故障原因 38] 由于源 ID 验证失败而阻止了中断请求。
找到了以下问题的解决方案。
使用 ATI HD 7850 的 ubuntu 16.04.02 随机冻结。
谢谢你们的帮助。
答案4
我花了几个月的时间才弄清楚为什么我的较旧且较慢的赛扬计算机有时会冻结几分钟,而硬盘指示灯仍然亮着。为了防止系统在硬盘交换大文件块时长时间冻结,请管理交换设置
要查看 swappiness 的设置值...
cat /proc/sys/vm/swappiness
如果将其设置为默认值 60 那么...
sudo gedit /etc/sysctl.conf
将其添加到文件末尾
vm.swappiness=10
我的系统不再冻结:-)