OpenIntelWireless / IntelBluetoothFirmware

Intel Bluetooth Kernel Extensions for macOS
https://OpenIntelWireless.github.io/IntelBluetoothFirmware
GNU General Public License v3.0
2.47k stars 262 forks source link

Fix LE devices not working on Ventura #446

Open qhuyduong opened 1 year ago

qhuyduong commented 1 year ago

Look like starting from Ventura, the bluetooth daemon expects an LE PHY Update Complete event to be triggered from the controller before starting the connection to LE devices (e.g: Logitech MX Master 3S mouse). For Broadcom cards, that event is triggered automatically on new connection (attached the screenshot of PacketLogger on Macbook Air M1).

image

However for Intel ones, that event is not sent by the firmware, so pairing these devices will stuck.

One of the solution is to fake the LE PHY Update Complete event by issuing an extra LE command and modify its response.

Tested on macOS Ventura 13.4 with Intel® Wi-Fi 6 AX200 and Logitech MX Master 3S.

Fixes #51 #418 #419 #421 #444

P/S: I'm quite new for Lilu and macOS SDK, so I belive there should be a cleaner way to do this, such faking the event without the need to sending another command. Recommendations are welcome.

Lorys89 commented 5 months ago

Here are the kext just compiled https://github.com/Lorys89/IntelBluetoothFirmware/suites/16367616296/artifacts/934935709

Link seems to have expired, can you re-upload?

Yes and it is compatible with macOS beta 15 sequoia https://github.com/Lorys89/IntelBluetoothFirmware/releases/download/2.5.0/IntelBluetoothFirmware-2.5.0-RELEASE.zip

captain-spaghetti commented 5 months ago

Here are the kext just compiled https://github.com/Lorys89/IntelBluetoothFirmware/suites/16367616296/artifacts/934935709

Link seems to have expired, can you re-upload?

Yes and it is compatible with macOS beta 15 sequoia https://github.com/Lorys89/IntelBluetoothFirmware/releases/download/2.5.0/IntelBluetoothFirmware-2.5.0-RELEASE.zip

Thanks for that.

Unfortunately doesn't seem to fix the issue for me. My Logitech MX Craft keyboard briefly shows as connected in the bluetooth panel, but the keyboard doesn't recognize the connection, then it is dropped by MacOS a few seconds later.

Lorys89 commented 5 months ago

What model of wifi card? On which version of macos? I tested on 9560,ax200,ax201,ax210,ax211.

captain-spaghetti commented 5 months ago

What model of wifi card? On which version of macos? I tested on 9560,ax200,ax201,ax210,ax211.

I'm assuming you mean bluetooth card? For some reason, when I check System Report, the chipset shows up as 'Third Party Dongle'. However I'm using the native bluetooth card that's on my motherboard, Asus TUF Gaming z690-PLUS D5. I can't remember the exact bluetooth chipset from memory, and it's hard to find the info online.

I'm using MacOS Ventura 13.6.6

Xarth-Mai commented 3 months ago
image

Can‘t connect to my Xbox Gamepad

I have tried Ventura with same EFI, also not success I have tried Monterey,it works

misaki1301 commented 3 months ago

I want to comment that I was having issues with my Airpods Pro 2 related to the sound, but with this fix now every sound issue has been partially fixed, congrats for the patch :)

pexcn commented 2 months ago

Thank you, my microsoft bluetooth mouse is finally connected to bluetooth, on Sonoma.

Hello @zxystd, are there any plans to merge this PR?

sleepppwalker commented 2 months ago

It can't be used for my redmibook pro 15 s(AX210). It shows connected to my bluetooth mouse but doesn't actually work. image image

Same thing, I can’t connect my razer basilisk x. did you manage to solve this problem?

stevezhengshiqi commented 2 months ago

This PR seems mostly the reverse of https://github.com/OpenIntelWireless/IntelBluetoothFirmware/commit/350e3a74c92d44e0c2e17035c597833a8249fa4f.

hugonascimento commented 2 months ago

Here are the kext just compiled https://github.com/Lorys89/IntelBluetoothFirmware/suites/16367616296/artifacts/934935709

Link seems to have expired, can you re-upload?

Yes and it is compatible with macOS beta 15 sequoia https://github.com/Lorys89/IntelBluetoothFirmware/releases/download/2.5.0/IntelBluetoothFirmware-2.5.0-RELEASE.zip

Did you get the LE on the Sequoia? MX Keys won't connect again :(

mackonsti commented 12 hours ago

Hi @zxystd any updates on your review? Would you accept this fix? Or reject it? Thanks in advance for your update.