Active Topics

 


Reply
Thread Tools
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#241
I updated DEB package and mount location should be now same as before.
 

The Following 7 Users Say Thank You to pali For This Useful Post:
Posts: 1,100 | Thanked: 2,797 times | Joined on Apr 2011 @ Netherlands
#242
Originally Posted by pali View Post
I updated DEB package and mount location should be now same as before.
Yep, my issue is fixed now, I do have my old mountpoints back. Thanks for that.
 

The Following 4 Users Say Thank You to ade For This Useful Post:
Posts: 268 | Thanked: 1,053 times | Joined on May 2010 @ The Netherlands
#243
Recently I installed Pali's bme-replacement and status-area-applet-battery from cssu-devel for some battery reporting goodness (and to finally get rid of that bme blob, thanks for making that possible!). Installation was easy and everything seems to be working fine, except for the maximum charge reported by the battery applet.

I'm using a 1500mAh battery in my device, but the applet shows that it is 1272mAh. After each full charge the applet reports ~"1554/1272 mAh" and the battery level stays at 100% until the battery charge drops below 1272mAh. I've successfully calibrated my battery multiple times with bq27200.sh.

It seems that my battery is misreporting its design capacity, and that value is used instead of the (accurate) measured discharge by the bq27200 chip.

Code:
Nokia-N900:~# cat /sys/class/power_supply/rx51-battery/charge_full_design
1272685
Nokia-N900:~# cat /sys/class/power_supply/bq27200-0/charge_full
1564731
Unloading the rx51-battery module makes the applet report the correct battery size. Are there any negative side effects if I leave this module unloaded? Or is there a better solution to make the data from bq27200 take precedence over rx51-battery? Thanks!
 

The Following 5 Users Say Thank You to iDont For This Useful Post:
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#244
Originally Posted by iDont View Post
Unloading the rx51-battery module makes the applet report the correct battery size. Are there any negative side effects if I leave this module unloaded?
Yes, rx51_battery module is used for reporting battery temperature to pulseaudio and dsme. If tou unload it both daemons can stop working (no idea what closed source nokia pulseaudio module doing with temperature)...

Originally Posted by iDont View Post
Or is there a better solution to make the data from bq27200 take precedence over rx51-battery? Thanks!
Yes, recent version of battery applet understand gconf key which can be used for source of design capacity. Look at git commit message for possible values: https://gitorious.org/community-ssu/...ebf53fb6d11a12
 

The Following 8 Users Say Thank You to pali For This Useful Post:
Posts: 268 | Thanked: 1,053 times | Joined on May 2010 @ The Netherlands
#245
Originally Posted by pali View Post
Yes, rx51_battery module is used for reporting battery temperature to pulseaudio and dsme. If tou unload it both daemons can stop working (no idea what closed source nokia pulseaudio module doing with temperature)...



Yes, recent version of battery applet understand gconf key which can be used for source of design capacity. Look at git commit message for possible values: https://gitorious.org/community-ssu/...ebf53fb6d11a12
Yeah, I found that gconf key and set it to 0 (never use design). Unfortunately, whatever I set it to, the max charge remains at 1272mAh .

Here's a diff of my "hal-device bme" output, with rx51-battery module loaded versus without. As soon as I unload the module battery.reporting.last_full will be correct (though other values get lost, supposedly because these come from rx51-battery).
Code:
--- hal-device-with-rx51-battery
+++ hal-device-without-rx51-battery
@@ -3,7 +3,7 @@
   battery.type = 'pda'  (string)
   info.subsystem = 'unknown'  (string)
   info.product = 'Battery (BME-HAL)'  (string)
-  battery.reporting.design = 1277  (0x4fd)  (int)
+  battery.reporting.design = 0  (0x0)  (int)
   battery.reporting.unit = 'mAh'  (string)
   battery.charge_level.unit = 'bars'  (string)
   maemo.charger.connection_status = 'disconnected'  (string)
@@ -12,20 +12,20 @@
   maemo.rechargeable.positive_rate = false  (bool)
   battery.rechargeable.is_charging = false  (bool)
   battery.is_rechargeable = true  (bool)
-  battery.reporting.last_full = 1277  (0x4fd)  (int)
+  battery.reporting.last_full = 1564  (0x61c)  (int)
   battery.charge_level.capacity_state = 'ok'  (string)
-  battery.reporting.current = 1477  (0x5c5)  (int)
+  battery.reporting.current = 1479  (0x5c7)  (int)
   battery.present = true  (bool)
   battery.rechargeable.is_discharging = true  (bool)
-  battery.charge_level.percentage = 100  (0x64)  (int)
-  battery.remaining_time = 34260  (0x85d4)  (int)
-  battery.voltage.design = 4200  (0x1068)  (int)
+  battery.charge_level.percentage = 94  (0x5e)  (int)
+  battery.remaining_time = 27000  (0x6978)  (int)
+  battery.voltage.design = 0  (0x0)  (int)
   battery.voltage.unit = 'mV'  (string)
   info.category = 'battery'  (string)
   info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
   info.udi = '/org/freedesktop/Hal/devices/bme'  (string)
   battery.charge_level.design = 8  (0x8)  (int)
-  battery.voltage.current = 4029  (0xfbd)  (int)
+  battery.voltage.current = 4069  (0xfe5)  (int)
   battery.charge_level.current = 8  (0x8)  (int)
   info.capabilities = { 'battery' } (string list)
   maemo.bme.version = '1.0'  (string)
 

The Following 5 Users Say Thank You to iDont For This Useful Post:
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#246
 

The Following 9 Users Say Thank You to pali For This Useful Post:
Posts: 268 | Thanked: 1,053 times | Joined on May 2010 @ The Netherlands
#247
Originally Posted by pali View Post
@iDont: Try new version on http://atrey.karlin.mff.cuni.cz/~pali/hald-addon-bme
Great succes! This version shows the correct maximum charge without unloading rx51-battery. Thanks .

hal-device bme reports:
battery.reporting.last_full = 1564 (0x61c) (int)
which is correct.
 

The Following 3 Users Say Thank You to iDont For This Useful Post:
Posts: 863 | Thanked: 213 times | Joined on Feb 2012 @ Goa
#248
Originally Posted by iDont View Post
Great succes! This version shows the correct maximum charge without unloading rx51-battery. Thanks .

hal-device bme reports:
battery.reporting.last_full = 1564 (0x61c) (int)
which is correct.
can you plz tell how to use that bme patch by pali?
 
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#249
Now I updated DEB package and pushed changes to gitorious.
 

The Following 3 Users Say Thank You to pali For This Useful Post:
Posts: 126 | Thanked: 160 times | Joined on Aug 2012
#250
Originally Posted by seanmcken View Post
can you plz tell how to use that bme patch by pali?
Updating just these four packages:
bme-rx-51_1.0-1_armel.deb
hald-addon-bme_1.0-1_armel.deb
libbmeipc0_1.0-2_armel.deb
dsme-thermalobject-surface_1.0-1_armel.deb

from here
http://atrey.karlin.mff.cuni.cz/~pal...e-replacement/
 

The Following User Says Thank You to pinochio For This Useful Post:
Reply

Tags
easter egg, lockslider


 
Forum Jump


All times are GMT. The time now is 13:44.