Active Topics

 



Notices


Reply
Thread Tools
Posts: 462 | Thanked: 550 times | Joined on Sep 2008 @ Moscow
#691
Originally Posted by sr00t View Post
BQ27200 is really buggy in my cellphone: it says my battery is between 50%-29% before (without even displaying it) shuts down completely.
Not accurate at all. I've been using it since the problem with battery temperature display without problems.
After last update, is so inaccurate!
I tried BQ27200 alternative but is more unstable than the original module (it changes battery charge percentages very fast, based on the power usage @ the moment) but even this modified module would warn me that I'm draining out of battery.

I'll try Nokia BME next. Please verify what I say because if this is general, we're in front of an ugly, ugly bug. Thanks a lot.
BQ27200 works fine for me. If it shows weird values to you, you better dig into values bq27x00 kernel module providing.
 

The Following User Says Thank You to 412b For This Useful Post:
Posts: 135 | Thanked: 75 times | Joined on Apr 2011 @ Buenos Aires, Argentina
#692
Originally Posted by 412b View Post
BQ27200 works fine for me. If it shows weird values to you, you better dig into values bq27x00 kernel module providing.
Using kernel-powerv47 here. What should I grep?
I'm sorry if I bother you.
 
Posts: 462 | Thanked: 550 times | Joined on Sep 2008 @ Moscow
#693
Just run in XTerm to get values provided by bq27x00 to HAL:
Code:
hal-device computer_power_supply_battery_bq27200_0
 
Posts: 1 | Thanked: 0 times | Joined on Aug 2011
#694
Originally Posted by 412b View Post
Well, I think problem is some obsolete files not cleaned up by dpkg and apm.
But can anybody also attach output of running
Code:
python -OO /opt/maemo/usr/lib/advanced-power-monitor/apmdaemon.py
and
Code:
ls -Rls /opt/maemo/usr/lib/advanced-power-monitor/
The simpliest solution at the moment is to run as root
Code:
rm -r /opt/maemo/usr/lib/advanced-power-monitor/wrappers/device_mode
Thanks a million!
Solved my problem too after executing.
 
CasTTeLLo's Avatar
Posts: 335 | Thanked: 51 times | Joined on May 2010
#695
Wat does this mean

Nokia-N900:~# rm -r /opt/maemo/usr/lib/advanced-power-monitor/wrappers/device_mode
rm: cannot remove '/opt/maemo/usr/lib/advanced-power-monitor/wrappers/device_mode': No such file or directory

Nokia-N900:~# python -OO /opt/maemo/usr/lib/advanced-power-monitor/apmdaemon.py
Traceback (most recent call last):
File "/opt/maemo/usr/lib/advanced-power-monitor/apmdaemon.py", line 8, in <module>
import AdvancedPowerMonitor
File "/opt/maemo/usr/lib/advanced-power-monitor/AdvancedPowerMonitor.py", line 14, in <module>
from advpowcommon.util.loader import ClassLoader
ImportError: No module named advpowcommon.util.loader
Nokia-N900:~# ls -Rls /opt/maemo/usr/lib/advanced-power-monitor/
__________________
Best Regard,

CasTTeLLo

Last edited by CasTTeLLo; 2011-08-13 at 15:35.
 
Posts: 462 | Thanked: 550 times | Joined on Sep 2008 @ Moscow
#696
Originally Posted by CasTTeLLo View Post
Wat does this mean

Nokia-N900:~# rm -r /opt/maemo/usr/lib/advanced-power-monitor/wrappers/device_mode
rm: cannot remove '/opt/maemo/usr/lib/advanced-power-monitor/wrappers/device_mode': No such file or directory

Nokia-N900:~# python -OO /opt/maemo/usr/lib/advanced-power-monitor/apmdaemon.py
Traceback (most recent call last):
File "/opt/maemo/usr/lib/advanced-power-monitor/apmdaemon.py", line 8, in <module>
import AdvancedPowerMonitor
File "/opt/maemo/usr/lib/advanced-power-monitor/AdvancedPowerMonitor.py", line 14, in <module>
from advpowcommon.util.loader import ClassLoader
ImportError: No module named advpowcommon.util.loader
Nokia-N900:~# ls -Rls /opt/maemo/usr/lib/advanced-power-monitor/
try reinstalling advanced-power-common
and ls couldn't give you no output.
 

The Following User Says Thank You to 412b For This Useful Post:
Posts: 24 | Thanked: 5 times | Joined on Feb 2011
#697
Just wanted to say that 412b's solution worked for me as well. Was getting "devicemodepowerlaunch has not attribute 'get_type'" or some such nonsense before
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#698
I think I *may* have found a bug.

When, for some reasons, applet (or daemon?) can't get some modes data (i.e. bq27200 or nokia bme when bme is disabled), but daemon himself is working right, any attempt to switch mode ends up in control panel (of advanced power monitor) becoming unresponsive.

In fact, it does *not* "hand" - just clicking "save" does nothing. Button highlights, but pop-up with controls doesn't hide. If we cancel it, open it again and try another time, it *does* close as normal upon "save":, but no changes are made. If You check again, GUI returns info about other mode running (from example, if we try to switch from nokia bme to bq27200, 1st attempt fail, 2nd seems to succeed, GUI now tell us that bq27200 is active), but info is still from "old" mode.

Then, 3th attempt to switch fail again - need to cancel it. 4th attempt "succeed" without real change, and so goes on. Just like control panel has got compulsive-obsessive disorder

I know, it's little hard to explain, but I hope my report was understandable. If there is any way that I can help debugging - i.e. some output from somewhere I'll be glad to help.
__________________
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
#699
Do you start/stop bme and load bq27200 on the fly (w/o rebooting)?
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#700
2x nope. It just happens sometime, can't reproduce, but it wasn't "one time mystery error" either. *if* it happens - and I've seen it 2-3 times in last 2 days - it last until reboot.

If it's relevant - I use KP47, with bq27200 enabled as by default.
__________________
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:43.