Logo Search packages:      
Sourcecode: guidance-power-manager version File versions

def powermanage::PowerManage::suspend (   self  ) 

Run a suspend command, either via HAL or script. 

Definition at line 581 of file powermanage.py.

00581                      :
        """ Run a suspend command, either via HAL or script. """
        if SUSPEND_USE_HAL:
            try:
                self.computerObject.Suspend(0, dbus_interface="org.freedesktop.Hal.Device.SystemPowerManagement")
            except dbus.DBusException:
                pass #we get a DBusException: No reply within specified time
        else:
            self._sleepMode(S3_COMMAND)

    def hibernate(self):


Generated by  Doxygen 1.6.0   Back to index