Since I have purchased my Macbookair, it has been going to sleep mode when I closed the lid and the apple logo on its lid would turn off. Randomly it started going to sleep mode after 15-30 mins later I have closed its lid and sometimes it never went to sleep. I typed "
pmset -g assertions" in the terminal of my mac and these were the results:
Assertion status system-wide: BackgroundTask 0 ApplePushServiceTask 0 UserIsActive 1 PreventUserIdleDisplaySleep 0 PreventSystemSleep 0 ExternalMedia 0 PreventUserIdleSystemSleep 1 NetworkClientActive 0 Listed by owning process: pid 117(hidd): [0x0003be5000098b76] 00:28:29 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294995445.11" Timeout will fire in 119 secs Action=TimeoutActionRelease pid 331(useractivityd): [0x0003c4fb00018c32] 00:00:01 PreventUserIdleSystemSleep named: "BTLEAdvertisement" No kernel assertions. Idle sleep preventers: IODisplayWrangler
I didn't fully understand these results and tried several ways to solve my issue and I would very much appreciate it if someone could help me understand sleep and wake troubleshooting on the command line or from logs and settings.