Re: power drain after wifi connection

2011-05-27 Thread Alfa21-mobile
 I am quite sure they are not called after disconnect. I think that the kernel
 is responsible to turn wifi off in suspend (unless you want to keep it on 
 during
 suspend e.g. for wake-on-wlan function).

 Yes, in suspend the kernel turns off the module completely, it
 shouldn't drain anything, at least it never used to.


ok, after some testing sessions I can confirm a unbind/bind cycle can
be used as workaround and the battery is in safe.
also empirically, I feel my gta02 gets warm a little when in stdby if
I do not unbind, removing the rear cover, in the area between the
battery and the smile hole.
instead if I never use wifi or unbind/rebind after the use, it keeps
the normal (ambient) temperature.

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


Re: power drain after wifi connection

2011-05-26 Thread Alfa21-mobile
On Thu, May 26, 2011 at 6:02 AM, Paul Fertser fercer...@gmail.com wrote:
 Basically, ``ls /sys/bus/platform/drivers/s3c2440-sdi'', it should let
 you know if the module (even when built-in) is binded or not. It
 shouldn't be if you want the card to not drain the battery.

 ``echo s3c2440-sdi  .../unbind'' (or bind) is how to handle this
 manually.

thanks for the hint!
but here it looks a little different:
root@neo:~# find /sys/bus/ -name '*sdi*'
/sys/bus/platform/devices/s3c2440-sdi
/sys/bus/platform/drivers/s3c-sdi
/sys/bus/platform/drivers/s3c-sdi/s3c2440-sdi
/sys/bus/sdio
/sys/bus/sdio/drivers/sdio_ar6000

the location is in devices and in drivers I see s3c-sdi

so I can find the unbind here:
root@neo:~# find /sys/bus/ -name '*unbind*'|grep sdi
/sys/bus/platform/drivers/s3c-sdi/unbind
/sys/bus/sdio/drivers/sdio_ar6000/unbind


how I can check if it's in bind or unbind state?
maybe the scripts in qtmoko try to unbind it using a wrong path?

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


Re: power drain after wifi connection

2011-05-26 Thread Paul Fertser
Alfa21-mobile freerun...@my.is.it writes:
 so I can find the unbind here:
 root@neo:~# find /sys/bus/ -name '*unbind*'|grep sdi
 /sys/bus/platform/drivers/s3c-sdi/unbind
...
 how I can check if it's in bind or unbind state?

If ar6000 is listed among the files at the path you mention, it's
binded.

 maybe the scripts in qtmoko try to unbind it using a wrong path?

Possibly so :)

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

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


Re: power drain after wifi connection

2011-05-26 Thread Radek Polak
On Thursday 26 May 2011 12:08:07 Paul Fertser wrote:

 Alfa21-mobile freerun...@my.is.it writes:
  so I can find the unbind here:
  root@neo:~# find /sys/bus/ -name '*unbind*'|grep sdi
  /sys/bus/platform/drivers/s3c-sdi/unbind
 
 ...
 
  how I can check if it's in bind or unbind state?
 
 If ar6000 is listed among the files at the path you mention, it's
 binded.
 
  maybe the scripts in qtmoko try to unbind it using a wrong path?
 
 Possibly so :)

You can run the script from terminal and see if it is ok. All the scripts are 
in /opt/qtmoko/bin - it's very easy to check what they do.

Regards

Radek

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


Re: power drain after wifi connection

2011-05-26 Thread Alfa21-mobile
On Thu, May 26, 2011 at 12:08 PM, Paul Fertser fercer...@gmail.com wrote:
 Alfa21-mobile freerun...@my.is.it writes:
 so I can find the unbind here:
 root@neo:~# find /sys/bus/ -name '*unbind*'|grep sdi
 /sys/bus/platform/drivers/s3c-sdi/unbind
 ...
 how I can check if it's in bind or unbind state?

 If ar6000 is listed among the files at the path you mention, it's
 binded.

 maybe the scripts in qtmoko try to unbind it using a wrong path?

 Possibly so :)

 --
 Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
 mailto:fercer...@gmail.com


fine,

root@neo:~# echo s3c2440-sdi  /sys/bus/platform/drivers/s3c-sdi/unbind
root@neo:~# find /sys/bus/ -name '*sdi*'
/sys/bus/platform/devices/s3c2440-sdi
/sys/bus/platform/drivers/s3c-sdi
/sys/bus/sdio
/sys/bus/sdio/drivers/sdio_ar6000

