Contribute
Register

Broadcom WiFi/Bluetooth [Guide]

IIRC some laptops worked better with Hibernationmode set to 25 or 29. Trying these settings might help.
 
Sorry for me but I can't make it work....:banghead:

Last login: Tue Dec 21 01:09:56 on ttys000

joseramon@iMac-de-Jose ~ % log show -last 1000|grep sleepwatcher

2021-12-21 00:57:39.242542+0100 0x11240 Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1336]:] service exited: dirty = 0, supported pressured-exit = 0

2021-12-21 00:57:39.242543+0100 0x11240 Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1336]:] exited due to exit(0)

2021-12-21 00:57:39.242545+0100 0x11240 Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1336]:] service state: exited

2021-12-21 00:57:39.242547+0100 0x11240 Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1336]:] internal event: EXITED, code = 0

2021-12-21 00:57:39.242548+0100 0x11240 Default 0x0 1 0 launchd: [system:] service inactive: de.bernhard-baehr.sleepwatcher

2021-12-21 00:57:39.242549+0100 0x11240 Default 0x0 1 0 launchd: [system:] removing service: de.bernhard-baehr.sleepwatcher

2021-12-21 00:57:39.242554+0100 0x11240 Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1336]:] internal event: PETRIFIED, code = 0

2021-12-21 00:57:39.242556+0100 0x11240 Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1336]:] service state: not running

2021-12-21 00:59:13.847214+0100 0x251 Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [89]:] service state: running

2021-12-21 00:59:13.847216+0100 0x251 Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [89]:] internal event: INIT, code = 0

2021-12-21 00:59:13.847219+0100 0x251 Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [89]:] Successfully spawned sleepwatcher[89] because speculative

2021-12-21 00:59:16.562335+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOKit) [com.apple.iohid:default] IOCreatePlugInInterfaceForService:0xe00002be for serviceID:0x1000004ca

2021-12-21 00:59:16.562446+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOKit) [com.apple.iohid:default] IOServiceAddInterestNotification: 0xe00002c7

2021-12-21 00:59:18.452096+0100 0x29c Activity 0xc50 89 0 sleepwatcher: (TCC) TCCAccessRequest() IPC

2021-12-21 00:59:18.453039+0100 0x3a6 Default 0xc50 151 0 tccd: [com.apple.TCC:access] AUTHREQ_ATTRIBUTION: msgID=89.1, attribution={requesting={<TCCDProcess: identifier=<ID of InvalidCode>, pid=89, auid=0, euid=0, binary_path=/usr/local/sbin/sleepwatcher>}, },

2021-12-21 00:59:18.453772+0100 0x3a6 Default 0xc50 151 0 tccd: [com.apple.TCC:access] AUTHREQ_SUBJECT: msgID=89.1, subject=/usr/local/sbin/sleepwatcher,

2021-12-21 00:59:18.454783+0100 0x3a6 Error 0xc50 151 0 tccd: [com.apple.TCC:access] Failed to validate dynamic code signature of accessing process <TCCDProcess: identifier=<ID of InvalidCode>, pid=89, auid=0, euid=0, binary_path=/usr/local/sbin/sleepwatcher>: #-67062: Error Domain=NSOSStatusErrorDomain Code=-67062 "(null)"

2021-12-21 00:59:18.495293+0100 0x3a6 Error 0xc50 151 0 tccd: [com.apple.TCC:access] notifyUserOfDeniedAccessBy: for /usr/local/sbin/sleepwatcher fails when requestor has UID 0

2021-12-21 00:59:18.495459+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x10000057d: TCC deny IOHIDDeviceOpen

2021-12-21 00:59:18.495497+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x10000057d: TCC deny IOHIDDeviceOpen

2021-12-21 00:59:23.647455+0100 0x29c Activity 0xc51 89 0 sleepwatcher: (TCC) TCCAccessRequest() IPC

2021-12-21 00:59:23.647484+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000647: TCC deny IOHIDDeviceOpen

2021-12-21 00:59:23.647497+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000647: TCC deny IOHIDDeviceOpen

2021-12-21 01:02:07.743666+0100 0x29c Activity 0xc52 89 0 sleepwatcher: (TCC) TCCAccessRequest() IPC

2021-12-21 01:02:07.743737+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x10000082b: TCC deny IOHIDDeviceOpen

