Re: Problem in fso-frameworkd

2009-01-12 Thread Michele Renda
On 12/01/2009 01:06, Timo Juhani Lindfors wrote:
 The moment mdbus exits the resource will released again. You need to
 have a program running that can keep the resource requested.

Thank you for the info. I was thinking that frameworkd was ignoring how 
it was called (if the main program exit or not).

Thank you
Michele Renda


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


Problem in fso-frameworkd

2009-01-11 Thread Michele Renda
Hello

I have a question about FSO framework. I think there is something 
strange. I would like to know if is good to open a bug report.

I use deb...@fr updatet until today, with fso-frameworkd_0.8.4.3-20081215

Let suppose I am starting with a just started system:

To be able to use the GSM subsystem I have to enable GSM: how to do it?

1)  mdbus -s org.freesmartphone.frameworkd 
/org/freesmartphone/GSM/Device Enable

FIRST PROBLEM: If I call 2 times this, the frameworkd stop to run... or 
better, if I try to make another GSM call (for example:  mdbus -s 
org.freesmartphone.frameworkd /org/freesmartphone/GSM/Device GetStatus 
the answer is org.freedesktop.DBus.Error.NoReply
  I think it would be better to have the possibility to call n times the 
Enable function.

SECOND PROBLEM: How I can check is a section is enabled? It woulrd be 
nice to have a function like:
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/GSM/Device 
GetAbilitation GSM to know if it is enabled or not.

THIRD PROBLEM: I thought that I have to use the functions shown with:
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Usage

The problem is that if I call:
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Usage  
RequestResource GSM
it seem to do nothing, because if I call:
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Usage  
GetResourceState GSM
the result is:
/org/freesmartphone/Usage: GetResourceState -  0

Thank you all
Michele Renda

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


Re: Problem in fso-frameworkd

2009-01-11 Thread Timo Juhani Lindfors
Michele Renda michele.re...@gmail.com writes:
 mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Usage  
 RequestResource GSM

The moment mdbus exits the resource will released again. You need to
have a program running that can keep the resource requested.


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


Re: Problem in fso-frameworkd

2009-01-11 Thread Michael 'Mickey' Lauer
Am Monday 12 January 2009 01:06:25 schrieb Timo Juhani Lindfors:
 Michele Renda michele.re...@gmail.com writes:
  mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Usage
  RequestResource GSM

 The moment mdbus exits the resource will released again. You need to
 have a program running that can keep the resource requested.

Correct. Alternative, with org.freesmartphone.Usage, you can also change the 
resource policy to be always on for a given resource.

-- 
:M:

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