|
2011-09-14
, 01:27
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#712
|
|
2011-12-08
, 19:08
|
Posts: 61 |
Thanked: 64 times |
Joined on Oct 2007
@ EU
|
#713
|
With dual batteries, percentage used to show most accurate value of all (after proper calibration of fuel gauge, check my signature "measuring real capacity of battery"). but, it was in times of bq27x00 module.
cat /sys/class/power_supply/bq27200-0/uevent | awk '{FS="="} /CAPACITY/ {cap = $2}; /CHARGE_NOW/ {chnow = int($2/1000)}; /CHARGE_FULL=/ {chfull = int($2/1000)}; /CURRENT_NOW/ {curnow = int($2/1000)}; /EMPTY_NOW/ {empt1 = int($2/3600); empt2 = int($2%3600/60)}; /EMPTY_AVG/ {avg1 = int($2/3600); avg2 = int($2%3600/60)}; /FULL_NOW/ {full1 = int($2/3600); full2 = int($2%3600/60)}; /STATUS/ {isch=$2} END if (isch == "Discharging") {print "Bat: "cap"% ("chnow" /"chfull" mAh)""\nNow: "curnow" mAh ("empt1":"empt2" h/ "avg1":"avg2" hAv)"} else {print "Bat: "cap"% ("chnow" /"chfull" mAh)""\nNow: "curnow" mAh ("full1":"full2" h/ "avg1":"avg2"hAv)"}';echo CPU: `awk '{print " " $1/1000 "MHz /"}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq` `cat /sys/class/power_supply/bq27200-0/temp | awk '{print int($0/10) " C"}'`
|
2011-12-08
, 23:24
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#714
|
|
2011-12-09
, 08:46
|
Posts: 61 |
Thanked: 64 times |
Joined on Oct 2007
@ EU
|
#715
|
The Following User Says Thank You to yrannadx For This Useful Post: | ||
|
2011-12-12
, 11:20
|
Posts: 462 |
Thanked: 550 times |
Joined on Sep 2008
@ Moscow
|
#716
|
For some reasons, advanced power monitor doesn't allow me to choose bq27200 as data source. No big deal, cause using bq27200 disallow HEN usage (to be precise, disallow restarting BME, so after closing hen, resulting BME start causes device to reboot).
But still, I wonder why it's like that. APM just doesn't show bq27200 in list, even if bq27x00_battery module is enabled.
/Estel
|
2011-12-12
, 13:04
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#717
|
|
2011-12-12
, 13:15
|
Posts: 462 |
Thanked: 550 times |
Joined on Sep 2008
@ Moscow
|
#718
|
It seems that it is (listed), but could You specific exact bulletproof method of checking that, so all interested people can use one way of "measuring"? I think that it's going to help avoiding mistakes, and trace down origins of problem (be it on my device side or APM bug).
Thanks in advance,
/Estel
The Following User Says Thank You to 412b For This Useful Post: | ||
|
2011-12-12
, 17:34
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#719
|
lshal | grep bq udi = '/org/freedesktop/Hal/device/computer_power_supply_battery_bq27200_0' info.udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0' (string) linux.sysfs_path = '/sys/class/power_supply/bq27200-0' (string)
|
2011-12-12
, 18:53
|
Posts: 462 |
Thanked: 550 times |
Joined on Sep 2008
@ Moscow
|
#720
|
Sorry - of course method was mentioned before.
Anyway, despite being listed in HAL:
...bq27200 doesn't appear as possible data source in APM settings. the only options I have, are "Nokia's BME", "Nokia's BME Alternative", and "Dummy".Code:lshal | grep bq udi = '/org/freedesktop/Hal/device/computer_power_supply_battery_bq27200_0' info.udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0' (string) linux.sysfs_path = '/sys/class/power_supply/bq27200-0' (string)
/Estel
Battery-Eye like statistics would be nice to have when status menu bar is clicked.
And without clicking, I would like to see the direct voltage (mV) (and maybe not percentage), because the percentage usually doesn't tell the right value with double-battery-pack-hack but the current voltage would.