How can I uncheck 'Put hard disk to sleep when possible'

Poseiden951
Contributor

Hello JAMF!

I'm currently using this to set my Energy Saver options. I can't seem to figure out how to UNCHECK the 'Put hard disk to sleep when possible' and CHECK Start up automatically after power failure'. I'm trying to avoid using Config Profiles for this because of some issues. Any help would be appreciated!

if [[ $shortModel == "MacBook" ]]; then

    pmset -b sleep 15 disksleep 10 displaysleep 5 halfdim 1

    pmset -c sleep 0 disksleep 0 displaysleep 30 halfdim 1

else    

    pmset sleep 0 disksleep 0 displaysleep 30 halfdim 1

fi
1 ACCEPTED SOLUTION

Poseiden951
Contributor

Thanks @RobertHammen pmset -g helped a lot! I'm trying to avoid Config profiles just for the power settings. I've had issues in the past.

Solution:

Prevent HDD from sleeping

pmset disksleep 0

Prevent System sleep

pmset -a sleep 0

Start up automatically after a power failure

pmset -a autorestart 1

Allow display to sleep after 15 minutes

pmset -a displaysleep 15

Display sleep will use an intermediate half-brightness mutant state

pmset -a halfdim 1

Allow Wake on LAN

pmset -a womp 1

View solution in original post

3 REPLIES 3

RobertHammen
Valued Contributor II

Although old, this was my reference site for learning about pmset:

http://www.macos.utah.edu/documentation/administration/pmset.html

pmset -g disk will show you the capabilities of each machine.

Whenever possible, I prefer to use a Configuration Profile because it's pretty easy/your options are right there in the GUI:

2d4a9f5ece0f4c829d81ddcaa94b942b

Poseiden951
Contributor

Thanks @RobertHammen pmset -g helped a lot! I'm trying to avoid Config profiles just for the power settings. I've had issues in the past.

Solution:

Prevent HDD from sleeping

pmset disksleep 0

Prevent System sleep

pmset -a sleep 0

Start up automatically after a power failure

pmset -a autorestart 1

Allow display to sleep after 15 minutes

pmset -a displaysleep 15

Display sleep will use an intermediate half-brightness mutant state

pmset -a halfdim 1

Allow Wake on LAN

pmset -a womp 1

donmontalvo
Esteemed Contributor III

Ran into problems with Configuration Profiles managing HD sleep today as well.

Simple command, we may have over-engineered this using Configuration Profiles.

K.I.S.S. <-- note to self.

Don

--
https://donmontalvo.com