Re: Bye SHR, hello QTMoko (and battery life)

2012-10-12 Thread Ed Kapitein
On Fri, 2012-10-12 at 00:11 +0200, David Garabana Barro wrote:
 O Xoves, 4 de Outubro de 2012, Timo Juhani Lindfors escribiu:
 
  David Garabana Barro da...@garabana.com writes:
 
   I've read about http://docs.openmoko.org/trac/ticket//2349, but it
 should
 
   be fixed in qtmoko's 2.6.34, isn't it?
 
  
 
  Yes.
 
  
 
   Any clue on this?
 
  
 
  Can you measure the power consumption please? With and without GSM.
 
  
 
 After changing u-boot with qi, battery standby time is far better.
 
 It seems gennady's u-boot still have some bugs...
 
  
 
 Thanks you all for the help
 
  
 
 -- 
 
 David Garabana Barro
 
 jabber  google talk ID: da...@garabana.com
 
 Clave pública PGP/GPG: http://davide.garabana.com/pgp.html
 

Hi David,

Could you please post the current_now measurements with the qi
bootloader?

Kind regards,
Ed



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


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-12 Thread Gennady.Kupava
Hi, David  others,

Bugs fixed in u-boot i posted were directly related to suspend power
consumption. It should be fine with latest u-boot posted on the page.

