![]() |
Re: Pybattery - battery statusbar applet with candies
i just updated to the latest version also and now the status bar applet isn't working. it says "APMD Starting" and stays like that after i tried to start it.
|
Re: Pybattery - battery statusbar applet with candies
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 Code:
ls -Rls /opt/maemo/usr/lib/advanced-power-monitor/ Code:
rm -r /opt/maemo/usr/lib/advanced-power-monitor/wrappers/device_mode |
Re: Pybattery - battery statusbar applet with candies
2 Attachment(s)
Same problem frpm the latest update. Output attached.
(And your workaround also worked for me, so thanks for posting) |
Re: Pybattery - battery statusbar applet with candies
Quote:
Tonite I had another release: a daughter ))) |
Re: Pybattery - battery statusbar applet with candies
Quote:
|
Re: Pybattery - battery statusbar applet with candies
Congratulations! Take Your time :)
|
Re: Pybattery - battery statusbar applet with candies
Which module should i choose to have longer battery?? Now iam using nokias bme...can u xplain wat the differences betw them??
|
Re: Pybattery - battery statusbar applet with candies
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. |
Re: Pybattery - battery statusbar applet with candies
Quote:
|
Re: Pybattery - battery statusbar applet with candies
Quote:
1. Nokia's BME (incl. Alternative) 2. BQ27200 (incl. Alternative) If you don't know what is BME and what is bq27x00, use BME. |
Re: Pybattery - battery statusbar applet with candies
Quote:
|
Re: Pybattery - battery statusbar applet with candies
Quote:
I'm sorry if I bother you. |
Re: Pybattery - battery statusbar applet with candies
Just run in XTerm to get values provided by bq27x00 to HAL:
Code:
hal-device computer_power_supply_battery_bq27200_0 |
Re: Pybattery - battery statusbar applet with candies
Quote:
Solved my problem too after executing. |
Re: Pybattery - battery statusbar applet with candies
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/ |
Re: Pybattery - battery statusbar applet with candies
Quote:
and ls couldn't give you no output. |
Re: Pybattery - battery statusbar applet with candies
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 :)
|
Re: Pybattery - battery statusbar applet with candies
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. |
Re: Pybattery - battery statusbar applet with candies
Do you start/stop bme and load bq27200 on the fly (w/o rebooting)?
|
Re: Pybattery - battery statusbar applet with candies
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. |
Re: Pybattery - battery statusbar applet with candies
Quote:
Nevertheless when it happens again as root edit /opt/maemo/usr/lib/hildon-desktop/advpowlib/core/maemo5.py Remove # sign in line # self.__create_settings_box() (about line 112). Then run that often posted line (python /usr/lib/hildon-desktop/advanced_power.py 1) and attach log. Also as root run 'stop apmonitord && start apmonitord' and attach /home/user/apmonitord.log |
Re: Pybattery - battery statusbar applet with candies
As for kp48, bq27x00 module is depreciated, and can't be used together with bme.
ho ever, all bq27200 (fuel gaude) data can be accessed by other means - via i2cget tools. I've attached file with method of getting data via i2cget. I've took this from shadowjk's bq27200 script. It need i2cget placed in "./", but maybe You can use i2ctools as dependency and use other path for accessing it. Of course, it requires root privileges, to access data via i2cget. Currently, it's only thing lacking in Your wonderful application to be fully compatible with kp48, so, if by any chance, You can replace bq27x00 with this, it would be great. Of course, method via i2cget works also in kp47 or earlier version, so it's more compatible method. |
Re: Pybattery - battery statusbar applet with candies
Quote:
Polling data from i2c can bring additional overhead to APM and partly is an exception of async nature of wrappers in APM, nevertheless, I'll try to make a beta wrapper module for it ASAP, 'cause at the moment I'm more looking into adding Bleeding Edge to AIS than upgrading AP/APM. |
Re: Pybattery - battery statusbar applet with candies
(After vacation and happily forgotten all N900-tweaking stuff I couldn't recognize this "Pybattery" thread was related to problems why my "apmd" doesn't work anymore after upgrading from KP47 to KP48. The apmd thread was so quiet. Maybe the title of this thread could be changed abit to mention apmd or apmonitord?)
Code:
# uname -a The battery icon in the status bar is grey and in the status menu "Start APMD. APMD disconnected". start apmonitord gives: # start apmonitord apmonitord (start) waiting apmonitord (stop) starting apmonitord (stop) starting apmonitord (stop) waiting start: apmonitord respawning too fast, stopped |
Re: Pybattery - battery statusbar applet with candies
Quote:
Can uoy also attach output of Code:
lshal | grep bq Quote:
|
Re: Pybattery - battery statusbar applet with candies
1 Attachment(s)
Sorry, of course lack of attachment is my mistake. Here it is:
As for changing topic name - can't you do that by editing Your first post? you should see thread title there... |
Re: Pybattery - battery statusbar applet with candies
Quote:
|
Re: Pybattery - battery statusbar applet with candies
Quote:
Code:
Nokia-N900:~/battery# lshal | grep bq |
Re: Pybattery - battery statusbar applet with candies
Quote:
Quote:
So at the moment I can only fix bug with BQ module being marked as available. |
Re: Pybattery - battery statusbar applet with candies
Hi, sorry for bothering, but I believe I have a feature request:
Whilst I love to be able to see the percentage, I find the hours it shows kinda... not really helpful. They almost never match or make much sense. SO, would you mind to take a look at what is implemented on Battery-Eye (not Battery-Graph) on its statistics tab, where it shows almost "exactly" what will happen to your phone based in previous data? (1/3 lowest consumption, 1/3 normal consumption, 1/3 highest consumption)÷(present consumption) and then use this data to make predictions? I believe something like that would make PyBattery 100 times more useful than it already is. Thank you! |
Re: Pybattery - battery statusbar applet with candies
Quote:
Battery-Eye like statistics would be nice to have when status menu bar is clicked. And without clicking, I would like to see the direct voltage (mV) (and maybe not percentage), because the percentage usually doesn't tell the right value with double-battery-pack-hack but the current voltage would. |
Re: Pybattery - battery statusbar applet with candies
With dual batteries, percentage used to show most accurate value of all (after proper calibration of fuel gauge, check my signature "measuring real capacity of battery"). but, it was in times of bq27x00 module.
Now, there is option to check it via i2cget, but according to 412b, there is currently no good approach to probe this info constantly, without using too much power/resources. |
Re: Pybattery - battery statusbar applet with candies
Quote:
Knowing how much time is left for full charge and how much fuel is needed to charge, is a feature I have never seen before in any other phone. Current now is also very useful value, I could see for example that immediately after stand-by, the consumption is usually at 5-6 mAh and with this value the phone will stay in stand-by for about 9 days which is amazing. I am using only original batter at about 1236 mA full. I also calibrated the fuel gauge before, with kp48, I am not sure if this calibration method is possible with kp49. People wanting to check real battery values, can use the following commands in either Queen BeeCon either in Desktop Commands: Code:
cat /sys/class/power_supply/bq27200-0/uevent | awk '{FS="="} /CAPACITY/ {cap = $2}; /CHARGE_NOW/ {chnow = int($2/1000)}; /CHARGE_FULL=/ {chfull = int($2/1000)}; /CURRENT_NOW/ {curnow = int($2/1000)}; /EMPTY_NOW/ {empt1 = int($2/3600); empt2 = int($2%3600/60)}; /EMPTY_AVG/ {avg1 = int($2/3600); avg2 = int($2%3600/60)}; /FULL_NOW/ {full1 = int($2/3600); full2 = int($2%3600/60)}; /STATUS/ {isch=$2} END if (isch == "Discharging") {print "Bat: "cap"% ("chnow" /"chfull" mAh)""\nNow: "curnow" mAh ("empt1":"empt2" h/ "avg1":"avg2" hAv)"} else {print "Bat: "cap"% ("chnow" /"chfull" mAh)""\nNow: "curnow" mAh ("full1":"full2" h/ "avg1":"avg2"hAv)"}';echo CPU: `awk '{print " " $1/1000 "MHz /"}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq` `cat /sys/class/power_supply/bq27200-0/temp | awk '{print int($0/10) " C"}'` |
Re: Pybattery - battery statusbar applet with candies
For some reasons, advanced power monitor doesn't allow me to choose bq27200 as data source. No big deal, cause using bq27200 disallow HEN usage (to be precise, disallow restarting BME, so after closing hen, resulting BME start causes device to reboot).
But still, I wonder why it's like that. APM just doesn't show bq27200 in list, even if bq27x00_battery module is enabled. /Estel |
Re: Pybattery - battery statusbar applet with candies
I have all 5 modules listed in APM, Nokia's BME, BQ27200, etc. When choosing BME the percentage is wrong, but when choosing BQ the percentage is very accurate. Unfortunately, I don't know low level details of how these things works.
|
Re: Pybattery - battery statusbar applet with candies
Quote:
|
Re: Pybattery - battery statusbar applet with candies
Quote:
Thanks in advance, /Estel |
Re: Pybattery - battery statusbar applet with candies
Quote:
Quote:
|
Re: Pybattery - battery statusbar applet with candies
Sorry - of course method was mentioned before.
Anyway, despite being listed in HAL: Code:
lshal | grep bq /Estel |
Re: Pybattery - battery statusbar applet with candies
Quote:
|
All times are GMT. The time now is 20:56. |
vBulletin® Version 3.8.8