Contribute
Register

Broadcom WiFi/Bluetooth [Guide]

here is what im doing

Connor@Connors-MBP-2 ~ % sudo mkdir -p /usr/local/sbin /usr/local/share/man/man8
Connor@Connors-MBP-2 ~ % sudo cp ~/Desktop/sleepwatcher_2.2.1/sleepwatcher /usr/local/sbin
Connor@Connors-MBP-2 ~ % sudo cp ~/Desktop/sleepwatcher_2.2.1/sleepwatcher.8 /usr/local/share/man/man8
Connor@Connors-MBP-2 ~ % sudo cp ~/Desktop/sleepwatcher_2.2.1/config/de.bernhard-baehr.sleepwatcher-20compatibility.plist /Library/LaunchDaemons/de.bernhard-baehr.sleepwatcher.plist
Connor@Connors-MBP-2 ~ % sudo launchctl load -w -F /Library/LaunchDaemons/de.bernhard-baehr.sleepwatcher.plist
/Library/LaunchDaemons/de.bernhard-baehr.sleepwatcher.plist: service already loaded
Load failed: 37: Operation already in progress
Connor@Connors-MBP-2 ~ %


Next, instructions from @Creo2005 say this
"You can then add your scripts to /etc/rc.wakeup and /etc/rc.sleep:"

so i take the rc.wakeup and rc.sleep file from /desktop/sleepwatcher_2.2.1/config/

and manually drag them into /etc/

then i run these commands as @Creo2005 instructions say
Connor@Connors-MBP-2 ~ % sudo touch /etc/rc.wakeup
Connor@Connors-MBP-2 ~ % sudo touch /etc/rc.sleep
Connor@Connors-MBP-2 ~ % sudo chmod +x /etc/rc.sleep /etc/rc.wakeup

the instructions then say to edit rc.wakeup and add script, so i open the rc.wakeup file in /etc/ and edit it, but it tells me i can not edit it, so i remove it from the folder to desktop, edit, save, replace the old file in /etc/ and run these commands again
Connor@Connors-MBP-2 ~ % sudo touch /etc/rc.wakeup
Connor@Connors-MBP-2 ~ % sudo touch /etc/rc.sleep
Connor@Connors-MBP-2 ~ % sudo chmod +x /etc/rc.sleep /etc/rc.wakeup

if i open my rc.wakeup this is what it reads
#!/bin/sh

for user in `echo 'show State:/Users/ConsoleUser' | scutil | awk '/kCGSSessionUserNameKey/ { print $3 }'`; do

home=`eval echo ~$user`

if [ -x "$home/.wakeup" ]; then

logger -t $0 "executing .wakeup of user $user"

su - $user -c "\"$home/.wakeup\""

fi

done


sleep 5

pkill bluetoothd


here is all my sleepwatcher logs since trying to get this working

