Giter Site home page Giter Site logo

vrolife / modern_laptop Goto Github PK

View Code? Open in Web Editor NEW
221.0 13.0 13.0 17.25 MB

Redmi Book Pro 14/15 2022 锐龙版/Ryzen Linux 键盘驱动/keyboard driver

License: GNU Affero General Public License v3.0

Makefile 0.17% Shell 0.05% C 99.75% Python 0.01% Jupyter Notebook 0.02% Dockerfile 0.01%
amd driver keyboard linux redmi redmibook ryzen 6800h

modern_laptop's Introduction

Linux 驱动 / Linux Driver

  • Redmi Book Pro 14 2022 Ryzen 锐龙版

  • Redmi Book Pro 15 2022 Ryzen 锐龙版

  • Redmi Book Pro 15 2021 Ryzen 锐龙版

Redmi Book Pro 14/15 2022/2021 Ryzen Linux Driver

English

提示

安装依赖包需要网络连接。所以请提前接入互联网。可能的办法有:

  1. 使用Linux能识别的USB外置网卡。

  2. 通过USB共享你的Android/iPhone的移动网络.

更新BIOS后 关闭安全启动

发行版

此仓库中的全部驱动都是基于Ubuntu 22.04 + 5.17 内核开发。所以,建议使用Ubuntu 22.04。

Ubuntu 22.04 可通过安装包linux-image-oem-22.04获得5.17内核。

目前Linux 6.0表现比5.17更好,主要是AMDGPU不会随机卡死,并且支持PSR功能(更省电)。Ubuntu用户可通过安装linux-oem-22.04b获得6.0内核

