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

def powermanage::PowerManage::hibernate (   self  ) 

Implements suspend to disk (S4). 

Definition at line 591 of file powermanage.py.

00591                        :
        """ Implements suspend to disk (S4). """
        if SUSPEND_USE_HAL:
            try: 
                self.computerObject.Hibernate(dbus_interface="org.freedesktop.Hal.Device.SystemPowerManagement")
            except dbus.DBusException:
                pass  #we get a DBusException: No reply within specified time
        else:
            self._sleepMode(S4_COMMAND)

    def _sleepMode(self, command):


Generated by  Doxygen 1.6.0   Back to index