Skip to main content

Questions tagged [pmset]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
216 views

How do I reset: sudo pmset -a disablesleep 1

I was messing around with pmset and I added this setting: sudo pmset -a disablesleep 1 in my terminal. I have got Amphetamine for my Mac, so I want to take off this pmset setting. How could I?
rehaan13's user avatar
0 votes
1 answer
46 views

Shutdown error that cannot be pinned down

Here is the issue in a nutshell: My machine has taken to giving me an error dialog that begins with the following on every restart or shutdown and restart, manual or otherwise: You shut down your ...
nihilon's user avatar
  • 135
3 votes
2 answers
663 views

pmset repeat cancel does not remove scheduled events

After some time searching, I found this answer: How do I remove 'pmset' auto-wakeup command for my Mac? But the solution is not working for me. I originally had my laptop scheduled to restart at ...
nihilon's user avatar
  • 135
1 vote
0 answers
61 views

Mac Virtual Machine can't sleep

I have been running a macOS Ventura virtual machine using both UTM and Parallels on a Ventura host and have been trying to put the VM to sleep so I can monitor what happens with the logs. However, it ...
Desert Scuba's user avatar
0 votes
0 answers
55 views

macOS: Programmatically access the "Screen On Usage" data shown in Settings->Battery

How do I programmatically access the "Screen On Usage" data shown in Settings->Battery?
HappyFace's user avatar
  • 652
3 votes
0 answers
387 views

MacBook Pro 16" 2019 doesn't enter standby mode

After updating to macOS Sonoma my MacBook Pro 16" 2019 doesn't enter standby mode even at night after more than 10 hours of being closed. pmset -g assertions shows the following: 2023-10-01 09:28:...
Georgy Firsov's user avatar
1 vote
0 answers
56 views

Schedule on and skip login screen

I'm trying to schedule my Mac Mini to automatically turn off at the end of the day and then turn back on the next morning, login, and then run an AppleScript. This was all working fine in Monterey ...
Luke's user avatar
  • 111
3 votes
1 answer
310 views

pmset: Error 0xe00002bc

I've recently started getting this error when running any of these commands on my iMac (macOS Ventura 13.5.2 (22G91)): sudo pmset sched cancelall pmset: Error 0xe00002bc scheduling repeating events ...
nachocab's user avatar
  • 573
1 vote
0 answers
25 views

Computer sleeping immediately after screen despite being set to sleep later

My current pmset -g is the following: System-wide power settings: Currently in use: lidwake 1 autopoweroff 1 standbydelayhigh 86400 autopoweroffdelay 259200 ...
mariano-daniel's user avatar
0 votes
2 answers
1k views

How exactly could these commands to use MacBook in Clamshell Mode without a Power Adapter be dangerous? And how to revert them eventually?

I am trying use my macbook with an external device in Clamshell Mode without the power adapter. Hence, I am following this tutorial. The author gives, first, a GUI approach. Then, he suggests the ...
Pedro Delfino's user avatar
1 vote
1 answer
323 views

pmset wake ignores minutes settings

I am trying to schedule a Crontab job for, say, Monday at 12:59, even when my Mac is sleeping. To achieve this I use pmset repeat wake M 12:58:55 to wake up my Mac 5 seconds before the job. The first ...
R. C.'s user avatar
  • 11
1 vote
0 answers
306 views

Wake up and shut down - What is the difference between repeat and scheduled?

Unfortunately, Ventura doesn't support the GUI for poweron/poweroff. I want my Mac to startup on Sunday 04:00. So I enter sudo pmset repeat wakeorpoweron U 04:00:00 Then sudo pmset sched -g shows ...
MacMarkus's user avatar
0 votes
1 answer
238 views

Why some commands do NOT require sudo when logged in GUI?

I created a user called dummy. I login using Terminal into dummy and try to put Mac to sleep using pmset sleepnow. It does NOT work: Sleep error 0xe00002c1; You must run this as root.. I log into ...
MacDada's user avatar
  • 101
1 vote
0 answers
2k views

Is "pmset hibernatemode 25" still broken in Monterey?

I executed pmset hibernatemode 25 on my Macbook Pro 16" (Intel) running MacOS Monterey but it didn't seem to work. Searching here revealed several similar questions for High Sierra Catalina ...
d-b's user avatar
  • 1
1 vote
0 answers
271 views

Why does `pmset -g thermlog` behave so strangely when piped?

I'm trying to create some monitoring for the thermal throttling during some build operations. For that I'd wanted to make use of pmset -g thermlog, which works great when used directly in the console, ...
user16358266's user avatar
2 votes
1 answer
162 views

Suspend to disk - aka Apple Save Sleep - doesn't work in Big Sur

