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-22 09:27

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Saturn (Post 354692)
is this what you needed?

Yep :)
I suppose that you don't have /etc/osso_software_version file.
I'll upload all bugfixes tj extras-devel soon.

tso 2009-10-22 13:51

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Fionn (Post 354547)
Hmm.......... got the update notification that updates were available for this last night.

So should I hold off updating or.............?

not seeing a update here...

but i see 0.5.0-4 listed on downloads page...

Saturn 2009-10-22 18:39

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 355150)
Yep :)
I suppose that you don't have /etc/osso_software_version file.
I'll upload all bugfixes tj extras-devel soon.

Hi,

Thanks a lot for following up.

With the last versions (AP 0.4.0-5 and APM 0.5.0-4) I still don't get the taskbar icon..

Here is the result of the profiler:
Code:

Nokia-N800-23-14:/usr/lib/hildon-desktop# python test.py
/usr/lib/hildon-desktop/advanced_power.py:1028: 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 "advanced_power.py", line 152, in __init__
  File "advanced_power.py", line 178, in full_subscribe
KeyError: 'free-diskspace'
Nokia-N800-23-14:/usr/lib/hildon-desktop#

The monitor restart gave:
Code:

Nokia-N800-23-14:/etc/init.d# ./apmonitord restart
Advanced Power Monitor Daemon: apmonitord
Restarting...
Loading modules...
Nokia-N800-23-14:/etc/init.d# LOADED:  TotalRAM
LOADED: CPUFrequency
LOADED: Uptime
LOADED: CPUGovernor
LOADED: Temperature
LOADED: TotalSwap
LOADED: FreeSwap
LOADED: Diskspace
LOADED: CPUGovernors
LOADED: FreeRAM
FAILED: OSVersion
FAILED: LightSensor
done

Loading wrappers...
FAILED: SmartQx
LOADED: Nokia's BME
FAILED: BME Free
LOADED: Dummy
USING:  Nokia's BME

LOADED: HAL USB
LOADED: Dummy
USING:  HAL USB

LOADED: Dummy
LOADED: Nokia's MCE
FAILED: Powerlaunch
USING:  Nokia's MCE

LOADED: Dummy
LOADED: BlueZ
USING:  BlueZ

done

AdvancedPowerMonitor.apm.get_value(): dbus.String(u'light-sensor', variant_level=1)
AdvancedPowerMonitor.apm.get_value(): dbus.String(u'light-sensor', variant_level=1)

Nokia-N800-23-14:/etc/init.d#


Saturn 2009-10-22 18:40

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by tso (Post 355372)
not seeing a update here...

but i see 0.5.0-4 listed on downloads page...

I believe it's in extras too.

412b 2009-10-22 18:45

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Saturn (Post 355743)
Thanks a lot for following up.
With the last versions (AP 0.4.0-5 and APM 0.5.0-4) I still don't get the taskbar icon.

Ok. I still think you didn't clean up gconf, but wait for build 6. It's gonna be in devel in 10-15 minutes. It gonna solve your problem.

EDIT: Extras is not fast enough in a matter of upgrades, unfortunately.

tso 2009-10-22 21:08

Re: Pybattery - battery statusbar applet with candies
 
heh, seems app manager considered a -rc* version higher then a -* version...

uninstalled the rc and things showed up in app manager. -4 installed flawlessly.

Saturn 2009-10-22 21:33

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

Originally Posted by 412b (Post 355763)
Ok. I still think you didn't clean up gconf, but wait for build 6. It's gonna be in devel in 10-15 minutes. It gonna solve your problem.

EDIT: Extras is not fast enough in a matter of upgrades, unfortunately.

YES!! 0.4.0-7 fixed it!!

Only one small problem I see with the extra margin on the top and that it shows the reading from the light sensor.

I will clean up the conf and reinstall.

EDIT::

Just purged and removed all entries in gconf (there were 2 sets of entries), reinstalled etc.

So two small bugs for the future:
- The extra margin went away as soon as I deselected several entries and
- the option for the light sensor and the OS version are missing completely so I cannot deselect them (probably related to the fact that they failed?).

Thank you again.

pinguino89 2009-10-22 21:36

Re: Pybattery - battery statusbar applet with candies
 
installed AP v o.4.o-4 and APM 0.5.0-4, it works well, new bluetooth and usb function are beautiful, but when I boot the devices, the apps says "connecing to AMDS (or something like that, i do not remember) and takes forever to load...like 2 mins....then runs flawlessy...

what's the problem??

412b 2009-10-23 09:42

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Saturn (Post 355924)
So two small bugs for the future:
- The extra margin went away as soon as I deselected several entries

It seems to be a GTK/Hildon issue since AP does nothing special with menu, so I'll take a dive into it to see if it can be fixed.

Quote:

Originally Posted by Saturn (Post 355924)
- the option for the light sensor and the OS version are missing completely so I cannot deselect them (probably related to the fact that they failed?).

Build 8 fixes it. Failed items now are showed neither in statusbar menu nor in settings dialog :)

412b 2009-10-23 09:47

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by pinguino89 (Post 355926)
installed AP v o.4.o-4 and APM 0.5.0-4, it works well, new bluetooth and usb function are beautiful, but when I boot the devices, the apps says "connecing to AMDS (or something like that, i do not remember) and takes forever to load...like 2 mins....then runs flawlessy...

what's the problem??

The problem is in lots of processes running at startup and the fact that APM(D) uses CPU a lot at startup. 2 minutes could be provided by jffs2_gcd_mtd4 process (for me it is so).


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

vBulletin® Version 3.8.8