linux-oem-6.1_6.1.0-1006.6 Enable RTL8852BE wifi driver (LP: #2002601)

支持的发行版:

  1. Ubuntu 22.04 LTS

  2. ArchLinux/Manjaro

  3. openSUSE Tumbleweed

  4. Fedora

  5. Linux Mint

依赖包

  • dkms
  • bash
  • make
  • acpica-tools
  • dmidecode
  • mokutil

支持机型

  • TM2113-Redmi_Book_Pro_15_2022

    BIOS Version: RMARB5B0P0A0A RMARB5B0P0B0B RMARB5B0P0C0C RMARB5B1P0C0C

    校色文件 ICC Profile: Link

    可用组件:

    • blue8852be RTL8852BE 蓝牙驱动

    • rtw89-lwfinger

      Better rtl8852be driver

      rtw89

    • Deprecated rtl8852be RTL8852BE 网卡驱动

      因为我的笔记本电脑已将将rtl8852be更换为ax210, 所以我已经没有条件维护此驱动。因此分支rtl8852be_linux_6_1中的代码能够编译通过,但是未经测试。

      此驱动即将放弃。rtw89 将会是更好的选择。 Linux 6.1 有8852BE wifi驱动相关代码, 但是可能要自行编译。

      源码

    • fingerprint 指纹驱动

      仅支持 USB 10a5:9201(FPC FPC Sensor Controller).

      源码

    • redmibook_wmi 功能键

    • redmibook_kbd_backlight 键盘背光

    • redmibook_dmic 麦克风

      Linux 5.19 或 linux-oem-5.17.0-1014 之后不需要要此驱动,安装ACPI补丁即可。

      [详情](https://github.com/vrolife/modern_laptop/blob

    • disable-PSR 关闭PSR(屏幕面板自刷新 Panel Self Refresh)

    • acpi ACPI补丁 ACPI Patch

      修复键盘问题(Linux<5.19.11)

      驱动麦克风(>=Ubuntu Linux oem 5.17.0-1014, >=Mainline Linux 5.19)

      修复电源管理

      详情

  • TM2107-Redmi_Book_Pro_14_2022

    BIOS Version: RMARB4B0P0808 RMARB4B0P0A0A RMARB4B0P0B0B RMARB4B0P0C0C

    注意: TM2107 用的是和 TM2113 一样的主板. 支持的组件请参考 TM2113

  • TM2019-RedmiBook_Pro_15S

    BIOS Version: RMACZ5B0P0909

    可用组件:

    • acpi

      修复笔记本合盖问题。 Fix lid

安装

git clone https://github.com/vrolife/modern_laptop.git
cd modern_laptop
sudo /bin/sh install.sh acpi                             ## apply ACPI patch
sudo /bin/sh install.sh blue8852be                       ## 8852BE blutooth
sudo /bin/sh install.sh rtw89-lwfinger                   ## Better RTL8852BE driver
sudo /bin/sh install.sh rtl8852be                        ## Deprecated RTL8852BE driver
sudo /bin/sh install.sh fingerprint                      ## fingerprint
sudo /bin/sh install.sh redmibook_wmi                    ## function keys
sudo /bin/sh install.sh redmibook_kbd_backlight          ## keyboard backlight
sudo /bin/sh install.sh redmibook_dmic                   ## microphone (Linux 6.x + ACPI patch may be better than this driver)
sudo /bin/sh install.sh disable-PSR                      ## disable PSR
sudo /bin/sh install.sh acpi_backlight_native            ## Fix Linux 6.1.x backlight problem. [Issue](https://github.com/vrolife/modern_laptop/issues/69)

卸载

sudo /bin/sh uninstall.sh component

升级

如果升级ACPI补丁失败,请看此处

已知问题

  • 目前内核(<6.0)不支持 Yellow Carp PSR。 链接

  • S0休眠耗电,大约3.7%每小时。S4/S5 休眠唤醒ACPI报错。混合休眠不工作。

变更

  • 2023/2/22

    1. Fix Linux 6.1.x backlight problem. Issue
  • 2023/1/27

    1. Add rtw89
  • 2023/1/15

    1. Patching support for Linux Mint. Link
  • 2023/1/9

    1. Update README.md

    2. Linux 6.0 recommended, AMDGPU no random freezing, PSR available (save power)

  • 2022/11/5

    1. ACPI patch for TM2113 RMARB5B1P0C0C
  • 2022/11/1

    1. ACPI patch for TM2019-RedmiBook_Pro_15S (RedmiBook Pro 2021) - Fix lid issue.
  • 2022/10/31

    1. Fingerprint driver for Fedora/Nobara
  • 2022/10/4

    1. Fingerprint driver source code
  • 2022-09-07

    1. rtl8852be for Linux 6.0-rc4
  • 2022-09-01

    1. Linux 5.19和 Ubuntu 的linux-oem-5.17 5.17.0-1014中,通过ACPI补丁驱动麦克风。链接
  • 2022-08-26

    1. rtl8852be 1.0.2 支持 Linux 5.19
  • 2022-08-25

    1. ACPI 补丁支持 TM2107-Redmi_Book_Pro_14_2022/RMARB5B0P0B0B 链接
  • 2022-08-23

    1. 支持openSUSE Tumbleweed
  • 2022年8月9日

    1. 添加自动亮度调节程序。链接

    2. 添加 KDE 平滑亮度补丁。

  • 2022年8月7日

    1. 改进安装方式

    2. 指纹新增fingerpp2.archlinux。链接

    3. redmibook_dmic支持TM2107

    4. redmibook_kbd_backlight支持自动加载。不必写入/etc/modules

  • 2022年8月1日

    1. 新增麦克风驱动(Redmibook Pro 15 2022 & Linux 5.17)。链接

    2. 支持 TM2113 BIOS RMARB5B0P0B0B (升级后记得关安全启动)。

  • 2022年7月28日

    1. 添加键盘背光驱动。 链接

    2. WLAN和蓝牙驱动支持5.15内核。之前是5.17。

    3. 修复键盘背光驱动最高亮度。

    4. 为 Ubuntu 22.04 添加AMD专有驱动支持(ROCm)。链接

  • 2022年7月27日

    1. 修复不插电的情况下从休眠唤醒重启,和SSD不安全掉电。链接
  • 2022年7月19日

    1. 添加 RTL8852BE WIFI 驱动。
  • 2022年7月19日

    1. 支持从旧版升级。
  • 2022年7月18日

    1. 添加蓝牙驱动。 链接
  • 2022年7月18日

    1. 增加指纹驱动(USB 0x10a5 0x9201)。 链接
  • 2022年7月12日

    1. 修复DSDT一处Buffer越界访问。
  • 2022年7月10日

    1. 可选 - 将按键KP_Enter映射为Enter。链接

    2. 修复 - 可能的,PSR导致的内核崩溃。链接

鸣谢(无序)

  • @Vliro

  • @HowardZorn

  • @puzzle9

  • @Evan7o

  • @mikethefirst0

更多信息

链接

modern_laptop's People

Contributors

howardzorn avatar nut-3 avatar puzzle9 avatar qhuyduong avatar vliro avatar vrolife avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

modern_laptop's Issues

Fingerprint & Ubuntu 22.10

In current daily build of Ubuntu 22.10 the opencv lib got updated to 4.6.0, and fingerpp3 fails to start, because cannot open shared libraries with version 4.5d.
Could you, please, provide source for fingerpp, so it could be compiled with new libraries, or update binary?

Manjaro (Invalid option)

Hello,

I try to install drivers in Manjaro (Gnome) 21.3.6.
After command: sudo /bin/sh install.sh acpi
I get a message:

: invalid option 2: set -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]

I get the same message when I try to install any other driver.

Tell me, distributions based on arch are not supported? Or is it somehow possible to fix it?

PS: Redmibook 15 Pro 2022

ACPI patch for systemd-boot

I'm attempting to fix the keyboard on Arch Linux 5.19.5. The source code seems to update GRUB. However, due to the recent GRUB issues, I've switched to systemd-boot.

Is there any way to apply this patch for systemd-boot?

Error installing rtl8852be for kernel 5.19.3 in arch linux

Hi this is the output i get when trying to install the wifi driver on arch linux, it keep on ending out in error.

Package (8)       Old Version  New Version  Net Change

community/acpica  20220331-1   20220331-1     0.00 MiB
core/bash         5.1.016-1    5.1.016-1      0.00 MiB
core/diffutils    3.8-1        3.8-1          0.00 MiB
extra/dkms        3.0.6-1      3.0.6-1        0.00 MiB
extra/dmidecode   3.4-1        3.4-1          0.00 MiB
core/make         4.3-3        4.3-3          0.00 MiB
extra/mokutil     0.6.0-1      0.6.0-1        0.00 MiB
core/patch        2.7.6-8      2.7.6-8        0.00 MiB

Total Installed Size:  14.04 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
(8/8) checking keys in keyring                                        [---------------------------------------] 100%
(8/8) checking package integrity                                      [---------------------------------------] 100%
(8/8) loading package files                                           [---------------------------------------] 100%
(8/8) checking for file conflicts                                     [---------------------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Performing snapper pre snapshots for the following configurations...
:: Processing package changes...
(1/8) reinstalling bash                                               [---------------------------------------] 100%
(2/8) reinstalling make                                               [---------------------------------------] 100%
(3/8) reinstalling patch                                              [---------------------------------------] 100%
(4/8) reinstalling dkms                                               [---------------------------------------] 100%
(5/8) reinstalling acpica                                             [---------------------------------------] 100%
(6/8) reinstalling dmidecode                                          [---------------------------------------] 100%
(7/8) reinstalling mokutil                                            [---------------------------------------] 100%
(8/8) reinstalling diffutils                                          [---------------------------------------] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Checking which packages need to be rebuilt
(3/4) Updating the info directory file...
(4/4) Performing snapper post snapshots for the following configurations...
Sign command: /usr/lib/modules/5.19.3-arch1-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...(bad exit status: 2)
make -j16 KERNELRELEASE=5.19.3-arch1-1 ENTRY=yes all......(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.19.3-arch1-1 (x86_64)
Consult /var/lib/dkms/8852be/1.0.1/build/make.log for more information.

also here is the make.log

主键盘的回车(36)触发的是小键盘的回车(104) 键码有误

演示

笔记本

主键盘区

KeyPress event, serial 45, synthetic NO, window 0x3600001,
    root 0x845, subw 0x0, time 703078, (106,99), root:(156,209),
    state 0x10, keycode 104 (keysym 0xff8d, KP_Enter), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
"   XmbLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

外接键盘

主键盘区

KeyPress event, serial 47, synthetic NO, window 0x3600001,
    root 0x845, subw 0x0, time 746296, (596,1023), root:(646,1133),
    state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
"   XmbLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

小键盘区

KeyPress event, serial 47, synthetic NO, window 0x3600001,
    root 0x845, subw 0x0, time 769660, (408,407), root:(458,517),
    state 0x10, keycode 104 (keysym 0xff8d, KP_Enter), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
"   XmbLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

影响软件

  • fcitx 在中文并且候选框有字的时候 按回车会触发搜索

Add support for the 2021 edition

Hi @vrolife , i know this project focus is on the 2022 edition, but i've being looking to improve redmibook 2021 (TM2019-RedmiBook_Pro_15S) compatibility on linux for some time. The majority of the hardware already works out the box. The bluetooth support just landed on 6.1rc1 kernel, but there's still some things that need some work. I'm using the latest system bios Bios - RMACZ5B0P0909.

The laptop doesn't turn the screen off and suspend when you close the lid, i just got this ACPI error messages on dmesg:

[ 1839.455179] audit: type=1104 audit(1666193804.579:111): pid=3928 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 1844.664737] ACPI Error: Needed [Buffer/String/Package], found [Integer] 00000000cd1faf7b (20220331/exresop-557)
[ 1844.664752] ACPI Error: AE_AML_OPERAND_TYPE, While resolving operands for [Index] (20220331/dswexec-431)
[ 1844.664762] ACPI Error: Aborting method \_SB.ALIB due to previous error (AE_AML_OPERAND_TYPE) (20220331/psparse-529)
[ 1844.664772] ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0._Q80 due to previous error (AE_AML_OPERAND_TYPE) (20220331/psparse-529)
[ 1845.057277] ACPI Error: Needed [Buffer/String/Package], found [Integer] 00000000c4507ab7 (20220331/exresop-557)
[ 1845.057283] ACPI Error: AE_AML_OPERAND_TYPE, While resolving operands for [Index] (20220331/dswexec-431)
[ 1845.057286] ACPI Error: Aborting method \_SB.ALIB due to previous error (AE_AML_OPERAND_TYPE) (20220331/psparse-529)
[ 1845.057289] ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0._Q80 due to previous error (AE_AML_OPERAND_TYPE) (20220331/psparse-529)
[ 1846.394878] ACPI: button: The lid device is not compliant to SW_LID.
[ 1850.118337] audit: type=1101 audit(1666193815.242:112): pid=3939 uid=1000 auid=1000 ses=3 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="benjamim" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 1850.118879] audit: type=1110 audit(1666193815.242:113): pid=3939 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 1850.118958] audit: type=1105 audit(1666193815.242:114): pid=3939 uid=1000 auid=1000 ses=3 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'