Since installing Big Sur on my MacBook Air 2014, I noticed that suspend to disk doesn't seem to work anymore. Suspend to disk (or Safe Sleep as Apple calls it) should be activated after an hour into ...
user1785730's user avatar
4 votes
1 answer
2k views

Difference between wake, poweron, and wakeorpoweron on pmset

I'm trying to use pmset to wake my macbook before a cronjob is scheduled. The documentation says a scheduled event has a type that is "one of sleep, wake, poweron, shutdown, wakeorpoweron". ...
dfried's user avatar
  • 143
3 votes
1 answer
886 views

Where are the pmset settings saved?

In which path exactly are the pmset settings saved? The manpage says it's stored here. However, I couldn't find any settings there. The macOS Energy Saver preference file is stored at: /Library/...
BabyBoy's user avatar
  • 963
2 votes
1 answer
147 views

Disconnect removable media from power

I connected peripherals to my Mac via USB. When I put my Mac to sleep, the external microphone, for example, is still supplied with power. Is there any way that once the Mac goes to sleep, that it ...
BabyBoy's user avatar
  • 963
0 votes
0 answers
289 views

iMac11,1: sleep issues: would wake up on its own and restart, still wakes up even when manually put to sleep with hibernatemode 25 [macOS 10.11]

I have done a fresh install of El Capitan on the iMac (11,1), after replacing the HDD with an SSD. Previously it was running Mavericks with no problems, but it was getting slow and dated. One thing to ...
Szymon Łopaciuk's user avatar
1 vote
1 answer
117 views

Mac Mini Sleeping When Idle

We are having some issues with 2 Mac minis running Mojave. They go to sleep after a couple of minutes the user logs out. We tried playing with the pmset settings without luck Here are my current ...
Alejandro T's user avatar
0 votes
0 answers
123 views

macOS doesn't sleep when password is required 15 minutes after screensaver starts

I run macOS Mojave 10.14.6 on a MacBook Pro (Retina, 15-inch, Early 2013). Except when specified, all settings and behaviours described in this post refer to the Mac connected to a power adapter. My ...
tompave's user avatar
  • 565
2 votes
0 answers
1k views

why "lidwake: 0" does not work?

I have MacBook Pro (Retina, 13-inch, Mid 2014) and OS: 10.13.6 My pmset outputs: $ pmset -g System-wide power settings: Currently in use: standbydelay 10800 standby 1 womp ...
sgon00's user avatar
  • 2,384
3 votes
0 answers
4k views

If I have set `disksleep` to 0 in pmset, will my disk go to sleep when I close the lid?

I have MacBook Pro (Retina, 13-inch, Mid 2014) and OS: 10.13.6 My pmset outputs: $ pmset -g System-wide power settings: Currently in use: standbydelay 10800 standby 1 womp ...
sgon00's user avatar
  • 2,384
3 votes
1 answer
672 views

Troubleshooting a mac that won't go to sleep

I have a small issue where my macbook won't go to sleep on lid-closing when it's connected to a power supply. I remember having this problem a few weeks ago, and I found this command that could help ...
Andreas Storvik Strauman's user avatar
7 votes
2 answers
28k views

Removing the sleepimage file in /var/vm in macOS permanently

I run high sierra, and the large private/var/vm/sleepimage file has been bothering me. My computer has 16 GB of ram, which means sleepimage takes up 16 GB on my drive. I have read tutorials on how to ...
root's user avatar
  • 135
3 votes
2 answers
257 views

Why does macOS estimate battery percentage higher?

Why do you think the OS estimates a battery percentage a little above the actual value? I noticed it is always between 0% and 5% more. In particular the two percentage gets closer when the remaining ...
Diego's user avatar
  • 465
1 vote
0 answers
2k views

Get MacBopok Pro to just SLEEP the normal way

I've read practically every question and answer I can find that mention the pmset command, after I discovered it was behind the most frustrating thing about my new MacBook Pro. I say MY MacBook Pro, ...
ThisLeeNoble's user avatar
1 vote
1 answer
420 views

MBP 15" not sleeping when closing lid

My MBP 15" (end 2016) on macOS Sierra 10.12.6 have a strange behaviour when I close the lid. It goes to sleep (I hear the fans becoming quiet) but after ~20 seconds it returns to work and then the ...
Andrea Bergonzo's user avatar
26 votes
1 answer
34k views

Significance of IODisplayWrangler in power management assertions

When I check my power management assertions (MacBook Pro running macOS Sierra), I see the following line: $ sudo pmset -g assertions ... Idle sleep preventers: IODisplayWrangler What is ...
augurar's user avatar
  • 913
0 votes
0 answers
382 views

MacBook Pro: lidwake value ignored?

I have a Mid-2014 Macbook Pro Retina running OS X 10.5.5. Unfortunately, I dropped it one too many times, and one of the display hinges has become very stiff. In fact, if I close the lid and then let ...
Daniel Griscom's user avatar
2 votes
1 answer
2k views