Connor@Connors-MBP-2 ~ % log show -last 1000|grep sleepwatcher
2021-12-19 21:36:44.374130+0000 0x93d Activity 0xf2c 398 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-19 21:36:44.374291+0000 0x93d Error 0x0 398 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000c06: TCC deny IOHIDDeviceOpen
2021-12-19 21:36:44.374369+0000 0x93d Error 0x0 398 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000c06: TCC deny IOHIDDeviceOpen
2021-12-19 21:36:53.715725+0000 0x93d Activity 0xf2d 398 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-19 21:36:53.715807+0000 0x93d Error 0x0 398 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000c14: TCC deny IOHIDDeviceOpen
2021-12-19 21:36:53.715833+0000 0x93d Error 0x0 398 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000c14: TCC deny IOHIDDeviceOpen
2021-12-19 21:37:12.382909+0000 0x93d Activity 0xf2e 398 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-19 21:37:12.383004+0000 0x93d Error 0x0 398 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000c27: TCC deny IOHIDDeviceOpen
2021-12-19 21:37:12.383032+0000 0x93d Error 0x0 398 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000c27: TCC deny IOHIDDeviceOpen
2021-12-19 21:41:09.766979+0000 0xad9c Default 0x0 1427 0 sudo: Connor : TTY=ttys000 ; PWD=/Users/Connor ; USER=root ; COMMAND=/bin/cp sleepwatcher /usr/local/sbin
2021-12-19 21:42:32.926847+0000 0xb0e8 Default 0x0 1457 0 sudo: Connor : TTY=ttys000 ; PWD=/Users/Connor ; USER=root ; COMMAND=/bin/cp /Users/Connor/Desktop/sleepwatcher_2.2.1/sleepwatcher /usr/local/sbin
2021-12-19 21:42:43.434471+0000 0xb130 Default 0x0 1460 0 sudo: Connor : TTY=ttys000 ; PWD=/Users/Connor ; USER=root ; COMMAND=/bin/cp /Users/Connor/Desktop/sleepwatcher_2.2.1/sleepwatcher.8 /usr/local/share/man/man8
2021-12-19 21:43:05.462455+0000 0xb1d8 Default 0x0 1463 0 sudo: Connor : TTY=ttys000 ; PWD=/Users/Connor ; USER=root ; COMMAND=/bin/cp /Users/Connor/Desktop/sleepwatcher_2.2.1/config/de.bernhard-baehr.sleepwatcher-20compatibility.plist /Library/LaunchDaemons/de.bernhard-baehr.sleepwatcher.plist
2021-12-19 21:43:20.626864+0000 0xb286 Default 0x0 1466 0 sudo: Connor : TTY=ttys000 ; PWD=/Users/Connor ; USER=root ; COMMAND=/bin/launchctl load -w -F /Library/LaunchDaemons/de.bernhard-baehr.sleepwatcher.plist
2021-12-19 21:43:20.630257+0000 0xb08b Default 0x0 1 0 launchd: [system:] Enabling service de.bernhard-baehr.sleepwatcher
2021-12-19 21:43:20.630284+0000 0xb08b Default 0x0 1 0 launchd: [system:] Bootstrap by launchctl[1467] for /Library/LaunchDaemons/de.bernhard-baehr.sleepwatcher.plist failed (37: Operation already in progress)
 
im beginning to become confident it is setup correctly and suspect i need SIP to be disabled, here is logs from sleeping and waking

2021-12-19 22:15:02.075605+0000 0x3c17 Default 0x0 1027 0 sudo: Connor : TTY=ttys000 ; PWD=/Users/Connor ; USER=root ; COMMAND=/bin/launchctl load -w -F /Library/LaunchDaemons/de.bernhard-baehr.sleepwatcher.plist
2021-12-19 22:15:02.079197+0000 0x3ae2 Default 0x0 1 0 launchd: [system:] Enabling service de.bernhard-baehr.sleepwatcher
2021-12-19 22:15:02.079224+0000 0x3ae2 Default 0x0 1 0 launchd: [system:] Bootstrap by launchctl[1028] for /Library/LaunchDaemons/de.bernhard-baehr.sleepwatcher.plist failed (37: Operation already in progress)
2021-12-19 22:15:21.386915+0000 0x3b9a Default 0xc890 163 0 tccd: [com.apple.TCC:access] AUTHREQ_ATTRIBUTION: msgID=189.1, attribution={accessing={<TCCDProcess: identifier=<ID of InvalidCode>, pid=824, auid=0, euid=0, binary_path=/usr/local/sbin/sleepwatcher>}, requesting={<TCCDProcess: identifier=com.apple.syspolicyd, pid=189, auid=0, euid=0, binary_path=/usr/libexec/syspolicyd>}, },
2021-12-19 22:15:21.388718+0000 0x3b9a Default 0xc890 163 0 tccd: [com.apple.TCC:access] AUTHREQ_SUBJECT: msgID=189.1, subject=/usr/local/sbin/sleepwatcher,
2021-12-19 22:15:21.389002+0000 0x3b9a Error 0xc890 163 0 tccd: [com.apple.TCC:access] Failed to validate dynamic code signature of accessing process <TCCDProcess: identifier=<ID of InvalidCode>, pid=824, auid=0, euid=0, binary_path=/usr/local/sbin/sleepwatcher>: #-67062: Error Domain=NSOSStatusErrorDomain Code=-67062 "(null)"
2021-12-19 22:15:21.899582+0000 0x74 Default 0x0 0 0 kernel: PM response took 533 ms (824, sleepwatcher)
2021-12-19 22:18:33.034405+0000 0x20d7 Activity 0xa278 824 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-19 22:18:33.043032+0000 0x20d7 Error 0x0 824 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000a8d: TCC deny IOHIDDeviceOpen
2021-12-19 22:18:33.044298+0000 0x20d7 Error 0x0 824 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000a8d: TCC deny IOHIDDeviceOpen
2021-12-19 22:18:33.207573+0000 0x20d7 Activity 0xa279 824 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-19 22:18:33.207620+0000 0x20d7 Error 0x0 824 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000ac6: TCC deny IOHIDDeviceOpen
2021-12-19 22:18:33.207653+0000 0x20d7 Error 0x0 824 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000ac6: TCC deny IOHIDDeviceOpen
2021-12-19 22:18:33.652345+0000 0x20d7 Activity 0xa27a 824 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-19 22:18:33.652423+0000 0x20d7 Error 0x0 824 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000b2c: TCC deny IOHIDDeviceOpen
2021-12-19 22:18:33.652460+0000 0x20d7 Error 0x0 824 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000b2c: TCC deny IOHIDDeviceOpen
2021-12-19 22:18:33.652761+0000 0x20d7 Activity 0xa27b 824 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-19 22:18:33.652808+0000 0x20d7 Error 0x0 824 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000b35: TCC deny IOHIDDeviceOpen
2021-12-19 22:18:33.652832+0000 0x20d7 Error 0x0 824 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000b35: TCC deny IOHIDDeviceOpen
2021-12-19 22:18:33.653387+0000 0x20d7 Activity 0xa27c 824 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-19 22:18:33.653442+0000 0x20d7 Error 0x0 824 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000b26: TCC deny IOHIDDeviceOpen
2021-12-19 22:18:33.653467+0000 0x20d7 Error 0x0 824 0 sleepwatcher: (IOHIDLib) [com.apple.iohid:default] 0x100000b26: TCC deny IOHIDDeviceOpen
 
