suspend/hibernate in the command line

Peter Jones pjones at redhat.com
Tue Mar 28 20:37:02 UTC 2006


On Tue, 2006-03-28 at 11:40 +0100, Richard Hughes wrote:
> On Tue, 2006-03-28 at 03:48 +0100, Leon wrote:
> > > For command line use 'pm-suspend'; it doesn't require root if (and only
> > > if) you are logged in at the console.
> > >
> > >     David
> > 
> > Thanks a lot, David.
> 
> If you are in a session, and want gnome-power-manager do do fancy things
> for you (like disconnect and reconnect NetworkManager, and lock the
> screen, etc) you can do:
[...]
> But maybe pm-suspend will do everything you need to do.

gnome-power-manager calls pm-suspend or pm-hibernate (depending on what
you ask it to do), which already has code to notify NM and such.

Look around in /etc/pm/hooks for details.

-- 
  Peter




More information about the devel mailing list