[fso] Best practice to disable suspend through FSO

2009-07-29 Thread Laszlo KREKACS
Dear List,

My om2009.t5 phone sometime suspend,
no matter what I set in paroli.
It occurs mostly when I start the phone with usb connected.
(or the usb triggers the phone to start).

I examined paroli's source code, and found the relevant part:
paroli-services/system/idlenotifier.py:64
def set_suspend(self, time):
and line 46:
self.iface = dbus.Interface(obj, 'org.freesmartphone.Device.IdleNotifier')

So paroli sets the suspend time through fso's IdleNotifier interface.
And he disables suspend using '-1' value.

When it sets '-1', fso does not set paroli as cpu user:
I checked in cli-framework using this command:
 usageiface.GetResourceUsers(CPU)
[]

So my question is, what is the best practice to disable suspend?

And what is the exact job of this IdleNotifier service? The online
api documentation is really short, and dont explain it in details.
And when I set the value '-1', shouldn't fso request CPU
automagically for me?

So it is a bug in paroli or in fso?

Comments?

Best regards,
 Laszlo

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [fso] Best practice to disable suspend through FSO

2009-07-29 Thread Sebastian Krzyszkowiak
On Wed, Jul 29, 2009 at 22:07, Laszlo
KREKACSlaszlo.krekacs.l...@gmail.com wrote:
 And when I set the value '-1', shouldn't fso request CPU
 automagically for me?

No. Value -1 in IdleNotifier is for permanently disabling suspend. CPU
resource is temporary, when some app needs for instance some
calculations and don't want to be suspended.

 So it is a bug in paroli or in fso?

I think there is no bug, just misconfiguration somewhere.

-- 
Sebastian Krzyszkowiak
dos

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community