Often you’ll see that your Mac doesn’t want to go into sleep mode, but stays awake or awakens itself from sleep after a while without going back to sleep mode again. With newer version of macOS this might be caused by the nfsd
(network file system daemon, Wikipedia). You can check this by running
pmset -g assertions
and you may find an entry like
PreventUserIdleSystemSleep [...]com.apple.nfsd[...]
This means that a running nfsd
prevents your Mac from going to or staying in sleep mode. As newer versions of macOS have a feature called “System Integrity Protection”, which prevents a user from altering system and other important files, even as a root user, you cannot simply disable the NFS daemon. A way that involves a couple of steps, but yielded the best overall results is as follows:
vi /etc/exports
dG
), save and exit (:wq!
)cmd+r
while rebooting until the white Apple logo appears on the screenTerminal
in Recovery Mode and disable “System Integrity Protection”:csrutil disable
csrutil status
exit
Terminal.app
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.nfsd.plist
Terminal.app
exit
cmd+r
while rebooting until the white Apple logo appears on the screenTerminal
in Recovery Mode and disable “System Integrity Protection”:csrutil enable
csrutil status
exit
Terminal.app
pmset -g assertions
nfsd
preventing your Mac from going into sleep mode Seite neu erstellt