2021-12-21 01:02:07.743763+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x10000082b: TCC deny IOHIDDeviceOpen

2021-12-21 01:02:12.366815+0100 0x29c Activity 0xc53 89 0 sleepwatcher: (TCC) TCCAccessRequest() IPC

2021-12-21 01:02:12.366842+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x10000083b: TCC deny IOHIDDeviceOpen

2021-12-21 01:02:12.366861+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x10000083b: TCC deny IOHIDDeviceOpen

2021-12-21 01:09:21.844977+0100 0x29c Activity 0xc54 89 0 sleepwatcher: (TCC) TCCAccessRequest() IPC

2021-12-21 01:09:21.845195+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x1000008fe: TCC deny IOHIDDeviceOpen

2021-12-21 01:09:21.845222+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x1000008fe: TCC deny IOHIDDeviceOpen

2021-12-21 01:09:45.863913+0100 0x29c Activity 0xc55 89 0 sleepwatcher: (TCC) TCCAccessRequest() IPC

2021-12-21 01:09:45.863955+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x10000094c: TCC deny IOHIDDeviceOpen

2021-12-21 01:09:45.863969+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x10000094c: TCC deny IOHIDDeviceOpen

2021-12-21 01:09:45.868801+0100 0x29c Activity 0xc56 89 0 sleepwatcher: (TCC) TCCAccessRequest() IPC

2021-12-21 01:09:45.868846+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x10000094e: TCC deny IOHIDDeviceOpen

2021-12-21 01:09:45.868873+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x10000094e: TCC deny IOHIDDeviceOpen

2021-12-21 01:10:25.215821+0100 0x29c Activity 0xc57 89 0 sleepwatcher: (TCC) TCCAccessRequest() IPC

2021-12-21 01:10:25.215887+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x10000098a: TCC deny IOHIDDeviceOpen

2021-12-21 01:10:25.215904+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x10000098a: TCC deny IOHIDDeviceOpen

2021-12-21 01:10:27.182095+0100 0x29c Activity 0xc58 89 0 sleepwatcher: (TCC) TCCAccessRequest() IPC

2021-12-21 01:10:27.182123+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000999: TCC deny IOHIDDeviceOpen

2021-12-21 01:10:27.182136+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000999: TCC deny IOHIDDeviceOpen

2021-12-21 01:11:29.304225+0100 0x29c Activity 0xc59 89 0 sleepwatcher: (TCC) TCCAccessRequest() IPC

2021-12-21 01:11:29.304282+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x1000009c3: TCC deny IOHIDDeviceOpen

2021-12-21 01:11:29.304307+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x1000009c3: TCC deny IOHIDDeviceOpen

2021-12-21 01:11:29.309718+0100 0x29c Activity 0xc5a 89 0 sleepwatcher: (TCC) TCCAccessRequest() IPC

2021-12-21 01:11:29.309753+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x1000009c5: TCC deny IOHIDDeviceOpen

2021-12-21 01:11:29.309773+0100 0x29c Error 0x0 89 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x1000009c5: TCC deny IOHIDDeviceOpen

joseramon@iMac-de-Jose ~ %
 
IIRC some laptops worked better with Hibernationmode set to 25 or 29. Trying these settings might help.
you champion, yes i think hibernationmode 25 has worked, i am so happy now, yeet.

2021-12-21 11:26:53.884787+0000 0x74 Default 0x0 0 0 kernel: PM response took 270 ms (96, sleepwatcher)
2021-12-21 11:27:08.643580+0000 0x291 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-21 11:31:36.124522+0000 0x291 Activity 0x18add 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-21 11:31:36.166792+0000 0x291 Activity 0x18ade 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-21 11:31:36.704070+0000 0x291 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-21 11:31:36.705064+0000 0x291 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-21 11:31:38.067786+0000 0x291 Activity 0x18adf 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-21 11:32:13.949471+0000 0x74 Default 0x0 0 0 kernel: PM response took 205 ms (96, sleepwatcher)
2021-12-21 11:32:40.779011+0000 0x291 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-21 11:33:40.678317+0000 0x291 Activity 0x297a0 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-21 11:33:40.732463+0000 0x291 Activity 0x297a1 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-21 11:33:41.439898+0000 0x291 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-21 11:33:41.440369+0000 0x291 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-21 11:33:42.640996+0000 0x291 Activity 0x297a2 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
 
