-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't scan bluetooth devices on RTL8852AE #148
Comments
In your dmesg.txt, I saw no indication that the Bluetooth driver ever tried to load firmware. When you do 'lsmod | grep bt', do you see btrtl listed? Perhaps you should post the output of 'lsusb'. The BT device is interfaces through USB, not PCI. |
The same problem on Xiaomi RedmiBook 15 Pro. btusb 65536 0 and lsusb Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub System 5.17.15-1-MANJARO Looks like kernel recognize the wrong device signature |
Here is the |
The situation is that the USB ID 0cb8:c549 is not in the kernel's tables. The 0cb8 part is enough to let the kernel know that it is a Realtek device, but it is not being set up correctly. Could you please post the part of 'cat /sys/kernel/debug/usb/devices' that pertains to this device. That will give me enough information to submit a patch adding the device to the tables; however, that can take a while. In the short run, you will need to patch and generate a kernel locally. Is that something you can handle? |
T: Bus=01 Lev=01 Prnt=01 Port=03 Cnt=02 Dev#= 3 Spd=12 MxCh= 0 |
Oh, you both were faster than me. Thanks !
There's a looong time since i compiled the kernel myself. If you give the instructions i can give it a try, |
The patch file above (given a .txt name to meet GitHub's conventions) will add your device. If you install your kernel source using git, the command 'git am add_new_usb.txt' will add your device to the tables. If you get the source from a tarball, then 'patch -p1 < add_new_usb.txt' will do the trick. |
I'll try to compile it and post the results here. Thankyou very much @lwfinger ! |
It is your lucky day! As I got two requests for addition of Opticis BT devices, I decided to create a new code repository for the modified BT codes. In a console terminal, do the following: If you are using secure boot, replace that install step with If you need to do this, please read the appropriate section of README.md so that you do not end up making your computer unbootable. Good luck. |
i have the same problem with my ubuntu 22.04 Do you have some solution for me?) lsmod | grep bt cat /sys/kernel/debug/usb/devices: T: Bus=01 Lev=01 Prnt=01 Port=03 Cnt=02 Dev#= 3 Spd=12 MxCh= 0 |
Unfortunately Please make sure you have the correct access rights |
i made this changes but its still not work, i will wait for [benjamimgois] try |
If it builds and loads but does not work, you have gotten to the point where I say "I do not do Bluetooth". Sorry. @0versun: GitHub has changed their security. That command is what I need to use to clone one of my repos. You probably need to use git clone https://github.com/lwfinger/rtw89-BT.git |
Maybe i need do something extra after this steps ake -C /lib/modules/5.17.15-1-MANJARO/build M=/home/oversun/Downloads/rtw89-BT modules |
You likely have to unload and reload btusb to get the new drivers. You should see the Realtek device loading its config and firmware files. |
Something like that ? T: Bus=01 Lev=01 Prnt=01 Port=03 Cnt=02 Dev#= 3 Spd=12 MxCh= 0 |
No, it would be in the dmesg output. The above stuff is just reading the info from the device and is not dependent on the driver. |
That one ? sudo dmesg | grep Blue ✔ |
No indication that the Realtek device was found. I get usb 2-4: new full-speed USB device number 5 using xhci_hcd That tx timeout may be due to the fact that I have a RTW8852BE and I am not sure about it. |
Hey guys, sorry for my late. I can only try this things at night. I followed all the instructions and got the same result as @0versun . Here is my dmesg output right after i reload the btusb module.
Just as a side note, i did recompile the kernel 5.19rc4 and applied the patch (using tkg scripts) but also got the same result. Thanks anyway for the good will @lwfinger , you do an amazing work. I hope it works in a future kernel update. |
There is no indication that your device was recognized. What does lsusb show? |
Here is the |
That USB ID is in the table. Please do the following steps: make clean Paste the console output into this thread. At this point, do 'dmesg | less' and find a line that looks like "usb 2-13: new full-speed USB device number 6 using xhci_hcd". The details will differ depending on how your chip is interfaced. Please post that line and those that follow describing either "usb", or "Bluetooth". |
Ok, here is the console output. (The squares are manjaro icons used on the ZSH theme).
Now the dmesg | less output. I guess these are the lines you were refering to. But i'll the the full output in a text file, just in case.
|
I just pushed a change that will print out why the device is not being recognized. Do a git pull, make, install, unload and load, then run 'dmesg | egrep "******" and post the output. |
Ok, here is the output of |
I added a couple more diagnostics Rinse and repeat, but this time, post the output of dmesg. Thanks. |
Here is the |
I have no idea what is going on. None of my test printouts are being triggered. I will need to look deeper into btusb. |
I added some more diagnostic outputs. Pull, build, and post dmesg. |
I was trying to get the BT part of my rtl8852be working with btusb, when I got an E-mail telling me of a different driver for it. I discovered that the firmware was different. When I installed the new version, it worked. I then mounted my rtl8852ae, which also failed. Copying the firmware from the linux-firmware repo started it working as well. I have pushed the new 8852a firmware to the repo. Please pull and try again. |
I pushed some more debugging. Please try again. |
Ok, here it is. |
For reasons I do not understand, the normal 2-step process of selecting a device in the driver is failing. As a temporary workaround, I added device Vendor=0cb8 ProdID=c549 to the first step, which should cause the driver to load. git pull Please post the dmesg after all that. |
Sure, here is the new output, |
I do not understand this lack of loading the BT driver. Do you have a blacklist entry for any of the btxxx drivers? Are the drivers loaded? 'lsmod | grep bt' Please run the following: Post the output from those commands, and the last few lines from dmesg. I do not need everything. Start with the line "usbcore: deregistering interface driver btusb" and continue to the end. Copy and paste the output into the GitHub box. |
There's no blacklisted driver. Also, the btusb seems to be loading correctly: lsmod | grep bt
sudo modprobe -rv btusb
sudo modprobe -v btusb
sudo dmesg
|
i solve my problem. just install this driver |
Repo rtw899-BT has the USB device IDs for a number of new devices,unfortunately it does not fix everything. |
I try rtw899-BT too but its not solve a search BT devices issue on 5.17 kernel |
Please go to that repo and open a new issue. In that issue, post the section of 'sudo /sys/kernel/debug/usb/devices' for the Realtek bluetooth device. |
I think my problem is in scope of this issue no necessary to open a new one? Or maybe i not clear understand. |
I want your details in the other repo. This one is actually for wifi, not BT. |
Hi, i have this network card TRL8852AE in a Xiaomi notebook. The wifi works fine with the rtw89 driver from Kernel 5.18. Bluetooth is detected but it can not scan for any device. Any help ?
dmesg.txt
lspci_v.txt
I'm on manjaro 5.18.7 kernel
The text was updated successfully, but these errors were encountered: