maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Pybattery - battery statusbar applet with candies (https://talk.maemo.org/showthread.php?t=24905)

412b 2010-02-07 15:32

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by gerstavros (Post 512572)
Can't you edit the title of the thread?

Nope :(
I guess moders can...

KristianW 2010-02-20 13:52

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 505733)
I
Again a Hildon Desktop restart. Hmmm... Try version from extras-devel. Perhaps, you'll need to clean up GConf.
Btw, did you make the reboot as it was proposed?

Thanks for all the info!
Yes, I made the reboot after installing, as required.

As I'm perfectly happy with the older version, I guess I'll wait awhile before upgrading again.

It's a great app!

DaSilva 2010-03-18 12:03

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 511645)
It's called Advanced Power and isn't released for Fremantle at the moment. Advanced Power Monitor (main daemon) is to be released for Fremantle this month.
Nearest Roadmap:
1. Promote stable for Diablo Extras.
2. Release new AP and APM in Extras Devel (fully customizable with user defined menus, info and actions).
3. Release GUI for Fremantle, based on Extras Devel release.

Thanks.
Any updates on this?

412b 2010-03-18 15:05

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by DaSilva (Post 571751)
Thanks.
Any updates on this?

Got lot of things to do for a long term besides AP(M), but:
1. It is almost done, I need to contact with a distmaster of autobuilder admin to fix the bug with package section.
2. GConf part and testing are left.
3. Small progress. After announcing MeeGo there may be no sense in it.

412b 2010-04-26 12:02

Re: Pybattery - battery statusbar applet with candies
 
I finally bought N900, so... )))

davidgro 2010-04-27 04:16

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 628216)
I finally bought N900, so... )))

Will you still be maintaining it for those of us who don't buy an N900?

412b 2010-04-27 05:22

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by davidgro (Post 629268)
Will you still be maintaining it for those of us who don't buy an N900?

I still have my N810 ;) And I do know, that a lot of people here use N8x0 devices.

412b 2010-05-07 20:05

Re: Pybattery - battery statusbar applet with candies
 
2 Attachment(s)
A small teaser )))
AP on N900 replaces the standard battery applet ;)

tso 2010-05-08 00:06

Re: Pybattery - battery statusbar applet with candies
 
nice work, i keep getting angrier at nokia for not making a non-phone maemo5 device.

tho i guess there may be hope, if meego ever becomes popular enough.

corsac 2010-05-08 09:40

Re: Pybattery - battery statusbar applet with candies
 
HMhm, any ETA for availability of AP on M5?

hycraig 2010-05-08 09:47

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 648566)
A small teaser )))
AP on N900 replaces the standard battery applet ;)

Looks great i can't wait to try it.

Blinde 2010-05-11 13:47

Re: Pybattery - battery statusbar applet with candies
 
When can we except release?

I want it :)

412b 2010-05-11 14:03

Re: Pybattery - battery statusbar applet with candies
 
If only I had some free time... At the current stage all that is needed is packaging for AP and APM for Maemo 5, APM for OS2008.

Blinde 2010-05-12 16:18

Re: Pybattery - battery statusbar applet with candies
 
Maybe someone who knows this stuff could help?

I'm sorry but I don't much about programming etc.

Blinde 2010-05-23 13:35

Re: Pybattery - battery statusbar applet with candies
 
Any news on development?

DaSilva 2010-07-07 11:59

Re: Pybattery - battery statusbar applet with candies
 
Maybe you could release it first without packaging if you don't have enough time 412b and someone from the community could do the rest!?

rexii23 2010-07-08 07:45

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by DaSilva (Post 743611)
Maybe you could release it first without packaging if you don't have enough time 412b and someone from the community could do the rest!?

+1 for this suggestion! I would really like to test it out!

akorvemaker 2010-08-08 18:46

Re: Pybattery - battery statusbar applet with candies
 
I'm having problems viewing the icons since installing the Diablo5 theme. I'd like to try just purging everything related to Advanced Power (& Monitor) and starting fresh. I've done an "apt-get --purge advanced-power advanced-power-monitor". Now I'd like to purge any remaining config files. Can anyone point me in the right direction?

Thanks!

412b 2010-08-16 15:08

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by akorvemaker (Post 779707)
I'm having problems viewing the icons since installing the Diablo5 theme. I'd like to try just purging everything related to Advanced Power (& Monitor) and starting fresh. I've done an "apt-get --purge advanced-power advanced-power-monitor". Now I'd like to purge any remaining config files. Can anyone point me in the right direction?

Thanks!

There should be no config files left except gconf.

412b 2010-08-16 15:08

Re: Pybattery - battery statusbar applet with candies
 
1 Attachment(s)
Coming soon.

CasTTeLLo 2010-08-16 16:22

Re: Pybattery - battery statusbar applet with candies
 
will be waiting....

akorvemaker 2010-08-16 23:03

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 788176)
There should be no config files left except gconf.

