IntelBluetoothFirmware icon indicating copy to clipboard operation
IntelBluetoothFirmware copied to clipboard

Bluetooth is only partially working on macOS Sonoma, and Handoff is broken

Open gorouflex opened this issue 1 year ago • 31 comments

Have you read the docs?

Yes

macOS Version

macOS 14.0 (23A339)

Kext Version

v.2.3.0, v2.4.0

Wireless Adapter Model and USB Product ID

Intel AX200

Description

When I try to connect my AirPods and other Bluetooth devices, my Bluetooth turns off and then turns back on. Additionally, sometimes my Bluetooth remains broken and won’t turn on after waking from sleep. Handoff is also not working

Info in System Report - Bluetooth

Bluetooth Controller:
  Address:	68:54:5A:DB:14:1E
  State:	On
  Chipset:	THIRD_PARTY_DONGLE
  Discoverable:	Off
  Firmware Version:	v256 c256
  Supported services:	0x392039 < HFP AVRCP A2DP HID Braille LEA AACP GATT SerialPort >
  Transport:	USB
  Vendor ID:	0x004C (Apple)
  Not Connected:
  iPhone của Khánh Bình:
  Address:	F4:06:16:B3:8C:5D
  RSSI:	-61

Relevant log output

[    1.292418]: IOUSBHostDevice@80200000: IOUSBHostDevice::setConfigurationGated: IntelBluetoothFirmware selected configuration 1

Kernel Panic Logs

No response

gorouflex avatar Sep 16 '23 02:09 gorouflex

https://github.com/OpenIntelWireless/IntelBluetoothFirmware/assets/98001973/1c89034d-b690-452e-904c-cf4c01e4b6d3

gorouflex avatar Sep 16 '23 02:09 gorouflex

Same issue here - only difference is that I have an Intel AX201

KaushikDuddala avatar Oct 04 '23 18:10 KaushikDuddala