here is with SIP disabled
Connor@Connors-MBP-2 ~ % csrutil status
System Integrity Protection status: unknown (Custom Configuration).

Configuration:
Apple Internal: disabled
Kext Signing: disabled
Filesystem Protections: disabled
Debugging Restrictions: enabled
DTrace Restrictions: enabled
NVRAM Protections: enabled
BaseSystem Verification: enabled

This is an unsupported configuration, likely to break in the future and leave your machine in an unknown state.


2021-12-19 22:58:00.427797+0000 0x2b9 Activity 0x89e 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-19 22:58:30.348586+0000 0x2b9 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-19 22:59:05.082291+0000 0x2b9 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-19 22:59:05.169851+0000 0x2b9 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-19 22:59:05.172008+0000 0x2b9 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-19 22:59:40.381664+0000 0x2b9 Activity 0x89f 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-19 22:59:41.617171+0000 0x2b9 Activity 0xb160 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC

still not working
 
In my:
csrutil status
System Integrity Protection status: enabled.
All is work.
SIP has nothing to do with this.

creo@iMac-Creo ~ % log show -last 10000 | grep sleepwatcher
2021-12-20 07:42:33.023417+0200 0xb5e Default 0x0 435 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 07:42:33.023669+0200 0xb5e Default 0x0 435 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 07:42:33.817598+0200 0xb5e Default 0x0 435 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 07:42:34.782355+0200 0xb5e Activity 0xdac80 435 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 07:42:34.785318+0200 0xb5e Activity 0xdac81 435 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 07:42:35.964546+0200 0x1184d1 Default 0x0 435 0 sleepwatcher: (CoreAnalytics) [com.apple.CoreAnalytics:client] Received configuration update from daemon (change)
2021-12-20 07:42:39.288841+0200 0xb5e Activity 0xdac82 435 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 07:42:40.290596+0200 0xb5e Default 0x0 435 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 07:42:43.012284+0200 0xb5e Activity 0xdac83 435 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 07:44:49.392500+0200 0x16beb7 Error 0x0 0 0 kernel: (Sandbox) Sandbox: com.apple.quickl(520) deny(1) file-read-data /Users/creo/Downloads/sleepwatcher_2.2.1/config/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist
2021-12-20 07:44:49.392990+0200 0x16beb7 Error 0x0 0 0 kernel: (Sandbox) Sandbox: com.apple.quickl(520) deny(1) file-read-xattr /Users/creo/Downloads/sleepwatcher_2.2.1/config/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist
2021-12-20 07:44:49.393145+0200 0x16beb7 Error 0x0 0 0 kernel: (Sandbox) Sandbox: com.apple.quickl(520) deny(1) file-read-data /Users/creo/Downloads/sleepwatcher_2.2.1/config/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist
2021-12-20 07:44:49.393665+0200 0x16beb7 Error 0x0 0 0 kernel: (Sandbox) Sandbox: com.apple.quickl(520) deny(1) file-read-data /Users/creo/Downloads/sleepwatcher_2.2.1/config/de.bernhard-baehr.sleepwatcher-20compatibility.plist
2021-12-20 07:44:49.394131+0200 0x16beb7 Error 0x0 0 0 kernel: (Sandbox) Sandbox: com.apple.quickl(520) deny(1) file-read-xattr /Users/creo/Downloads/sleepwatcher_2.2.1/config/de.bernhard-baehr.sleepwatcher-20compatibility.plist
2021-12-20 07:44:49.394287+0200 0x16beb7 Error 0x0 0 0 kernel: (Sandbox) Sandbox: com.apple.quickl(520) deny(1) file-read-data /Users/creo/Downloads/sleepwatcher_2.2.1/config/de.bernhard-baehr.sleepwatcher-20compatibility.plist
2021-12-20 07:44:49.394798+0200 0x16beb7 Error 0x0 0 0 kernel: (Sandbox) Sandbox: com.apple.quickl(520) deny(1) file-read-data /Users/creo/Downloads/sleepwatcher_2.2.1/sources/Makefile
2021-12-20 07:44:49.395226+0200 0x16beb7 Error 0x0 0 0 kernel: (Sandbox) Sandbox: com.apple.quickl(520) deny(1) file-read-xattr /Users/creo/Downloads/sleepwatcher_2.2.1/sources/Makefile
2021-12-20 07:44:49.395373+0200 0x16beb7 Error 0x0 0 0 kernel: (Sandbox) Sandbox: com.apple.quickl(520) deny(1) file-read-data /Users/creo/Downloads/sleepwatcher_2.2.1/sources/Makefile