Thanks! That fixed it.

In case anyone else is having the problem, I used "gconftool --recursive-unset /apps/advanced-power" and "gconftool --recursive-unset /schemas/apps/advanced-power", reinstalled advanced-power and advanced-power-monitor, rebooted, and it works (as long as I don't set it to use the gtk theme).

Andy

math2 2010-08-17 12:14

Re: Pybattery - battery statusbar applet with candies
 
When will the Great status bar battery app be available??

412b 2010-08-17 12:34

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by math2 (Post 789271)
When will the Great status bar battery app be available??

If Monitor is packaged right (had no time to test it since yesterday), then during this week it will be available in extras-devel.

DaSilva 2010-08-17 21:09

Re: Pybattery - battery statusbar applet with candies
 
I have just tried to install in from extras-devel on my N900 and this is the error output:

Code:

Setting up advanced-power (0.4.1-7) ...
Loaded modules (1/1): DeviceName

Loading wrappers...
Setting up fcam-drivers (1.0.6-1) ...
Loading packages list...
LOADED: Nokia's BME
FAILED: Dummy
FAILED: BME Free
Please read and acknowledge the important notice displayed on the N900's screen
Traceback (most recent call last):
  File "/opt/maemo//usr/lib/advanced-power-monitor/AdvancedPowerMonitorDaemon.py", line 23, in <module>
    daemon.process_args()
  File "/usr/lib/python2.5/site-packages/advpowcommon/util/daemon.py", line 108, in process_args
    self.start()
  File "/usr/lib/python2.5/site-packages/advpowcommon/util/daemon.py", line 64, in start
    self.run()
  File "/opt/maemo//usr/lib/advanced-power-monitor/AdvancedPowerMonitorDaemon.py", line 18, in run
    self.apm = AdvancedPowerMonitor.apm()
  File "/opt/maemo/usr/lib/advanced-power-monitor/AdvancedPowerMonitor.py", line 87, in __init__
    self.__init_wrappers()
  File "/opt/maemo/usr/lib/advanced-power-monitor/AdvancedPowerMonitor.py", line 155, in __init_wrappers
    self.change_wrapper(key, self.get_available_wrappers(key)[0])
  File "/opt/maemo/usr/lib/advanced-power-monitor/AdvancedPowerMonitor.py", line 194, 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


DaSilva 2010-08-17 21:35

Re: Pybattery - battery statusbar applet with candies
 
Update from 0.5.2-4:

Code:

Setting up advanced-power-monitor (0.5.2-4) ...
Advanced Power Monitor Daemon: apmonitord
python: can't open file '/opt/maemo//usr/lib/advanced-power-monitor/AdvancedPowerMonitorDaemon.py': [Errno 2] No such file or directory


412b 2010-08-17 21:35

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by DaSilva (Post 789788)
I have just tried to install in from extras-devel on my N900 and this is the error output:

Code:

Setting up advanced-power (0.4.1-7) ...
Loaded modules (1/1): DeviceName

Loading wrappers...
Setting up fcam-drivers (1.0.6-1) ...
Loading packages list...
LOADED: Nokia's BME
FAILED: Dummy
FAILED: BME Free
Please read and acknowledge the important notice displayed on the N900's screen
Traceback (most recent call last):
  File "/opt/maemo//usr/lib/advanced-power-monitor/AdvancedPowerMonitorDaemon.py", line 23, in <module>
    daemon.process_args()
  File "/usr/lib/python2.5/site-packages/advpowcommon/util/daemon.py", line 108, in process_args
    self.start()
  File "/usr/lib/python2.5/site-packages/advpowcommon/util/daemon.py", line 64, in start
    self.run()
  File "/opt/maemo//usr/lib/advanced-power-monitor/AdvancedPowerMonitorDaemon.py", line 18, in run
    self.apm = AdvancedPowerMonitor.apm()
  File "/opt/maemo/usr/lib/advanced-power-monitor/AdvancedPowerMonitor.py", line 87, in __init__
    self.__init_wrappers()
  File "/opt/maemo/usr/lib/advanced-power-monitor/AdvancedPowerMonitor.py", line 155, in __init_wrappers
    self.change_wrapper(key, self.get_available_wrappers(key)[0])
  File "/opt/maemo/usr/lib/advanced-power-monitor/AdvancedPowerMonitor.py", line 194, 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


I forgot to add dependency for advanced-power-monitor )
AP and APM are in testing at the moment, so be careful and ready to fix some stuff from XTerm, when installing.
I'll make a post, when it will be harmless to install it all )

412b 2010-08-17 21:42

