Re: blink AUX or power light while suspended?

2009-08-31 Thread Steven **
On Sat, Aug 29, 2009 at 4:04 PM, Rask Ingemann
Lambertsenccc94...@vip.cybercity.dk wrote:
 On Fri, Aug 28, 2009 at 11:06:24PM +0200, arne anka wrote:
  This post in that same thread mentions that leaving an LED on would
  halve the battery life while suspended:

 what it says is, _blinking_ would halve it, since blinking would mean
 resume/suspend/resume/suspend ...

   No, leaving it permanently lit would approximately halve battery life.
 Suspend current is around 8 mA, AUX LED current is around 6 mA (GTA02
 revision 6)[1].

 --
 Rask Ingemann Lambertsen


Is that halving the theoretical suspend time (I thought someone was
claiming a suspend life on about 100 hours) or the real suspend time?
If we're talking about reducing suspend time to 50 hours, I'd be fine
with that.  Honestly, I don't think it'd be that much of an issue as I
would not expect that LED to be on for long.  The point of lighting
the LED would be to get my attention if I was away from my phone when
a call or sms came in.  Obviously the LED would be cleared once I
checked the event.  So, for my usage, I wouldn't expect that LED to
ever be lit for more than 30 minutes.

-Steven

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


Re: blink AUX or power light while suspended?

2009-08-31 Thread Sebastian Krzyszkowiak
On 8/31/09, Steven ** montgoss+openmokocommun...@gmail.com wrote:
 On Sat, Aug 29, 2009 at 4:04 PM, Rask Ingemann
 Lambertsenccc94...@vip.cybercity.dk wrote:
 On Fri, Aug 28, 2009 at 11:06:24PM +0200, arne anka wrote:
  This post in that same thread mentions that leaving an LED on would
  halve the battery life while suspended:

 what it says is, _blinking_ would halve it, since blinking would mean
 resume/suspend/resume/suspend ...

   No, leaving it permanently lit would approximately halve battery life.
 Suspend current is around 8 mA, AUX LED current is around 6 mA (GTA02
 revision 6)[1].

 --
 Rask Ingemann Lambertsen


 Is that halving the theoretical suspend time (I thought someone was
 claiming a suspend life on about 100 hours) or the real suspend time?
 If we're talking about reducing suspend time to 50 hours, I'd be fine
 with that.  Honestly, I don't think it'd be that much of an issue as I
 would not expect that LED to be on for long.  The point of lighting
 the LED would be to get my attention if I was away from my phone when
 a call or sms came in.  Obviously the LED would be cleared once I
 checked the event.  So, for my usage, I wouldn't expect that LED to
 ever be lit for more than 30 minutes.

 -Steven

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


On GTA02A5 litting AUX LED will reduce suspend time about 10 times (8
mA suspend current, 50 mA LED current)

-- 
Sebastian Krzyszkowiak
dos

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


Re: blink AUX or power light while suspended?

2009-08-31 Thread Sebastian Krzyszkowiak
On 8/31/09, Nathan Kinkade n...@nkinka.de wrote:
 On Mon, Aug 31, 2009 at 07:01:28PM +0200, Sebastian Krzyszkowiak wrote:
  Is that halving the theoretical suspend time (I thought someone was
  claiming a suspend life on about 100 hours) or the real suspend time?
  If we're talking about reducing suspend time to 50 hours, I'd be fine
  with that.  Honestly, I don't think it'd be that much of an issue as I
  would not expect that LED to be on for long.  The point of lighting
  the LED would be to get my attention if I was away from my phone when
  a call or sms came in.  Obviously the LED would be cleared once I
  checked the event.  So, for my usage, I wouldn't expect that LED to
  ever be lit for more than 30 minutes.
 
  -Steven
 
  ___
  Openmoko community mailing list
  community@lists.openmoko.org
  http://lists.openmoko.org/mailman/listinfo/community
 

 On GTA02A5 litting AUX LED will reduce suspend time about 10 times (8
 mA suspend current, 50 mA LED current)

 My understanding is that most commercially sold Freerunners are revision
 6.  Is that incorrect?  If it is correct then according to what someone
 else posted, the AUX light should only consume around 6mA.

 I too would be willing to live with reduced battery life to have this
 feature.  Like Steven said, it's not likely that the light would remain
 lit for too long without me noticing it, so the decrease in battery life
 would certainly be less than 50%, maybe even only reducing it by 10% or
 20% during normal usage.  And if these recent reports of adding a 10uF
 capacitor to resolve ticket #1024 are true, then that could mean that
 even in a worst case scenario the device could still remain suspended
 with the AUX light illumated for perhaps 50 to 70 hours.

 For those with revision a5 or who don't want to risk/bother with lower
 battery life, this feature could be a configuration option.  Also, I
 don't know what drain it puts on the battery, but waking the system just
 to check if a call or SMS was missed surely has some power consumption
 consequences that can't be totally discounted in this equation.

 Nathan

