![]() |
2010-11-02
, 15:52
|
Posts: 429 |
Thanked: 217 times |
Joined on Apr 2010
@ Dubai
|
#62
|
![]() |
2010-11-02
, 16:52
|
Posts: 284 |
Thanked: 74 times |
Joined on Mar 2010
@ Wigan, UK
|
#63
|
i knew this problem would come back and bite me in the a** :P
ofcource there is a way to get around this
ill just need some time to figure it out
ps:the new script is working but has few minor bugs
and the only way to solve it is by solving the problem you have!
because if i want to get around the bug im having and solve it, the script will become really heave
but the N900 knows no impossible!
cheers!
![]() |
2010-11-02
, 18:23
|
Posts: 429 |
Thanked: 217 times |
Joined on Apr 2010
@ Dubai
|
#64
|
![]() |
2010-11-02
, 21:43
|
Posts: 9 |
Thanked: 1 time |
Joined on Feb 2010
@ Hamburg, Germany
|
#65
|
![]() |
2010-11-02
, 23:49
|
Posts: 306 |
Thanked: 566 times |
Joined on Jan 2010
@ Romania
|
#66
|
Hi,
I would love to have this on my N900.
I think, I missed something. It is impossible for me to activate the new patterns. I tried it in the terminal. I can activate / deactivate all the "standard" Patterns but not the new ones. "PatternExample" won't work for me too.
Did I miss something ?!
regards Jonni
The Following User Says Thank You to blue_led For This Useful Post: | ||
![]() |
2010-11-03
, 05:28
|
Posts: 9 |
Thanked: 1 time |
Joined on Feb 2010
@ Hamburg, Germany
|
#67
|
The Following User Says Thank You to xtjonni For This Useful Post: | ||
![]() |
2010-11-03
, 10:46
|
Posts: 429 |
Thanked: 217 times |
Joined on Apr 2010
@ Dubai
|
#68
|
![]() |
2010-11-04
, 22:09
|
Posts: 306 |
Thanked: 566 times |
Joined on Jan 2010
@ Romania
|
#69
|
![]() |
2010-11-04
, 22:20
|
Posts: 429 |
Thanked: 217 times |
Joined on Apr 2010
@ Dubai
|
#70
|
@bakuur
because hal-device bme don't report battery.charge_level.current when phone is in charging mode you can put one IF in your script
Warn: this is not an working code
IF not_charging THEN your script
ELSE my_proposal
my_proposal
assumption: battery level rise linear with voltage
read battery.voltage.current and make some simple math
when this number is close to 4200 this mean battery full
we ( all of us ) must find 0 level voltage . my n900 report 3585 right now and battery low
maybe is not very accurate this but this is better than nothing
better information you can find in bq27200 battery gauge chip but need read on i2c bus
second proposal
because you run an script your script can alter led currents. is safer than edit mce.ini and the script need one pattern only and can be the default pattern so no mce.ini edit needed.
some inspiration here
actual script is is miles ahead
![]() |
Tags |
bakuur, battery, indicator, notification |
|
**Edit** - Ok, what I was thinking wont work so the above question doesnt really matter. I want what you have done - changing colour of led's for the battery charge amount, but I want it whilst its charging so i know roughly how long is left before the battery is full.
The command
Ideally i want both:
- Changing colour led's with the pattern you have got it at now
- Changing colour led's when on charge with the charge pattern
This is so that I know what the battery level is and also whether it is on charge or not.
Do you have any ideas on how to do this?
Last edited by kaos_king; 2010-11-02 at 15:08.