View Single Post
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#86
Originally Posted by juiceme View Post
There has to be a neat way to do this, or else the alarm clock would not work either.

I remember there was some talk of this before, was it so that there are some special libs you need to link your code against to make it not to go to sleep when the device goes to low power mode?
https://github.com/nemomobile/libiphb allows you periodically wake up from suspended state.
Unfortunately its not that well documented, so you need to look into tests dir and read the sources. And its written in C.

Easier C++ API has luckily been introduced that also allows periodic waking from suspend, so you can for example wake up every 15 or 30 mins:

https://github.com/nemomobile/nemo-k...y_periodic.cpp
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.

Last edited by rainisto; 2014-06-05 at 07:14.
 

The Following 7 Users Say Thank You to rainisto For This Useful Post: