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

def powermanage::PowerManage::getLidClosedState (   self  ) 

Returns True if the lid is currently closed, or False if it isn't. 

Definition at line 457 of file powermanage.py.

00457                                :
        """ Returns True if the lid is currently closed, or False if it isn't. """
        try:
            properties = self.lidObject.GetAllProperties(dbus_interface="org.freedesktop.Hal.Device")
            return properties["button.state.value"]
        except (KeyError, dbus.DBusException):
            return False
        
    def setPowerSave(self, state):


Generated by  Doxygen 1.6.0   Back to index