
我最近將 GPU 更換為 Radeon RX 580(我當時使用的是 GTX 750Ti),當使用新 GPU 時,我會在螢幕上出現視覺偽影(通常是在進入會話後或幾分鐘後很快)。這些偽影大多時候都是以某種紅色形式或彩色方塊開始,然後螢幕變成一些隨機顏色(見下圖)。
到目前為止,我已經完成了一些故障排除,這是我迄今為止收集的資訊:
- 這種情況發生在 Ubuntu 20.04、Pop!_OS 20.04(基於 Ubuntu)上,但不會發生在 Debian 10 上,因此我認為這是與 Ubuntu 相關的問題(這些問題都使用 GNOME 進行了測試)。都用 X11 和 Wayland 進行了測試,都沒有解決問題。
- 我不認為這與硬體相關,因為我安裝了 Windows 並進行了雙啟動,而且到目前為止,我在 Windows 上的 GPU 完全沒有遇到任何問題
- 我嘗試過的三個發行版都在實時 USB 上進行了嘗試(請注意,我在 HDD 上安裝了 Pop!,並且存在相同的問題)
- GTX 750Ti 一切正常
- 我相信 Debian 沒有 amdgpu 韌體或無法加載它們(或者至少我認為我在啟動過程中讀到過),沒有註意到其他 2 個上的此類消息/警告
- 我相信幾年前我已經在 Linux Mint 上經歷過類似的事情,但那是一個模糊的記憶,它絕對與這裡無關。
範例圖片連結:
編輯:這是所要求的一些命令輸出
sudo lshw -C 內存
*-firmware
description: BIOS
vendor: American Megatrends Inc.
physical id: 0
version: 2202
date: 07/14/2020
size: 64KiB
capacity: 16MiB
capabilities: pci apm upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
*-memory
description: System Memory
physical id: 29
slot: System board or motherboard
size: 16GiB
*-bank:0
description: Project-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-07-09 17:42+0000X-Generator: Launchpad (build 4809fcb62f445aaa3ae919f7f6c3cc7d156ea57a)Project-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-07-09 17:42+0000X-Generator: Launchpad (build 4809fcb62f445aaa3ae919f7f6c3cc7d156ea57a) [empty]
product: Unknown
vendor: Unknown
physical id: 0
serial: Unknown
slot: DIMM_A1
*-bank:1
description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0.4 ns)
product: KHX3200C16D4/8GX
vendor: Kingston
physical id: 1
serial: F0A2F235
slot: DIMM_A2
size: 8GiB
width: 64 bits
clock: 2400MHz (0.4ns)
*-bank:2
description: Project-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-07-09 17:42+0000X-Generator: Launchpad (build 4809fcb62f445aaa3ae919f7f6c3cc7d156ea57a)Project-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-07-09 17:42+0000X-Generator: Launchpad (build 4809fcb62f445aaa3ae919f7f6c3cc7d156ea57a) [empty]
product: Unknown
vendor: Unknown
physical id: 2
serial: Unknown
slot: DIMM_B1
*-bank:3
description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0.4 ns)
product: KHX3200C16D4/8GX
vendor: Kingston
physical id: 3
serial: E9A2F229
slot: DIMM_B2
size: 8GiB
width: 64 bits
clock: 2400MHz (0.4ns)
*-cache:0
description: L1 cache
physical id: 2c
slot: L1 - Cache
size: 384KiB
capacity: 384KiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
configuration: level=1
*-cache:1
description: L2 cache
physical id: 2d
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: 2e
slot: L3 - Cache
size: 32MiB
capacity: 32MiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
configuration: level=3
自由-h
total used free shared buff/cache available
Mem: 15Gi 865Mi 14Gi 8.0Mi 565Mi 14Gi
Swap: 1.0Gi 0B 1.0Gi
sysctl 虛擬機交換
vm.swappiness = 10
答案1
BIOS
華碩 PRIME B540M-A
您的 BIOS 目前版本為 2202。
記憶
Ryzen 處理器在 RAM 方面存在著臭名昭著的問題。
去https://www.memtest86.com/並免費下載/運行它們memtest
來測試您的記憶力。至少完成一次所有 4/4 測試,以確認良好的記憶力。這可能需要幾個小時才能完成。
更新#1:
注意:RAM 已超頻。設定回預設值並立即運行memtest
。
即使你有 16G RAM,你的交換空間還是有點小。讓我們把它升級到4G。
筆記:命令使用不當dd
可能會導致資料遺失。建議複製/貼上。
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
reboot # reboot and verify operation
驗證 /etc/fstab 中的這一行...
/swapfile none swap sw 0 0
更新#2:
memtest
在標準時脈 RAM 上運作良好。
更新#3:
請參閱顯示卡驅動程式 20.30 更新:https://www.amd.com/en/support/graphics/radeon-500-series/radeon-rx-500-series/radeon-rx-580於 2020 年 7 月 30 日發布。它支援Ubuntu 20.04.1。
更新#4:
Radeon 20.30 視訊驅動程式無法在 Pop_OS 上安裝!但在 Ubuntu 上安裝得很好。