How do I fix "This computer has been scheduled to go to sleep automatically" on Mac running Sequoia?

I am running Mac OS Sequoia Version 15.5 on my Mac.

At midnight, every night, this message pops up on my Mac:



These are my energy settings, so I don't understand why I can't prevent my Mac from going to sleep.



[Edited by Moderator]

Original Title: this computer has been scheduled to go to sleep automatically

iMac 21.5″, macOS 15.5

Posted on Jun 21, 2025 1:18 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 21, 2025 1:33 AM

Is appears you have migrated these setting from an older computer


At a time when you could schedule the computer to automatically do to sleep at midnight


Those setting are now, in Sequoia, been removed form the UI Interface


To schedule, modify or cancel this process you need to use the Terminal command-line


Schedule your Mac to turn on or off in Terminal


You can use the pmset command line utility in Terminal to schedule specific times for your Mac to start up, sleep, restart, or shut down. You can do this if you want to be sure your Mac turns on before you come to work and turns off when you aren’t working.


  1. Go to the Terminal app  on your Mac.
  2. Enter a pmset command.
  3. See the pmset man page for the list of commands you can use. For example, try any of the following:
    • pmset -g sched: See the current schedule.
    • sudo pmset repeat wake M 8:00:00: Schedule your Mac to wake at 8:00 a.m. every Monday.
    • sudo pmset repeat cancel: Cancel the current schedule.
  1. Press Return.

Your Mac must be awake and you must be logged in for it to shut down at the scheduled time. If you’re not logged in or if your Mac is in sleep, it won’t shut down. 

If FileVault is turned on, you must log in every time your Mac starts up. No account is permitted to log in automatically.

Note: If you have any documents open with unsaved changes, your Mac might not go to sleep or shut down when scheduled.



3 replies
Question marked as Top-ranking reply

Jun 21, 2025 1:33 AM in response to baileyfamilyvideo

Is appears you have migrated these setting from an older computer


At a time when you could schedule the computer to automatically do to sleep at midnight


Those setting are now, in Sequoia, been removed form the UI Interface


To schedule, modify or cancel this process you need to use the Terminal command-line


Schedule your Mac to turn on or off in Terminal


You can use the pmset command line utility in Terminal to schedule specific times for your Mac to start up, sleep, restart, or shut down. You can do this if you want to be sure your Mac turns on before you come to work and turns off when you aren’t working.


  1. Go to the Terminal app  on your Mac.
  2. Enter a pmset command.
  3. See the pmset man page for the list of commands you can use. For example, try any of the following:
    • pmset -g sched: See the current schedule.
    • sudo pmset repeat wake M 8:00:00: Schedule your Mac to wake at 8:00 a.m. every Monday.
    • sudo pmset repeat cancel: Cancel the current schedule.
  1. Press Return.

Your Mac must be awake and you must be logged in for it to shut down at the scheduled time. If you’re not logged in or if your Mac is in sleep, it won’t shut down. 

If FileVault is turned on, you must log in every time your Mac starts up. No account is permitted to log in automatically.

Note: If you have any documents open with unsaved changes, your Mac might not go to sleep or shut down when scheduled.



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I fix "This computer has been scheduled to go to sleep automatically" on Mac running Sequoia?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.