[FSO] Resource.Enable is hanging

Michael 'Mickey' Lauer mickey at openmoko.org
Sun Nov 23 18:34:39 CET 2008

Am Saturday 22 November 2008 22:41:32 schrieb Sten Kvamme:
> mdbus -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device
> org.freesmartphone.Resource.Enable

You are not supposed to call this API, as the documents state it's for 
internal use.

The correct usage would be 

> mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage
> org.freesmartphone.Usage.RequestResource "GSM"

But this won't work either, since mdbus will release the bus hence the 
resource right after the command :)

Hence, either run cli-framework and request the resource from there, then you 
can do whatever you want until you quit the program -- or try

mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage
org.freesmartphone.Usage.SetResourcePolicy "GSM" "enabled"

If one of these doesn't work, ping me again, and we'll find a solution.


More information about the devel mailing list