Notices


Reply
Thread Tools
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#721
Neither stop/start performed as you described, or reboot solves the problem.

My way of loading bq27x00_battery is via /etc/modules - so, it is loaded very early during boot process. Rationale - this way, it loads before bme, and open path for i2c access for it - so, BME don't complain about something occupying i2c, doesn't generate possible (and dangerous) i2c conflicts, and overall doesn't "know" about neighbor using i2c. (Just for the record - using this method, it's still impossible to turn off and on BME during runtime - for example, via HEN - without modprobe -r bq27x00_battery).

Thinking about that, this is obvious "candidate" for "why APM doesn't see it". Still, it would be great to have option to use it that way, for mentioned reasons.

Thanks for looking into it!

/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!
 

The Following 2 Users Say Thank You to Estel For This Useful Post:
Posts: 462 | Thanked: 550 times | Joined on Sep 2008 @ Moscow
#722
Originally Posted by Estel View Post
Neither stop/start performed as you described, or reboot solves the problem.

My way of loading bq27x00_battery is via /etc/modules - so, it is loaded very early during boot process. Rationale - this way, it loads before bme, and open path for i2c access for it - so, BME don't complain about something occupying i2c, doesn't generate possible (and dangerous) i2c conflicts, and overall doesn't "know" about neighbor using i2c. (Just for the record - using this method, it's still impossible to turn off and on BME during runtime - for example, via HEN - without modprobe -r bq27x00_battery).

Thinking about that, this is obvious "candidate" for "why APM doesn't see it". Still, it would be great to have option to use it that way, for mentioned reasons.

Thanks for looking into it!

/Estel
Do you use kernel-power? And what's the version (perhaps, 49)?
BQ modules depend on kernel-power >= 47 and it seems to be a bug in version parsing in APCommon.
 

The Following User Says Thank You to 412b For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#723
Yes, I use KP49. Would like to provide more debug info, if it's needed - just tell me a way to gather it
__________________
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!
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#724
In case You're wondering, after latest update, bq(...)00 still isn't available, despite being listed in HAL.

/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!
 
Posts: 462 | Thanked: 550 times | Joined on Sep 2008 @ Moscow
#725
Originally Posted by Estel View Post
In case You're wondering, after latest update, bq(...)00 still isn't available, despite being listed in HAL.

/Estel
It's getting really interesting )
What is the content of the apmd log (~/apmonitord.log)?
 

The Following User Says Thank You to 412b For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#726
Code:
Advanced Power Monitor 0.6.0-4
<unknown>

Loaded modules (2/2): DeviceName OSVersion_Maemo

Loading wrappers...

LOADING battery
Loading packages list...
[L] Nokia's BME Alternative
[L] Dummy
[F] BQ27200
[L] Nokia's BME
[F] BQ27200 Alternative
[U] Nokia's BME


LOADED
EXIT
__________________
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!
 
Posts: 61 | Thanked: 64 times | Joined on Oct 2007 @ EU
#727
For comparison, maybe it helps, my case where the BQ module is working with kp49:

Code:
Advanced Power Monitor 0.6.0
RX-51_2009SE_21.2011.38-1_PR_MR0

Loaded modules (2/2): OSVersion_Maemo DeviceName

Loading wrappers...

LOADING battery
Loading packages list...
[L] Nokia's BME
[L] BQ27200
[L] Dummy
[L] BQ27200 Alternative
[L] Nokia's BME Alternative
[U] Nokia's BME


LOADED
EXIT
 

The Following User Says Thank You to yrannadx For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#728
yrannadx, how does you /etc/modules look like? If you're not loading bq27x00_battery from there, how do You do it? does it exist peacefully with bme (at least, until You try to restart bme)?

/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!
 
Posts: 61 | Thanked: 64 times | Joined on Oct 2007 @ EU
#729
Estel, /etc/modules contains bq27x00_battery only.

Seems both modules exist peacefully, at least I am concluding this from the fact that battery properties as reported by bq are different from those reported by bme, for example when bq shown 95% (which is accurate), bme shows 86% and so on.
 

The Following User Says Thank You to yrannadx For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#730
As I'm also using /etc/modules (with bq27x00_battery there, and nothing else), I have no idea why GUI updates available options on Your device, and doesn't do the same on mine. 412b, any ideas?
__________________
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!
 
Reply

Tags
applet, battery, python, statusbar


 
Forum Jump


All times are GMT. The time now is 16:10.