Hibernate/Sleep & Systemwide power settings

Edhawk

Guru
Guru
Joined
May 2, 2020
Messages
2,013
Sleep/Reboot issues on a Hack can be affected/caused by the Systemwide power settings.

I use the following Terminal commands to set/disable the systemwide power settings in my Hacks.

Terminal Command to review Systemwide Power settings
sudo pmset -g

You will be asked to provide your Admin password before the system wide power settings are displayed.

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


An alternative to hibernatemode 0 is hibernatemode 3, which may work better depending on the system. You can also experiment with Hibernatemode 25 & 29.

Terminal commands to Disable other hibernation/power options
sudo pmset -a standby 0
sudo pmset -a autopoweroff 0
sudo pmset -a powernap 0
sudo pmset -a proximitywake 0
sudo pmset -a ttyskeepawake 0
sudo pmset -a tcpkeepalive 0


To turn any of the above items back on just replace the 0 with 1.

Try implementing the above and see how it works with your hack.

Just remember that each line has to be entered in to the Terminal Window and followed by a press of the return/enter key.

As an example here are the Systemwide settings on my hack.

Screenshot 2022-07-17 at 12.17.36.png
 
Last edited:
Top Bottom
  AdBlock Detected
Sure, ad-blocking software does a great job at blocking ads, but it also blocks some useful and important features of our website. For the best possible site experience please take a moment to disable your AdBlocker.