Does SailfishOS suspend a running app after some time? [answered]
Hello, I have question regarding the use of Sailfish native app called Quakefish. I use this app for some informative long acceleration measurements, like tens of minutes or an hour. ¨ Does the Sailfish suspend the app after some time? Or Sailfish will let the app run for infinite amount of time, even under screensaver? I am asking because the behaviour of the app is like that after some time it is stopped, but when I unlock the screensaver, it continues the measurement. Is there any setting in the system? Thank you very much.
UPDATE 11.5.2019Thank you all for sharing deep knowledge and comments! Let me be more specific. I have tried to use native Quakefish app from Jolla store, but also the version of Quakefish from Openrepos. https://openrepos.net/content/boggins/quakefish Both worked the same. The app works quite simple: just reads from acceleration sensor the X,Y, Z components and writes them to simple CSV ascii file. Each line of file has just 3 numbers. The sampling rate I use is 50 Hz, so it generates 50 lines of numbers each second. After the measurement I load the CSV file into e.g. GNU Octave and do the signal processing, like FFT analysis and more. It is a bit of fun. For short measurements, like minutes, it works perfectly.
My problem is, that the app is not measuring all the time for longer periods and it seems, that the SailfishOS somehow suspends it. Imagine, that I run the measuring for 1 hour, putting the phone to a place, where I cannot access it during measurement. After 1 hour there should be 50 lines x 60 x 60 = 180.000 lines in the CSV file (at 50 Hz sampling rate). But it is not, only e.g. 40.000 lines are there written, so it is clear, that the app was not running whole time. When I took the phone after this hour, unlock the screensaver, the app just shows, that is running normaly...
Sorry for such a long post. Thank you for any help.
Search for oom killer, e.g. this question and you'll find more info
rgrnetalk ( 2019-05-02 19:09:02 +0200 )editIf the measurement continues after unlocking, without restarting the app by touching the cover, it's not the oom killer. That would stop the app completely, right?
I do remember reading about some internal clock slowing down when the phone is locked and is saving energy.
You should probably ask the author of the app about this issue.
hetas ( 2019-05-02 21:59:07 +0200 )edit