Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    You can also run pmset in the background using pmset noidle & and therefore continue using the current command prompt. Type fg to get pmset back, at which point you can Ctrl+C it Commented Aug 31, 2012 at 9:21
  • @binarybob Oh! I didn't know that. Thanks for the tip! Commented Aug 31, 2012 at 14:26
  • @davisgeek - really nice! Thanx for the tip. Commented Sep 3, 2012 at 11:45
  • 1
    this one also works in IPython notebook: !pmset noidle -- very nice when you have a desktop serving IPython notebook and a laptop connecting remotely. Commented Nov 20, 2016 at 16:18
  • 1
    This doesn't work for me. It runs successfully, the message "Preventing idle sleep (^C to exit)..." appears, but it still goes to sleep. Commented Dec 7, 2017 at 13:56