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 email@example.com 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 firstname.lastname@example.org drwxr-xr-x 3 root root 4096 Aug 11 16:31 email@example.com drwxr-xr-x 3 root root 4096 Aug 11 16:32 firstname.lastname@example.org
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.
Memory Support List: https://www.gigabyte.com/Motherboard/B450M-DS3H-rev-10/support#support-doc