You need to use BrcmPatchRAM3.kext (Why isn't this mentioned more often?)

Without it I also have this problem on IntelAX211

ShroomKing avatar Oct 05 '23 08:10 ShroomKing

You need to use BrcmPatchRAM3.kext (Why isn't this mentioned more often?)

Without it I also have this problem on IntelAX211

I give up on this shit, I'm already switched to BCM cards

gorouflex avatar Oct 05 '23 09:10 gorouflex

You need to use BrcmPatchRAM3.kext (Why isn't this mentioned more often?) Without it I also have this problem on IntelAX211

I give up on this shit , gonna buy a BCM94360NG

After adding BrcmPatchRAM3.kext bluetooth starts working even on intel chips, so maybe give that a try first?

ShroomKing avatar Oct 05 '23 14:10 ShroomKing

Trying that now, will send an update afterward, thanks.

KaushikDuddala avatar Oct 05 '23 14:10 KaushikDuddala

straight off the bat, Bluetooth is way smoother. I was especially having this issue when on calls from my Mac so I'll test it with a call later.

KaushikDuddala avatar Oct 05 '23 14:10 KaushikDuddala

Thanks! My Bluetooth seems to work flawlessly and it even sounds better and connects way smoother it practically feels perfectly like a native card. They need to include this in the OpenCore guide or somewhere in the brcmpatch repo.

KaushikDuddala avatar Oct 05 '23 14:10 KaushikDuddala

Thanks! My Bluetooth seems to work flawlessly and it even sounds better and connects way smoother it practically feels perfectly like a native card. They need to include this in the OpenCore guide or somewhere in the brcmpatch repo.

You're welcome! I really think this should be mentioned in the IntelBluetoothFirmware README

It's not just required for Sonoma, it also fixes a bunch of issues on Ventura. Bluetooth sometimes stopped working after wake from sleep, with BrcmPatchRAM3.kext that's fixed also.

ShroomKing avatar Oct 06 '23 07:10 ShroomKing

Experienced the same regarding using Web Bluetooth. Adding BrcmPatchRAM3.kext is not really an option for our end-users (on a web application).

darrikonn avatar Oct 09 '23 14:10 darrikonn

report issue here. macOS 14.0 sonoma + kext v2.3.0 connect bt mice and bt kbd, after open AirPods (A2031 Version 6A300) and connect to macOS, the bt crash crash log here

sudo-dmesg-grep-i-bluetooth.txt

laris avatar Oct 09 '23 14:10 laris

I swap with below kext and works fine now. my mx master bt still cannot connect https://github.com/OpenIntelWireless/IntelBluetoothFirmware/pull/446

laris avatar Oct 09 '23 15:10 laris

Same issue here - only difference is that I have an Intel AX201

same ax201, have you solved it? I tried to add BrcmPatchRAM3.kext and nothing works!

lzipant avatar Oct 16 '23 07:10 lzipant

@ShroomKing Besides BrcmPatchRAM3.kext, does any other ktext need to be added? I add BrcmPatchRAM3.kext for my ax201 but it don't work. image

lzipant avatar Oct 16 '23 07:10 lzipant

Intel 7265NGW Bluetooth side does not work either in Sonoma. All was good before. WiFi works fine.

alikaylan avatar Oct 20 '23 11:10 alikaylan

Intel AX200 Bluetooth not working in Sonoma, but WiFi works fine.

System Information screenshot:

Hacktintool can't detect any bluetooth loaded:

OpenCore log:

02:011 00:000 OC: Prelinked injection AGPMInjector.kext () - Success
02:012 00:000 OC: Prelinked injection AGPMInjector.kext v111.1.18
02:018 00:005 OCAK: Local relocs 314 on FFFFFF8003F74000
02:019 00:001 OC: Prelinked injection BlueToolFixup.kext (Bluetooth support for macOS 12-) - Success
02:019 00:000 OC: Prelinked injection BlueToolFixup.kext v2.6.8
02:025 00:005 OCAK: Local relocs 499 on FFFFFF8003F7E000
02:027 00:001 OC: Prelinked injection BrcmFirmwareData.kext (Bluetooth firmware) - Success
02:027 00:000 OC: Prelinked injection BrcmFirmwareData.kext v2.6.8
02:030 00:002 OCAK: Patching invalid size 78FF4 with 1188000 for com.apple.iokit.IOUSBHostFamily
02:031 00:000 OCAK: Patching invalid size 4000 with 2504000 for com.apple.driver.AppleBusPowerController
02:033 00:001 OCAK: Patching invalid size 1C000 with 2110000 for com.apple.driver.AppleSMC
02:035 00:002 OCAK: Patching invalid size 2FFF with C12000 for com.apple.driver.watchdog
02:037 00:002 OCAK: Patching invalid size 2000 with 19B4000 for com.apple.iokit.IOACPIFamily
02:041 00:003 OCAK: Patching invalid size 36FF1 with 21F8000 for com.apple.driver.AppleMobileFileIntegrity
02:043 00:001 OCAK: Patching invalid size 9FF7 with 1E1A000 for com.apple.iokit.CoreAnalyticsFamily
02:047 00:003 OCAK: Patching invalid size 7BFD0 with CD1000 for com.apple.kec.corecrypto
02:048 00:001 OCAK: Patching invalid size 9FFA with 1D3E000 for com.apple.kext.CoreTrust
02:049 00:001 OCAK: Patching invalid size 1F000 with 2353000 for com.apple.security.AppleImage4
02:053 00:003 OCAK: Patching invalid size 3FFC with 1F1E000 for com.apple.driver.usb.AppleUSBCommon
02:056 00:003 OCAK: Dependency com.apple.driver.usb.AppleUSBHostPlatformProperties was not found for kext com.apple.iokit.IOUSBHostFamily
02:081 00:025 OCAK: Local relocs 357 on FFFFFF8004229000
02:083 00:001 OC: Prelinked injection BrcmPatchRAM3.kext (Bluetooth support for macOS 10.15-) - Success
02:084 00:000 OC: Prelinked injection BrcmPatchRAM3.kext v2.6.8
02:085 00:000 OC: Prelinked injection skips CryptexFixup.kext (Support for non-AVX2 CPUs in Ventura) kext at 18 due to version 220100 <= 230000 <= 229999
02:095 00:010 OCAK: Local relocs 729 on FFFFFF8004239000
02:097 00:001 OC: Prelinked injection IntelBluetoothFirmware.kext (Intel Bluetooth Firmware) - Success
02:098 00:000 OC: Prelinked injection IntelBluetoothFirmware.kext v2.3.0
02:104 00:006 OCAK: Local relocs 324 on FFFFFF8004990000
02:105 00:001 OC: Prelinked injection IntelBTPatcher.kext (IntelBTPatcher) - Success
02:106 00:000 OC: Prelinked injection IntelBTPatcher.kext v2.3.0
02:111 00:004 OCAK: Patching invalid size 22FF5 with D02000 for com.apple.driver.corecapture
02:122 00:011 OCAK: Patching invalid size 23BFF9 with 1C27000 for com.apple.iokit.IO80211Family
02:124 00:001 OCAK: Patching invalid size 17FF4 with 17A8000 for com.apple.iokit.IONetworkingFamily
02:133 00:009 OCAK: Patching invalid size 2EFF8 with 145A000 for com.apple.iokit.IOSkywalkFamily
02:135 00:001 OCAK: Patching invalid size 5000 with 154E000 for com.apple.driver.mDNSOffloadUserClient
02:252 00:116 OCAK: Local relocs 3218 on FFFFFF800499F000
02:257 00:005 OC: Prelinked injection AirportItlwm.kext (Intel Wi-Fi adaptor) - Success
02:258 00:000 OC: Prelinked injection AirportItlwm.kext v2.3.0
02:259 00:000 OC: Prelink size 92577792 kext offset 62226432 reserved 30408704
02:260 00:000 OCAK: KC TEXT is 65536 bytes with 62104 Mach-O headers need 848
02:276 00:016 OCAK: Forcing sb scheme on 230000

systemlog: bluetooth.log

0xfeedface1993 avatar Oct 20 '23 12:10 0xfeedface1993

Intel AX200 Bluetooth not working in Sonoma, but WiFi works fine.

I'm having the exact same issue. I went back to Ventura in the meantime.

andresiraola avatar Oct 21 '23 23:10 andresiraola

try adding the bluetoolfixup bootarg -btlfxallowanyaddr

ShroomKing avatar Oct 24 '23 10:10 ShroomKing

try adding the bluetoolfixup bootarg -btlfxallowanyaddr

It's still not functioning properly. While it seems that the kext isn't loading, the logs indicate that it has been loaded.

0xfeedface1993 avatar Oct 25 '23 08:10 0xfeedface1993

try adding the bluetoolfixup bootarg -btlfxallowanyaddr

Indeed, does not solve this particular issue.

alikaylan avatar Oct 25 '23 12:10 alikaylan

Alright, it was just a guess based on the system info output for the bluetooth controller (Address = NULL)

I use AX211 and it works for me(Also works for @KaushikDuddala but idk which chip he is using)

Guess BrcmPatchRAM doesn’t work for all intel chips.

ShroomKing avatar Oct 25 '23 15:10 ShroomKing

It worked for me with Intel 9560 on Sonoma, try this: https://github.com/OpenIntelWireless/IntelBluetoothFirmware/pull/446#issuecomment-1729711030

hugonascimento avatar Oct 26 '23 10:10 hugonascimento

My AX201 bluetooth address was null, After added BlueToolFixup.kext.zip, it's ok. https://github.com/OpenIntelWireless/IntelBluetoothFirmware/files/11672823/BlueToolFixup.kext.zip Refer to https://github.com/OpenIntelWireless/IntelBluetoothFirmware/issues/437#issuecomment-1579958516

chinalujw avatar Nov 02 '23 11:11 chinalujw

Also my AX201 works in Sonoma. I've using latest BlueToolFixup kext, and myself build of IntelBluetoothFirmware kext with updated firmware and patch for LE devices(https://github.com/OpenIntelWireless/IntelBluetoothFirmware/pull/446). Kexts.zip

sdkdimon avatar Nov 15 '23 12:11 sdkdimon

Also my AX201 works in Sonoma. I've using latest BlueToolFixup kext, and myself build of IntelBluetoothFirmware kext with updated firmware and patch for LE devices(#446). Kexts.zip

This works. Thanks.

Deihmos avatar Nov 24 '23 13:11 Deihmos

I'm working on a fix for a day and think I miss something ovious, just too long in this topic. My problem is the Mac does not see any BT devices.

What I did so far, connecting a antena, trying out @Deihmos new Kexts, playing around with BrcmPatchRAM,...

[    1.750504]: IntelFirmware: Driver init()
[    1.750510]: IntelFirmware: Driver Probe()
[    1.750514]: IntelFirmware: name=IOUSBHostDevice, class=IOService, vendorID=0x8087, productID=0x0033
[    1.750521]: IntelFirmware: Driver Start()
[    1.750547]: IntelFirmware: virtual bool BtIntel::initWithDevice(IOService *, IOUSBHostDevice *)
[    1.750550]: IntelFirmware: virtual bool USBDeviceController::init(IOService *, IOUSBHostDevice *)
[    1.750773]: IntelFirmware: virtual bool USBDeviceController::initConfiguration()
[    1.750782]: IntelFirmware: set configuration to 1
[    1.751175]: IntelFirmware: virtual bool USBDeviceController::findInterface()
[    1.751179]: IntelFirmware: Found interface!!!
[    1.751234]: IntelFirmware: virtual bool USBDeviceController::findPipes()
[    1.751238]: IntelFirmware: Found Interrupt endpoint!
[    1.751818]: IntelFirmware: Found Bulk out endpoint!
[    1.752245]: IntelFirmware: Found Bulk in endpoint!
[    1.752611]: IntelFirmware: BT init succeed
[    1.755385]: Sandbox: locationd(134) deny(1) mach-lookup com.apple.PowerManagement.controlIntelFirmware: Firmware timestamp 2021.39 buildtype 1 build 31878
[    1.757982]: IntelFirmware: Found device firmware ibt-1040-0041.sfi
[    1.761864]: IntelFirmware: Found device firmware: ibt-1040-0041.sfi
[    1.761901]: IntelFirmware: Boot Address: 0x100800
[    1.761903]: IntelFirmware: Firmware Version: 134-39.21
[    1.761904]: IntelFirmware: Firmware already loaded
[    1.762016]: IntelFirmware: Frimware is already running, finishing
[    1.763734]: IntelFirmware: Clean up...
[    1.763737]: IntelFirmware: virtual void BtIntel::free()
[    1.763739]: IntelFirmware: virtual void USBDeviceController::free()

Sandbox message wasn't there from the start. Bildschirmfoto 2023-12-16 um 12 07 53 Bildschirmfoto 2023-12-16 um 12 03 37 Bildschirmfoto 2023-12-16 um 12 08 08

Sturmkater avatar Dec 16 '23 11:12 Sturmkater

Also my AX201 works in Sonoma. I've using latest BlueToolFixup kext, and myself build of IntelBluetoothFirmware kext with updated firmware and patch for LE devices(#446). Kexts.zip

Your build saved my life. Now I can connect to my MX Mouse flawlessly.

tuancuong92 avatar Jan 30 '24 16:01 tuancuong92

Also my AX201 works in Sonoma. I've using latest BlueToolFixup kext, and myself build of IntelBluetoothFirmware kext with updated firmware and patch for LE devices(#446). Kexts.zip

Thanks, this solved my problem with mx master

Fagner3g avatar Feb 19 '24 15:02 Fagner3g

Also my AX201 works in Sonoma. I've using latest BlueToolFixup kext, and myself build of IntelBluetoothFirmware kext with updated firmware and patch for LE devices(#446). Kexts.zip

sdkdimon, would you be able to kindly build the latest firmware version with the patch for LE devices? The only thing that seems to be working with MX mouse is the kext you had built with patch and it is no longer the latest firmware version. Thanks in advance. Much appreciated.

alikaylan avatar Aug 08 '24 12:08 alikaylan