A5 isn't prototype, it was sold to end-user for some time. And waking
system is bad idea.

PS. I have A5 and I'm already using AUX LED to blink when there are
missed calls or unread messages using opimd interface. I'm just saying
facts (well, that was me who noticed that power-hungry aux led) ;)

-- 
Sebastian Krzyszkowiak
dos

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


Re: blink AUX or power light while suspended?

2009-08-31 Thread Michal Brzozowski
2009/8/31 Sebastian Krzyszkowiak seba.d...@gmail.com

 On GTA02A5 litting AUX LED will reduce suspend time about 10 times (8
 mA suspend current, 50 mA LED current)


Is it possible to leave the power btn led on as well? Does power drain issue
only apply to AUX?

Power button is even better. Blue for missed calls, orange for sms, and
purple for both :-)

Right now the leds turn off when you suspend. What's the place to change
this? kernel?
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: blink AUX or power light while suspended?

2009-08-31 Thread Sebastian Krzyszkowiak
On 8/31/09, Michal Brzozowski ruso...@poczta.fm wrote:
 2009/8/31 Sebastian Krzyszkowiak seba.d...@gmail.com

 On GTA02A5 litting AUX LED will reduce suspend time about 10 times (8
 mA suspend current, 50 mA LED current)


 Is it possible to leave the power btn led on as well? Does power drain issue
 only apply to AUX?

Yup, only to AUX and only on sold GTA02A5. (prototipes have that issue
on all LEDs AFAIK)

 Power button is even better. Blue for missed calls, orange for sms, and
 purple for both :-)

 Right now the leds turn off when you suspend. What's the place to change
 this? kernel?

Yes.

-- 
Sebastian Krzyszkowiak
dos

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


Re: blink AUX or power light while suspended?

2009-08-31 Thread Nathan Kinkade
On Mon, Aug 31, 2009 at 07:40:53PM +0200, Sebastian Krzyszkowiak wrote:
 
 A5 isn't prototype, it was sold to end-user for some time. And waking
 system is bad idea.
 
 PS. I have A5 and I'm already using AUX LED to blink when there are
 missed calls or unread messages using opimd interface. I'm just saying
 facts (well, that was me who noticed that power-hungry aux led) ;)

Hmmm.  And it looks like I've got revision A5 too. :-)  I was  basing
what I said off something I had read on the Openmoko wiki, which seems
to have been incorrect.

$ cat /proc/cpuinfo
snip
Hardware: GTA02
Revision: 24420350
snip

So you're already using the AUX light to let you know when a call or SMS
was missed?  Is this only while the phone is charging and/or not
supended?  How did you get that working?

And as someone else pointed out, illuminating the power LED instead of
the AUX might be a nice idea if the power consumption flaw only exists
for the AUX LED on revision A5.

Nathan

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


Re: blink AUX or power light while suspended?

2009-08-31 Thread Nathan Kinkade
On Mon, Aug 31, 2009 at 07:01:28PM +0200, Sebastian Krzyszkowiak wrote:
  Is that halving the theoretical suspend time (I thought someone was
  claiming a suspend life on about 100 hours) or the real suspend time?
  If we're talking about reducing suspend time to 50 hours, I'd be fine
  with that.  Honestly, I don't think it'd be that much of an issue as I
  would not expect that LED to be on for long.  The point of lighting
  the LED would be to get my attention if I was away from my phone when
  a call or sms came in.  Obviously the LED would be cleared once I
  checked the event.  So, for my usage, I wouldn't expect that LED to
  ever be lit for more than 30 minutes.
 
  -Steven
 
  ___
  Openmoko community mailing list
  community@lists.openmoko.org
  http://lists.openmoko.org/mailman/listinfo/community
 
 
 On GTA02A5 litting AUX LED will reduce suspend time about 10 times (8
 mA suspend current, 50 mA LED current)

My understanding is that most commercially sold Freerunners are revision
6.  Is that incorrect?  If it is correct then according to what someone
else posted, the AUX light should only consume around 6mA.