The fingerprint sensor also doesn't work:

lsusb
Bus 003 Device 002: ID 27c6:581a Shenzhen Goodix Technology Co.,Ltd. FingerPrint

I know the hardware of the 2021 and 2022 editions aren't the same, but i believe they might be close. I would be glad to help with any other info needed.

Desktop (please complete the following information):

  • OS: Manjaro unstable branch
  • Kernel 6.1rc1

lspci
https://pastebin.com/Mrqq9iuq

lsusb
https://pastebin.com/d3W4DnSG

dmesg
https://pastebin.com/LLLwjC7C

Thanks for your hardwork !

安装 rtl8852be 时出错

安装 rtl8852be 时出现modprobe: ERROR: could not insert '8852be': Invalid argument

在终端执行 sudo /bin/sh install.sh rtl8852be 出现以上问题
-操作系统:
linux ray-Redmi-Book-Pro-14-2022 5.17.0-1021-oem #22-Ubuntu SMP PREEMPT Wed Nov 2 17:28:19 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

-环境
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubunt
Uploading dmesg.log…
u.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

log
/var/log/dmesg:

Error! Bad return status for module build on kernel: 5.18.19-200.fc36.x86_64 (x86_64)

Thanks for putting this on GitHub; most helpful!

OS: Fedora Workstation 36
Laptop: Redmibook Pro 15 2022
uname -a: Linux fedora 5.18.19-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Aug 21 15:52:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

When attempting to compile and install the Wifi drivers (using your script), this is the output:

...
Dependencies resolved.
Nothing to do.
Complete!
Sign command: /lib/modules/5.18.19-200.fc36.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Certificate or key are missing, generating self signed certificate for MOK...

