SOFTWARE BUG IN macOS Catalina: Bluetooth does not turn on
My mac: Macbook Pro Late 2012
macOS version: Catalina 10.15.4 (downgraded from 10.15.6)
The problem:
It shows Bluetooth is disabled with the icon greyed out and a zigzag line across which means bluetooth is unavailable.
In About Mac > System Report > Bluetooth it gives "No information found"
The whole bluetooth Preference Pane has disappeared from System Preferences.
So I had posted about this before. I'll link to that here: https://discussions.apple.com/thread/251574958
Please go over that discussion to understand the problem better.
But with newer discoveries, I decided to create a new discussion.
I opened up my MacBook, removed the battery connection to remove and reinsert the Broadcomm Airport card. Thinking that it was a hardware problem and those steps usually fixed it for others. But no. The problem persisted in the exact same fashion.
Moreover, I have proof it is a software problem.
So let's head back to how the problem started. I connected my bluetooth earphones but faced issues. So I turned bluetooth off. Then the "Turn Bluetooth On" button became greyed out. Bluetooth preference pane disappeared and more.
Basically that single action of turning off bluetooth triggered the software to not recognise the hardware completely.
When I finally had time to look into console and see what's happening, I found this:
The framework WPDaemon is exclusively part of iOS13. But since Catalina I'm guessing Apple has integrated that iOS framework with macOS.
Link to the same framework: https://github.com/w0lfschild/macOS_headers/tree/master/macOS/PrivateFrameworks/WPDaemon/118But
Here's my thought process on what's happening.
This framework must have a variable called CBCentralManager. That variable has been set to turnedOff state (maybe triggered by me turning off bluetooth?). And now that daemon is not powering on.
This has been a problem with Apple iOS developers creating bluetooth enabled applications; here's a few forums discussing the problem:
Why the state of CBCentralManager is always Unsupported: https://developer.apple.com/forums/thread/47230
Incoherent CBCentralManager state in iOS 11: https://developer.apple.com/forums/thread/91664
CBCentralManager is not powered on
CBCentralManager always return .poweredOff state on iOS 11.1.x
A few other errors from above console worth noticing:
Sandbox: bluetoothd(173) deny(1) mach-lookup com.apple.server.bluetooth
Sandbox is used to restrict applications from accessing hardware in the background. I wonder what it's doing denying permissions to core bluetooth itself? I haven't understood anything more on this.
When I ran "sudo bluetoothd" on terminal I get the following in console:
API MISUSE: <CBPeripheralManager: 0x7fedaf615c00> can only accept this command while in the powered on state
Debugging mode:
apple@Khushbu ~ $ sudo bluetoothd -d
objc[4258]: Class PipeInfo is implemented in both /System/Library/PrivateFrameworks/WPDaemon.framework/Versions/A/WPDaemon and /usr/sbin/bluetoothd. One of the two will be used. Which one is undefined.
[bluetoothd][netPrefChanged] ###### Sharing Dictionary doesn't exist
My winning argument, if it was a hardware problem, I wouldn't have gotten a message on the console saying Bluetooth MAC address updated to 44-AB-CC-DD-EE-FF. How did it recognise and update hardware if none is available?
Also Siri still does turn on and off bluetooth when I tell her to.
Anyway I'm still a fresher not even graduated college so I cannot research more extensively. This is a serious bug driving people nuts all over the forums. There are people who get it fixed by changing hardware, clean installs etc. I believe hardware is not the issue in my case. Also didn't want to go into the whole ordeal of clean install, backing up data, installation time just to see the same error again.
Again, I've tried all solutions possible. Please go over my other discussion ( https://discussions.apple.com/thread/251574958 ) to look over those.
I have tried all plist solutions.
I have tried removing whole Bluetooth PAN interface and adding.
I have tried installing different versions of Catalina but nothing works.
Kindly explain what the problem is. I just want to know if my deductions are correct and it is in fact a software bug.
Thankyou.
MacBook Pro 13″, macOS 10.15