After upgrading from 18.04 to 20.04, suspend crashes during the suspend request, or, crashes on resume. This is a desktop not a laptop. It is the same bios and hardware as 18.04.
20.04 crashes several different ways.
Suspending from the power icon or from the command line always crashes with fans running. Letting the machine suspend on timeout, always crashes on resume. Obviously 20.04 does not work with this hardware but why did 18.04 handle it?
To get out of the corrupted state I hold the power button down for 10 seconds. The reset button sometimes works, sometimes won't. This is a very hard crash.
user@desk:~$ free -h
total used free shared buff/cache available
Mem: 15Gi 1.3Gi 13Gi 150Mi 1.3Gi 13Gi
Swap: 2.0Gi 0B 2.0Gi
user@desk:~$ sysctl vm.swappiness
vm.swappiness = 60
user@desk:~$ ls -al ~/.local/share/gnome-shell/extensions
total 12
drwxrwxr-x 3 user user 4096 May 23 2019 .
drwx------ 3 user user 4096 Aug 14 10:51 ..
drwxrwxr-x 4 user user 4096 May 23 2019 clock-override@gnomeshell.kryogenix.org
user@desk:~$ ls -al /usr/share/gnome-shell/extensions
total 24
drwxr-xr-x 6 root root 4096 Aug 11 16:36 .
drwxr-xr-x 7 root root 4096 Aug 11 16:38 ..
drwxr-xr-x 2 root root 4096 Aug 11 16:36 desktop-icons@csoriano
drwxr-xr-x 2 root root 4096 Aug 11 16:38 openweather-extension@jenslody.de
drwxr-xr-x 3 root root 4096 Aug 11 16:31 ubuntu-appindicators@ubuntu.com
drwxr-xr-x 3 root root 4096 Aug 11 16:32 ubuntu-dock@ubuntu.com
На данный момент исправлено. Я добавил nomodeset
к GRUB_CMDLINE_LINUX_DEFAULT
в /etc/default/grub
. Теперь коробка успешно приостанавливается и работает заметно быстрее. Я не делал никаких изменений в оборудовании или биосе.
nomodeset
, по-видимому, дал памяти 20.04 необходимое время для стабильной работы.
Я буду держать этот ящик под наблюдением на случай, если появятся другие аномалии.
Gigabyte B450M-DS3H
You have BIOS version F50.
There's a newer BIOS available, version F51, and can be downloaded here
Note: Make sure that I have the correct web page for your model #.
Note: Have good backups before updating the BIOS.
Let's create a slightly larger /swapfile...
Confirm this line in /etc/fstab...
Note: Assure that there are no other lines containing "swap".
/swapfile none swap sw 0 0
Note: Incorrect use of the dd
command can cause data loss. Suggest copy/paste.
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
Ryzen processors are notorious for memory compatibility problems.
Edit your question and show me sudo lshw -C memory
.
Go to https://www.memtest86.com/ and download/run their free memtest
to test your memory. Get at least one complete pass of all the 4/4 tests to confirm good memory. This may take many hours to complete.
CPU Support List: https://www.gigabyte.com/Motherboard/B450M-DS3H-rev-10/support#support-cpu
Memory Support List: https://www.gigabyte.com/Motherboard/B450M-DS3H-rev-10/support#support-doc