now I see in internet, wireless lan = unavailable and it's not
possible to start a wifi connection.

root@neo:~# echo s3c2440-sdi  /sys/bus/platform/drivers/s3c-sdi/bind
root@neo:~# find /sys/bus/ -name '*sdi*'
/sys/bus/platform/devices/s3c2440-sdi
/sys/bus/platform/drivers/s3c-sdi
/sys/bus/platform/drivers/s3c-sdi/s3c2440-sdi
/sys/bus/sdio
/sys/bus/sdio/drivers/sdio_ar6000

now I see wifi ok and it's functional (verified also with arora browser)

the strange thing (for me) is: why at boot time it's binded but does
not consumes the battery untill the first wifi connection? btw I've to
check if after that, a unbind/bind operation can fix this issue...
I'll tell you asap!

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


Re: power drain after wifi connection

2011-05-26 Thread Alfa21-mobile
On Thu, May 26, 2011 at 12:44 PM, Radek Polak pson...@seznam.cz wrote:
 On Thursday 26 May 2011 12:08:07 Paul Fertser wrote:
 Alfa21-mobile freerun...@my.is.it writes:
  maybe the scripts in qtmoko try to unbind it using a wrong path?

 Possibly so :)

 You can run the script from terminal and see if it is ok. All the scripts are
 in /opt/qtmoko/bin - it's very easy to check what they do.


hi radek,i can confirm they are correct:
root@neo:~# grep -r sdi /opt/qtmoko/bin/
/opt/qtmoko/bin/wifi-bind.sh:echo s3c2440-sdi 
/sys/bus/platform/drivers/s3c-sdi/bind
/opt/qtmoko/bin/wifi-unbind.sh:echo s3c2440-sdi 
/sys/bus/platform/drivers/s3c-sdi/unbind

and are executables... but I do not know neither if they are called
after a wifi disconnection, nor if after an unbind/bind cycle the
power consumption during stdby returns to the same state like after a
reboot (now I'm testing this one)

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


Re: power drain after wifi connection

2011-05-26 Thread Radek Polak
On Thursday 26 May 2011 13:01:05 Alfa21-mobile wrote:

 and are executables... but I do not know neither if they are called
 after a wifi disconnection, nor if after an unbind/bind cycle the
 power consumption during stdby returns to the same state like after a
 reboot (now I'm testing this one)

I am quite sure they are not called after disconnect. I think that the kernel 
is responsible to turn wifi off in suspend (unless you want to keep it on 
during 
suspend e.g. for wake-on-wlan function).

So if there is high current in suspend it is probably kernel related problem. 
Unbinding the adapter seems to me quite ugly workaround.

I would like to check it myself, but i am right now in the middle of too many 
things.

Regards

Radek

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


Re: power drain after wifi connection

2011-05-26 Thread Paul Fertser
Radek Polak pson...@seznam.cz writes:
 On Thursday 26 May 2011 13:01:05 Alfa21-mobile wrote:
 and are executables... but I do not know neither if they are called
 after a wifi disconnection, nor if after an unbind/bind cycle the
 power consumption during stdby returns to the same state like after a
 reboot (now I'm testing this one)

 I am quite sure they are not called after disconnect. I think that the kernel 
 is responsible to turn wifi off in suspend (unless you want to keep it on 
 during 
 suspend e.g. for wake-on-wlan function).

Yes, in suspend the kernel turns off the module completely, it
shouldn't drain anything, at least it never used to.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

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


Re: power drain after wifi connection

2011-05-25 Thread Timo Juhani Lindfors
Alfa21 freerun...@my.is.it writes:
 btw, in neocontrol I see around 225000 discharging current

Sounds wrong, are you using the backlight? If yes, turn it off :-)

 You might want to steal some ideas from my comment in

http://docs.openmoko.org/trac/ticket/2277#comment:23

on how to measure wifi power consumption in a bit more reliable way.

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


Re: power drain after wifi connection

2011-05-25 Thread Paul Fertser
Alfa21 freerun...@my.is.it writes:
 2011-05-25@23:31 Paul Fertser
 Hm, you do not spare too many details, do you :) Are you really sure
 the ar6000 module is unbinded when you disable wifi?

 sorry, I didn't know which kind of details you meant...

Basically, ``ls /sys/bus/platform/drivers/s3c2440-sdi'', it should let
you know if the module (even when built-in) is binded or not. It
shouldn't be if you want the card to not drain the battery.

``echo s3c2440-sdi  .../unbind'' (or bind) is how to handle this
manually.

HTH
-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

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