[Share Experiences] AMD R7 6800H 官网显卡驱动安装,解决kwin-x11的cpu占用过高问题
Tofloor
poster avatar
暗黑程序员
deepin
2022-08-15 06:28
Author

首先去amd官网下载最新的linux-amd驱动:

https://www.amd.com/zh-hans/support/linux-drivers // 22.20 for Ubuntu 20.04.5 HWE

修改Deepin为ubuntu

sudo vim /etc/os-release // ID=Deepin => ID=ubuntu
sudo apt install ./amdgpu-install_22.20.50200-1_all.deb
sudo vim /etc/apt/sources.list.d/amdgpu.list // focal => bionic
sudo apt update
sudo amdgpu-install --no-dkms
sudo apt install inxi clinfo

安装成功以后,用inxi查看下:

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 

最后还原最初的修改:

sudo vim /etc/os-release // ID=ubuntu => ID=Deepin
sudo apt purge amdgpu-install

看下效果图:

➜  ~ 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

Reply Favorite View the author
All Replies
jjcui8595
Moderator
2022-08-15 06:54
#1

感谢分享like

Reply View the author
灵兮之
deepin
2022-08-15 07:55
#2

这个是正常的?需要再安装?

image.png

Reply View the author
sgb76
deepin
2022-08-15 08:12
#3

感谢分享!

Reply View the author
晚秋(lateautumn)
Moderator
2022-08-15 16:12
#4

高手!

Reply View the author
qq4945286
deepin
2022-08-15 16:19
#5

装的是deepin20.6还是v23

Reply View the author
caoyuUU
deepin
2022-08-15 16:45
#6

感谢分享

Reply View the author
暗黑程序员
deepin
2022-08-15 16:48
#7
qq4945286

装的是deepin20.6还是v23

Deepin V20.6

Reply View the author
暗黑程序员
deepin
2022-08-15 16:49
#8
灵兮之

这个是正常的?需要再安装?

image.png

应该需要吧,闭源驱动会好点

Reply View the author
zl
deepin
2022-09-02 01:13
#9

试试看,感谢分享。

Reply View the author
xmu714
deepin
2022-09-12 17:46
#10
在读取软件包列表... 完成
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成             
linux-headers-5.18.4-amd64-desktop-hwe 已经是最新版 (5.18.4-amd64-desktop-hwe-5.18.4-amd64-desktop-hwe-23.01.00.02)。
linux-headers-5.18.4-amd64-desktop-hwe 已设置为手动安装。
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:

下列软件包有未满足的依赖关系:
 rocm-llvm : 依赖: python
             依赖: libstdc++-5-dev 但无法安装它 或
                     libstdc++-7-dev 但无法安装它
             依赖: libgcc-5-dev 但无法安装它 或
                     libgcc-7-dev 但无法安装它
             推荐: g++ 但是它将不会被安装
             推荐: gcc-multilib 但是它将不会被安装
             推荐: g++-multilib 但是它将不会被安装
 xserver-xorg-amdgpu-video-amdgpu : 依赖: xorg-video-abi-24 但无法安装它
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。

V23在执行 amdgpu-install的时候发生了报错,如何解决?

Reply View the author
smile
deepin
2022-09-14 18:57
#11

执行这个命令

sudo amdgpu-install --no-dkms

下载太慢了有什么办法解决吗?

Reply View the author
Fyi
deepin
2022-09-18 06:16
#12

您好,请教个事情。

输入sudo apt install ./amdgpu-install_22.20.50200-1_all.deb之后跳出来如下提示----------

E: 命令行中有不支持的文件 ./amdgpu-install_22.20.50200-1_all.deb

请问该如何解决

Reply View the author
WangZhongyun
deepin
2023-05-14 02:29
#13
Fyi

您好,请教个事情。

输入sudo apt install ./amdgpu-install_22.20.50200-1_all.deb之后跳出来如下提示----------

E: 命令行中有不支持的文件 ./amdgpu-install_22.20.50200-1_all.deb

请问该如何解决

进到这文件所在文件夹内,终端命令:sudo dpkg -i amdgpu-install_22.20.50200-1_all.deb

执行会怎样呢?

Reply View the author