【Ubuntu】安装 AMD Radeon 显卡驱动

Posted by 西维蜀黍 on 2021-04-21, Last Modified on 2021-10-17

Download

Download from https://www.amd.com/en/support/graphics/amd-radeon-6000-series/amd-radeon-6800-series/amd-radeon-rx-6800-xt

$ tar -xJvf amdgpu-pro_*.tar.xz

Extract

A directory containing all of the necessary packages will be created based on the version of the drivers. cd into that directory.

$ cd amdgpu-pro-XX.XX-XXXXXX

Run The Script

Don’t worry about installing all of those packages individually. There’s an installer script that will handle everything for you. Run the script as a regular user. It will ask you for your password to use sudo. If you want to be lazy, add the -y flag to answer “Yes” to every question.

$ ./amdgpu-pro-install -y

Let the script run and install all of your packages. It’ll take a bit of time, but once it’s done, your system will be ready. Just restart, and you can start using your new drivers.

Configure

Ensure that your user account is a member of the “video” group prior to using the vulkan driver.

To add yourself to the video group you will need the sudo password and can use the following command:

$ *sudo usermod -a -G video $LOGNAME* 

Reference