User Tools

Site Tools


ubuntu:gpu:amd_gpu:setup_an_amd_video_card

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:gpu:amd_gpu:setup_an_amd_video_card [2021/06/02 09:34] peterubuntu:gpu:amd_gpu:setup_an_amd_video_card [2021/06/02 10:27] (current) peter
Line 32: Line 32:
  
 Reboot the computer. Reboot the computer.
 +
 +<code bash>
 +sudo reboot
 +</code>
  
 ---- ----
Line 59: Line 63:
  
 <WRAP info> <WRAP info>
-**NOTE:**  Look for the keyword **driver=**.+**NOTE:**  Look for the keyword **driver=** in the **configuration** line.
  
-  * If you see “amdgpu” there, your are ready, no need to continue with this article+  * If this shows **amdgpu** then this is good; and the official GPU driver is being used
-  * However if you see “radeon” there, you are still on the open source driver and need to take a few more steps.+  * If this shows **radeon** then not good; as this indicates that the open source driver is being used 
  
 </WRAP> </WRAP>
 +
 +----
 +
 +===== Blacklist the open source radeon module driver =====
 +
 +<code bash>
 +lspci -k | grep -EA3 'VGA|3D|Display'
 +</code>
 +
 +displays:
 +
 +<code bash>
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  This shows two kernel modules available: radeon and amdgpu.
 +</WRAP>
 +
 +----
 +
 +===== Disable the radeon driver =====
 +
 +Edit /etc/modprobe.d/blacklist.conf:
 +
 +<code bash>
 +sudo vi /etc/default/grub
 +</code>
 +
 +…and add the following line at the end:
 +
 +<file bash /etc/modprobe.d/blacklist.conf>
 +blacklist radeon
 +</file>
 +
 +----
 +
 +===== Update grub =====
 +
 +<code bash>
 +sudo update-initramfs -u
 +</code>
 +
 +<WRAP important>
 +**WARNING:**  If you reboot now, you might end up in a very low desktop resolution.
 +</WRAP>
 +
 +
 +===== Enable the amdgpu driver =====
 +
 +Edit the /etc/default/grub file:
 +
 +<code bash>
 +sudo vi /etc/default/grub
 +</code>
 +
 +...and add these lines:
 +
 +<file bash /etc/default/grub>
 +GRUB_GFXMODE=1920x1080x32
 +GRUB_CMDLINE_LINUX_DEFAULT="radeon.si_support=0 radeon.cik_support=0 amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.dc=1 amdgpu.dpm=1 amdgpu.modeset=1"
 +</file>
 +
 +----
 +
 +===== Update Grub =====
 +
 +<code bash>
 +sudo update-grub2 && sudo update-initramfs -u -k all<br>
 +</code>
 +
 +----
 +
 +===== Reboot =====
 +
 +Reboot the computer.
 +
 +<code bash>
 +sudo reboot
 +</code>
 +
 +----
 +
 +===== References =====
 +
 +https://linuxconfig.org/amd-radeon-ubuntu-20-04-driver-installation
 +
 +https://randomblog.hu/setting-up-your-amd-video-card-in-ubuntu-20-04/
  
  
ubuntu/gpu/amd_gpu/setup_an_amd_video_card.1622626473.txt.gz · Last modified: 2021/06/02 09:34 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki