Re: turning wifi off

2009-01-13 Thread jidanni
MT( BTW the 2.6.28 kernel should have also another way to disable the wlan
BTW not all components can be turned off:
http://lists.openmoko.org/pipermail/openmoko-kernel/2008-December/007317.html :
 Yes the AR6001 is wired up so it has the always on 3.3V power

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


turning wifi off

2009-01-12 Thread Michał Brzozowski
Hello,

I think this applies to all distros.  It's still a big mistery for me 
how to turn off wifi after you used it so it doesn't drain power.  Or 
even better turn it off when the phone is suspended and then turn it on 
again.  I tried 'iwconfig eth0 essid none', 'ifconfig eth0 down', but 
the phone is still draining a lot of power and the wifi icon is still on 
in Om2008.12.  I'm looking for a command line solution, but if there's a 
great app that manages the wifi and turns it off correctly I'd be happy 
to use it.

Thanks,
Michal

--
Speak Up. Angielski szybko i skutecznie. 3 miesiace nauki gratis.
Sprawdz.  http://link.interia.pl/f2019


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: turning wifi off

2009-01-12 Thread Robin Paulson
2009/1/13 Michał Brzozowski ruso...@poczta.fm:
 I think this applies to all distros.  It's still a big mistery for me
 how to turn off wifi after you used it so it doesn't drain power.  Or
 even better turn it off when the phone is suspended and then turn it on
 again.  I tried 'iwconfig eth0 essid none', 'ifconfig eth0 down', but
 the phone is still draining a lot of power and the wifi icon is still on
 in Om2008.12.  I'm looking for a command line solution, but if there's a
 great app that manages the wifi and turns it off correctly I'd be happy
 to use it.

some simple scripts here, including wifi on/off (properly) which
apparently work well. i'm giving them a go myself later today:

http://freeyourphone.de/portal_v1/viewtopic.php?f=21t=295
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: turning wifi off

2009-01-12 Thread Michał Brzozowski
Robin Paulson wrote:
 2009/1/13 Michał Brzozowski ruso...@poczta.fm:
   
 I think this applies to all distros.  It's still a big mistery for me
 how to turn off wifi after you used it so it doesn't drain power.  Or
 even better turn it off when the phone is suspended and then turn it on
 again.  I tried 'iwconfig eth0 essid none', 'ifconfig eth0 down', but
 the phone is still draining a lot of power and the wifi icon is still on
 in Om2008.12.  I'm looking for a command line solution, but if there's a
 great app that manages the wifi and turns it off correctly I'd be happy
 to use it.
 

 some simple scripts here, including wifi on/off (properly) which
 apparently work well. i'm giving them a go myself later today:

 http://freeyourphone.de/portal_v1/viewtopic.php?f=21t=295
 ___
   
Ah, so according to the scripts it's
'iwconfig eth0 txpower off'
I'll give it a try tomorrow.



--
Szef przynudza? Zagraj sobie! 
Kliknij   http://link.interia.pl/f200e 


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: turning wifi off

2009-01-12 Thread Peter Strapp
It looks like wifi can be turned on and off using the framework now. It
uses wmiconfig as below:

wmiconfig -i eth0 --wlan enable
wmiconfig -i eth0 --wlan disable

See:
http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Device.PowerControl.html;hb=HEAD
http://git.freesmartphone.org/?p=framework.git;a=commit;h=59855d9afbcf60f19b31042bfd95528b8f165419

Peter.



Michał Brzozowski wrote:
 Hello,

 I think this applies to all distros.  It's still a big mistery for me 
 how to turn off wifi after you used it so it doesn't drain power.  Or 
 even better turn it off when the phone is suspended and then turn it on 
 again.  I tried 'iwconfig eth0 essid none', 'ifconfig eth0 down', but 
 the phone is still draining a lot of power and the wifi icon is still on 
 in Om2008.12.  I'm looking for a command line solution, but if there's a 
 great app that manages the wifi and turns it off correctly I'd be happy 
 to use it.

 Thanks,
 Michal

 --
 Speak Up. Angielski szybko i skutecznie. 3 miesiace nauki gratis.
 Sprawdz.  http://link.interia.pl/f2019


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
   


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: turning wifi off

2009-01-12 Thread Marco Trevisan (Treviño)
Peter Strapp wrote:
 It looks like wifi can be turned on and off using the framework now. It
 uses wmiconfig as below:
 
 wmiconfig -i eth0 --wlan enable
 wmiconfig -i eth0 --wlan disable
 
 See:
 http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Device.PowerControl.html;hb=HEAD

Nice... Shouldn't it use also wmiconfig -i eth0 --setreassocmode 0 to
allow scanning and connecting again?

BTW the 2.6.28 kernel should have also another way to disable the wlan
by using a /sys node (if I don't remember wrong, it should do something
like a rmmod wifi-module, insmod wifi-module).

-- 
Treviño's World - Life and Linux
http://www.3v1n0.net/


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community