Right now i am using FR (my n900 seem a bit died, needs investigation
why it can't boot). My FR with qtmoko seem has proper power consumption,
through i am using nokia battery now and have no time now to measure
consumption with multimeter.

Gennady.

В Птн, 12/10/2012 в 00:11 +0200, David Garabana Barro пишет:
 O Xoves, 4 de Outubro de 2012, Timo Juhani Lindfors escribiu:
 
  David Garabana Barro da...@garabana.com writes:
 
   I've read about http://docs.openmoko.org/trac/ticket//2349, but it
 should
 
   be fixed in qtmoko's 2.6.34, isn't it?
 
  
 
  Yes.
 
  
 
   Any clue on this?
 
  
 
  Can you measure the power consumption please? With and without GSM.
 
  
 
 After changing u-boot with qi, battery standby time is far better.
 
 It seems gennady's u-boot still have some bugs...
 
  
 
 Thanks you all for the help
 
  
 
 -- 
 
 David Garabana Barro
 
 jabber  google talk ID: da...@garabana.com
 
 Clave pública PGP/GPG: http://davide.garabana.com/pgp.html
 
 ___
 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: Bye SHR, hello QTMoko (and battery life)

2012-10-11 Thread David Garabana Barro
O Xoves, 4 de Outubro de 2012, Timo Juhani Lindfors escribiu:
 David Garabana Barro da...@garabana.com writes:
  I've read about http://docs.openmoko.org/trac/ticket//2349, but it should
  be fixed in qtmoko's 2.6.34, isn't it?
 
 Yes.
 
  Any clue on this?
 
 Can you measure the power consumption please? With and without GSM.

After changing u-boot with qi, battery standby time is far better.
It seems gennady's u-boot still have some bugs...

Thanks you all for the help

-- 
David Garabana Barro
jabber  google talk ID:da...@garabana.com
Clave pública PGP/GPG:  http://davide.garabana.com/pgp.html


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-07 Thread Timo Juhani Lindfors
David Garabana Barro da...@garabana.com writes:
 And I'm wondering, if suspended, it won't log anything, won't it?

current_now has a lag of about 20 seconds. If you read it right after
resume you can get suspend consumption.


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


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-07 Thread David Garabana Barro
O Xoves, 4 de Outubro de 2012, Timo Juhani Lindfors escribiu:
 David Garabana Barro da...@garabana.com writes:

  Any clue on this?
 
 Can you measure the power consumption please? With and without GSM.

For these tests I flashed Qi from qtmoko repositories, so we can discard any 
problem with u-boot.

GSM on:

On battery and display at 80% [1] brightness:   ~200-210 mA
On battery and display dimmed:  ~130-135 mA
On battery and display off: ~120-130 mA 
On resume:  
~12-18 mA

Being timeouts configured as:
Dim:1 m
Display off:3 m
Suspend:5 m

And using this script:

while true; do echo `date` `cat /sys/class/power_supply/battery/current_now` 
/var/log/power.log; sleep 5; done

This is the output of script in a full cycle (only pasting changes in 
current_now values)

Sun Oct  7 10:39:59 CEST 2012 200250
[..]
Sun Oct  7 10:40:45 CEST 2012 200250
Sun Oct  7 10:40:50 CEST 2012 134062
[..]
Sun Oct  7 10:41:35 CEST 2012 134062
Sun Oct  7 10:41:40 CEST 2012 131437
[..]
Sun Oct  7 10:42:26 CEST 2012 131437
Sun Oct  7 10:42:31 CEST 2012 128250
[..]
Sun Oct  7 10:43:16 CEST 2012 128250
Sun Oct  7 10:43:22 CEST 2012 123375
[..]
Sun Oct  7 10:44:07 CEST 2012 123375
Sun Oct  7 10:44:12 CEST 2012 122250
[..]
Sun Oct  7 10:44:32 CEST 2012 122250
Sun Oct  7 10:54:16 CEST 2012 12750 

Does these valules seem ok for you?
Is it normal so little difference (~10mA) between dimmed display and powered 
off display?

Now, I want to do tests with GSM powered off. For this, is it enough if I boot 
without inserted SIM card?


[1] Default qtmoko on-battery max brightness


-- 
David Garabana Barro
jabber  google talk ID:da...@garabana.com
Clave pública PGP/GPG:  http://davide.garabana.com/pgp.html


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-07 Thread David Garabana Barro
O Domingo, 7 de Outubro de 2012, Radek Polak escribiu:
 On Sunday, October 07, 2012 06:52:42 AM David Garabana Barro wrote:
 
 Maybe stupid questions - but do you have USB cable connected? In this case
 it will not suspend. On battery it should suspend after configured
 interval. You can try lock the home screen - the preconfigured interval in
 this case is 10s.

I asked this before Timo's answer. Now I know I can read it from current_now 
just after waking up.

As you say, it would be better to have charge_now, but by the moment this is 
an acceptable approximation...

-- 
David Garabana Barro
jabber  google talk ID:da...@garabana.com
Clave pública PGP/GPG:  http://davide.garabana.com/pgp.html


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-07 Thread David Garabana Barro
O Domingo, 7 de Outubro de 2012, David Garabana Barro escribiu:
 O Xoves, 4 de Outubro de 2012, Timo Juhani Lindfors escribiu:
  David Garabana Barro da...@garabana.com writes:
   Any clue on this?
  
  Can you measure the power consumption please? With and without GSM.
 
 Now, I want to do tests with GSM powered off. For this, is it enough if I
 boot without inserted SIM card?

I answer myself. Booting without SIM card does no change power consumption at 
all, so it seems qtmoko powers on GSM with or without SIM inserted.

So I've made as suggested by gennady in bug report:

cd /sys/bus/platform/devices
echo 1  gta02-pm-gsm.0/power_on
echo 0  gta02-pm-gsm.0/power_on

And now I can see a difference in power consumption, BUT it seems qtmoko won't 
suspend if you poweroff GSM :(

GSM off:
 
On battery and display at 80% [1] brightness:   197 mA
On battery and display dimmed:  123 mA
On battery and display off: 117 mA
On resume:  
?? mA

There are almost not deviations in power consumption with GSM powered off, 
which I suppose is normal. 

Being timeouts configured as:
Dim:1 m
Display off:3 m
Suspend:5 m

And using the same script as before

This is the output of script in a full cycle (only pasting changes in
 current_now values)

Sun Oct  7 13:55:22 CEST 2012 199875
[..]
Sun Oct  7 13:56:08 CEST 2012 199875
Sun Oct  7 13:56:13 CEST 2012 124687
[..]
Sun Oct  7 13:57:49 CEST 2012 124687
Sun Oct  7 13:57:54 CEST 2012 118500






-- 
David Garabana Barro
jabber  google talk ID:da...@garabana.com
Clave pública PGP/GPG:  http://davide.garabana.com/pgp.html


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-06 Thread David Garabana Barro
O Venres, 5 de Outubro de 2012, Giacomo 'giotti' Mariani escribiu:
 Anyway, a strange thinks happened.
 In the last few days my QtMoko lightning icon started saying
 number/0mA, where number is an integer reasonably representing the
 consumption (negative if charging).

Same here. Cant read last suspend current, it's allways 0.


-- 
David Garabana Barro
jabber  google talk ID:da...@garabana.com
Clave pública PGP/GPG:  http://davide.garabana.com/pgp.html


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-06 Thread David Garabana Barro
O Xoves, 4 de Outubro de 2012, Radek Polak escribiu:
 On Thursday, October 04, 2012 09:04:00 AM David Garabana Barro wrote:
  O Xoves, 4 de Outubro de 2012, Timo Juhani Lindfors escribiu:
   David Garabana Barro da...@garabana.com writes:
I've read about http://docs.openmoko.org/trac/ticket//2349, but it
should be fixed in qtmoko's 2.6.34, isn't it?
   
   Yes.
  
  Thanks
  
   Can you measure the power consumption please? With and without GSM.
  
  How can I do it?
  Is there any wiki page about it?
 
 The trac ticket you are reffering to has commands how to do it. Besides
 QtMoko has the information about current consumption on the home screen
 (near the lightning icon e.g. 300/12mA which means 300mA now, 12mA in last
 suspend). And finally you can even read the current_now sysfs file.

I'm trying with

#!/bin/sh
while true
do
 cat /sys/class/power_supply/battery/current_now /var/log/power.log
 sleep 1
done

but if running the script, qtmoko won't enter suspend

And I'm wondering, if suspended, it won't log anything, won't it?

Sorry if an obvious question, but how can I measure suspended current draw?

btw, I'm using latest gennady's u-boot, and it seems to still poweron gps...

-- 
David Garabana Barro
jabber  google talk ID:da...@garabana.com
Clave pública PGP/GPG:  http://davide.garabana.com/pgp.html


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-06 Thread David Garabana Barro
O Domingo, 7 de Outubro de 2012, David Garabana Barro escribiu:

 btw, I'm using latest gennady's u-boot, and it seems to still poweron
 gps...

I wasn't using gennady's u-boot.
I have just flashed it, I'll try it and post results.


-- 
David Garabana Barro
jabber  google talk ID:da...@garabana.com
Clave pública PGP/GPG:  http://davide.garabana.com/pgp.html


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-05 Thread Adrien Dorsaz
Hello!
 
 If you enable deep sleep the values should be something like 10..12mA
 

I've just seen yesterday that this option was unchecked on my GTA02 and
now suspend current is between 10..12mA too instead of 25mA.

As I've seen on openmoko.org deep sleep seems related to the #1024 (so
the gsm suspend). Does this option only suspend the GSM or also
wifi/bluetooth (I don't know if it's the case with a simple suspend) ?

Does this bug and fix are also existing on GTA04 or that was solved by
Golden Delicious ?

Regards,
Adrien



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


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-05 Thread Radek Polak
On Friday, October 05, 2012 09:59:55 AM Adrien Dorsaz wrote:

 I've just seen yesterday that this option was unchecked on my GTA02 and
 now suspend current is between 10..12mA too instead of 25mA.

Great, this looks good now. Btw it's unchecked by default because not all HW 
have deep sleep fixed and on non fixed it would make problems.

 As I've seen on openmoko.org deep sleep seems related to the #1024 (so
 the gsm suspend). Does this option only suspend the GSM or also
 wifi/bluetooth (I don't know if it's the case with a simple suspend) ?