Speed up sleep (disable com.apple.powermanagement.darkwakelinger)

From terminal I see that PreventUserIdleSystemSleep assertion takes 15 second before actually sleep. Is there any way to eliminate it, or at least set delay to 0/1 sec? 2017-06-09 23:36:15 +0500 ...
Adam K's user avatar
  • 23
1 vote
2 answers
384 views

Disable sleep when nobody is logged in to MacBook [duplicate]

I am running a /Library/LaunchDaemons service at boot time - nobody is logged in. I want the computer to not sleep. Here's my pmset -g on macOS Sierra 10.12.4: System-wide power settings: Currently ...
nachum's user avatar
  • 111
3 votes
1 answer
1k views

Does "pmset schedule wake" work when the lid is closed at the designated time?

I am using Air, which is in the sleep mode almost all day. I want to have it run a shell script every morning, so I set my Air to wake up at 7:00 using "pmset" command and run the script at 7:01 using ...
I-was-a-Ki's user avatar
0 votes
1 answer
634 views

Increase the time of the pmset countdown

Is there a way to change the delay time until a scheduled sleep/restart/shutdown occurs? It starts at 10 minutes (10:00), but I want to change it to 30 minutes (30:00). As you can see above, the ...
user6058's user avatar
2 votes
1 answer
476 views

How to verify if pmset works correctly?

Is there any log, where I can see what pmset did and when? I am thinking about scheduling my macbook power on and the power off and scheduling some job in between to see if it worked, but is there ...
LA_'s user avatar
  • 394
7 votes
1 answer
5k views

What is "Entering Sleep state due to 'Dark Wake Thermal Emergency'" from pmset log?

Command: pmset -g log|grep -e " Sleep " -e " Wake " Last night I see 5 instances of Entering Sleep state due to 'Dark Wake Thermal Emergency': Using AC
tobeannounced's user avatar
1 vote
1 answer
412 views

My iMac reboots to the login screen in the middle of the night, after enabling FileVault

I have a 5K iMac, late 2015, running El Capitan. Two days ago, I enabled FileFault. After that, when I wake up, I find that the machine has rebooted to the login screen, showing me icons for all ...
Kartick Vaddadi's user avatar
2 votes
1 answer
2k views

How can you make a Mac (2015 Yosemite) hibernate? (Hibernate like Windows PC, ie. save state to disk and fully power down) [duplicate]

Please note: Whilst the older question (4 years ago) Do MacBooks have a true "Hibernate" option? has answers that show a hibernate option exists for Macs, it doesn't detail how to make your ...
questioner56's user avatar
1 vote
1 answer
1k views

Is there a keyboard shortcut for hibernate now a Mac, without changing power settings?

Question Details: Is it possible to make your macbookpro retina (2015) to hibernate (hibernate mode 25 i.e. fully powered off) via a shortcut? I still want it to go to sleep (the usual default ...
questioner56's user avatar
2 votes
5 answers
3k views

Change in sleep behaviour on MacBook Pro and ignoring settings on Yosemite

Recently (possibly since the 10.10.5 upgrade, but not sure) my MacBook Pro mid 2012 (non-retina) changed its sleeping behavior and I cannot seem to restore it. For years, I used a 48 hour hibernate ...
n1000's user avatar
  • 7,764
1 vote
0 answers
164 views

How to modify the display sleep and sleep together again?

I'm using pmset to set battery-power sleep time independently of display sleep time on my 2014 15" MacBook retina. Before I did that, these values were in lock step when you changed the "turn off ...
Ralph Gonzalez's user avatar
1 vote
0 answers
756 views

Remove assertion from pmset

The Viber app preventing my Mac from display sleep. pmset -g ...
megas's user avatar
  • 709
4 votes
1 answer
7k views

What keeps waking my Mac up from sleep?

My Mac constantly wakes itself up from sleep for apparently no reason. Middle of the night, middle of that day, it just can't stay asleep. Why? I ran pmset with the following results: [redacted]:~ [...
brentonstrine's user avatar
1 vote
1 answer
1k views

iTunes, even when not playing, keeping my computer from sleeping automatically

I'm using the default Energy Save preferences on a MBPro running Mavericks. If iTunes is running, my computer will not go to sleep automatically even if iTunes is not playing (e.g., if I stop it by ...
kuzzooroo's user avatar
  • 705
1 vote
2 answers
2k views

How do I force my MacBook Air into "hibernation" mode?

I have a MacBookAir3,2 (late 2010) running 10.9.3. I want to be able to force the machine to immediately go into "hibernation" mode, but it seems impossible. The usual answer that I have seen is ...
TJ Luoma's user avatar
  • 20.7k