Prevent sleep during ssh session

Chris G cl at isbd.net
Mon Aug 24 12:43:59 UTC 2009


On Mon, Aug 24, 2009 at 01:27:30PM +0200, Siggy Brentrup wrote:
> Chris Jones wrote:
> 
> > > Your SSH session is dependent on the power settings of the remote
> > > machine, its power supply state, and whether the console (keyboard and
> > > mouse INPUT) of that remote machine is active or not.  The definition of
> > > 'inactive' is 'NO INPUT on keyboard or mouse', which means that network
> > > traffic and CPU activity do not influence the decision to put the PC to
> > > sleep.
> 
> > Surely though there is some way to extend the definition of 'inactive' 
> > to include no active ssh sessions (or no ssh sessions at all) ?
> > 
> > Similarly, I believe it is possible to configure things to allow the 
> > machine to automatically wake up on network activity, such as when an 
> > ssh connection is made.
> 
> Surely, e.g. think of Wake On LAN, dunno if it has been implemented.
> In my understanding OP wants to keep a machine from going asleep while
> logged in via ssh.  Let machine owner configure the box accordingly;
> if he doesn't agree, OP is bound to accept this, full-stop.
> 
Are we sure (OP?) that the OP means that the remote *machine* is going
to sleep.  A much more common problem with ssh is that the
*connection* dies after inactivity.


-- 
Chris Green





More information about the ubuntu-users mailing list