deepin用户如何轻松搞定AMD显卡驱动安装

今天我要和大家分享一个实用技巧——如何在deepin系统上安装AMD R7 6800H显卡的官方驱动,并解决kwin-x11的CPU占用过高问题。

步骤一:下载AMD显卡驱动
首先,我们需要访问AMD官网下载最新的Linux驱动。对,就是这里:[AMD Linux驱动下载](https://www.amd.com/zh-hans/support/linux-drivers)。选择适合你的系统版本,Ubuntu 20.04.5 HWE的用户可以下载22.20版本。

步骤二:修改系统标识
接下来,我们要让deepin系统“伪装”成Ubuntu,以便安装驱动。打开终端,输入以下命令:

sudo vim /etc/os-release
将`ID=Deepin`修改为`ID=ubuntu`。

步骤三:安装驱动
现在,我们可以安装下载好的AMD驱动了。在终端中输入以下命令:

sudo apt install ./amdgpu-install_22.20.50200-1_all.deb

然后,编辑`/etc/apt/sources.list.d/amdgpu.list`文件,将`focal`替换为`bionic`。

步骤四:更新系统并安装驱动
更新系统源,并安装驱动:

sudo apt update
sudo amdgpu-install --no-dkms

步骤五:安装检测工具
为了验证驱动是否安装成功,我们还需要安装一些检测工具:

sudo apt install inxi clinfo

安装成功后,使用`inxi -G`命令查看显卡信息。

inxi -G
Graphics: Device-1: AMD Rembrandt driver: amdgpu v: kernel Display: x11 server: 
          X.Org 1.20.11 driver: amdgpu,ati unloaded: fbdev,modesetting,vesa 
          resolution: 1920x1080~60Hz OpenGL: renderer: AMD YELLOW_CARP (LLVM 14.0.1 
          DRM 3.42 5.15.34-amd64-desktop) v: 4.6 Mesa 22.1.0-devel

步骤六:还原系统设置
最后,别忘了将系统设置还原回去。再次编辑`/etc/os-release`文件,将`ID=ubuntu`改回`ID=Deepin`,并清除安装的驱动程序:

sudo apt purge amdgpu-install

效果展示
安装完成后,你可以使用`glxinfo -B`命令查看显卡的详细信息,确认驱动已经正确安装。

看下效果图:

➜  ~ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD YELLOW_CARP (LLVM 14.0.1, DRM 3.42, 5.15.34-amd64-desktop) (0x1681)
    Version: 22.1.0
    Accelerated: yes
    Video memory: 2048MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 1388 MB, largest block: 1388 MB
    VBO free aux. memory - total: 3047 MB, largest block: 3047 MB
    Texture free memory - total: 1388 MB, largest block: 1388 MB
    Texture free aux. memory - total: 3047 MB, largest block: 3047 MB
    Renderbuffer free memory - total: 1388 MB, largest block: 1388 MB
    Renderbuffer free aux. memory - total: 3047 MB, largest block: 3047 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 2048 MB
    Total available memory: 5120 MB
    Currently available dedicated video memory: 1388 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD YELLOW_CARP (LLVM 14.0.1, DRM 3.42, 5.15.34-amd64-desktop)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.1.0-devel
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.1.0-devel
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.1.0-devel
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

总结
通过这些步骤,我们不仅成功安装了AMD显卡的官方驱动,还解决了kwin-x11的CPU占用过高问题。希望这个小教程能帮助到你,让你的deepin系统更加流畅。

如果你有任何问题,或者想要了解更多技术细节,欢迎在论坛留言哦,想看更多的技术文欢迎点击这里。
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值