creo@iMac-Creo ~ % log show -last 1000 | grep sleepwatcher
2021-12-20 08:09:08.142008+0200 0x16fffb Default 0x124ccd 216 0 runningboardd: (RunningBoard) [com.apple.runningboard:process] Resolved pid 435 to [daemon<de.bernhard-baehr.sleepwatcher>:435]
2021-12-20 08:09:08.142342+0200 0x16fffb Default 0x124ccd 216 0 runningboardd: (RunningBoard) [com.apple.runningboard:process] [daemon<de.bernhard-baehr.sleepwatcher>:435] This process will not be managed.

All is work, but I don't understand why the script is accessing files from the installation (/Users/creo/Downloads/)?
 
i have no idea why it isnt working for me :/

Connor@Connors-MBP ~ % log show -last 1000|grep sleepwatcher
2021-12-20 14:17:10.553750+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:18:26.106204+0000 0x6ecf Activity 0x124d8 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:18:26.154090+0000 0x6ecf Activity 0x124d9 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:18:44.471915+0000 0x6ecf Activity 0x124da 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:19:15.135401+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:19:53.115738+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:19:53.116231+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:19:54.264440+0000 0x6ecf Activity 0x124db 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:20:22.825335+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:20:24.003646+0000 0x6ecf Activity 0x124dc 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:20:24.045268+0000 0x6ecf Activity 0x124dd 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:20:33.115199+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:20:33.117460+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:20:34.291596+0000 0x6ecf Activity 0x124de 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:20:56.420450+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:20:57.596424+0000 0x6ecf Activity 0x124df 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:20:57.632755+0000 0x6ecf Activity 0x15d70 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:21:06.709464+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:21:06.710296+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:21:11.300385+0000 0x6ecf Activity 0x15d71 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
Connor@Connors-MBP ~ %
 
i have no idea why it isnt working for me :/

Connor@Connors-MBP ~ % log show -last 1000|grep sleepwatcher
2021-12-20 14:17:10.553750+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:18:26.106204+0000 0x6ecf Activity 0x124d8 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:18:26.154090+0000 0x6ecf Activity 0x124d9 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:18:44.471915+0000 0x6ecf Activity 0x124da 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:19:15.135401+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:19:53.115738+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:19:53.116231+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:19:54.264440+0000 0x6ecf Activity 0x124db 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:20:22.825335+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:20:24.003646+0000 0x6ecf Activity 0x124dc 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:20:24.045268+0000 0x6ecf Activity 0x124dd 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:20:33.115199+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:20:33.117460+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:20:34.291596+0000 0x6ecf Activity 0x124de 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:20:56.420450+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:20:57.596424+0000 0x6ecf Activity 0x124df 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:20:57.632755+0000 0x6ecf Activity 0x15d70 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 14:21:06.709464+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:21:06.710296+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 14:21:11.300385+0000 0x6ecf Activity 0x15d71 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
Connor@Connors-MBP ~ %
Look like that's it OK, but
Not in the log: (CoreAnalytics) [com.apple.CoreAnalytics:client] Received configuration update from daemon (change)
What pmset -g ?
 
