+ self.checkFanTimer = eTimer()
+ self.checkFanTimer.callback.append(self.fan_pwm_error)
+ self.onLayoutFinish.append(self.checkFan)
+
+ def checkFan(self):
+ if not instandbyon.check_fan_pwm():
+ self.checkFanTimer.start(10,True)
+
+ def fan_pwm_error(self):
+ self.session.openWithCallback(self.close, MessageBox, _("Can not open 'fan_pwm'"), MessageBox.TYPE_ERROR)