ubuntu:gpu:amd_gpu:enable_amdgpu_linux_driver
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:gpu:amd_gpu:enable_amdgpu_linux_driver [2023/06/05 12:33] – peter | ubuntu:gpu:amd_gpu:enable_amdgpu_linux_driver [2023/11/18 18:10] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - GPU - AMD GPU - Enable AMDGPU Linux Driver ====== | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | </ | ||
- | |||
- | |||
- | To enable **amdgpu** special kernel boot parameters should be set. | ||
- | |||
- | The easiest way is to make it permanent and apply it to all kernels (no messing around with grub.cfg), will be: | ||
- | |||
- | * Edit the defaults in **/ | ||
- | * Update GRUB, by running **update-grub**. | ||
- | |||
- | ---- | ||
- | |||
- | ===== Requirements ===== | ||
- | |||
- | * A newer Linux kernel. | ||
- | |||
- | ---- | ||
- | |||
- | ===== Check to see if amdgpu is enabled ===== | ||
- | |||
- | <code bash> | ||
- | sudo lshw -c video | ||
- | </ | ||
- | |||
- | returns: | ||
- | |||
- | <code bash> | ||
- | *-display | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | bus info: pci@0000: | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | |||
- | * This shows that the **amdgpu** is not being used. | ||
- | * Instead, it shows that the **radeon** driver is currently being used. | ||
- | |||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | |||
- | ===== Edit the defaults for GRUB ===== | ||
- | |||
- | Edit **/ | ||
- | |||
- | Modify the **GRUB_CMDLINE_LINUX_DEFAULT** line to: | ||
- | |||
- | <file bash / | ||
- | GRUB_CMDLINE_LINUX_DEFAULT=" | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Update GRUB===== | ||
- | |||
- | <code bash> | ||
- | sudo update-grub | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Remove old radeon.conf files ===== | ||
- | |||
- | Old **radeon.conf** files should be removed as they may stop Xorg from starting. | ||
- | |||
- | <code bash> | ||
- | sudo mv / | ||
- | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | |||
- | * This allows them to be moved back if needed. | ||
- | |||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Add a new amdgpu config file ===== | ||
- | |||
- | Create a **amdgpu.conf** file, if it does not exist. | ||
- | |||
- | <code bash> | ||
- | sudo vi / | ||
- | </ | ||
- | |||
- | and populate: | ||
- | |||
- | <file bash> | ||
- | Section " | ||
- | Identifier " | ||
- | MatchDriver " | ||
- | Driver " | ||
- | EndSection | ||
- | |||
- | Section " | ||
- | Identifier " | ||
- | Driver " | ||
- | Option " | ||
- | Option " | ||
- | EndSection | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Reboot ===== | ||
- | |||
- | Reboot the system. | ||
- | |||
- | ---- | ||
- | |||
- | ===== Check to see if amdgpu is enabled ===== | ||
- | |||
- | <code bash> | ||
- | sudo lshw -c video | ||
- | </ | ||
- | |||
- | returns: | ||
- | |||
- | <code bash> | ||
- | *-display | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | bus info: pci@0000: | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | |||
- | * This shows that the **amdgpu** is being used. | ||
- | |||
- | </ | ||
- | |||
- | ---- | ||
- | |||
ubuntu/gpu/amd_gpu/enable_amdgpu_linux_driver.1685968423.txt.gz · Last modified: 2023/06/05 12:33 by peter