thedead1440
|
2012-05-25
, 14:59
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#41
|
|
2012-05-25
, 20:45
|
|
Posts: 800 |
Thanked: 957 times |
Joined on Sep 2010
@ India
|
#42
|
|
2012-06-03
, 09:35
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#43
|
But, I wont be able to use system heartbeat from a shell script right? So I am now learning to write and compile a small C++ program that invokes the shell script when woken up. It may take time as I am a newb.
import sys from PySide.QtCore import * from QtMobility.SystemInfo import * app = QCoreApplication(sys.argv) def on_timeout(): print 'good morning' # you would call the script here minimumTime = 30 # seconds maximumTime = 60 # seconds timer = QSystemAlignedTimer() timer.timeout.connect(on_timeout) timer.setSingleShot(False) timer.start(minimumTime, maximumTime) sys.exit(app.exec_())
|
2012-06-04
, 10:35
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#44
|
Tags |
harmattan, lowpowerscreen |
Thread Tools | |
|