The Following User Says Thank You to DaSilva For This Useful Post: | ||
![]() |
2010-08-19
, 23:55
|
Posts: 462 |
Thanked: 550 times |
Joined on Sep 2008
@ Moscow
|
#512
|
Your latest debug command shows this:
Code:Nokia-N900:~# python /opt/maemo/usr/lib/advanced-power-monitor/apmdaemon.py Advanced Power Monitor 0.5.2-9 RX-51_2009SE_10.2010.19-1_PR_MR0 Loaded modules (2/2): DeviceName OSVersion_Maemo Loading wrappers... LOADING battery Loading packages list... [L] Nokia's BME [L] Dummy Traceback (most recent call last): File "/opt/maemo/usr/lib/advanced-power-monitor/apmdaemon.py", line 21, in <module> daemon.run() File "/opt/maemo/usr/lib/advanced-power-monitor/apmdaemon.py", line 16, in run self.apm = AdvancedPowerMonitor.apm() File "/opt/maemo/usr/lib/advanced-power-monitor/AdvancedPowerMonitor.py", line 89, in __init__ self.__init_wrappers() File "/opt/maemo/usr/lib/advanced-power-monitor/AdvancedPowerMonitor.py", line 159, in __init_wrappers self.change_wrapper(key, self.get_available_wrappers(key)[0]) File "/opt/maemo/usr/lib/advanced-power-monitor/AdvancedPowerMonitor.py", line 199, in change_wrapper self.__wrappers[key]['object'] = self.__wrappers[key]['list'][self.__wrappers[key]['available'][new_wrapper]](self.__bus) File "/opt/maemo/usr/lib/advanced-power-monitor/wrappers/battery/AbstractBattery.py", line 16, in __init__ AbstractWrapper.__init__(self, bus, check) File "/opt/maemo/usr/lib/advanced-power-monitor/wrappers/AbstractWrappers.py", line 25, in __init__ self.__end_init() File "/opt/maemo/usr/lib/advanced-power-monitor/wrappers/AbstractWrappers.py", line 33, in __end_init self.post_init() File "/opt/maemo/usr/lib/advanced-power-monitor/wrappers/battery/BatteryBME.py", line 27, in post_init self.update_percent() File "/opt/maemo/usr/lib/advanced-power-monitor/wrappers/battery/BatteryBME.py", line 40, in update_percent self.battery_percent = get_formatted_percentage(self.interfaces['BME'].GetPropertyInteger(u'battery.reporting.current'), self.battery_design) NameError: global name 'get_formatted_percentage' is not defined
The Following User Says Thank You to 412b For This Useful Post: | ||
![]() |
2010-08-20
, 05:04
|
Posts: 44 |
Thanked: 9 times |
Joined on Apr 2010
@ Erfurt, Germany
|
#513
|
Code:Nokia-N900:~# python /opt/maemo/usr/lib/advanced-power-monitor/apmdaemon.py Advanced Power Monitor 0.5.2-9 RX-51_2009SE_10.2010.19-1_PR_MR0 Loaded modules (2/2): DeviceName OSVersion_Maemo Loading wrappers... LOADING battery Loading packages list... [L] Nokia's BME [L] Dummy Traceback (most recent call last): File "/opt/maemo/usr/lib/advanced-power-monitor/apmdaemon.py", line 21, in <module> daemon.run() File "/opt/maemo/usr/lib/advanced-power-monitor/apmdaemon.py", line 16, in run self.apm = AdvancedPowerMonitor.apm() File "/opt/maemo/usr/lib/advanced-power-monitor/AdvancedPowerMonitor.py", line 89, in __init__ self.__init_wrappers() File "/opt/maemo/usr/lib/advanced-power-monitor/AdvancedPowerMonitor.py", line 159, in __init_wrappers self.change_wrapper(key, self.get_available_wrappers(key)[0]) File "/opt/maemo/usr/lib/advanced-power-monitor/AdvancedPowerMonitor.py", line 199, in change_wrapper self.__wrappers[key]['object'] = self.__wrappers[key]['list'][self.__wrappers[key]['available'][new_wrapper]](self.__bus) File "/opt/maemo/usr/lib/advanced-power-monitor/wrappers/battery/AbstractBattery.py", line 16, in __init__ AbstractWrapper.__init__(self, bus, check) File "/opt/maemo/usr/lib/advanced-power-monitor/wrappers/AbstractWrappers.py", line 25, in __init__ self.__end_init() File "/opt/maemo/usr/lib/advanced-power-monitor/wrappers/AbstractWrappers.py", line 33, in __end_init self.post_init() File "/opt/maemo/usr/lib/advanced-power-monitor/wrappers/battery/BatteryBME.py", line 27, in post_init self.update_percent() File "/opt/maemo/usr/lib/advanced-power-monitor/wrappers/battery/BatteryBME.py", line 40, in update_percent self.battery_percent = get_formatted_percentage(self.interfaces['BME'].GetPropertyInteger(u'battery.reporting.current'), self.battery_design) NameError: global name 'get_formatted_percentage' is not defined
![]() |
2010-08-20
, 08:19
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#514
|
![]() |
2010-08-20
, 11:47
|
|
Posts: 584 |
Thanked: 700 times |
Joined on Jan 2010
|
#515
|
![]() |
2010-08-20
, 12:01
|
Posts: 462 |
Thanked: 550 times |
Joined on Sep 2008
@ Moscow
|
#516
|
Just one question: Is it possible to show "Charging (∞)" while charging instead of "0:00 / 23:00" (the ∞ should be the unlimited ASCII character)?
The Following User Says Thank You to 412b For This Useful Post: | ||
![]() |
2010-08-20
, 14:59
|
|
Posts: 335 |
Thanked: 51 times |
Joined on May 2010
|
#517
|
![]() |
2010-08-20
, 21:39
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#518
|
I'm thinking of just removing that text while charging.
It's left for Nokia's BME. APM just gets battery capacity and current charge.
I have some patches for correcting estimation in unstable branch, but it's not good enough from my point of view.
![]() |
2010-08-21
, 01:26
|
Posts: 41 |
Thanked: 15 times |
Joined on Jan 2010
@ Finland, Aaland Islands
|
#519
|
![]() |
2010-08-21
, 14:54
|
Posts: 462 |
Thanked: 550 times |
Joined on Sep 2008
@ Moscow
|
#520
|
very nice applet, this is how it should have been made by nokia really.
Anyway, would it be possible to add localization in perhaps a ini file or something? Many of us doesn't use english language on our devices, it just would look better if the applet was the same language as the rest of the OS.
![]() |
Tags |
applet, battery, python, statusbar |
Thread Tools | |
|
After "start apmonitord" the text changes back to "APMD disconnected" even if it seemed to work in the console: