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 2009-10-20 16:51

Re: Pybattery - battery statusbar applet with candies
 
Advanced Power
Advanced Power Monitor

edt 2009-10-20 17:37

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by edt (Post 352661)
> Was it turned on in control panel? If not it's strange...

In my case it _was_ turned on in the control pannel.

The -3 verson fixed the problem with apmonitord - it starts/stops cleanly without the error on the meter. However the ap icon still does not appear in the task bar - it does ask me to reboot this time though (installed via dpkg -i).

Is there an manual way to start the ap from the command line? Or another way to see what is happening?

412b 2009-10-20 19:05

Re: Pybattery - battery statusbar applet with candies
 
1 Attachment(s)
Quote:

Originally Posted by edt (Post 352888)
Is there an manual way to start the ap from the command line? Or another way to see what is happening?

Unfortunately, debugging Hildon Desktop items is quite complicated.
But I can attach a part of my profiling suite :)
Rename it to test.py, put in /usr/lib/hildon-desktop and run in terminal 'python test.py'.
Copying would need su rights.

Tested clean install and all is OK... I have an idea of what is wrong, but need output from test.py

notnarb 2009-10-20 20:22

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by edt (Post 352661)
> Was it turned on in control panel? If not it's strange...

In my case it _was_ turned on in the control pannel.

same here
http://i35.tinypic.com/jkgflw.png

Nelson L. Squeeko 2009-10-21 13:03

Re: Pybattery - battery statusbar applet with candies
 
Getting the same problem on my device. Installed no problem, turned on in the Control Panel but not visible.

tso 2009-10-21 13:13

Re: Pybattery - battery statusbar applet with candies
 
it does not show up if you close the panels dialog using the ok button?

Nelson L. Squeeko 2009-10-21 15:48

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by tso (Post 353868)
it does not show up if you close the panels dialog using the ok button?

Correct. If the tablet is plugged in when I activate it, it makes the charging noise, so I'm assuming it is running when it does that.

412b 2009-10-21 15:56

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Nelson L. Squeeko (Post 354063)
Correct. If the tablet is plugged in when I activate it, it makes the charging noise, so I'm assuming it is running when it does that.

It means AP didn't startup correctly. Use the small tool I've posted and share the output.
Btw, did everybody with this issue have AP installed before (no matter it purged or just removed)?

Nelson L. Squeeko 2009-10-21 16:41

Re: Pybattery - battery statusbar applet with candies
 
Here's my output when running test.py

Code:

Nokia-N810-43-7:/usr/lib/hildon-desktop# python test.py
/usr/lib/hildon-desktop/advanced_power.py:1020: GtkWarning: Attempting to add a widget with type GtkImage to a container of type GtkAlignment, but the widget is already inside a container of type GtkAlignment, the GTK+ FAQ at http://www.gtk.org/faq/ explains how to reparent a widget.
Traceback (most recent call last):
File "test.py", line 14, in <module>
cProfile.run('main()', 'main_prof')
File "/usr/lib/python2.5/cProfile.py", line 29, in run
File "/usr/lib/python2.5/cProfile.py", line 135, in run File "/usr/lib/python2.5/cProfile.py", line 140, in runctx
File "<string>", line 1, in <module>
File "test.py", line 6, in main
p = advanced_power()
File "ap/advanced_power.py", line 152, in __init__
File "ap/advanced_power.py", line 178, in full_subscribe
KeyError: 'free-diskspace'


412b 2009-10-21 17:21

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Nelson L. Squeeko (Post 354177)
Here's my output when running test.py

Allright :)
It was the thing I thought about.
1. Purge AP
2. Remove dir section of AP in /etc/gconf/gconf.xml.defaults/%gconf-tree.xml
It starts with <dir name="advanced-power"> remove node and subnodes.
3. Install AP again.


All times are GMT. The time now is 03:00.

vBulletin® Version 3.8.8