On Thursday 26 August 2010, Joachim Ott wrote:
> On 26 August 2010 16:53, Davide Scaini <[email protected]> wrote:
> > ok myidea was something like
> > fsoraw -r WiFi -- sleep 20m
> > i just want it up :)
> > this is not nice but it works (as far as i get another time illume
> > working) so thanks for the hint :)
> 
> mdbus2 -s org.freesmartphone.ousaged /org/freesmartphone/Usage
> org.freesmartphone.Usage.RequestResource WiFi
> 
> and later
> 
> mdbus2 -s org.freesmartphone.ousaged /org/freesmartphone/Usage
> org.freesmartphone.Usage.ReleaseResource WiFi

This won't work because as soon as mdbus exits the resource will be released. 
the fsoraw wrapper was written to get round exactly this problem.

The other way is to use 

mdbus2 -s org.freesmartphone.ousaged 
/org/freesmartphone/Usageorg.freesmartphone.SetResourcePolicy WiFi enabled

That's what the settings app does for manual,on. replace 'enabled' with 'auto' 
and you're back to automatic, or 'disabled' to force it off.
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to