[maemo-developers] [maemo-developers] How to keep app running indefinitely
From: Steven Hill steveh at shscientific.comDate: Wed Mar 8 22:05:28 EET 2006
- Previous message: [maemo-developers] How to keep app running indefinitely
- Next message: [maemo-developers] How to keep app running indefinitely
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, 2006-06-03 at 01:46 +0100, Simon Budig wrote: > Steven Hill (steveh at shscientific.com) wrote: > > I have written an application for the Nokia 770 that I want to keep > > running indefinitely - i.e. I want to stop the automatic process that > > runs in the background and stops applications when there is nothing > > going on for a long time, or to conserve power - can anyone tell me how > > to go about doing this? > > Have a look at > http://www.maemo.org/platform/docs/api/libosso/html/group__Devstate.html#ga2 > > Issue osso_display_blanking_pause() in regular intervals to prevent the > system from shutting down. > > Hope this helps, > Simon I tried this method, and it did not work. If the internet connection is dropped due to inactivity, the app also stops. In addition, I do not want the screen to stay bright because of potential burn-in - I am writing an application that will stay running 24/7, and I want it to keep running whether or not there is user input and whether or not it is connected. I came up with a workaround that pings a socket every 30 seconds - that keeps the app running with screen dimming and blanking still functional. But what do I do if my socket crashes or I lose my internet connection due to a wireless router malfunction or whatever?? There must be a method that will intercept the system call to shut the app off and ignore it, but I have not found such a thing discussed in the maemo docs. Can anyone enlighten me on this problem?
- Previous message: [maemo-developers] How to keep app running indefinitely
- Next message: [maemo-developers] How to keep app running indefinitely
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]