Wifi and bluetooth are IIRC turned off before going to sleep. Wifi has wake-on-
wlan function but this has to be explicitly turned on.

 Does this bug and fix are also existing on GTA04 or that was solved by
 Golden Delicious ?

GTA04 has different modem. IIRC i havent seen power consumption numbers for the 
modem. I havent found any AT commands for deep sleep - it's quite likely that 
the modem does this automatically.

Regards

Radek

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


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-05 Thread Giacomo 'giotti' Mariani
Hello Everyone,
 The trac ticket you are reffering to has commands how to do it. Besides 
 QtMoko 
 has the information about current consumption on the home screen (near the 
 lightning icon e.g. 300/12mA which means 300mA now, 12mA in last suspend). 
 And 
 finally you can even read the current_now sysfs file.
My freerunner, usually last in suspend between one and two days,
depending on the weather (I think the quality of the GSM signal).

Anyway, a strange thinks happened. 
In the last few days my QtMoko lightning icon started saying 
number/0mA, where number is an integer reasonably representing the
consumption (negative if charging).

But the last suspend is always 0.

(Maybe, it started after the last update of the theme via apt, but I'm
not sure.)

Could it be due to the breaking of the soldering of #1024 fix?  I did
not check if the soldering is still there, but recently, a few times,
when exiting from the suspend, I see the no network and searching
from network icons.



 If you enable deep sleep the values should be something like 10..12mA
Previously I had that value shown.
 

 Regards

 Radek

Cheers,
   Giacomo

-- 
##
giacomo 'giotti' mariani
gpg --keyserver pool.sks-keyservers.net --recv-key 0x99bfa859
O ASCII ribbon campaign: stop HTML mail
www.asciiribbon.org
##


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


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-04 Thread Timo Juhani Lindfors
David Garabana Barro da...@garabana.com writes:
 I've read about http://docs.openmoko.org/trac/ticket//2349, but it should be 
 fixed in qtmoko's 2.6.34, isn't it?

Yes.

 Any clue on this?

Can you measure the power consumption please? With and without GSM.


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


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-04 Thread Radek Polak
On Thursday, October 04, 2012 12:05:35 AM David Garabana Barro wrote:

 Any clue on this?
 Is this standby time normal for this version?
 What is your standby time?

I am not regulary using GTA02 anymore, but i charged my GTA02 with original 
openmoko battery and left it on my table on Thursday. When i came from small 
holidays on Sunday and pressed POWER button it woke up. So 3 days in suspend 
should be normal.

