check what pmset -g is saying (open Terminal and run this command there). Description of what the pmset output is is here (https://en.wikipedia.org/wiki/Pmset) or run in Terminal "man pmset" to open manual. May be somehow something disabled sleep altogether. You can change the power management parameters in lot more details using this command. In that case you need to run sudo pmset -and flags you want to set...
There are software tools to prevent sleep - and caffeinate command - again run in Terminal - is even built in the system itself. Are you sure you are not accidentally running something like that?
There are also weird work arounds which enable users to prevent sleep altogether. May be someone has applied those? If that is a case, reinstall of the system "in place" may be easiest and non-destructive way to fixing it.
Note: each Mac has different power management settings, so to get help in the future you may need to provide details on your hardware and software version.
I have a couple of apps running that can prevent the mac from going to sleep, but they never caused any issues (OneSwitch and Caffeinate). The problem persists when I start the mac in safe mode too.
2018 MacBook Air
thanks!
Just checking the simple stuff: In the System preferences, Energy Saver, did you try to push the "Restore defaults" button?
That image shows, that sleep is disabled systemwide. That button restores default settings using pmset command and if any settings were accidentally changed, it should fix the problem.
I wonder if any of those applications which prevent sleep has some option which you choose accidentally and it did exactly this - all those GUI programs play with this pmset settings, nothing more.
If that button does not fix it, then I do not know. I would reinstall MacOS over the existing one with full App store installer. That will fix system by reinstall all services and setting them to default values. I have fixed few problems thsi way. It is non destructive and easy to do, but still, make sure you have a good working backup.
Memory sticks are cheap.none of it workedsince it's still under warranty, will Apple provide me with a hard copy of OS Mojave to do a clean re-install? I don't really fancy spending money on a memory stick which I never use again.
No, Apple will not hand you stick with installer ;-) They never did, do not make them, and would have a good laugh if you ask. No distribution of hard media for years and years...none of it workedsince it's still under warranty, will Apple provide me with a hard copy of OS Mojave to do a clean re-install? I don't really fancy spending money on a memory stick which I never use again.
1 | sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.PowerManagement SystemPowerSettings -dict SleepDisabled -bool NO |
This helped me!
1. Log in with an account that has admin privileges
2. Open Terminal and run the following command:
3. Restart the Mac (this is necessary to apply the change.)
1 sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.PowerManagement SystemPowerSettings -dict SleepDisabled -bool NO
After the restart, you should see that the Sleep command is available again in the Apple menu.
i am really sorry...but how on earth can you post something like this and it eliminates the problem straight away. last year i was looking all over the internet for the solution and could find anything!This helped me!
1. Log in with an account that has admin privileges
2. Open Terminal and run the following command:
3. Restart the Mac (this is necessary to apply the change.)
1 sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.PowerManagement SystemPowerSettings -dict SleepDisabled -bool NO
After the restart, you should see that the Sleep command is available again in the Apple menu.
Srini Arumugam, Another This Helped! I also want to give you my sincere thanks! I have been troubled with "sleep greyed out" for several weeks and your solution worked immediately. Way to go! ~ oneno2ndi am really sorry...but how on earth can you post something like this and it eliminates the problem straight away. last year i was looking all over the internet for the solution and could find anything!
the problem re-occurred and when i googled it, it took me back to my original post...how weird!?! am i the only one with this problem?
THANKS!
This helped me!
1. Log in with an account that has admin privileges
2. Open Terminal and run the following command:
3. Restart the Mac (this is necessary to apply the change.)
1 sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.PowerManagement SystemPowerSettings -dict SleepDisabled -bool NO
After the restart, you should see that the Sleep command is available again in the Apple menu.
you ****ing genius,if i could kiss you i wouldThis helped me!
1. Log in with an account that has admin privileges
2. Open Terminal and run the following command:
3. Restart the Mac (this is necessary to apply the change.)
1 sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.PowerManagement SystemPowerSettings -dict SleepDisabled -bool NO
After the restart, you should see that the Sleep command is available again in the Apple menu.
This works but it keeps happening. On a Macbook Air M1. What's the cause?This helped me!
1. Log in with an account that has admin privileges
2. Open Terminal and run the following command:
3. Restart the Mac (this is necessary to apply the change.)
1 sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.PowerManagement SystemPowerSettings -dict SleepDisabled -bool NO
After the restart, you should see that the Sleep command is available again in the Apple menu.
aha. i am but this issue has started since. BUT i believe aldente updated recently so maybe that was it. edit: but also i tried turning aldente off and it didn't fix the issueare you using aldente by any chance ?
you had set aldente to discharge because the battery was above your desired percentage.aha. i am but this issue has started since. BUT i believe aldente updated recently so maybe that was it. edit: but also i tried turning aldente off and it didn't fix the issue
which command did help you ?View attachment 1950264
Exactly! I had my first crash here since I started using AlDente and this was the reason I had my Sleep button grayed as well.
Thanks to the guy above for the script and everyone else who contributed to the thread.
you don't even have to reboot actually,just disabling discharge is fine ,that's all.@0089294 I used the command posted above by Srini Arumugam and it worked fine.
Btw I guess if you start the application, toggle the Discharge option and reboot, it should be back at normal again.
worked like a charm for meThis helped me!
1. Log in with an account that has admin privileges
2. Open Terminal and run the following command:
3. Restart the Mac (this is necessary to apply the change.)
1 sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.PowerManagement SystemPowerSettings -dict SleepDisabled -bool NO
After the restart, you should see that the Sleep command is available again in the Apple menu.