Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dfh88

macrumors newbie
Original poster
May 25, 2008
16
0
I use my macbook Air m1 to run camera software and every time the dispaly goes off, it's asleep so it has to find the camera stream which takes a few seconds. on my old mac the display could be off, but the macbook was still awake. after an hour it would go to sleep. I can select prevent computer from sleeping automatically when the display is off. but this means the mac will never sleep? I'd like it to sleep after a set period of no user input like the old one. Is that possible?
 
I use a free menu bar utility called Coca. App Store. Solid. Been around for years. Probably as long as the “prevent computer from sleeping …” hasn’t worked, and no one at Apple has noticed.
 
I use my macbook Air m1 to run camera software and every time the dispaly goes off, it's asleep so it has to find the camera stream which takes a few seconds. on my old mac the display could be off, but the macbook was still awake. after an hour it would go to sleep. I can select prevent computer from sleeping automatically when the display is off. but this means the mac will never sleep? I'd like it to sleep after a set period of no user input like the old one. Is that possible?
You can try the pmset command line option. Enter your admin password when prompted, you won't see any typing feedback.

When on wall power (Charger)
sudo pmset -c sleep 60
When on battery
sudo pmset -b sleep 60
All the time
sudo pmset -a sleep 60

I don't know if this still works in Ventura. It should work on Monterey but I never tried it with the latest versions.

Edit: An easy way to restore to the default values under Ventura (macOS 13.0.1) is to go to System Settings...>Displays>Advanced... and toggle the "Prevent automatic sleeping on power adapter when the display is off". This seems to reset the displaysleep and sleep back to default. I think I remember you can do the same in Monterey or something similar.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.