Look like that's it OK, but
Not in the log: (CoreAnalytics) [com.apple.CoreAnalytics:client] Received configuration update from daemon (change)
What pmset -g ?
thanks for reply, here you go

Connor@Connors-MBP ~ % pmset -g
System-wide power settings:
Currently in use:
lidwake 1
autopoweroff 1
standbydelayhigh 86400
autopoweroffdelay 259200
proximitywake 1
standby 1
standbydelaylow 10800
ttyskeepawake 1
hibernatemode 3
powernap 0
gpuswitch 2
hibernatefile /var/vm/sleepimage
highstandbythreshold 50
womp 0
displaysleep 60
networkoversleep 0
sleep 1 (sleep prevented by sharingd, firefox, coreaudiod)
tcpkeepalive 1
halfdim 1
acwake 0
disksleep 0
Connor@Connors-MBP ~ %
 
Perhaps the error is related to SMBIOS MBP?
I have iMac20.1:

pmset -g
System-wide power settings:
Currently in use:
standby 0
Sleep On Power Button 1
womp 0
hibernatefile /var/vm/sleepimage
proximitywake 0
powernap 0
networkoversleep 0
disksleep 10
standbydelayhigh 86400
sleep 1 (sleep prevented by Google Chrome, Google Chrome, sharingd, mdsync)
hibernatemode 0
ttyskeepawake 1
displaysleep 25
tcpkeepalive 0
highstandbythreshold 50
standbydelaylow 86400
 
Or Hibernatemode=3 could be the issue.

You might also want to look at setting Standby and Autopoweroff to 0.

Use these Terminal Commands (in italics) to change the power settings:

Disable Hibernation
sudo pmset -a hibernatemode 0
sudo rm /var/vm/sleepimage
sudo mkdir /var/vm/sleepimage


Disable other hibernation options
sudo pmset -a standby 0
sudo pmset -a autopoweroff 0
 
Or Hibernatemode=3 could be the issue.

You might also want to look at setting Standby and Autopoweroff to 0.

Use these Terminal Commands (in italics) to change the power settings:

Disable Hibernation
sudo pmset -a hibernatemode 0
sudo rm /var/vm/sleepimage
sudo mkdir /var/vm/sleepimage


Disable other hibernation options
sudo pmset -a standby 0
sudo pmset -a autopoweroff 0
Thanks, i did all this but still no luck, i feel i have messed up something small in my config because of something being unclear in the instructions at the bottom of page 129

here is current pmset
Connor@Connors-MBP ~ % pmset -g
System-wide power settings:
Currently in use:
lidwake 1
autopoweroff 0
standbydelayhigh 86400
autopoweroffdelay 259200
proximitywake 1
standby 0
standbydelaylow 10800
ttyskeepawake 1
hibernatemode 0
powernap 0
gpuswitch 2
hibernatefile /var/vm/sleepimage
highstandbythreshold 50
womp 0
displaysleep 60
networkoversleep 0
sleep 1 (sleep prevented by mds_stores, powerd)
tcpkeepalive 1
halfdim 1
acwake 0
disksleep 0
Connor@Connors-MBP ~ %

once again, here is some logs

