Giter Site home page Giter Site logo

rtl8852be_bt's Introduction

rtl8852be_bt's People

Contributors

hrex39 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

Watchers

 avatar

rtl8852be_bt's Issues

Error during 'make' on Pop OS (22.04, Kernel 5.17.5-76051705-generic)

I get an error during the process trying to use this in Pop OS (22.04, Kernel 5.17.5-76051705-generic). The error I get is as follows:

make -C /lib/modules/5.17.5-76051705-generic/build M=/home/recovery/rtl8852be_bt modules
make[1]: Entering directory '/usr/src/linux-headers-5.17.5-76051705-generic'
  CC [M]  /home/recovery/rtl8852be_bt/btusb.o
/home/recovery/rtl8852be_bt/btusb.c: In function ‘btusb_probe’:
/home/recovery/rtl8852be_bt/btusb.c:3819:13: error: ‘struct hci_dev’ has no member named ‘prevent_wake’
 3819 |         hdev->prevent_wake = btusb_prevent_wake;
      |             ^~
make[2]: *** [scripts/Makefile.build:288: /home/recovery/rtl8852be_bt/btusb.o] Error 1
make[1]: *** [Makefile:1837: /home/recovery/rtl8852be_bt] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.17.5-76051705-generic'
make: *** [Makefile:17: all] Error 2

Attempted with Ubuntu (22.04, Kernel 5.15.0-41-generic) on the same hardware, and 'make' completes fine.

Solution not working on 5.13 kernel

Hello! Can you help me out? I tried to reproduce your solution from your commits using kernel 5.13 (ubuntu 20.04) but bluetooth still doesn`t work. Behavior is that bluetooth shows up on the system, but never finds any devices while scanning. I tried many different bluetooth devices which are working.

some info:

01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:b852]
Subsystem: Device [1d3e:c826]
Kernel driver in use: rtl8852be

DeviceName: Realtek RTL8111E Ethernet LOM
Subsystem: Xiaomi Device [1d72:2019]
Kernel driver in use: amdgpu

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 27c6:581a Shenzhen Goodix Technology Co.,Ltd. FingerPrint
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0cb8:c559 Opticis Co., Ltd Bluetooth Radio
Bus 001 Device 003: ID 1bcf:2cdd Sunplus Innovation Technology Inc. XiaoMi USB 2.0 Webcam
Bus 001 Device 002: ID 046d:c083 Logitech, Inc. G403 Prodigy Gaming Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
hci0: Type: Primary Bus: USB
BD Address: 34:6F:24:D3:9C:81 ACL MTU: 1021:6 SCO MTU: 255:12
UP RUNNING PSCAN ISCAN
RX bytes:2799 acl:0 sco:0 events:341 errors:0
TX bytes:7344 acl:0 sco:0 commands:306 errors:0
Features: 0xff 0xff 0xff 0xfe 0xdb 0xfd 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'alexandre-RedmiBook-Pro-15S'
Class: 0x1c010c
Service Classes: Rendering, Capturing, Object Transfer
Device Class: Computer, Laptop
HCI Version: (0xb) Revision: 0xb
LMP Version: (0xb) Subversion: 0x8852
Manufacturer: Realtek Semiconductor Corporation (93)

[ 0.098535] Spectre V2 : Enabling Restricted Speculation for firmware calls
[ 0.261520] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.268407] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge
[ 1.838528] usb 1-4: Product: Bluetooth Radio
[ 2.479651] Bluetooth: Core ver 2.22
[ 2.479730] Bluetooth: HCI device and connection manager initialized
[ 2.479752] Bluetooth: HCI socket layer initialized
[ 2.479762] Bluetooth: L2CAP socket layer initialized
[ 2.479773] Bluetooth: SCO socket layer initialized
[ 3.125935] [drm] Loading DMUB firmware via PSP: version=0x0101000A
[ 3.126559] [drm] Found VCN firmware Version ENC: 1.7 DEC: 4 VEP: 0 Revision: 17
[ 3.126568] amdgpu 0000:03:00.0: amdgpu: Will use PSP to load VCN firmware
[ 4.754722] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 4.754731] Bluetooth: BNEP filters: protocol multicast
[ 4.754741] Bluetooth: BNEP socket layer initialized
[ 70.708154] Bluetooth: RFCOMM TTY layer initialized
[ 70.708160] Bluetooth: RFCOMM socket layer initialized
[ 70.708166] Bluetooth: RFCOMM ver 1.11
[ 299.025409] Bluetooth: hci0: Ignoring error of Inquiry Cancel command

无法安装蓝牙驱动

thinkbook14+ 6800h
安装好wlan驱动后无法在lsusb的输出中找到带bluetooth radio项的输出

具体输出如下:
Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 010 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 002: ID 30c9:0057
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 0bda:4853 Realtek Semiconductor Corp.
Bus 003 Device 003: ID 05ac:024f Apple, Inc.
Bus 003 Device 002: ID 1532:0098 Razer USA, Ltd
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Solution not working on 5.17.3 kernel

make -C /lib/modules/5.17.3-amd64-desktop/build M=/home/wangyan/Downloads/rtl8852be_bt-5.15 modules
make[1]: 进入目录“/usr/src/linux-headers-5.17.3-amd64-desktop”
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Uos 8.3.0.6-1+dde) 8.3.0
You are using: gcc (Uos 8.3.0.3-3+rebuild) 8.3.0
CC [M] /home/wangyan/Downloads/rtl8852be_bt-5.15/btusb.o
/home/wangyan/Downloads/rtl8852be_bt-5.15/btusb.c: In function ‘btusb_probe’:
/home/wangyan/Downloads/rtl8852be_bt-5.15/btusb.c:3819:6: error: ‘struct hci_dev’ has no member named ‘prevent_wake’
hdev->prevent_wake = btusb_prevent_wake;
^~
make[2]: *** [scripts/Makefile.build:288:/home/wangyan/Downloads/rtl8852be_bt-5.15/btusb.o] 错误 1
make[1]: *** [Makefile:1831:/home/wangyan/Downloads/rtl8852be_bt-5.15] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-5.17.3-amd64-desktop”
make: *** [Makefile:17:all] 错误 2

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.