[Share Experiences] 关于AMD R7 6800H 键盘、WIFI、蓝牙、显卡和电源问题解决方案的梳理
Tofloor
poster avatar
暗黑程序员
deepin
2022-06-26 06:22
Author

最近购买Redmi 或 Lenovo刚发布的AMD R7 6800H机型的朋友们,安装deepin后遇到的问题如下:

  • 1、内置键盘无法使用,USB外置键盘正常。
  • 2、WIFI没有驱动 - (螃蟹卡 8852be)。
  • 3、蓝牙没有驱动 - (螃蟹卡 8852be)。
  • 4、开启窗口特效后,kwin_x11进程CPU占用飙升。
  • 5、电源管理,无论怎么调,笔记本都发热很严重。

首先,安装deepin20.06,必须选择内核5.15以上,保证没有其他遗留问题。

1、修复内置键盘无法使用

sudo su
mkdir -p /home/dsdt
cd /home/dsdt
cat /sys/firmware/acpi/tables/DSDT > dsdt.dat
apt install acpica-tools
iasl -d dsdt.dat

# 开始编辑 dsdt.dsl
vim dsdt.dsl

# 搜索并替换 Device(KBC0) 下面的
IRQ (Edge, ActiveLow, Shared, ) 
  => 
Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, ,, )

# 搜索DefinitionBlock,将定义的 DefinitionBlock 递增1,如果是0x00000001,则修改为0x00000002,如果是0x00000002,则修改为0x00000003
DefinitionBlock ("", "DSDT", 1, "LENOVO", "CB-01   ", 0x00000001)
  => 
DefinitionBlock ("", "DSDT", 1, "LENOVO", "CB-01   ", 0x00000002)

# 保存并关闭 dsdt.dsl

iasl dsdt.dsl

mkdir -p kernel/firmware/acpi
cp dsdt.aml kernel/firmware/acpi/
find kernel | cpio -H newc --create > acpi_override
cp acpi_override /boot/acpi_override
echo "GRUB_EARLY_INITRD_LINUX_CUSTOM=\"acpi_override\"" >>/etc/default/grub

# 更新并重启
update-grub2
reboot

2、修复wifi驱动

# 内核小于5.18的
git clone https://github.com/HRex39/rtl8852be.git
# 内核大于等于5.18的
git clone https://github.com/HRex39/rtl8852be.git -b dev

cd rtl8852be
make -j8
sudo make install
sudo modprobe 8852be

3、修复蓝牙驱动

# 内核=5.15
git clone https://github.com/HRex39/rtl8852be_bt.git -b 5.15
# 内核=5.18
git clone https://github.com/HRex39/rtl8852be_bt.git -b 5.18

cd rtl8852be_bt
make -j8
sudo make install

4、kwin_x11开启窗口特效后cpu飙升,因为显卡未驱动

首先去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

5、电源管理无效,需要手动管理,避免CPU过度使用而发热

安装下面的三方电源管理工具 Boost Changer,选择 Performance策略即可

wget https://github.com/nbebaw/boostchanger/releases/download/v4.4.0/boostchanger_4.4.0_amd64.deb

image.png

以上内容参考:

https://zhuanlan.zhihu.com/p/530643928

https://github.com/HRex39/rtl8852be

https://github.com/HRex39/rtl8852be_bt

https://bbs.deepin.org/post/241607

Reply Favorite View the author
All Replies
1 / 2
To page
jjcui8595
Moderator
2022-06-26 07:07
#1

厉害

Reply View the author
caoyuUU
deepin
2022-06-26 16:24
#2

大神啊

Reply View the author
caoyuUU
deepin
2022-07-12 18:58
#3

root@chencaoyu-PC:/home/chencaoyu# mkdir -p /home/dsdt
root@chencaoyu-PC:/home/chencaoyu# cd /home/dsdt
root@chencaoyu-PC:/home/dsdt# cat /sys/firmware/acpi/tables/DSDT > dsdt.dat
root@chencaoyu-PC:/home/dsdt# iasl -d dsdt.dat
bash: iasl:未找到命令
root@chencaoyu-PC:/home/dsdt#

Reply View the author
caoyuUU
deepin
2022-07-12 19:01
#4