That would be really helpful if you could post it here. I am going to try and get sleep watcher working but would be good to have another plan as this bluetooth bug is super annoying!
Actually, it's quite simple and straightforward.

1. Download Eventscripts from App Store.
2. Download my wakeup-bluetoothfix.scpt (attached), open, and replace "xxx" with your own username and sudo password.
3. Get this scpt into Eventscripts
 

Attachments

  • wakeup-bluetoothfix.scpt.zip
    3.1 KB · Views: 86
Actually, it's quite simple and straightforward.

1. Download Eventscripts from App Store.
2. Download my wakeup-bluetoothfix.scpt (attached), open, and replace "xxx" with your own username and sudo password.
3. Get this scpt into Eventscripts
this seems to be a fairly expensive app ($8.49 CAD for me) but if people cant get it working with sleepwatcher sounds like the best option
 
sleepwatcher takes about 17-18 seconds to activate, so if the eventscripts app method would allow mouse control quicker that would be great, is anyone else able to time how long it takes for sleepwatcher to work for them? does sleep 5 mean it waits 5 seconds? could this be reduced?
 
Last edited:
sleepwatcher works fine. Didn't have an issue. I would try to reinstall following the manual. It's a very simple UNIX daemon.

Another thing you can try is to run the /etc/rc.wake command manually from terminal. See if there are any errors.

I added the sleep 5 command. You can change that to any number.

It has nothing to do with SIP.

Moreover, have you try upgrading to Monterey 12.1? Because I have disabled sleepwatcher and it seems the bluetooth issues are fixed. I no longer need sleepwatcher and bluetooth is working fine now.

(I did more testing) sleepwatcher still needed.
 
Last edited:
sleepwatcher works fine. Didn't have an issue. I would try to reinstall following the manual. It's a very simple UNIX daemon.

Another thing you can try is to run the /etc/rc.wake command manually from terminal. See if there are any errors.

I added the sleep 5 command. You can change that to any number.

It has nothing to do with SIP.

Moreover, have you try upgrading to Monterey 12.1? Because I have disabled sleepwatcher and it seems the bluetooth issues are fixed. I no longer need sleepwatcher and bluetooth is working fine now.

great info, yes i am on 12.1, ive never used anything else, i came straight from big sur to 12.1

great that your card is working as it should, this is likely because its BCM943602CS which was the card used in 2015 macbook pros (12,1 11,4 11,5) wheras the BCM94360CS (also a 3 antenna card) was used in the 2013 and 2014 Macbook pro models (11,1 11,2 11,3)

the difference between a BCM943602CS and BCM94360CS is that the BCM943602CS has bluetooth 4.1/4.2 (bluetooth 4.1 with bluetooth 4.2 spec features, in accordance with bluetooth 4.2 standard) whereas the BCM94360CS only has 4.0 i believe, however it might report 4.1 in some situations

ive done extensive testing with both these cards, the BCM94360CS works with HID proxy mode, and the BCM943602CS does not, what this means is that the cards behave almost the same in real world usage but the BCM943602CS will never be able to provide a connection from a bluetooth keyboard to opencore bootloader or the BIOS page (i am open to being proven wrong), with HID proxy on the BCM94360CS this is possible.

the BCM94360CS2 exhibits the same functionality of the BCM94360CS with a 2 antenna configuration compared to 3. this was the card used in 2013-2014 macbook airs

hopefully this explains why your issues went away, and why they probably will remain for some (BCM94360CS and BCM94360CS2 are not used in macbook which support Monterey)

as for what you mentioned about following the steps from the sleepwatcher devleoper, they are simply worded in a way which is not really comprehend able for someone with no experience doing these things.

as for the sleep 5 command can i remove the 5 and have no number? or do i need a 0 or 1?
 
Last edited:
this seems to be a fairly expensive app ($8.49 CAD for me) but if people cant get it working with sleepwatcher sounds like the best option
Yes,not cheap.
It respond almost simultaneously when the machine wakeup.
In addition, it can do many other things. Like auto remount net drive. It's a very versatile software.
I have utilized this app for a long time.
This bluetooth fix tend to be a minor bonus
 
Back
Top