Building module:
Cleaning build area...(bad exit status: 2)
make -j12 KERNELRELEASE=5.18.19-200.fc36.x86_64 ENTRY=yes all.......(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.18.19-200.fc36.x86_64 (x86_64)
Consult /var/lib/dkms/8852be/1.0.1/build/make.log for more information.

Where the errors start in the /var/lib/dkms/8852be/1.0.1/build/make.log file are with the /var/lib/dkms/8852be/1.0.1/build/platform/platform_linux_pc_pci.c compile (attached because it's big).

Any ideas?
make.log

Hunk #3 FAILED at 5471.

patch < .bios/patch.diff patching file dsdt.dsl Reversed (or previously applied) patch detected! Assume -R? [n] y Hunk #3 FAILED at 5471. 1 out of 4 hunks FAILED -- saving rejects to file dsdt.dsl.rej make: *** [Makefile:11: dsdt.aml] Error 1

On a Redmibook 15 Pro 2022, latest version of BIOS as of 18th July 2022.

The speaker goes out of his mind

The speakers start beeping strongly.

To reproduce this bug, then you need to turn on some video on YouTube for example, then you need to enter sleep mode (close the lid) and connect the wire type C for charging.

trim.E3637AA2-A501-41C4-A385-F33E4F4D8978.2.mp4

USB C displayport acting strange

My usb C over PD was not working. I had to enable iommu=soft to get it working. This is current arch kernel (5.19.6 I think). What is the cause of this issue, as iommu=soft can cause performance issues?

Kernel 6.0.0/5.19.11 下 `rtl8852be` 安装失败

此问题仅在 linux kernel 6.0.0 与 5.19.11 以上出现,而在 6.0.0-rc 与 5.19.5 及以下安装正常。

  • Ubuntu 22.04
  • RMARB5B0P0B0B
$ sudo sh install.sh rtl8852be
...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Deleting module 8852be-1.0.5 completely from the DKMS tree.
Creating symlink /var/lib/dkms/8852be/1.0.5/source -> /usr/src/8852be-1.0.5

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...(bad exit status: 2)
make -j16 KERNELRELEASE=6.0.0-060000-generic ENTRY=yes all...(bad exit status: 2)
ERROR (dkms apport): binary package for 8852be: 1.0.5 not found
Error! Bad return status for module build on kernel: 6.0.0-060000-generic (x86_64)
Consult /var/lib/dkms/8852be/1.0.5/build/make.log for more information.

/var/lib/dkms/8852be/1.0.5/build/make.log 内容:

DKMS make.log for 8852be-1.0.5 for kernel 6.0.0-060000-generic (x86_64)
2022年 10月 03日 星期一 22:31:15 CST
make -j7 -C /lib/modules/6.0.0-060000-generic/build M=/var/lib/dkms/8852be/1.0.5/build KERNELRELEASE=6.0.0-060000-generic ENTRY= modules
make[1]: warning: -j7 forced in submake: resetting jobserver mode.
make[1]: Entering directory '/usr/src/linux-headers-6.0.0-060000-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 12.2.0-3ubuntu1) 12.2.0
  You are using:           gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
  CC [M]  /var/lib/dkms/8852be/1.0.5/build/platform/platform_linux_pc_pci.o
  CC [M]  /var/lib/dkms/8852be/1.0.5/build/os_dep/osdep_service.o
  CC [M]  /var/lib/dkms/8852be/1.0.5/build/os_dep/osdep_service_linux.o
  CC [M]  /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/rtw_cfg.o
  CC [M]  /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/os_intfs.o
  CC [M]  /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/ioctl_linux.o
  CC [M]  /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/xmit_linux.o
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
make[2]: *** [scripts/Makefile.build:249: /var/lib/dkms/8852be/1.0.5/build/platform/platform_linux_pc_pci.o] Error 1
make[2]: *** Waiting for unfinished jobs....
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
make[2]: *** [scripts/Makefile.build:249: /var/lib/dkms/8852be/1.0.5/build/os_dep/osdep_service.o] Error 1
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
make[2]: *** [scripts/Makefile.build:249: /var/lib/dkms/8852be/1.0.5/build/os_dep/osdep_service_linux.o] Error 1
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
make[2]: *** [scripts/Makefile.build:249: /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/rtw_cfg.o] Error 1
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
make[2]: *** [scripts/Makefile.build:249: /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/os_intfs.o] Error 1
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
make[2]: *** [scripts/Makefile.build:249: /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/ioctl_linux.o] Error 1
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
make[2]: *** [scripts/Makefile.build:249: /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/xmit_linux.o] Error 1
make[1]: *** [Makefile:1858: /var/lib/dkms/8852be/1.0.5/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.0.0-060000-generic'
make: *** [Makefile:637: all] Error 2

谢谢。

Kernel 6.0

Caveat: going out on a limb here with this one.

I installed the 6.0 Kernel from the linux vanilla kernel repos because the acpi_override fix stopped working for me completely in all prior kernel verisons.

Keyboard works now but attempting to use install.sh rtl8852be errors out. I'm guessing they changed the cfg80211_roam_info structure to omit the bssid attribute and now the whole thing blows up.

The fix is beyond me but you seem very capable. Would appreciate it if you have a look!

make.log

redmibook_wmi doesn't work on Intel model (TM2111)

Hi and thank you for this repo, I made my mic and fingerprint work on Manjaro Linux with Secure Boot enabled.
WMI however is another story. It builds OK and I am able to probe it, but nothing happens when I press XiaoAI or F6-F9 keys.
What do you need me to provide you with?
The install method I used was as follows:

  1. dkms install redmibook_wmi/1.0.3
  2. Added it to mkinitcpio.conf, regenerated initrd.
  3. Rebooted, no avail.
    I used the same procedure for dmic and it worked after reboot though.

Do I need to patch ACPI then? Or maybe I'm missing something obvious and don't quite understand what to do next?

RedmiBook pro 14 2022. Cooler settings

I have RedmiBook pro 14 2022 amd 6600h and use like Windows there and Linux.
Do you know utilities or packages? which can change temperature turn on cooler.I want to my fan turned on not at 40 degrees, but at 45>?
I didnt find any info on the internet about this task

ACPI fix stopped working after Win11+Fedora dual-boot install.

Yesterday, I installed Win11 on the free space on the laptop. Now, no matter what I do, I can't get the keyboard to work again.

I've even done the acpi_override fix as described on Reddit: https://www.reddit.com/r/linuxhardware/comments/vdc6tz/comment/ijjjwah/

Not even the fix from this repo works:

sh install.sh acpi

My /etc/default/grub looks like this:

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
#GRUB_ENABLE_BLSCFG=true
GRUB_EARLY_INITRD_LINUX_CUSTOM=acpi_override
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX acpi_osi=! acpi_osi=Linux"

I also run the following:

grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

Is there anything I can check in dmesg?

键盘背光编译出错

sudo /bin/sh install.sh redmibook_kbd_backlight执行编译报错,以下为make.log的内容:

DKMS make.log for redmibook_kbd_backlight-1.0.2 for kernel 5.19.2-1-default (x86_64)
2022年 08月 23日 星期二 13:53:57 CST
make -C /lib/modules/5.19.2-1-default/build M=`pwd` modules
make[1]: 警告: jobserver 不可用: 正使用 -j1。添加 “+” 到父 make 的规则。
make[1]: 进入目录“/usr/src/linux-5.19.2-1-obj/x86_64/default”
  CC [M]  /var/lib/dkms/redmibook_kbd_backlight/1.0.2/build/redmibook_kbd_backlight.o
/var/lib/dkms/redmibook_kbd_backlight/1.0.2/build/redmibook_kbd_backlight.c: 在函数‘ec_init’中:
/var/lib/dkms/redmibook_kbd_backlight/1.0.2/build/redmibook_kbd_backlight.c:188:5: 错误:implicit declaration of function ‘acpi_bus_get_device’; did you mean ‘acpi_is_pnp_device’? [-Werror=implicit-function-declaration]
  188 |     acpi_bus_get_device(handle_EC0, &device);
      |     ^~~~~~~~~~~~~~~~~~~
      |     acpi_is_pnp_device
cc1:有些警告被当作是错误
make[2]: *** [/usr/src/linux-5.19.2-1/scripts/Makefile.build:250:/var/lib/dkms/redmibook_kbd_backlight/1.0.2/build/redmibook_kbd_backlight.o] 错误 1
make[1]: *** [../../../linux-5.19.2-1/Makefile:1863:/var/lib/dkms/redmibook_kbd_backlight/1.0.2/build] 错误 2
make[1]: 离开目录“/usr/src/linux-5.19.2-1-obj/x86_64/default”
make: *** [Makefile:5:all] 错误 2

Running install.sh results in "Unknown environment" error (Nobara distro)

Describe the bug
So I wanted to install drivers on Nobara 36 (which is basically a Fedora distro). All dependencies from readme are installed, but when I run i.e. sudo /bin/sh install.sh acpi, I get "Unknown enviroment" error. Any ideas what can be wrong with the system? I didn't find any hints on the web :'(

To Reproduce
Steps to reproduce the behavior:

  1. git clone repo
  2. cd to directory
  3. run any command like sudo /bin/sh install.sh ...
  4. See error

Expected behavior
Driver installation goes properly

Screenshots
image

Desktop (please complete the following information):

  • OS: Nobara
  • Version :core-4.1-amd64:core-4.1-noarch
  • Kernel version 36

Laptop is Pro Book 15 2022 with AMD Ryzen 5 6600H

8852 installation broken

Hi, trying to install rtl8852be but it freezes the entire computer, spawning 1000s of cc processes. How to fix the build? As via dkms this breaks the upgrade of the kernel

Patch fails when installing ACPI driver

After updating to the latest version of the repo (with the RMARB5B0P0E0E BIOS version which matches my laptop's), when running:

sudo /bin/sh install.sh acpi,

I get

[snip...]
Parsing completed
Disassembly completed
ASL Output:    /home/user/modern_laptop/fixes/acpi/dsdt.dsl - 410204 bytes
patching file dsdt.dsl
Reversed (or previously applied) patch detected!  Assume -R? [n] 

Desktop

  • OS: Ubuntu 22.04.1 LTS
  • Kernel: Linux 5.17.0-1025-oem #26-Ubuntu SMP PREEMPT

Sleep variants

On my Redmibook 15 I have only s2idle sleep mode. Is there some information regarding other sleep types, e.g. deep, since the battery drain during sleep is quite high. Is this BIOS related?

Fingerprint driver for Fedora

Hi!
Many thanks for the work done!
Are there any plans for an instruction\assembled fingerprint scanner package for Fedora?
I resolved the dependencies for as long as I had enough knowledge, built a package, but I get the LIBUSB_ERROR_IO error when trying to launch.

Redmibook 15 Sleep doesn't work properly

Describe the bug
After going into sleep, I cannot wake the computer at all. Have to force reboot it.

To Reproduce
Let computer idle. After sleep cannot enter.

Expected behavior
After pressing a key, or power button, I resume at lock screen.

Desktop (please complete the following information):

  • OS: EndeavourOS
  • Version Latest
  • Kernel version: Linux laptop 6.0.10-zen2-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sat, 26 Nov 2022 16:51:24 +0000 x86_64 GNU/Linux
  • Environment: NAME=EndeavourOS PRETTY_NAME=EndeavourOS ID=endeavouros ID_LIKE=arch BUILD_ID=2022.09.10 ANSI_COLOR="38;2;23;147;209" HOME_URL='https://endeavouros.com' DOCUMENTATION_URL='https://discovery.endeavouros.com' SUPPORT_URL='https://forum.endeavouros.com' BUG_REPORT_URL='https://forum.endeavouros.com/c/arch-based-related-questions/bug-reports' PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=endeavouros

** Log **

dec 04 09:51:15 albert-laptop systemd-logind[902]: The system will suspend and later hibernate now!
dec 04 09:51:15 albert-laptop NetworkManager[948]: <info>  [1670143875.4899] manager: sleep: sleep requested (sleeping: no  enabled: yes)
dec 04 09:51:15 albert-laptop NetworkManager[948]: <info>  [1670143875.4900] device (p2p-dev-wlan0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-sta>
dec 04 09:51:15 albert-laptop NetworkManager[948]: <info>  [1670143875.4903] manager: NetworkManager state is now ASLEEP
dec 04 09:51:15 albert-laptop NetworkManager[948]: <info>  [1670143875.4904] device (wlan0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'man>
dec 04 09:51:15 albert-laptop dbus-daemon[899]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service>
dec 04 09:51:15 albert-laptop systemd[1]: Starting Network Manager Script Dispatcher Service...
dec 04 09:51:15 albert-laptop kded5[1498]: org.kde.plasma.nm.kded: Unhandled active connection state change:  3
dec 04 09:51:15 albert-laptop dbus-daemon[899]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
dec 04 09:51:15 albert-laptop systemd[1]: Started Network Manager Script Dispatcher Service.
dec 04 09:51:15 albert-laptop audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/syst>
dec 04 09:51:15 albert-laptop kernel: audit: type=1130 audit(1670143875.591:339): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd>
dec 04 09:51:15 albert-laptop kernel: wlan0: deauthenticating from 3c:7c:3f:e5:fa:cc by local choice (Reason: 3=DEAUTH_LEAVING)
dec 04 09:51:15 albert-laptop wpa_supplicant[1144]: wlan0: CTRL-EVENT-DISCONNECTED bssid=3c:7c:3f:e5:fa:cc reason=3 locally_generated=1
dec 04 09:51:15 albert-laptop wpa_supplicant[1144]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
dec 04 09:51:15 albert-laptop NetworkManager[948]: <info>  [1670143875.6760] device (wlan0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: '>
dec 04 09:51:15 albert-laptop avahi-daemon[896]: Withdrawing address record for fe80::4988:9e01:10f:4a1 on wlan0.
dec 04 09:51:15 albert-laptop avahi-daemon[896]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::4988:9e01:10f:4a1.
dec 04 09:51:15 albert-laptop avahi-daemon[896]: Interface wlan0.IPv6 no longer relevant for mDNS.
dec 04 09:51:15 albert-laptop audit[906]: NETFILTER_CFG table=firewalld:133 family=1 entries=6 op=nft_unregister_rule pid=906 comm="firewalld"
dec 04 09:51:15 albert-laptop kernel: audit: type=1325 audit(1670143875.690:340): table=firewalld:133 family=1 entries=6 op=nft_unregister_rule pid=906 comm="firewalld"
dec 04 09:51:15 albert-laptop kernel: audit: type=1300 audit(1670143875.690:340): arch=c000003e syscall=46 success=yes exit=492 a0=6 a1=7fff37cdb550 a2=0 a3=7fff37cca3fc item>
dec 04 09:51:15 albert-laptop kernel: audit: type=1327 audit(1670143875.690:340): proctitle=2F7573722F62696E2F707974686F6E002F7573722F62696E2F6669726577616C6C64002D2D6E6F666F>
dec 04 09:51:15 albert-laptop audit[906]: SYSCALL arch=c000003e syscall=46 success=yes exit=492 a0=6 a1=7fff37cdb550 a2=0 a3=7fff37cca3fc items=0 ppid=1 pid=906 auid=42949672>
dec 04 09:51:15 albert-laptop audit: PROCTITLE proctitle=2F7573722F62696E2F707974686F6E002F7573722F62696E2F6669726577616C6C64002D2D6E6F666F726B002D2D6E6F706964
dec 04 09:51:15 albert-laptop NetworkManager[948]: <info>  [1670143875.6930] dhcp4 (wlan0): canceled DHCP transaction
dec 04 09:51:15 albert-laptop NetworkManager[948]: <info>  [1670143875.6930] dhcp4 (wlan0): activation: beginning transaction (timeout in 45 seconds)
dec 04 09:51:15 albert-laptop NetworkManager[948]: <info>  [1670143875.6930] dhcp4 (wlan0): state changed no lease
dec 04 09:51:15 albert-laptop avahi-daemon[896]: Interface wlan0.IPv4 no longer relevant for mDNS.
dec 04 09:51:15 albert-laptop avahi-daemon[896]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.50.48.
dec 04 09:51:15 albert-laptop avahi-daemon[896]: Withdrawing address record for 192.168.50.48 on wlan0.
dec 04 09:51:15 albert-laptop NetworkManager[948]: <info>  [1670143875.7094] device (wlan0): set-hw-addr: set MAC address to 1E:4B:56:67:E8:BA (scanning)
dec 04 09:51:15 albert-laptop avahi-daemon[896]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.50.48.
dec 04 09:51:15 albert-laptop avahi-daemon[896]: New relevant interface wlan0.IPv4 for mDNS.
dec 04 09:51:15 albert-laptop avahi-daemon[896]: Registering new address record for 192.168.50.48 on wlan0.IPv4.
dec 04 09:51:15 albert-laptop avahi-daemon[896]: Withdrawing address record for 192.168.50.48 on wlan0
dec 04 09:51:15 albert-laptop systemd[1]: Reached target Sleep.
dec 04 09:51:15 albert-laptop systemd[1]: Starting Suspend; Hibernate if not used for a period of time...
dec 04 09:51:15 albert-laptop wpa_supplicant[1144]: p2p-dev-wlan0: CTRL-EVENT-DSCP-POLICY clear_all
dec 04 09:51:15 albert-laptop wpa_supplicant[1144]: p2p-dev-wlan0: CTRL-EVENT-DSCP-POLICY clear_all
dec 04 09:51:15 albert-laptop wpa_supplicant[1144]: nl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
dec 04 09:51:15 albert-laptop wpa_supplicant[1144]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
dec 04 09:51:15 albert-laptop systemd-sleep[18792]: Entering sleep state 'suspend'...
dec 04 09:51:15 albert-laptop kernel: PM: suspend entry (s2idle)
dec 04 09:51:15 albert-laptop wpa_supplicant[1144]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
dec 04 09:51:15 albert-laptop wpa_supplicant[1144]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
dec 04 09:51:15 albert-laptop kernel: Filesystems sync: 0.048 seconds

some tips

when me switch Ubuntu of win11 by today, my keyboard and WLAN is not work :(
and I try install this repos, but is not work. (used 6PM to 10PM) I'm feeling so bad.
but now all is right !!! the issues is my BIOS have open UEFI Secure Boot , i don't know about that.
so i want to help others, so share some tips!
1.when you install some dependency before, like make,acpica-tools. you maybe need run apt update. update your cache.
2.if you lost WLAN, you can connect you ANDROID phone, select share network get internet.
3.if you install this repos right but not work, you can check BIOS UEFI Secure Boot option.
4.when I install WLAN driver, get error for dkms: command not found so your need install dkms before.

sorry for my English, my Chinese input is not install. thank you vrolife

Problems on 14' version of laptop with 'keyboard', 'RedmiBook drivers' parts of the script

16613702721651807101431496909250

1)first problem about keyboard'script
"unsupported bios" is that version ".(picture 1)
Though I havethe latest RMARB5B0P0B0B
version of bios, there is still issue.
There is a misspelling bug.
'cause the same mistake in ' supported by the models' bios version is written "RMARB5B0P0808" is instead of "RMARB5B0P0B0B" when it says about 14 inch model . (picture 2)
IMG_20220824_225516

I forked your repo and changed the name and it has started working

  1. 'RedmiBook part' (picture 3)
    16613715486301197508607111668111

Maybe also misspelled "redmibook_*". It's better to write in the code 'redmibook_kdb_backlight 1.0.4'

Bluetooth not working

When installing bluetooth driver, it says:
Module blue8852be/1.0.1 already installed on kernel 5.19.6-arch1-1 (x86_64).
But the bluetooth is just not turning on
Снимок экрана от 2022-09-04 16-53-03
You can see the swith is in the right position but its gray not blue

老哥,能支持下RMARB5B1P0C0C吗?新出厂的Redmi book pro 15,用了最新的BIOS

机子是双11才买的,最新的BIOS,RMARB5B1P0C0C

在BIOS里面关闭了安全启动项

  1. 按照教程执行sudo /bin/sh install.sh acpi就报错,反馈不支持的BIOS版本,如下图所示
    Screenshot from 2022-11-05 16-28-15

  2. 尝试直接将RMARB5B0P0B0B复制一份到RMARB5B1P0C0C,同时修改install.sh脚本中的BIOS_VERSION环境变量。再一次运行sudo /bin/sh install.sh acpi还是报错,看起来是dsdt变化,如下图所示
    Screenshot from 2022-11-05 16-30-16
    Screenshot from 2022-11-05 16-32-26

DSDT信息如下所示
dsdt.txt

  1. 尝试降级BIOS版本到0B0B,但小米官网目前只能下载最新的0C0C的bios程序

Fedora 37 fingerprint support

Good day,
is fingerapp bulkhead possible for fedora 37?

ldd /opt/fingerpp/bin/fingerpp                                                                                                                                                [1:14:11]
	linux-vdso.so.1 (0x00007ffec1db6000)
	libssl.so.3 => /lib64/libssl.so.3 (0x00007f6fba16f000)
	libcrypto.so.3 => /lib64/libcrypto.so.3 (0x00007f6fb9c00000)
	libopencv_imgcodecs.so.4.5 => not found
	libopencv_calib3d.so.4.5 => not found
	libopencv_features2d.so.4.5 => not found
	libopencv_imgproc.so.4.5 => not found
	libopencv_flann.so.4.5 => not found
	libopencv_core.so.4.5 => not found
	libusb-1.0.so.0 => /lib64/libusb-1.0.so.0 (0x00007f6fba14e000)
	libevent_core-2.1.so.7 => /lib64/libevent_core-2.1.so.7 (0x00007f6fba115000)
	libdbus-1.so.3 => /lib64/libdbus-1.so.3 (0x00007f6fba0c0000)
	libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f6fb9800000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f6fb9b20000)
	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f6fba09e000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f6fb9623000)
	libz.so.1 => /lib64/libz.so.1 (0x00007f6fba084000)
	libudev.so.1 => /lib64/libudev.so.1 (0x00007f6fba056000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f6fba231000)
	libsystemd.so.0 => /lib64/libsystemd.so.0 (0x00007f6fb9a43000)
	libcap.so.2 => /lib64/libcap.so.2 (0x00007f6fba04a000)
	liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f6fb95f8000)
	libzstd.so.1 => /lib64/libzstd.so.1 (0x00007f6fb9545000)
	liblz4.so.1 => /lib64/liblz4.so.1 (0x00007f6fb9521000)

/usr/lib :

find . libopencv_ | grep libopencv_                                                                                                                                           [1:17:10]
./java/libopencv_java.so
./java/libopencv_java460.so
find: ‘libopencv_’./libopencv_calib3d.so.4.6.0
./libopencv_calib3d.so.406
./libopencv_core.so.4.6.0
./libopencv_core.so.406
./libopencv_dnn.so.4.6.0
./libopencv_dnn.so.406
: No such file or directory
./libopencv_features2d.so.4.6.0
./libopencv_features2d.so.406
./libopencv_flann.so.4.6.0
./libopencv_flann.so.406
./libopencv_gapi.so.4.6.0
./libopencv_gapi.so.406
./libopencv_highgui.so.4.6.0
./libopencv_highgui.so.406
./libopencv_imgcodecs.so.4.6.0
./libopencv_imgcodecs.so.406
./libopencv_imgproc.so.4.6.0
./libopencv_imgproc.so.406
./libopencv_ml.so.4.6.0
./libopencv_ml.so.406
./libopencv_objdetect.so.4.6.0
./libopencv_objdetect.so.406
./libopencv_photo.so.4.6.0
./libopencv_photo.so.406
./libopencv_stitching.so.4.6.0
./libopencv_stitching.so.406
./libopencv_video.so.4.6.0
./libopencv_video.so.406
./libopencv_videoio.so.4.6.0
./libopencv_videoio.so.406

Linux Mint: No fingerprint sensor detected

When installing the fingerprint sensor, the following error appears

$sudo  /bin/sh install.sh fingerprint
...apt output...
No fingerprint sensor detected

Desktop:

  • OS: Linux Mint 21
  • Laptop: Redmi Book Pro 15 2022
  • Kernel version: Linux werix 5.15.0-53-generic #59-Ubuntu SMP Mon Oct 17 18:53:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • Environment: cat /etc/os-release
    I've replaced mint strings with debian to normally install the drivers
NAME="Linux Mint"
VERSION="21 (Vanessa)"
ID=debian
ID_LIKE="debian"
PRETTY_NAME="Linux Mint 21"
VERSION_ID="21"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy

** Log **
The complete dmesg output can be found on Hastebin

Installing acpi on Arch Linux doesn't have any effect

Device: Redmibook pro 14' 6600h
bios: RMARB4B0P0B0B
OS: Arch Linux
Steps to reproduce: sudo /bin/sh install.sh acpi

It also writes update-grub.sh command not found and make error with code 127 on first install or uninstall.

Fingerprint issue

Hello!
Thank you for your work. I ran from fingerprint install.sh. The script worked without errors, but the system did not have the ability to configure the fingerprint. Executed the command systemctl status fprintd.service show below. What could be the problem?

○ fprintd.service - Fingerprint Authentication Daemon
     Loaded: loaded (/lib/systemd/system/fprintd.service; static)
    Drop-In: /etc/systemd/system/fprintd.service.d
             └─override.conf
     Active: inactive (dead)
       Docs: man:fprintd(1)

Aug 11 12:15:28 RedmiBook fingerpp[105177]: Version 21.26.2.27
Aug 11 12:15:28 RedmiBook fingerpp[105177]: /home/pom/Projects/fpc9201/src/drv_fpc/fpc9201.cpp:1561: parse_state(...) error: firmware version mismatch
Aug 11 12:15:28 RedmiBook systemd[1]: fprintd.service: Deactivated successfully.
Aug 11 12:18:05 RedmiBook systemd[1]: Starting Fingerprint Authentication Daemon...
Aug 11 12:18:05 RedmiBook /opt/fingerpp/bin/fingerpp[108486]: fingerpp starting
Aug 11 12:18:05 RedmiBook systemd[1]: Started Fingerprint Authentication Daemon.
Aug 11 12:18:05 RedmiBook /opt/fingerpp/bin/fingerpp[108486]: usb hotplug: arrived: 10a5 9201
Aug 11 12:18:05 RedmiBook fingerpp[108486]: Version 21.26.2.27
Aug 11 12:18:05 RedmiBook fingerpp[108486]: /home/pom/Projects/fpc9201/src/drv_fpc/fpc9201.cpp:1561: parse_state(...) error: firmware version mismatch
Aug 11 12:18:05 RedmiBook systemd[1]: fprintd.service: Deactivated successfully.

这个patch不能用于其他发行版吗

我的redmibook pro 15 2022锐龙,BIOS为0B0B版本,安装的是openSUSE风滚草,内核5.19带有PSR,但是没有键盘驱动。
我手动安装依赖包以后,注释掉系统判断,到了patch acpi的时候,报hunk错误,显示rejected,这个有办法手动修复吗?
还是只能改用Arch?

Not able to boot Ryzen 15 2022

I installed acpi and other patches and laptop works perfectly after that, but about week ago the problem appears: laptop can not boot (secure boot disabled). Boot stops on "init ramdisk". I uninstall acpi patch (force) after boot with enabled secure boot. Then reboot and turn OFF secure boot. Now laptop is able to boot, but keybord is not working.
Trying of re-install of acpi patch do not help.

Kernel panics running Minecraft dev

Running a Java 18 session via gradle, running Minecraft, and it kernel panics constantly. Fairly certain BIOS version RMARB5B0P0B0B. It always happens eventually, and panics after at most a few minutes. Is this a known Rembrandt issue?

指纹传感器无法使用: Message recipient disconnected from message bus without replying

您好!首先感谢您的项目,让我圆了在这电脑上装linux的心愿 😄😄
但我尝试按照说明安装指纹传感器后,安装过程顺利,可是在系统设置中没有指纹设置入口。
用命令行运行系统设置,提示:

$ gnome-control-center -v 
12:48:07.0642    user-accounts-cc-panel:    DEBUG: Fprintd manager connected
12:48:07.0734    user-accounts-cc-panel:  WARNING: Impossible to update fingerprint manager state: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
12:48:07.0734    user-accounts-cc-panel:    DEBUG: Fingerprint manager state changed to 0

服务状态

$ systemctl status fprintd.service
○ fprintd.service - Fingerprint Authentication Daemon
     Loaded: loaded (/lib/systemd/system/fprintd.service; static)
    Drop-In: /etc/systemd/system/fprintd.service.d
             └─override.conf
     Active: inactive (dead)
       Docs: man:fprintd(1)

9月 05 12:47:00 delta-laptop systemd[1]: Started Fingerprint Authentication Daemon.
9月 05 12:47:00 delta-laptop systemd[1]: fprintd.service: Deactivated successfully.
9月 05 12:48:07 delta-laptop systemd[1]: Starting Fingerprint Authentication Daemon...
9月 05 12:48:07 delta-laptop /opt/fingerpp/bin/fingerpp[3487]: fingerpp starting
9月 05 12:48:07 delta-laptop systemd[1]: Started Fingerprint Authentication Daemon.
9月 05 12:48:07 delta-laptop systemd[1]: fprintd.service: Deactivated successfully.
9月 05 12:48:07 delta-laptop systemd[1]: Starting Fingerprint Authentication Daemon...
9月 05 12:48:07 delta-laptop /opt/fingerpp/bin/fingerpp[3501]: fingerpp starting
9月 05 12:48:07 delta-laptop systemd[1]: Started Fingerprint Authentication Daemon.
9月 05 12:48:07 delta-laptop systemd[1]: fprintd.service: Deactivated successfully.

设备信息

  • Ubuntu 22.04 LTS
  • Linux kernel 5.17.0-1016-oem
  • TM2113-Redmi_Book_Pro_15_2022
  • RMARB5B0P0B0B_B1P0404

为此,我尝试过:

  • 更新内核到 5.19
  • 重新安装系统
  • 安装kde的桌面环境
  • 使用原先的fingerpp、fingerpp2

但都没用。

我不清楚这是否是驱动的问题,可如果您能提供解决方案,感激不尽。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.