Re: suspend/hibernate in the command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:

dbus-send --session \
	  --dest=org.gnome.PowerManager \
	  --type=method_call \
	  --print-reply \
	  --reply-timeout=2000 \
	  /org/gnome/PowerManager \
	  org.gnome.PowerManager.Suspend

But maybe pm-suspend will do everything you need to do.

Richard.

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux