def _suspend_device(self): """ Suspend the device Get the current brightness level, store it for later and then set the brightness to 0 """ self.suspend_args.clear() self.suspend_args['active'] = (_da_get_logo_active(self), _da_get_scroll_active(self)) # Todo make it context? self.disable_notify = True _da_set_logo_active(self, False) _da_set_scroll_active(self, False) self.disable_notify = False