[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******in@gmail.com
deepin
2023-02-24 04:32
#22

I got guidance for a workplace health and safety policies and procedures topic that I have been doing research on, for my college research pape

Online thesis writing help Dubai
Reply View the author
re******ae@gmail.com
deepin
2023-03-04 03:45
#23

WAYS TO ASK OUR EXPERT WRITERS FOR ASSISTANCE Were you anticipating a process as demanding as your tax assignments? You were mistaken. In every conceivable way, we are busy. You only need to make your payment and send your write my essay for me to us by email or WhatsApp. Just that. Simple, right? We'll be eagerly awaiting your first purchase from us!

Reply View the author
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***a@gmail.com
deepin
2023-06-16 23:24
#25

I found results related to “Pizza Tower”. One is a fan-made side-scrolling non-linear action-platform game called “Pizza Tower” that you can play online for free 1.

Reply View the author
t***7@gmail.com
deepin
2023-09-06 00:04
#26

Thank you so much play wordle. If there is a word that turns yellow, it is also a word in the word to be guessed but in the wrong position.

Reply View the author
s***5@gmail.com
deepin
2023-12-21 20:03
#27

With Drift Boss, you are not only an excellent racer, but also a talented racing manager.

Reply View the author
h***5@gmail.com
deepin
2024-01-16 18:24
#28

sharing expertise and troubleshooting tips, see how collective knowledge can pave the way for smoother experiences with our devices. Here's to swift problem-solving and seamless tech adventures ahead such an amazing information we are have to inform that providing Buy Dissertation for those student who are busy with there jobs and business so we have services for students a acadmic help We must disclose that we offer Buy Dissertation services to students who are preoccupied with their businesses and jobs, allowing them to receive academic support.

Reply View the author
2 / 2
To page