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
>>
>


_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to