def reboot(self): log.critical('Rebooting the system...') if platform.machine() != 'sh4': log.critical('Not!') notifier.stop() else: os.system('/sbin/reboot')
def off(self): log.critical('Shutting the system down...') if platform.machine() != 'sh4': log.critical('Not!') notifier.stop() else: self.pm.apm_state = 3
def off(self): log.critical('Powering Off the system...') if platform.machine() != 'sh4': log.critical('Not!') notifier.stop() else: self.pm.apm_state = 3 return None
def standby(self): log.critical('Shutting the system in standby...') if platform.machine() != 'sh4': log.critical('Not!') notifier.stop() else: self.pm.apm_state = 1 return None
def handle(self, event): if event.name == 'POWER': if pygui_globs['demomode']: pygui_globs['demomode'].stop() if config.shutdown: if self.pm.apm_state: self.wakeup() else: self.led.ask_standby() self.standby() else: log.warning('Standby is disabled due to a shutdown_command definition') from peewee.notifier import stop stop()
o: nname: 152 n 152(None)[]: i: 0(f) o: 153() nname: 149 n 149(None)[]: i: 71(JA), 112() o: 153() nname: 112 n 112(None)[log.warning('Standby is disabled due to a shutdown_command definition') from peewee.notifier import stop stop() ]: i: 49(f) o: 149() nname: 85 n 85(None)[self.led.ask_standby() self.standby() ]: i: 58(f) o: 153(JA) nname: 71 n 71(None)[self.wakeup() ]: i: 58(t) o: 149(JA)
def byebye(self): from pygui.facilities import minimalist_home minimalist_home.dump_home() stop() raise SystemExit('hasta la vista Catalina !')