Monday, July 8, 2013

Preventing sleep on Mac

Since upgrading to OSX 10.8 my Mac goes into a sleep state whenever it is idle for more than 15 to 30 minutes.  This disconnects all network sessions, causing chat clients, which are used for presence and quick communication, to have to reconnect frequently.  Also, can show presence as offline, when I need it to be online all the time.

Recently I discovered a command that, when run in a terminal window, will prevent this idle state.  The command?

pmset noidle.

^C will break out of it, so I just leave the Terminal window open all day.