mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 14:03:24 +00:00
os_hibernate_mode_enable: Standby setting for Apple silicon is incorrect #199
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jmahlman on GitHub.
Summary
The check and fix for Apple silicon devices is incorrectly checking for
standbydelayinstead ofstandby.The key
standbydelaydoes not work on Apple silicon and instead the delay is simply set with thestandbykey.Operating System version
macOS Monterey and macOS Ventura
Intel or Apple Silicon
Apple Silicon
What is the current bug behavior?
The current check is looking at the value of
standbydelaywhich does not exist on Apple silicon devices.The current fix is setting
standbydelaywhich does not exist on Apple silicon devices.What is the expected correct behavior?
The check and fix should be checking and setting the
standbykey.Possible fixes
Update the fix and check:
@vaughnhart commented on GitHub:
sudo pmset -a destroyfvkeyonstandby 1
sudo pmset -a hibernatemode 25
sudo pmset -a powernap 0
sudo pmset -a standby 0
sudo pmset -a standbydelay 0
sudo pmset -a autopoweroff 0
this is my pmset -g
System-wide power settings:
DestroyFVKeyOnStandby 1
Currently in use:
standby 0
Sleep On Power Button 1
SleepServices 0
hibernatefile /var/vm/sleepimage
powernap 0
networkoversleep 0
disksleep 10
sleep 1 (sleep prevented by powerd)
hibernatemode 25
ttyskeepawake 1
displaysleep 10
tcpkeepalive 1
lowpowermode 0
womp 0
@jmahlman commented on GitHub:
I have opened an Apple enterprise case to get clarification on what
standbyactually does and expects. It seems that it should be a boolean, but I cannot see any difference on the endpoint with it set or not.@jmahlman commented on GitHub:
Setting
hibernatemodeto 25 does work on Apple silicon, so that can remain. I have updated my check/fix in the original post.@robertgendler commented on GitHub:
@jmahlman any updates?
@jmahlman commented on GitHub:
Clarification from Apple:
So it seems this may not actually be a check we need. I'm getting clarification on
hibernatemodeas well.@jmahlman commented on GitHub:
Fixes pushed to OS branches.