aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Tools/DreamboxHardware.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-02-27 02:46:44 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-02-27 02:46:44 +0000
commitbe296b411e8fc29f652799bf752d80db374d6672 (patch)
tree7afc06ec3793aabe2e0dbfce042971a0ba43807d /lib/python/Tools/DreamboxHardware.py
parent9b6b96172d1d20d9daf3c11bc5f0222f487d53d7 (diff)
downloadenigma2-be296b411e8fc29f652799bf752d80db374d6672.tar.gz
enigma2-be296b411e8fc29f652799bf752d80db374d6672.zip
wake up from deep standby five minute before the timer starts. if we don't have 5 minutes till timer start, we wake the box
up in 30 seconds.
Diffstat (limited to 'lib/python/Tools/DreamboxHardware.py')
-rw-r--r--lib/python/Tools/DreamboxHardware.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/python/Tools/DreamboxHardware.py b/lib/python/Tools/DreamboxHardware.py
index 4f873e9e..5eaaeeca 100644
--- a/lib/python/Tools/DreamboxHardware.py
+++ b/lib/python/Tools/DreamboxHardware.py
@@ -5,3 +5,13 @@ def getFPVersion():
return ioctl(fp.fileno(),0)
except IOError:
return None
+
+def setFPWakeuptime(wutime):
+ from fcntl import ioctl
+ from struct import pack
+
+ try:
+ fp = open("/dev/dbox/fp0")
+ ioctl(fp.fileno(), 6, pack('L', wutime)) # set wake up
+ except IOError:
+ pass