Re: [SailfishDevel] Keeping background process running in Sailfish OS

2015-05-03 Thread E.S. Rosenberg
I think it's the regular linux OOM killer, in general it doesn't kill everything but it will/should kill up to the point that enough RAM was freed to regain system stability... So if your deamon has a very small RAM footprint the chance it will get killed is much lower then if it's a RAM hog... HT

Re: [SailfishDevel] Keeping background process running in Sailfish OS

2015-05-03 Thread E.S. Rosenberg
This may also help: http://unix.stackexchange.com/questions/153585/how-oom-killer-decides-which-process-to-kill-first 2015-05-03 11:39 GMT+03:00 E.S. Rosenberg < es.rosenberg+sailfishos@gmail.com>: > I think it's the regular linux OOM killer, in general it doesn't kill > everything but it wil

Re: [SailfishDevel] Keeping background process running in Sailfish OS

2015-05-03 Thread Andrey Kozhevnikov
afaik it only closing propcesses with windows, no? 03.05.2015 10:08, Taixzo пишет: I notice that Sailfish tends to close all running applications when some limit of RAM or CPU is reached. Is there a way to make an app launch a daemon process that does not get killed by this? -- Sent from Whi

Re: [SailfishDevel] Keeping background process running in Sailfish OS

2015-05-03 Thread Martin Grimme
Hi, 2015-05-03 13:09 GMT+02:00, Andrey Kozhevnikov : > afaik it only closing propcesses with windows, no? No, it is the Linux OOM handler, which does not care or know about what a Wayland window is. If your daemon is invoked as a systemd service, you can adjust the OOMScore in the system .service

Re: [SailfishDevel] Keeping background process running in Sailfish OS

2015-05-03 Thread E.S. Rosenberg
Also note that if you skew it too much in favor of yourself the system may end up killing genuinely important system processes instead of your daemon, no user will be happy about that 2015-05-03 14:43 GMT+03:00 Martin Grimme : > Hi, > > 2015-05-03 13:09 GMT+02:00, Andrey Kozhevnikov : > > afa

Re: [SailfishDevel] Keeping background process running in Sailfish OS

2015-05-03 Thread Taixzo
I wonder why Sailfish OS does this while Harmattan and Maemo did not? They certainly didn't have more RAM to work with. Sunday, May 3, 2015 7:56 AM E.S. Rosenberg wrote: > Also note that if you skew it too much in favor of yourself the system may > end up killing genuinely important system proces

Re: [SailfishDevel] Keeping background process running in Sailfish OS

2015-05-03 Thread E.S. Rosenberg
Well for one thing you have the extremely RAM hungry Android environment which they didn't have... 2015-05-03 17:16 GMT+03:00 Taixzo : > I wonder why Sailfish OS does this while Harmattan and Maemo did not? They > certainly didn't have more RAM to work with. > > Sunday, May 3, 2015 7:56 AM E.S. R

Re: [SailfishDevel] Keeping background process running in Sailfish OS

2015-05-03 Thread MARTIN GRIMME
Am 3. Mai 2015, um 16:39, schrieb "E.S. Rosenberg" : > > >Well for one thing you have the extremely RAM hungry Android environment which >they didn't have... On the other hand, the N900 and N9 could have become pretty unresponsive while swapping, up to the point that you were not able to ans

Re: [SailfishDevel] 回复:Re: could we support hw overlay from gst-droid?

2015-05-03 Thread Mohammed Hassan
On Fri, May 01, 2015 at 08:01:34PM +0300, Tone Kastlunger wrote: > I'd guess this would require patching lipstick (compositor) as well? > tortoisedoc I cannot tell. One option is to use wayland subsurfaces (I don't know if it's even possible or not). We can then extend droideglsink to use subsur

Re: [SailfishDevel] Pull data in background

2015-05-03 Thread Nicolas Cisco
I've create the gui view and set "setQuitOnLastWindow" to false. The problem i'm having is that when the app gui is closed (the app continues running on background), but the user can't open it again. How can i reopen the gui view when the user clicks on the menu button of the app?. The main code:

Re: [SailfishDevel] Pull data in background

2015-05-03 Thread Tomasz Sterna
Dnia 2015-05-02, sob o godzinie 22:27 -0300, Nicolas Cisco pisze: > My problem is how should i poll notifications and > messages. I have to periodically send an ajax call/http request to an url > (eg: http:///notifications) and the server will answer me with > a json with all the new messages. Wel