[Mono-list] Telling Linux to enter "Suspend" state?

Robert Jordan robertj at gmx.net
Tue Apr 13 09:23:42 EDT 2010


On 13.04.2010 15:10, Aldo Prinzi wrote:
> When my programs need it, for example after an upgrade, it pass the
> "reboot" command to the system simply using the "process" class.
> Can you force the "suspend state" using a shell command?

Command line:

dbus-send
	--system \
	--print-reply \
	--dest=org.freedesktop.Hal \
	/org/freedesktop/Hal/devices/computer \
	org.freedesktop.Hal.Device.SystemPowerManagement.Suspend \
	int32:0

In code:

	http://www.ndesk.org/DBus

Robert

>
> Chu ha scritto:
>> I need to create an app that will force Linux to enter a suspended state.
>> Does anyone know if there is a way to tell a Linux machine to enter a
>> suspended power state?
>>
>> Thanks for any suggestions
>>
>> Regards,
>>
>> R. Scott
>>
>




More information about the Mono-list mailing list