怎么办,找不到命令

Reply View the author
181******65
deepin
2022-07-16 19:21
#5
caoyuUU

怎么办,找不到命令

键盘修复亲测有效,没有命令的话,输入

sudo apt install iasl

就可以了

Reply View the author
caoyuUU
deepin
2022-07-18 21:18
#6
181******65

键盘修复亲测有效,没有命令的话,输入

sudo apt install iasl

就可以了

谢谢老哥,已经解决了

Reply View the author
xuqi
deepin testing team
2022-08-25 05:13
#7

👍

Reply View the author
babyfengfjx
Super Moderator
CQA
2022-08-27 23:55
#8

我去,真大神啊!

Reply View the author
ThinKinG
deepin testing team
2022-08-28 00:06
#9

like

Reply View the author
忆往
deepin
2022-09-05 16:22
#10

GOOD JOB,我们计划后面推送补丁来修复。

Reply View the author
seasky
deepin
2022-09-08 16:52
#11

刚买了redmi pro 15 2022款,安装失败,希望能早点儿适配

Reply View the author
156******76
deepin
2022-09-24 01:40
#12

华硕无双I5 12500H 键盘不能用,可以参考上面改吗

我的两个配置如下:

//DefinitionBlock ("", "DSDT", 2, "ASUS", "Notebook", 0x01072009)

是否更新一次就将版本号+1?0x0107200A、0x0107200B 这样吗

Device (LNKA) 我的Device后面是从LNKA开始的,LNKB、LNKC...LNKH

我应该修改哪个?

Reply View the author
waittingsummer
deepin
2022-09-30 21:41
#13
忆往

GOOD JOB,我们计划后面推送补丁来修复。

啥时候推送呀?

Reply View the author
w***8@gmail.com
deepin
2022-11-24 20:17
#14
The user is banned, and the content is hidden.
ve******93@gmail.com
deepin
2022-12-01 19:36
#15
The user is banned, and the content is hidden.
ro******27@gmail.com
deepin
2022-12-02 20:48
#16
The user is banned, and the content is hidden.
不再联系
deepin
2022-12-07 21:48
#17

请问我magicbook14适用吗,我的设备如下,内核5.18,安装deppin20 和23设置中心都没有蓝牙
202212062032097418_截图_选择区域_20221206203031.png

202212062031156861_截图_选择区域_20221206195739.png

202212062031139159_截图_选择区域_20221206195658.png

Reply View the author
jaamy
deepin
2023-01-08 04:43
#18
ro******27@gmail.com
The user is banned, and the content is hidden.

right have you tried that because I am still looking for solution becaue from now onward I can not hold essay writing back

Reply View the author
昨夜的星辰
deepin
2023-02-04 07:39
#19

Redmibook pro 15 2022锐龙版键盘无法使用已用楼主方法修改成功,键盘已成功驱动,系统是UOS 22.0,多谢!

顺便说一声,最新的UOS22.0安装好后显卡驱动和在无线网卡驱动就是好的,蓝牙显示有但是找不到设备,有空再折腾

Reply View the author
jiutian123
deepin
2023-02-04 21:19
#20
181******65

键盘修复亲测有效,没有命令的话,输入

sudo apt install iasl

就可以了

sz@nsz-PC:~$ sudo apt install iasl

请输入密码:
验证成功
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
注意,选中 'acpica-tools' 而非 'iasl'
下列【新】软件包将被安装:
acpica-tools
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 787 kB 的归档。
解压缩后会消耗 2,245 kB 的额外空间。
获取:1 https://community-packages.deepin.com/beige beige/main amd64 acpica-tools amd64 20200925-6 [787 kB]
已下载 787 kB,耗时 2秒 (513 kB/s)
正在选中未选择的软件包 acpica-tools。
(正在读取数据库 ... 系统当前共安装有 260221 个文件和目录。)
准备解压 .../acpica-tools_20200925-6_amd64.deb ...
正在解压 acpica-tools (20200925-6) ...
正在设置 acpica-tools (20200925-6) ...
正在处理用于 man-db (2.9.4-2) 的触发器 ...

Reply View the author
1 / 2
To page