maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Background service in SailfishOS (https://talk.maemo.org/showthread.php?t=93363)

smoku 2014-06-21 11:55

Re: Background service in SailfishOS
 
Please do not derail the thread.

coderus 2014-06-21 14:13

Re: Background service in SailfishOS
 
@m4r0v3r what is your question about?

javispedro 2014-06-21 14:38

Re: Background service in SailfishOS
 
But who cares about the store? Chum is where the money is.

coderus 2014-06-21 14:44

Re: Background service in SailfishOS
 
@m4r0v3r if you asking why store not allowing background services answer is simple: because dbus daemons can be started as root, and there are no checkings if you starting it as regular user or root, and because of that it's just forbidden at all :)

javispedro 2014-06-21 14:51

Re: Background service in SailfishOS
 
Quote:

Originally Posted by coderus (Post 1430495)
@m4r0v3r if you asking why store not allowing background services answer is simple: because dbus daemons can be started as root, and there are no checkings if you starting it as regular user or root, and because of that it's just forbidden at all :)

No, that's not true for user/session services.

I suspect the problem is that there's no task manager/service control UI to lay blame to a specific program.

Besides, opportunistic suspend makes daemons completely useless.

nieldk 2014-06-21 17:27

Re: Background service in SailfishOS
 
Quote:

Originally Posted by javispedro (Post 1430496)
Besides, opportunistic suspend makes daemons completely useless.

not entirely true, but close enough. At best it makes daemons run unreliably. At least without nasty hooks.

smoku 2014-06-21 18:49

Re: Background service in SailfishOS
 
Quote:

Originally Posted by javispedro (Post 1430496)
Besides, opportunistic suspend makes daemons completely useless.

That's not a problem for Pebble daemon, as long as ring/sms/notification wakes up the device :)

smoku 2014-06-21 18:58

Re: Background service in SailfishOS
 
Quote:

Originally Posted by javispedro (Post 1430493)
Chum is where the money is.

Care to elaborate where exactly is that money?

m4r0v3r 2014-06-22 12:05

Re: Background service in SailfishOS
 
Quote:

Originally Posted by coderus (Post 1430495)
@m4r0v3r if you asking why store not allowing background services answer is simple: because dbus daemons can be started as root, and there are no checkings if you starting it as regular user or root, and because of that it's just forbidden at all :)

thats exactly what am asking, thank you :)

do daemons not run effectively due to wakelocks? or atleast how deep sleep is implemented through wakelocks??

javispedro 2014-06-23 15:09

Re: Background service in SailfishOS
 
Quote:

Originally Posted by smoku (Post 1430520)
That's not a problem for Pebble daemon, as long as ring/sms/notification wakes up the device :)

It will only wake the device for less than a second, unless you or someone else takes a wakelock. (Which are also forbidden in store btw).
If your BT connection is e.g. parked, or has been lost, etc. your program will take more time than what the system needs to display the notification, and will then happily proceed to suspend while your program hasn't yet forwarded the notification to the watch.


All times are GMT. The time now is 14:21.

vBulletin® Version 3.8.8