But i have never had dumb battery so cant help much here. The original 
openmoko battery has the advantage, that you immediately see if something is 
wrong.

Regards

Radek

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


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-04 Thread David Garabana Barro
O Xoves, 4 de Outubro de 2012, Radek Polak escribiu:

  Is this standby time normal for this version?
  What is your standby time?
 But i have never had dumb battery so cant help much here. The original
 openmoko battery has the advantage, that you immediately see if something
 is wrong.

All my batteries are original, not dumb.
I've bough it at pulster.de, Christoph still sells them 


-- 
David Garabana Barro
jabber  google talk ID:da...@garabana.com
Clave pública PGP/GPG:  http://davide.garabana.com/pgp.html


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-04 Thread David Garabana Barro
O Xoves, 4 de Outubro de 2012, Timo Juhani Lindfors escribiu:
 David Garabana Barro da...@garabana.com writes:
  I've read about http://docs.openmoko.org/trac/ticket//2349, but it should
  be fixed in qtmoko's 2.6.34, isn't it?
 
 Yes.

Thanks

 Can you measure the power consumption please? With and without GSM.

How can I do it?
Is there any wiki page about it?

-- 
David Garabana Barro
jabber  google talk ID:da...@garabana.com
Clave pública PGP/GPG:  http://davide.garabana.com/pgp.html


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-04 Thread Radek Polak
On Thursday, October 04, 2012 09:04:00 AM David Garabana Barro wrote:

 O Xoves, 4 de Outubro de 2012, Timo Juhani Lindfors escribiu:
  David Garabana Barro da...@garabana.com writes:
   I've read about http://docs.openmoko.org/trac/ticket//2349, but it
   should be fixed in qtmoko's 2.6.34, isn't it?
  
  Yes.
 
 Thanks
 
  Can you measure the power consumption please? With and without GSM.
 
 How can I do it?
 Is there any wiki page about it?

The trac ticket you are reffering to has commands how to do it. Besides QtMoko 
has the information about current consumption on the home screen (near the 
lightning icon e.g. 300/12mA which means 300mA now, 12mA in last suspend). And 
finally you can even read the current_now sysfs file.

If you enable deep sleep the values should be something like 10..12mA

Regards

Radek


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


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-04 Thread Timo Juhani Lindfors
David Garabana Barro da...@garabana.com writes:
 How can I do it?
 Is there any wiki page about it?

The bug report that you linked to talks about different ways to do that.


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


Re: Bye SHR, hello QTMoko (and battery life)

2012-10-03 Thread Peter Viskup

On 10/04/2012 12:05 AM, David Garabana Barro wrote:


Hi

I've finally gave up with SHR. Around 2010 June-July, I had a mostly 
stable daily phone, rock solid gps, really great battery life (#1024 
fixed, 3-4 days standby time), and I was very very happy.


But since then, my sd card sttoped working realibly, my phone doesn't 
wake up from suspend, gps intermitently fails, and I cannot say about 
battery life, because it's almost impossible to last 1 day without a 
freeze...


In late 2011 I had a baby, and I left Neo unused for a while. I had no 
time to fight with so many problems. I was using a dumb phone as my 
daily phone, and giving all my time to my baby :)


Now I want to use FR again, and give qtmoko a chance.

I'm really surprised with the state of all functions. Almost 
everything works flawlessly, new theme is AMAZING, I can even use my 
own WPA2 home wifi. Last time I got it working with neo was with FDOM 
(LOOONG time ago). SD card works again (I'm booting qtmoko from sd 
card, so I can say it works completely stable).


I'm very happy... but with battery life. Usually I get only about 12 
hours standby time, and many less if I use it a little.


My Neo is #1024 fixed, I have activated deep sleep both in neocontrol 
and in /opt/qtmoko/etc/default/Trolltech/Modem.conf [1]


I've read about http://docs.openmoko.org/trac/ticket//2349, but it 
should be fixed in qtmoko's 2.6.34, isn't it?


Any clue on this?

Is this standby time normal for this version?

What is your standby time?

P.S. I have two brand new batteries, so you can discard a broken 
battery...



[1] 
http://sourceforge.net/apps/mediawiki/qtmoko/index.php?title=FAQ#How_about_power_save_of_Calypso.2C_the_GSM_modem_-_bug_.231024


--

David Garabana Barro

jabber  google talk ID: da...@garabana.com

Clave pública PGP/GPG: http://davide.garabana.com/pgp.html





Hi David,
I had the same reason for swap to QTmoko from SHR some weeks before. I 
found it very stable and usable. Thanks to all developers.
My standby times vary - but usually without touching it it's somewhere 
around 24 hours and probably more.
I am on the way to play with that deep sleep of GSM modem and can share 
my findings (I do not have deep sleep enabled yet).


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