![]() Pmset -a disablesleep 1 & sleep 3600 & pmset -a disablesleep 0 # prevent sleep for 1 hour while on battery (this must be run under a root session with `sudo -i`) # after running this command you'll notice that the Sleep option ![]() ![]() ![]() # disable sleep (while plugged in or on battery) # by typing `sudo -i` followed by your password) # (prefix the command with `sudo` or get a root session There is no need for external utilities - you can do it using the ootb Apple command line utilities: # prevent idle sleep while plugged in
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |