Enjoy (some half-hour I wasted :p. Yes, dbus ain&#39;t my strong point):<br><br>Normal:<br>/usr/bin/dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_mode_ind string:&quot;normal&quot;<br>
<br>Flight:<br>/usr/bin/dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_mode_ind string:&quot;flight&quot;<br><br>Either make the python app exec the command above or&nbsp; make python do it nativly&nbsp; (dbus module exists in python and quite a few maemo python apps that use dbus for example)<br>
<div class="gmail_quote">On Thu, Jun 19, 2008 at 7:58 AM, George Nachman &lt;<a href="mailto:maemodev@georgester.com" title="Linkification: mailto:maemodev@georgester.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">maemodev@georgester.com</a>&gt; wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi maemo-developers,<br>
<br>
Is it possible on the N800 to programatically shut down the wifi<br>
interface and bring it back up?<br>
<br>
I have an application that very occasionally needs network<br>
connectivity. If I leave my device connected to wifi, the battery dies<br>
too quickly. I would like to have the software turn on the wifi<br>
interface, do its thing, and then turn the interface off to conserve<br>
energy. I&#39;ve considered other solutions, but I think this is the<br>
simplest answer.<br>
<br>
I thought at first that libconic could do this, but it appears not (at<br>
least not in Python: see the comment here:<br>
<a href="https://garage.maemo.org/svn/pymaemo/packages/python-conic/branches/chinook/tests/test_disconnect.py" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://garage.maemo.org/svn/pymaemo/packages/python-conic/branches/chinook/tests/test_disconnect.py</a>).<br>


Is it possible? I saw a veiled reference to sending d-bus messages<br>
(<a href="http://maemo.org/pipermail/maemo-developers/2007-April/009462.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://maemo.org/pipermail/maemo-developers/2007-April/009462.html</a>),<br>

but it wasn&#39;t specific enough to turn into code.<br>
<br>
I tried running /etc/init.d/wlancond stop, but that doesn&#39;t seem to<br>
decrease power consumption.<br>
<br>
Is there a magical dbus message I can send? If I could trick it into<br>
entering/exiting flight mode, that would work too. I&#39;ve been<br>
experimenting for hours with no luck.<br>
<br>
Thanks for your help,<br>
George<br>
_______________________________________________<br>
maemo-developers mailing list<br>
<a href="mailto:maemo-developers@maemo.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">maemo-developers@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
</blockquote></div><br>