By Edd Growl


2019-06-01 21:07:11 8 Comments

So I saw a lots of old discussion on this topic, but I'm trying to find out an actual solution that still works on Mojave, without the use of external monitor/keyboard/mouse/with power adapter.

When looking up Amphetamine, they claimed that you can only do it when the 4 criteria are met, and cannot overridden it.

Amphetamine

But on the other hands, Anti Sleep provide the feature in their pro version...

enter image description here

So, which one gets the real deal ? Is Anti Sleep lying about it or Amphetamine (and all other caffeine app on the appStore) out of date ?

I also heard about InsomniaX and built-in caffeine but it's really not user friendly, and appear not to be supported anymore...

1 comments

@CJ Dana 2019-06-02 02:27:56

You can accomplish this in terminal. No additional software needed.

Display global power settings:
pmset -g

System-wide power settings:
Currently in use:
 lidwake              1
 autopoweroff         1
 standbydelayhigh     86400
 autopoweroffdelay    28800
 proximitywake        1
 standby              1
 standbydelaylow      10800
 ttyskeepawake        1
 hibernatemode        3
 powernap             1
 gpuswitch            2
 hibernatefile        /var/vm/sleepimage
 highstandbythreshold 50
 womp                 0
 displaysleep         10
 networkoversleep     0
 sleep                1 (sleep prevented by sharingd)
 tcpkeepalive         1
 halfdim              1
 acwake               0
 disksleep            10



To stop sleep entirely:
sudo pmset -a disablesleep 1

To revert, allowing sleep again:
sudo pmset -a disablesleep 0

@Edd Growl 2019-06-02 17:11:42

Well, that was an easy one ! But then, why amphetamine claim it's impossible ? Thanks CJ !

@CJ Dana 2019-06-03 22:19:32

these settings are stored in the PRAM/NVRAM which is covered by the logic board and protected by Apple's System Integrity Protection. Thats why sudo is required for the command to execute.

Related Questions

Sponsored Content

1 Answered Questions

disable lid sleep in mojave

  • 2019-05-13 21:46:20
  • theonlygusti
  • 373 View
  • 0 Score
  • 1 Answer
  • Tags:   macos macbook mojave

3 Answered Questions

[SOLVED] MacBook Pro won't go to sleep when lid is closed

0 Answered Questions

Mac does not sleep when lid is closed after installing Insomniax

3 Answered Questions

[SOLVED] Mac not sleeping when lid is closed

6 Answered Questions

[SOLVED] MacBook does not sleep when lid is closed

2 Answered Questions

[SOLVED] How to Prevent macbook from sleeping when the lid is closed?

  • 2016-08-04 08:11:30
  • nayem
  • 6617 View
  • 3 Score
  • 2 Answer
  • Tags:   macos macbook lid

1 Answered Questions

[SOLVED] MacBook Pro 13 doesn't fall asleep when the lid closed

1 Answered Questions

2 Answered Questions

0 Answered Questions

Sponsored Content