Connor@Connors-MBP ~ % log show -last 1000|grep sleepwatcher
2021-12-20 17:10:19.295351+0000 0x74 Default 0x0 0 0 kernel: PM response took 259 ms (1131, sleepwatcher)
2021-12-20 17:10:34.063825+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 17:11:59.133980+0000 0x6ecf Activity 0x15d76 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:11:59.237700+0000 0x6ecf Activity 0x15d77 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:12:17.515766+0000 0x6ecf Activity 0x15d78 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:12:23.980159+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 17:12:24.196149+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 17:12:24.197872+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 17:12:26.199935+0000 0x6ecf Activity 0x15d79 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:13:39.967736+0000 0x74 Default 0x0 0 0 kernel: PM response took 178 ms (1131, sleepwatcher)
2021-12-20 17:13:54.815518+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 17:16:29.103442+0000 0x6ecf Activity 0x15d7a 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:16:29.196031+0000 0x6ecf Activity 0x15d7b 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:16:45.438501+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 17:16:45.440644+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 17:16:46.862287+0000 0x6ecf Activity 0x15d7c 1131 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:18:45.860945+0000 0x2028c Default 0x0 1 0 launchd: [system:] removing active service: de.bernhard-baehr.sleepwatcher
2021-12-20 17:18:45.860954+0000 0x2028c Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1131]:] signaled service: Terminated: 15
2021-12-20 17:18:45.860957+0000 0x2028c Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1131]:] service state: SIGTERMed
2021-12-20 17:18:45.860960+0000 0x2028c Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1131]:] scheduling cleanup in 5 sec after sending Terminated: 15
2021-12-20 17:18:45.868013+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (CoreAnalytics) [com.apple.CoreAnalytics:client] Entering exit handler.
2021-12-20 17:18:45.868018+0000 0x6ecf Default 0x0 1131 0 sleepwatcher: (CoreAnalytics) [com.apple.CoreAnalytics:client] Exiting exit handler.
2021-12-20 17:18:46.119406+0000 0x2028c Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1131]:] service exited: dirty = 0, supported pressured-exit = 0
2021-12-20 17:18:46.119409+0000 0x2028c Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1131]:] exited due to exit(0)
2021-12-20 17:18:46.119412+0000 0x2028c Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1131]:] service state: exited
2021-12-20 17:18:46.119416+0000 0x2028c Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1131]:] internal event: EXITED, code = 0
2021-12-20 17:18:46.119418+0000 0x2028c Default 0x0 1 0 launchd: [system:] service inactive: de.bernhard-baehr.sleepwatcher
2021-12-20 17:18:46.119420+0000 0x2028c Default 0x0 1 0 launchd: [system:] removing service: de.bernhard-baehr.sleepwatcher
2021-12-20 17:18:46.119466+0000 0x2028c Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1131]:] internal event: PETRIFIED, code = 0
2021-12-20 17:18:46.119469+0000 0x2028c Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [1131]:] service state: not running
2021-12-20 17:19:19.220930+0000 0x23a Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [96]:] service state: running
2021-12-20 17:19:19.220935+0000 0x23a Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [96]:] internal event: INIT, code = 0
2021-12-20 17:19:19.220941+0000 0x23a Default 0x0 1 0 launchd: [system/de.bernhard-baehr.sleepwatcher [96]:] Successfully spawned sleepwatcher[96] because speculative
2021-12-20 17:19:23.763323+0000 0x291 Activity 0x890 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:19:23.764347+0000 0x3b7 Default 0x890 164 0 tccd: [com.apple.TCC:access] AUTHREQ_ATTRIBUTION: msgID=96.1, attribution={requesting={<TCCDProcess: identifier=<ID of InvalidCode>, pid=96, auid=0, euid=0, binary_path=/usr/local/sbin/sleepwatcher>}, },
2021-12-20 17:19:23.766438+0000 0x3b7 Default 0x890 164 0 tccd: [com.apple.TCC:access] AUTHREQ_SUBJECT: msgID=96.1, subject=/usr/local/sbin/sleepwatcher,
2021-12-20 17:19:23.772648+0000 0x3b7 Error 0x890 164 0 tccd: [com.apple.TCC:access] Failed to validate dynamic code signature of accessing process <TCCDProcess: identifier=<ID of InvalidCode>, pid=96, auid=0, euid=0, binary_path=/usr/local/sbin/sleepwatcher>: #-67062: Error Domain=NSOSStatusErrorDomain Code=-67062 "(null)"
2021-12-20 17:19:24.003611+0000 0x3b7 Default 0x890 164 0 tccd: [com.apple.TCC:access] -[TCCDAccessIdentity staticCode]: static code for: identifier /usr/local/sbin/sleepwatcher, type: 1: 0x7fdc2f510a60 at /usr/local/sbin/sleepwatcher
2021-12-20 17:19:24.017925+0000 0x3b6 Default 0xd6 164 0 tccd: [com.apple.TCC:access] AUTHREQ_ATTRIBUTION: msgID=157.2, attribution={accessing={<TCCDProcess: identifier=<ID of InvalidCode>, pid=96, auid=0, euid=0, binary_path=/usr/local/sbin/sleepwatcher>}, requesting={<TCCDProcess: identifier=com.apple.sandboxd, pid=157, auid=0, euid=0, binary_path=/usr/libexec/sandboxd>}, },
2021-12-20 17:19:24.019584+0000 0x3b6 Default 0xd6 164 0 tccd: [com.apple.TCC:access] AUTHREQ_SUBJECT: msgID=157.2, subject=/usr/local/sbin/sleepwatcher,
2021-12-20 17:19:24.019892+0000 0x3b6 Error 0xd6 164 0 tccd: [com.apple.TCC:access] Failed to validate dynamic code signature of accessing process <TCCDProcess: identifier=<ID of InvalidCode>, pid=96, auid=0, euid=0, binary_path=/usr/local/sbin/sleepwatcher>: #-67062: Error Domain=NSOSStatusErrorDomain Code=-67062 "(null)"
2021-12-20 17:19:24.021282+0000 0x3b6 Default 0xd6 164 0 tccd: [com.apple.TCC:access] -[TCCDAccessIdentity staticCode]: static code for: identifier /usr/local/sbin/sleepwatcher, type: 1: 0x7fdc2e7100f0 at /usr/local/sbin/sleepwatcher
2021-12-20 17:19:24.025895+0000 0x291 Activity 0x891 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:19:24.026760+0000 0x291 Activity 0x892 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:19:24.027437+0000 0x291 Activity 0x893 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:19:24.027865+0000 0x291 Activity 0x894 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:19:24.048047+0000 0x6bd Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Timer Send event com.apple.hid.queueUsage
2021-12-20 17:19:26.430864+0000 0x291 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 17:19:26.434333+0000 0x291 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 17:19:35.848327+0000 0x291 Activity 0x895 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:19:36.220949+0000 0x83f Default 0x2e92 164 0 tccd: [com.apple.TCC:access] AUTHREQ_ATTRIBUTION: msgID=157.9, attribution={accessing={<TCCDProcess: identifier=<ID of InvalidCode>, pid=96, auid=0, euid=0, binary_path=/usr/local/sbin/sleepwatcher>}, requesting={<TCCDProcess: identifier=com.apple.sandboxd, pid=157, auid=0, euid=0, binary_path=/usr/libexec/sandboxd>}, },
2021-12-20 17:19:36.222710+0000 0x83f Default 0x2e92 164 0 tccd: [com.apple.TCC:access] AUTHREQ_SUBJECT: msgID=157.9, subject=/usr/local/sbin/sleepwatcher,
2021-12-20 17:19:36.223081+0000 0x83f Error 0x2e92 164 0 tccd: [com.apple.TCC:access] Failed to validate dynamic code signature of accessing process <TCCDProcess: identifier=<ID of InvalidCode>, pid=96, auid=0, euid=0, binary_path=/usr/local/sbin/sleepwatcher>: #-67062: Error Domain=NSOSStatusErrorDomain Code=-67062 "(null)"
2021-12-20 17:19:36.224427+0000 0x83f Default 0x2e92 164 0 tccd: [com.apple.TCC:access] -[TCCDAccessIdentity staticCode]: static code for: identifier /usr/local/sbin/sleepwatcher, type: 1: 0x7fdc2f517bd0 at /usr/local/sbin/sleepwatcher
2021-12-20 17:19:44.805274+0000 0x291 Activity 0x896 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:20:39.834360+0000 0x74 Default 0x0 0 0 kernel: PM response took 157 ms (96, sleepwatcher)
2021-12-20 17:20:54.822599+0000 0x291 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 17:20:54.825061+0000 0x1b04 Default 0x0 96 0 sleepwatcher: (CoreAnalytics) [com.apple.CoreAnalytics:client] Received configuration update from daemon (initial)
2021-12-20 17:21:43.043053+0000 0x291 Activity 0x897 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:21:43.130129+0000 0x291 Activity 0x898 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:21:52.659637+0000 0x291 Activity 0x899 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
2021-12-20 17:22:09.251595+0000 0x291 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 17:22:09.355767+0000 0x291 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 17:22:09.358473+0000 0x291 Default 0x0 96 0 sleepwatcher: (HIDAnalytics) HIDAnalytics Unregister Send event com.apple.hid.queueUsage
2021-12-20 17:22:10.533975+0000 0x291 Activity 0x89a 96 0 sleepwatcher: (TCC) TCCAccessRequest() IPC
Connor@Connors-MBP ~ %
 
Back
Top