Re: Pybattery - battery statusbar applet with candies(
 
Quote:

Originally Posted by DaSilva (Post 789812)
Update from 0.5.2-4:

Code:

Setting up advanced-power-monitor (0.5.2-4) ...
Advanced Power Monitor Daemon: apmonitord
python: can't open file '/opt/maemo//usr/lib/advanced-power-monitor/AdvancedPowerMonitorDaemon.py': [Errno 2] No such file or directory


That's what I told about XTerm :)
As root:
Code:

mkdir /opt/maemo/usr/lib/advanced-power-monitor
dpkg -P advanced-power-monitor
mkdir /opt/maemo/usr/lib/advanced-power-monitor
dpkg -P advanced-power-monitor

Maybe you'll be mor lucky and 1 mkdir & dpkg will be enough, but I wasn't :)
That bug is fixed in build 4 (postrm bug, in fact).

DaSilva 2010-08-17 21:50

Re: Pybattery - battery statusbar applet with candies
 
Thanks, that did the trick and now it is running :)

412b 2010-08-17 23:03

Re: Pybattery - battery statusbar applet with candies
 
AP build 9 is stable enough for use :)

IceJunior 2010-08-18 08:16

Re: Pybattery - battery statusbar applet with candies
 
For me it doe's not work. I installed it via Application Manager and rebooted the device. After that my CPU usage stucked at 100% (xorg) and I got a battery icon with a red cross in my status area.

Did I miss something?

Thanks :)

math2 2010-08-18 08:17

Re: Pybattery - battery statusbar applet with candies
 
After installation the CPU has a usage of 100% for Xorg. Afterinstall en restart it has a CPU-usage of 0-10% again.

IceJunior 2010-08-18 08:22

Re: Pybattery - battery statusbar applet with candies
 
..and it shows no in information for me... Just 'Starting APMD'

janezek 2010-08-18 10:10

Re: Pybattery - battery statusbar applet with candies
 
install it, status bar the same, only the 100% cpu usage of Xorg :S
reboot, the same, uninstall, still 100% cpu :S

what to do?

412b 2010-08-18 10:31

Re: Pybattery - battery statusbar applet with candies
 
I can confirm Xorg taking much CPU, but after reboot it came to normal state. I'm making some research to figure out the reasons.

What builds are used?
And please post output of
Code:

python /usr/lib/hildon-desktop/advanced_power.py 1

IceJunior 2010-08-18 11:38

Re: Pybattery - battery statusbar applet with candies
 
Code:

loaded. Starting gtk.main()
thats the output.

I use the newest version of the app I think.

Maybe it won't work because of the powerkernel?

412b 2010-08-18 11:56

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by IceJunior (Post 790339)
Code:

loaded. Starting gtk.main()

This means it starts correctly... Hmmm...
Can you also provide output of running as root
Code:

stop apmonitord
start apmonitord

in XTerm and content of /tmp/apmonitord.log after running?

Quote:

Originally Posted by IceJunior (Post 790339)
I use the newest version of the app I think.

It should be Advanced Power 0.4.1.-10 and Advanced Power Monitor 0.5.2-6

Quote:

Originally Posted by IceJunior (Post 790339)
Maybe it won't work because of the powerkernel?

I don't think it's the reason, because it's not working with straightly with kernel stuff, if standard battery applet works with power-kernel, then it also should. But test from power-kernel users is highly appreciated.

IceJunior 2010-08-18 12:09

Re: Pybattery - battery statusbar applet with candies
 
Content of the logfile

Code:

Advanced Power Monitor 0.5.2-4
Loaded modules (1/1): DeviceName

Loading wrappers...
Loading packages list...
LOADED:        Nokia's BME
LOADED:        Dummy
FAILED:        BME Free

and after stop/start the apmonitord the output is

Code:

apmonitord (start) waiting
apmonitord (start) starting
apmonitord (start) pre-start
apmonitord (start) spawned, process 1602
apmonitord (start) post-start, (main) process 1602
apmonitord (start) running, process 1602

My CPU usage of xorg is still 100%

gabby131 2010-08-18 12:21

Re: Pybattery - battery statusbar applet with candies
 
have same issue, but im glad its being looked after. thanks. :)

412b 2010-08-18 12:22

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by IceJunior (Post 790382)
Content of the logfile

Code:

Advanced Power Monitor 0.5.2-4
Loaded modules (1/1): DeviceName

Loading wrappers...
Loading packages list...
LOADED:        Nokia's BME
LOADED:        Dummy
FAILED:        BME Free


Is there line 'USING: Nokia's BME'? It should be in the log file.

Quote:

Originally Posted by IceJunior (Post 790382)
and after stop/start the apmonitord the output is

Code:

apmonitord (start) waiting
apmonitord (start) starting
apmonitord (start) pre-start
apmonitord (start) spawned, process 1602
apmonitord (start) post-start, (main) process 1602
apmonitord (start) running, process 1602

My CPU usage of xorg is still 100%

Yep... For unknown for me at the moment reason Xorg starts using CPU at the level of 100%, when apmonitord is stopped... Right after reboot it's normal on my device...


All times are GMT. The time now is 15:36.

vBulletin® Version 3.8.8