Re: Acustic 'empty battery warning' ?

2008-12-22 Thread john dowd
I'm sure someone has mentioned this application before but just in case, have you ever heard of using the accelerometer to check the batter status? The application that I heard about was: when the application is running, you shake the FR just like you shake an opaque water bottle to determine if

Re: Acustic 'empty battery warning' ?

2008-12-20 Thread François TOURDE
Le 14230ième jour après Epoch, Lothar Behrens écrivait: Am 17.12.2008 um 13:16 schrieb Timo Juhani Lindfors: Lothar Behrens lothar.behr...@lollisoft.de writes: Is there a way to do this ? while true; do if [ `capacity` -lt 10 ]; then alert fi sleep 120 done this is a

Re: Acustic 'empty battery warning' ?

2008-12-19 Thread Petr Vanek
With an FSO based system you could do this easily with help of oevents. In the file /etc/freesmartphone/oevents/rules.yaml exists two entries for actions to be taken when the battery is nearly empty. You could easily edit these entries and do LED actions or play some sound files. The relevant

Re: Acustic 'empty battery warning' ?

2008-12-19 Thread Fox Mulder
Petr Vanek wrote: With an FSO based system you could do this easily with help of oevents. In the file /etc/freesmartphone/oevents/rules.yaml exists two entries for actions to be taken when the battery is nearly empty. You could easily edit these entries and do LED actions or play some sound

Re: Acustic 'empty battery warning' ?

2008-12-18 Thread Michael 'Mickey' Lauer
Depending on your distribution, that should be a one-liner in the rules. See how we blink the red power led on critical status and add an AudioActoin there. :M: ___ Openmoko community mailing list community@lists.openmoko.org

Re: Acustic 'empty battery warning' ?

2008-12-17 Thread Lothar Behrens
Hmm, using the clock to wake me up in the morning would be an option to check the battery. It even wakes up, or boots, if I have shut down the phone :-) If the clock is not at a really alarm time (to wake me up :-), it could configure the next wakeup to check the battery. Is that a

Re: Acustic 'empty battery warning' ?

2008-12-17 Thread William Kenworthy
Doesnt it already do that - I know that in the middle of the night I used to get regularly awakened by a sht sound from the Fr as the battery ran out - oh wait, you mean before ... :) Its actually a good idea - I use a couple of perl scripts to flash the leds in various colours/rates to

Re: Acustic 'empty battery warning' ?

2008-12-17 Thread leonardo
Timo Juhani Lindfors ha scritto: Lothar Behrens lothar.behr...@lollisoft.de writes: Is there a way to do this ? while true; do if [ `capacity` -lt 10 ]; then alert fi sleep 120 done It has passed quite a long time since I upgraded the bootloader, does the FR boots when the

Re: Acustic 'empty battery warning' ?

2008-12-17 Thread Lothar Behrens
Am 17.12.2008 um 13:16 schrieb Timo Juhani Lindfors: Lothar Behrens lothar.behr...@lollisoft.de writes: Is there a way to do this ? while true; do if [ `capacity` -lt 10 ]; then alert fi sleep 120 done this is a starting point :-) Is there also a way when the device is in

Re: Acustic 'empty battery warning' ?

2008-12-17 Thread Neil Jerram
2008/12/17 Lothar Behrens lothar.behr...@lollisoft.de: Hi, I am asking me if it is not possible to get an acustic 'empty battery' warning some time before my phone really get's down. Is there a way to do this ? Qtopia 4.3.2 on FR does it, so I guess there must be a way. Neil

Re: Acustic 'empty battery warning' ?

2008-12-17 Thread Timo Juhani Lindfors
Lothar Behrens lothar.behr...@lollisoft.de writes: Is there a way to do this ? while true; do if [ `capacity` -lt 10 ]; then alert fi sleep 120 done Is there also a way when the device is in suspend mode, to wakeup and do this warning ? I'm guessing yes but I do not know the PMU

Acustic 'empty battery warning' ?

2008-12-17 Thread Lothar Behrens
Hi, I am asking me if it is not possible to get an acustic 'empty battery' warning some time before my phone really get's down. Is there a way to do this ? Is there also a way when the device is in suspend mode, to wakeup and do this warning ? Hope there is a solution. Other mobile

Re: Acustic 'empty battery warning' ?

2008-12-17 Thread Timo Juhani Lindfors
Lothar Behrens lothar.behr...@lollisoft.de writes: Is that a solution if PMU doesn't support us with another solution ? Sure, make the phone wake up every 2 hours to check battery level. ___ Openmoko community mailing list

Re: Acustic 'empty battery warning' ?

2008-12-17 Thread Fox Mulder
the maximum brightness to be 60 and not 90 in this file to save some energy (bright enough to still see everything good). So you can do really nice things with help of the oevents rules. :) Ciao, Rainer Lothar Behrens wrote: Hi, I am asking me if it is not possible to get an acustic 'empty

Re: Acustic 'empty battery warning' ?

2008-12-17 Thread W.Kenworthy
What distro? - clock doesnt work on 2008.9 through to the current testing. BillK On Wed, 2008-12-17 at 14:12 +0100, Lothar Behrens wrote: Hmm, using the clock to wake me up in the morning would be an option to check the battery. It even wakes up, or boots, if I have shut down the

Re: Acustic 'empty battery warning' ?

2008-12-17 Thread Lothar Behrens
It's only an idea. Indeed I currently have ASU 2008/9. Lothar Am 18.12.2008 um 01:10 schrieb W.Kenworthy: What distro? - clock doesnt work on 2008.9 through to the current testing. BillK On Wed, 2008-12-17 at 14:12 +0100, Lothar Behrens wrote: Hmm, using the clock to wake me up in the