George,<br><br>I have a problem with my wifi at home which means when connected it will drain very rapidly.<br>I use an ad-hoc connection which I believe prevents idling so drains my battery quickly.<br>Other users report staying connected to their Infrastructure based wifi for days at a time.<br>
<br>I personally wouldn't like my n810 programmatically deciding when to
connect under normal situations, however I think it would be beneficial to allow the wifi to disconnect with the Lock slider switch.<br>This all gets messy and complicated though if you want to restore the connection when it is unlocked since some people have roaming
charges or other considerations.<br><br>One other thing, I find lowering the screen brightness a couple of
notches improves battery life by literally hours, might be an idea.<br><br>Gary (lcuk on #maemo)<br><br><br><div class="gmail_quote">On Thu, Jun 19, 2008 at 10:20 AM, Benoît HERVIER <<a href="mailto:khertan@khertan.net">khertan@khertan.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2008/6/19 George Nachman <<a href="mailto:maemodev@georgester.com">maemodev@georgester.com</a>>:<br>
<div><div></div><div class="Wj3C7c">> 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'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">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">http://maemo.org/pipermail/maemo-developers/2007-April/009462.html</a>),<br>
> but it wasn't specific enough to turn into code.<br>
><br>
> I tried running /etc/init.d/wlancond stop, but that doesn'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'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">maemo-developers@maemo.org</a><br>
> <a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
><br>
<br>
</div></div>Hi,<br>
<br>
This is strange, are you sure that there isn't a process that don't<br>
let the nit going into sleep mode ?<br>
<br>
As i keep always my wifi on and never manage it from my apps that need<br>
to be connected, and i don't have any battery performance problem.<br>
<font color="#888888"><br>
<br>
--<br>
Benoît HERVIER - <a href="http://khertan.net/" target="_blank">http://khertan.net/</a><br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
maemo-developers mailing list<br>
<a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
</div></div></blockquote></div><br>