[maemo-users] Offline mode from the command-line?

From: Eric Warnke ericew at gmail.com
Date: Wed Oct 15 16:08:51 EEST 2008
As a followup, is there any documentation on the wlancond dbus api for
things like scanning local networks.  Due to the power saving tools if
you are not already associated with an AP there doesn't appear to be
an easy way to get a listing of the AP's.  When you are associated
with an AP you can use the standard wireless tools, but it would be
great to be able to use wlancond directly for things like skyhook and
identifying preferred AP's when connected to BT.


On Wed, Oct 1, 2008 at 7:31 AM, Tony Green <tony at beermad.org.uk> wrote:
> Thanks to all who replied.
> Faheem's
> /usr/bin/dbus-send --system --type=signal /com/nokia/mce/signal
> com.nokia.mce.signal.sig_device_mode_ind string:"[normal|flight]"
> works a treat.
> Had to live with a bit of a hack to get it to wake up again in the morning until I can find some documentation for alarmtool (though it seems the alarm's not that reliable anyway) but my battery was a lot fuller this morning ;-)
> In case it's of help to anybody, this is the script that I'm now running. I start it via SSH from my server at the end of the backup. The downside is that the SSH session stays up until it restarts, but it's less of an overhead than staying connected (I've backgrounding the script, but SSH seems determined to stay.)
> # Switch to offline mode
> /usr/bin/dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_mode_ind string:"flight"
> # wait 8 1/2 hours so the device will reconnect in time for when I'll need it online again
> sleep 30600
> # Switch back to online mode and reconnect to the default access point
> /usr/bin/dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_mode_ind string:"normal"
> --
> Tony Green
> Ipswich, Suffolk, England
> http://www.beermad.org.uk/
> http://www.suffolkcamra.co.uk/pubs/
> ** This message is digitally signed. If your email client is unable to read digital signatures, you may see an attachment that you cannot open. See http://www.gnupg.org/documentation/faqs.en.html for more information.
> You can validate my PGP key from my website: http://www.beermad.org.uk/
> * No Micro$oft products were used in the generation of this communication
> _______________________________________________
> maemo-users mailing list
> maemo-users at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-users

More information about the maemo-users mailing list