Skip to main content
10 events
when toggle format what by license comment
Jan 28, 2020 at 8:07 comment added ccpizza Maybe worth mentioning that sudo pmset -b disablesleep 1 will persist the state across reboots, and that the Sleep option under the Apple logo menu () will stay disabled until you re-enable sleep. You must run sudo pmset -a disablesleep 0 to re-enable sleep.
Oct 17, 2019 at 4:09 vote accept here
Dec 31, 2018 at 8:08 comment added Alex Ryan Github user iccir has made a free app called Fermata that uses this trick under the hood and wraps it up nicely with a menubar icon and a timer, etc. I just tried it on Mojave (10.14.2) and it worked great for me. github.com/iccir/Fermata
S Oct 3, 2018 at 17:00 history edited nohillside CC BY-SA 4.0
add syntax highlighting
S Oct 3, 2018 at 17:00 history suggested ccpizza CC BY-SA 4.0
add syntax highlighting
Oct 3, 2018 at 15:08 review Suggested edits
S Oct 3, 2018 at 17:00
Nov 1, 2017 at 2:17 comment added jcsahnwaldt Reinstate Monica Cool! Thanks a lot! A suggestion / simplification: I don't think you need to change the sleep setting. Just switch disablesleep on and off. pmset -a disablesleep 1 and pmset -a disablesleep 0 work fine for me. My MacBook doesn't got to sleep when I close the lid. All other settings remain the same.
Feb 2, 2017 at 16:06 history edited Joe Casadonte CC BY-SA 3.0
edited body
Jan 31, 2017 at 21:25 history edited Joe Casadonte CC BY-SA 3.0
added 2 characters in body
Jan 29, 2017 at 20:03 history answered Joe Casadonte CC BY-SA 3.0