ubuntu:gpu:amd_gpu:setup_an_amd_video_card
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:gpu:amd_gpu:setup_an_amd_video_card [2021/06/02 09:29] – created peter | ubuntu:gpu:amd_gpu:setup_an_amd_video_card [2021/06/02 10:27] (current) – peter | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Install the official amdgpu driver from a third-party PPA repository ===== | ===== Install the official amdgpu driver from a third-party PPA repository ===== | ||
+ | |||
+ | To install the PPA third-party repository drivers execute the following commands: | ||
+ | |||
+ | <code bash> | ||
+ | sudo add-apt-repository ppa: | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | The above will add the PPA AMD Radeon driver repository to your system. The following command will upgrade your current AMD Radeon driver to the latest version: | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt update && sudo apt -y upgrade | ||
+ | </ | ||
+ | |||
+ | In case you need to revert back to your original Ubuntu AMD Radeon drivers you can remove the PPA driver installation using the below commands: | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt install ppa-purge | ||
+ | sudo ppa-purge ppa: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Reboot ===== | ||
+ | |||
+ | Reboot the computer. | ||
+ | |||
+ | <code bash> | ||
+ | sudo reboot | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Check if the driver is active ===== | ||
+ | |||
+ | <code bash> | ||
+ | lshw -c video | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | *-display | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: pci@0000: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * If this shows **amdgpu** then this is good; and the official GPU driver is being used. | ||
+ | * If this shows **radeon** then not good; as this indicates that the open source driver is being used. | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Blacklist the open source radeon module driver ===== | ||
+ | |||
+ | <code bash> | ||
+ | lspci -k | grep -EA3 ' | ||
+ | </ | ||
+ | |||
+ | displays: | ||
+ | |||
+ | <code bash> | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Disable the radeon driver ===== | ||
+ | |||
+ | Edit / | ||
+ | |||
+ | <code bash> | ||
+ | sudo vi / | ||
+ | </ | ||
+ | |||
+ | …and add the following line at the end: | ||
+ | |||
+ | <file bash / | ||
+ | blacklist radeon | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Update grub ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo update-initramfs -u | ||
+ | </ | ||
+ | |||
+ | <WRAP important> | ||
+ | **WARNING: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Enable the amdgpu driver ===== | ||
+ | |||
+ | Edit the / | ||
+ | |||
+ | <code bash> | ||
+ | sudo vi / | ||
+ | </ | ||
+ | |||
+ | ...and add these lines: | ||
+ | |||
+ | <file bash / | ||
+ | GRUB_GFXMODE=1920x1080x32 | ||
+ | GRUB_CMDLINE_LINUX_DEFAULT=" | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Update Grub ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo update-grub2 && sudo update-initramfs -u -k all< | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Reboot ===== | ||
+ | |||
+ | Reboot the computer. | ||
+ | |||
+ | <code bash> | ||
+ | sudo reboot | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
ubuntu/gpu/amd_gpu/setup_an_amd_video_card.1622626172.txt.gz · Last modified: 2021/06/02 09:29 by peter