[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
2 / 2
To page
sky139
deepin
2023-02-18 23:45
#21

技术小白,20.8怎么解决6800的键盘问题,可不可以

直接给一段命令提示码给我直接在终端运行

Reply View the author
bl******[email protected]
deepin
2023-02-24 04:32
#22
It has been deleted!
re******[email protected]
deepin
2023-03-04 03:45
#23
It has been deleted!
sky139
deepin
2023-03-25 19:00
#24

Flyman@Flyman-PC:/Desktop$ sudo apt install iasl
请验证人脸或密码:验证成功
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
注意,选中 'acpica-tools' 而非 'iasl'
acpica-tools 已经是最新版 (20181213-1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 8 个软件包未被升级。
Flyman@Flyman-PC:
/Desktop$ sudo apt install acpica-tools
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
acpica-tools 已经是最新版 (20181213-1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 8 个软件包未被升级。

键盘还是无法使用,求解

Reply View the author
l***[email protected]
deepin
2023-06-16 23:24
#25
It has been deleted!
t***[email protected]
deepin
2023-09-06 00:04
#26
It has been deleted!
s***[email protected]
deepin
2023-12-21 20:03
#27
It has been deleted!
h***[email protected]
deepin
2024-01-16 18:24
#28
It has been deleted!
j***[email protected]
deepin
2024-05-20 19:30
#29
It has been deleted!
2 / 2
To page