I too would be willing to live with reduced battery life to have this
feature.  Like Steven said, it's not likely that the light would remain
lit for too long without me noticing it, so the decrease in battery life
would certainly be less than 50%, maybe even only reducing it by 10% or
20% during normal usage.  And if these recent reports of adding a 10uF
capacitor to resolve ticket #1024 are true, then that could mean that
even in a worst case scenario the device could still remain suspended
with the AUX light illumated for perhaps 50 to 70 hours.

For those with revision a5 or who don't want to risk/bother with lower
battery life, this feature could be a configuration option.  Also, I
don't know what drain it puts on the battery, but waking the system just
to check if a call or SMS was missed surely has some power consumption
consequences that can't be totally discounted in this equation.

Nathan

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


Re: blink AUX or power light while suspended?

2009-08-31 Thread Sebastian Krzyszkowiak
On 8/31/09, Nathan Kinkade n...@nkinka.de wrote:
 So you're already using the AUX light to let you know when a call or SMS
 was missed?  Is this only while the phone is charging and/or not
 supended?  How did you get that working?

It's blinking always when there is missed event and phone is not suspended.

I implemented it in opimd and oeventsd. My work is already in
frameworkd (for some long time), but to use that you have to use opimd
based phone apps.

-- 
Sebastian Krzyszkowiak
dos

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


Re: blink AUX or power light while suspended?

2009-08-31 Thread Michal Brzozowski
2009/8/31 Sebastian Krzyszkowiak seba.d...@gmail.com

 On 8/31/09, Nathan Kinkade n...@nkinka.de wrote:
  So you're already using the AUX light to let you know when a call or SMS
  was missed?  Is this only while the phone is charging and/or not
  supended?  How did you get that working?

 It's blinking always when there is missed event and phone is not suspended.

 I implemented it in opimd and oeventsd. My work is already in
 frameworkd (for some long time), but to use that you have to use opimd
 based phone apps.


Any documentation on this?
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: blink AUX or power light while suspended?

2009-08-31 Thread Sebastian Krzyszkowiak
On 8/31/09, Michal Brzozowski ruso...@poczta.fm wrote:
 2009/8/31 Sebastian Krzyszkowiak seba.d...@gmail.com

 On 8/31/09, Nathan Kinkade n...@nkinka.de wrote:
  So you're already using the AUX light to let you know when a call or SMS
  was missed?  Is this only while the phone is charging and/or not
  supended?  How did you get that working?

 It's blinking always when there is missed event and phone is not
 suspended.

 I implemented it in opimd and oeventsd. My work is already in
 frameworkd (for some long time), but to use that you have to use opimd
 based phone apps.


 Any documentation on this?


-
while: NewMissedCalls()
actions: SetLed(gta02_aux_red, blink)
-
while: UnreadMessages()
actions: SetLed(gta02_aux_red, blink)
-

In rules.yaml. Of course instead of SetLed you can use other commands :)

-- 
Sebastian Krzyszkowiak
dos

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


Re: blink AUX or power light while suspended?

2009-08-31 Thread Michal Brzozowski
2009/8/31 Sebastian Krzyszkowiak seba.d...@gmail.com


 -
while: NewMissedCalls()
actions: SetLed(gta02_aux_red, blink)
 -
while: UnreadMessages()
actions: SetLed(gta02_aux_red, blink)
 -

 In rules.yaml. Of course instead of SetLed you can use other commands :)


This may be a stupid question, but how does opimd know that the user has or
hasn't read a message?
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: blink AUX or power light while suspended?

2009-08-31 Thread Sebastian Krzyszkowiak
On 8/31/09, Michal Brzozowski ruso...@poczta.fm wrote:
 2009/8/31 Sebastian Krzyszkowiak seba.d...@gmail.com


 -
while: NewMissedCalls()
actions: SetLed(gta02_aux_red, blink)
 -
while: UnreadMessages()
actions: SetLed(gta02_aux_red, blink)
 -

 In rules.yaml. Of course instead of SetLed you can use other commands :)


 This may be a stupid question, but how does opimd know that the user has or
 hasn't read a message?

By MessageRead field. When it's 1, it's read, when it's 0 it's unread.
Look how opimd-notifier works.

The same for calls, but with New field.

-- 
Sebastian Krzyszkowiak
dos

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


Re: blink AUX or power light while suspended?

2009-08-29 Thread Sebastian Krzyszkowiak
On 8/28/09, arne anka openm...@ginguppin.de wrote:
 This post in that same thread mentions that leaving an LED on would
 halve the battery life while suspended:

 what it says is, _blinking_ would halve it, since blinking would mean
 resume/suspend/resume/suspend ...
 still, there's an issue with the aux led in some versions, which makes it
 eat a lot of power.

