|
|
05-25-2012
, 10:59 AM
|
|
Moderator |
Posts: 5,850 |
Thanked: 5,295 times |
Joined on Nov 2011
|
#41
|
|
|
05-25-2012
, 04:45 PM
|
|
|
Posts: 788 |
Thanked: 941 times |
Joined on Sep 2010
@ India
|
#42
|
|
|
06-03-2012
, 05:35 AM
|
|
|
Posts: 1,311 |
Thanked: 3,735 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_())
|
|
06-04-2012
, 06:35 AM
|
|
Moderator |
Posts: 5,850 |
Thanked: 5,295 times |
Joined on Nov 2011
|
#44
|
![]() |
| Tags |
| harmattan, lowpowerscreen |
| Thread Tools | Search this Thread |
|