The Following User Says Thank You to pali For This Useful Post: | ||
![]() |
2012-11-07
, 21:10
|
Posts: 805 |
Thanked: 1,605 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#952
|
Problem is that bq27200 chip report only one value (there is no active or ide using). New hald-addon-bme sending that dbus signal too, but both values are same.
See function hald_addon_bme_timeleft_info in https://gitorious.org/rx51-bme-repla...ld-addon-bme.c
... else if (battery_info->power_supply_status == STATUS_DISCHARGING) { CHECK_INT(power_supply_time_to_empty_avg, libhal_device_set_property_int (hal_ctx, udi, "battery.remaining_time", battery_info->power_supply_time_to_empty_avg, NULL)); } ...
... #define BQ27200_UEVENT_FILE_PATH "/sys/class/power_supply/bq27200-0/uevent" ... fp = fopen(BQ27200_UEVENT_FILE_PATH,"r") ... while(fgets(line,sizeof(line),fp)) { char*tmp; tmp = strchr(line,'='); ... else if(!strcmp(line,"POWER_SUPPLY_TIME_TO_EMPTY_AVG")) battery_info->power_supply_time_to_empty_avg = atoi(tmp); ...
signal sender=:1.27 -> dest=(null destination) serial=48 path=/com/nokia/bme/signal; interface=com.nokia.bme.signal; member=battery_timeleft uint32 4260 uint32 180
The Following 4 Users Say Thank You to misiak For This Useful Post: | ||
![]() |
2012-11-07
, 21:26
|
Posts: 424 |
Thanked: 196 times |
Joined on Mar 2010
@ Sweden
|
#953
|
The Following 2 Users Say Thank You to toxaris For This Useful Post: | ||
![]() |
2012-11-07
, 21:47
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#954
|
Hello again.
Still some stange stuff here after the update to the new deb.
I have done a few reboots too.
Link to lshal dump.
http://toxaris.com/lshal.txt
![]() |
2012-11-07
, 21:54
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#955
|
![]() |
2012-11-08
, 13:34
|
Posts: 306 |
Thanked: 38 times |
Joined on Dec 2009
@ Austria
|
#956
|
![]() |
2012-11-08
, 13:46
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#957
|
The Following 2 Users Say Thank You to pali For This Useful Post: | ||
![]() |
2012-11-08
, 16:45
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#958
|
I created new battery status area plugin (based on old MAG version). It work with BME or with bq27x00_battery kernel driver. It is like original Nokia version, plus display percentage, remaining time and capacity.
Please test it and write if this can go to CSSU :-)
Source: https://gitorious.org/~pali/communit...applet-battery
DEB: http://atrey.karlin.mff.cuni.cz/~pal....0-1_armel.deb
The Following User Says Thank You to marmistrz For This Useful Post: | ||
![]() |
2012-11-08
, 21:11
|
Posts: 31 |
Thanked: 95 times |
Joined on Apr 2012
|
#959
|
![]() |
2012-11-10
, 12:46
|
Posts: 424 |
Thanked: 196 times |
Joined on Mar 2010
@ Sweden
|
#960
|
Ok, from your output and log I see that you stopped bme and loaded bq27x00 and bq2415x drivers.
Battery design capacity (which is 0) is read from rx51_battery kernel driver, which is not loaded. But this driver is part of kernel-power v52 (prerelease), so it is not present in v51.
If status menu plugin cannot read design capacity it will try to read last full capacity.
But in HAL log is missing "battery.reporting.last_full" in /org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0 (for bq27200 chip). This can be problem if learning cycle of bq27200 was not complete. Can you write output of this?
$ cat /sys/class/power_supply/bq27200-0/uevent
$ cat /sys/class/power_supply/bq27200-0/charge_full
cat /sys/class/power_supply/bq27200-0/charge_full cat: read error: no data available
The Following User Says Thank You to toxaris For This Useful Post: | ||
See function hald_addon_bme_timeleft_info in https://gitorious.org/rx51-bme-repla...ld-addon-bme.c