Some versions = GTA02A5.

-- 
Sebastian Krzyszkowiak
dos

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


Re: blink AUX or power light while suspended?

2009-08-29 Thread Rask Ingemann Lambertsen
On Fri, Aug 28, 2009 at 11:06:24PM +0200, arne anka wrote:
  This post in that same thread mentions that leaving an LED on would
  halve the battery life while suspended:
 
 what it says is, _blinking_ would halve it, since blinking would mean  
 resume/suspend/resume/suspend ...

   No, leaving it permanently lit would approximately halve battery life.
Suspend current is around 8 mA, AUX LED current is around 6 mA (GTA02
revision 6)[1]. Blinking an LED with repeated resume/suspend cycles would have
a much worse effect on battery life because of all the work the CPU has to
do.

[1] # echo /sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-mbc/usb_curlim 0 \
 sleep 60  cat /sys/class/power_supply/battery/current_now  \
echo /sys/class/leds/gta02-aux\:red/brightness 1  sleep 60  \
cat /sys/class/power_supply/battery/current_now ; \
echo /sys/class/leds/gta02-aux\:red/brightness 0 ; \
echo /sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-mbc/usb_curlim 500
46500
52875

-- 
Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year

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


Re: blink AUX or power light while suspended?

2009-08-28 Thread Steven **
To clarify, is it possible to have the LED's on while in suspend at
all?  Or does the software have to drive the LED high (and default
without software input is off)?

-Steven

On Thu, Aug 27, 2009 at 11:25 PM, Timo Juhani
Lindforstimo.lindf...@iki.fi wrote:
 Nathan Kinkade n...@nkinka.de writes:
 1) Is it even possible for one of those lights to flash intermittently
 while the device is suspended?

 No. Leds are blinked using an FIQ handler which is software.


 ___
 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: blink AUX or power light while suspended?

2009-08-28 Thread Jose Luis Perez Diez
On Fri, Aug 28, 2009 at 7:32 PM, Steven
**montgoss+openmokocommun...@gmail.com wrote:
 To clarify, is it possible to have the LED's on while in suspend at
 all?  Or does the software have to drive the LED high (and default
 without software input is off)?

The leds could be on or off on suspend but need the CPU change their state see:

http://www.mail-archive.com/community@lists.openmoko.org/msg31158.html

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


Re: blink AUX or power light while suspended?

2009-08-28 Thread Nathan Kinkade
On Fri, Aug 28, 2009 at 08:23:46PM +0200, Jose Luis Perez Diez wrote:
 On Fri, Aug 28, 2009 at 7:32 PM, Steven
 **montgoss+openmokocommun...@gmail.com wrote:
  To clarify, is it possible to have the LED's on while in suspend at
  all?  Or does the software have to drive the LED high (and default
  without software input is off)?
 
 The leds could be on or off on suspend but need the CPU change their state 
 see:
 
 http://www.mail-archive.com/community@lists.openmoko.org/msg31158.html

This post in that same thread mentions that leaving an LED on would
halve the battery life while suspended:

http://www.mail-archive.com/community@lists.openmoko.org/msg30964.html

I'm sure it's around somewhere, but does anyone have any data backing
that statement?  What's the power usage to wake the system, see if you
missed anything, then suspend it again?  I might be willing to accept
lower battery life, as long as it was a feature that could be disabled.

Nathan

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


Re: blink AUX or power light while suspended?

2009-08-28 Thread arne anka
 This post in that same thread mentions that leaving an LED on would
 halve the battery life while suspended:

what it says is, _blinking_ would halve it, since blinking would mean  
resume/suspend/resume/suspend ...
still, there's an issue with the aux led in some versions, which makes it  
eat a lot of power.

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


blink AUX or power light while suspended?

2009-08-27 Thread Nathan Kinkade
This may be an ignorant question, since I really don't know what the
device can and can't do while it is suspended.  I have often thought
that it would be great if there were some way to signal a missed call or
SMS without having to wake the system.  The only possible method that
occurs to me is to flash the AUX or power button light.  This brings me
to two questions:

1) Is it even possible for one of those lights to flash intermittently
while the device is suspended?

2) If so, how much battery drain would be involved in flashing one of
the lights very briefly every 10 or 15 seconds?

Nathan

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


Re: blink AUX or power light while suspended?

2009-08-27 Thread Timo Juhani Lindfors
Nathan Kinkade n...@nkinka.de writes:
 1) Is it even possible for one of those lights to flash intermittently
 while the device is suspended?

No. Leds are blinked using an FIQ handler which is software.


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