The Following 42 Users Say Thank You to Estel For This Useful Post: | ||
amin007110, banong, branja, chill, computerinfo21, D@vIcHoJD, dovf, elros34, fw190, imo, ivgalvez, J4ZZ, jackburton, Jigzy, Jordi, klinglerware, knuthf, MaKenZi, MartinK, Mentalist Traceur, Mr.bot, mrsellout, nkirk, panjgoori, peterleinchen, ravent-n900, rcolistete, reinob, rewan, saponga, sEKI, shanttu, sifo, sixwheeledbeast, Skaven2k2, spaak74, trlopes1974, tzsm98, vi_, Wikiwide, Xagoln, XiliX |
|
2012-05-24
, 01:14
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#2
|
|
2012-05-24
, 07:39
|
Posts: 112 |
Thanked: 92 times |
Joined on Nov 2010
|
#3
|
|
2012-05-24
, 08:30
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#4
|
The Following 3 Users Say Thank You to vi_ For This Useful Post: | ||
|
2012-05-24
, 11:21
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#5
|
The Following User Says Thank You to reinob For This Useful Post: | ||
|
2012-05-24
, 11:37
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#6
|
The Following 5 Users Say Thank You to Estel For This Useful Post: | ||
|
2012-05-24
, 20:53
|
Posts: 2,290 |
Thanked: 4,134 times |
Joined on Apr 2010
@ UK
|
#7
|
|
2012-05-25
, 17:40
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#9
|
Tags |
battery, bnf script, bq27200, bq27x00, charging |
|
---
bnf 1.2 was uploaded to extras-devel. It is minor release, incorporating changes from tar-only 1.1 into repos version (tar link removed from attachment) + small fix for sudo. Changelog:
- Fixed typo in sudoers file (bnf.sh was present, instead of bnf)
- Back in the repos, ad they're working again
---bnf 1.1 was just released.
Repositories and autobuilder are not working reliably ATM, so extras-* release will arriveChangelog:ifwhen it'severfixed. For now, update from 1.0 is available as attachment to this post. To install, just untar it to /usr/sbin (overwriting old file).- Uses either bq27x00_battery module, or i2cget method, transparently deciding which one is applicable.
- New value - "Average Time Remaining", which shows remaining time, calculated from averaged power usage since last complete charging.
- Minor code cleanup + more things commented for easy code understanding, even for sh beginners.
---bnf 1.0 was just uploaded to extras-devel. Changelog:
bnf is minimalistic, simple tool that display most important informations about battery and charging chip status (gathered via bq27x00_battery module, or i2cget), as notification pop-up message. It process values that need calculating and display them in human-readable format, detect state (charging via USB, wall charger, or discharging) and formatting visible info accordingly.
It's main advantage is, that it displays info from last 5 seconds without influencing output by itself - it's even possible to measure such small things as 3 mA total power usage in echo > sys/power/mem state (via calling it as first thing upon wakeup).
bnf can be called via desktop icon (provided by package), terminal:
bnf works out-of-the box, and doesn't require any configuration.
bnf is licensed under terms of GPL (latest revision). It is provided as-is, without any warranty whatsoever.
---
Credits:
Thanks to shadowjk for method of gathering data via i2cget. I wouldn't be even close to starting it without Your state-of-art bq27200.sh script.
Thanks to merlin1991 and X-Fade, for teaching me about debhelper requirements.
---
FAQ:
---
Q: Nice tool, but I would like it to also display <xyz>...
A: Open /usr/sbin/bnf with any text editor of Your choice and modify it - it's quite easy, in fact, everything is documented to (almost) single command, so adjusting it to own needs should be trivial. This makes bnf great tool for learning few basic things about shell scripting for N900.
Q: How to calibrate battery measurements?
A: See:
http://talk.maemo.org/showpost.php?p...&postcount=846
Instructions are long, but process itself is very straightforward, at least, when You get used to it. I've written it as verbosely as I can, to allow everyone understand what is happening - otherwise, it would be 3-4 liner.
---
First post will be updated when appropriate (with notes left as post, inside this thread).
/Estel
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
Last edited by Estel; 2013-03-19 at 15:18.