Ubuntu - GPU - AMD GPU - Troubleshooting - Crashes the System

It seems GPU drivers from AMD are not great; and may crash the system.


Add the following to the /etc/environment file.

/etc/environment
# Disable all hardware acceleration in Firefox, since OpenGL is causing crashing on Navi, WebGL is the culprit.
#AMD_DEBUG="nongg,nodma"
AMD_DEBUG="nongg nodma"
#AMD_DEBUG=nodma
#AMD_DEBUG="nongg"
#AMD_DEBUG=zerovram

NOTE: Some sites say to use various variations of the above, but the uncommitted entry works for me.


Add amdgpu.noretry=0 to the GRUB_CMDLINE_LINUX_DEFAULT option:

/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.noretry=0"

Then run:

sudo update-grub

Then reboot.


Try:

sudo sh -c 'echo "high" > /sys/class/drm/card0/device/power_dpm_force_performance_level'