-
Notifications
You must be signed in to change notification settings - Fork 802
Mac OS X sleeps (!) while running mosh #47
Copy link
Copy link
Open
Milestone
Description
When logged in remotely with mosh to a Macintosh, OS X seems to go to sleep (and we start getting the "Last contact" countup). It doesn't even respond to pings.
SSHing to the machine seems to wake it up.
It looks like this is a feature -- "pmset -g" shows a sleep time of "10" when not logged in with SSH, and a sleep of "0" (disabled) when logged in with SSH. (I think "ttyskeepawake" is what makes SSH inhibit sleeping.)
Is it possible to have mosh-server also set the sleep time to be 0 when there is a user logged in? Unfortunately pmset requires root... Starting a screen did update utmp but didn't disable "sleep".
Reactions are currently unavailable