
This time, there was a process called screencaptureui which was preventing not just sleep, but also display sleep!Īpparently, screencaptureui is the new screenshot tool you can activate with Cmd-Shift-5 introduced in macOS 10.14 Mojave. Sleep 1 (sleep prevented by screencaptureui)ĭisplaysleep 10 (display sleep prevented by screencaptureui) This morning, I came back to an even bigger surprise: my MacBook was still awake, and this time, even the screen was still on! I immediately checked pmset -g again: $ pmset -g
#Does intel power gadget interfere mac
Whenever processes override any system power settings, pmset will list those processes and their power assertions in -g and -g assertions.įrom the output above, I could see that the Intel(R) Power Gadget utility which I had been running to monitor my Mac's processor load and temperature was also preventing my system from sleeping! I hastily disabled it and hoped that my Mac would no longer drain its battery overnight again.

pmset will also reveal when there are processes interfering with any usual settings: The -g flag (with no argument) will display the settings currently in use. Sleep 1 (sleep prevented by Intel(R) Power Gadget)Īccording to the man page, pmset is a command which manipulates power management settings. I finally discovered why my Mac wasn't sleeping when expected after seeing the output of the pmset command: $ pmset -g Recently, I've been exploring various macOS command-line configuration tools such as defaults (see my previous post), scutil, osascript etc.


Finding the culprit with the pmset command I wondered why it wasn't going to sleep due to inactivity. Twice in the past month, I came back to my (company-issued) MacBook after leaving it with the lid open overnight to find it refusing to start because its battery was completely drained, worrying me a little each time.
