Merge branch 'vuplus_experimental' of /opt/repository/enigma2 into vuplus_experimental
authorChang.H.S <jhs@dev3>
Fri, 4 Nov 2011 06:05:10 +0000 (15:05 +0900)
committerChang.H.S <jhs@dev3>
Fri, 4 Nov 2011 06:05:10 +0000 (15:05 +0900)
lib/python/Plugins/SystemPlugins/FactoryTest/plugin.py

index 077dc67..57ffa24 100755 (executable)
@@ -246,6 +246,17 @@ class FactoryTest(Screen):
                self.agingtimer = eTimer()
                self.agingtimer.callback.append(self.agingCheck)
                self.setSourceVar()
+               self.FanSpeedUp(255)
+
+       def FanSpeedUp(self,value):
+               if value <0:
+                       value = 0
+               elif value >255:
+                       value = 255
+               print "[FactoryTest, FanSpeedUp] setPWM to : %d"%value
+               f = open("/proc/stb/fp/fan_pwm", "w")
+               f.write("%x" % value)
+               f.close()
 
        def createConfig(self):
                tlist = []