2010/8/27 Davide Scaini <[email protected]>: > Il giorno gio, 26/08/2010 alle 17.23 +0100, Al Johnson ha scritto: >> 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. > > Thanks! > last question: this was what I used in my scripts... but as far as i can > see there's no mdbus in latest shr-u-lite... just need to install it? or > I can do similar things with "plain" dbus?
mdbus2 _______________________________________________ Shr-User mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-user
