Skip to content
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

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

Open
gorouflex opened this issue Sep 16, 2023 · 31 comments
Open

Comments

@gorouflex
Copy link

gorouflex commented Sep 16, 2023

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
Copy link
Author

Screen.Recording.2023-09-16.at.09.42.17.mov

@KaushikDuddala
Copy link

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

@ShroomKing
Copy link

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

Without it I also have this problem on IntelAX211

@gorouflex
Copy link
Author

gorouflex commented Oct 5, 2023

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

@ShroomKing
Copy link

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?

@KaushikDuddala
Copy link

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

@KaushikDuddala
Copy link

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
Copy link

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.

@ShroomKing
Copy link

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.

@darrikonn
Copy link

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

@laris
Copy link

laris commented Oct 9, 2023

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
Copy link

laris commented Oct 9, 2023

I swap with below kext and works fine now.
my mx master bt still cannot connect
#446

@lzipant
Copy link

lzipant commented Oct 16, 2023

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
Copy link

lzipant commented Oct 16, 2023

@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

@alikaylan
Copy link

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

@0xfeedface1993
Copy link

0xfeedface1993 commented Oct 20, 2023

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

@andresiraola
Copy link

andresiraola commented Oct 21, 2023

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.

@ShroomKing
Copy link

try adding the bluetoolfixup bootarg -btlfxallowanyaddr

@0xfeedface1993
Copy link

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.

@alikaylan
Copy link

try adding the bluetoolfixup bootarg -btlfxallowanyaddr

Indeed, does not solve this particular issue.

@ShroomKing
Copy link

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.

@hugonascimento
Copy link

hugonascimento commented Oct 26, 2023

It worked for me with Intel 9560 on Sonoma, try this:
#446 (comment)

@chinalujw
Copy link

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 #437 (comment)

@sdkdimon
Copy link

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

@Deihmos
Copy link

Deihmos commented Nov 24, 2023

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.

@Sturmkater
Copy link

Sturmkater commented Dec 16, 2023

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

@gorouflex gorouflex changed the title Broken bluetooth in macOS Sonoma Bluetooth only partially working on macOS Sonoma - HandOff is broken Dec 18, 2023
@tuancuong92
Copy link

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.

@Fagner3g
Copy link

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

@gorouflex gorouflex changed the title Bluetooth only partially working on macOS Sonoma - HandOff is broken Bluetooth is only partially working on macOS Sonoma, and Handoff is broken Jul 2, 2024
@alikaylan
Copy link

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.

@AOE33
Copy link

AOE33 commented Sep 25, 2024

After many many experiments, my wifi module Intel 8260NGW with 2.4G/5 Ghz Wi-Fi and 867M Bluetooth 4.2NGFF M.2 fine worked with BlueToolFixup.kext, BrcmPatchRAM2.kext IntelBluetoothFirmware.kext and with NVRAM keys bluetoothInternalControllerInfo:000000000000000000000000000, bluetoothExternalDongleFailed:00 without IntelBTPatcher.kext in Sonoma and Sequoia macoses.

@SherifMEldeeb
Copy link

BrcmPatchRAM3.kext did not work for me any ideas It's annoying.
CPU: Skylake Core i7-6500U
RAM: 16GB
Audio: ALC255
iGPU: Spoofed KBL 0x5916
Used itlwm + Heliport for wifi Intel AC3160
Bluetooth IntelFirmware + Blutoolfixup
MAC Os Sonoma 14.4.1
Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests