Thread
:
[Request] Beautify "Conky"
View Single Post
Mentalist Traceur
2010-10-01 , 00:30
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#
93
This should be of interest to everyone using the config files in here to report battery stats (namely current and percent battery capacity left).
I have found that the values reported from "${execi 3 cat /sys/class/power_supply/bq27200-0/capacity}" are significantly different than the values reported by "${execi 30 hal-device bme |grep "percentage" |awk '{print $3;}'}". Namely, when running both in the same conky config file, I currently have the former giving 44, while the latter gives 21.
Alternatively, the ${execi 3 cat /sys/class/power_supply/bq27200-0/current_now} shows values in the 800s - 1000s of microA. I don't know what the hal-device bme command to get current is, but checking Battery graph shows values of ~260-290 (battery graph reports it as mAh, which I assume either stands for Micro- or Milli- Amperes, though I can only assume it's reporting the micro amperes, since milliamperes is stated here as being too large). Either way, Battery Graph and HealthCheck both report the same numbers for current, while Conky gets it wrong. (funny enough, I just checked NetMon's battery status menu, and it's reporting every value as a ? or "acquiring battery info..." Even with every other battery relevant thing closed.
If anyone knows anything about this, I would like to have some insight into what causes the different values reported. (I have HealthCheck, Battery Graph, PowerTOP, Advanced Power applet and NetMon installed (and power kernel, naturally - latest version). I can't think of anything else that interacts with the battery.
- Edit -
I suspect I know why NetMon's battery menu stopped reporting battery stats: I did that thing mentioned in the middle of this thread to permanently modprobe the power kernel's bq27x00_battery module thingy. ("echo bq27x00_battery >> /etc/modules" as root in X-Terminal, then reboot.) (will check around this forum for NetMon related threads/posts on the subject.)
Last edited by Mentalist Traceur; 2010-10-01 at
01:20
. Reason: Contemplation yielded a hypothesis.
Quote & Reply
|
Mentalist Traceur
View Public Profile
Send a private message to Mentalist Traceur
Find all posts by Mentalist Traceur