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

def powermanage::PowerManage::_checkSuspend (   self  )  [private]

Ask HAL whether we can suspend / hibernate. 

Definition at line 280 of file powermanage.py.

00280                            :
        """ Ask HAL whether we can suspend / hibernate. """
        if SUSPEND_USE_HAL:
            self.computerObject = self.bus.get_object("org.freedesktop.Hal", 
                                                        u'/org/freedesktop/Hal/devices/computer')
            properties = self.computerObject.GetAllProperties(
                                                        dbus_interface="org.freedesktop.Hal.Device")
            self.canSuspend = properties["power_management.can_suspend"]
            self.canHibernate = properties["power_management.can_hibernate"]
        else:
            self.canSuspend = self.canHibernate = True

    def _initBrightness(self):


Generated by  Doxygen 1.6.0   Back to index