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)

Laughing Man 2009-05-09 14:16

Re: Pybattery - battery statusbar applet with candies
 
Nevermind, for some reason I thought this had charge and discharge time graphs. Odd, I wonder where that came from then.

tso 2009-05-09 14:42

Re: Pybattery - battery statusbar applet with candies
 
there was a program around that would log the battery level and time of day, so that another could build a graph based on it.

but neither was related to pybattery/advanced power...

munky261 2009-05-13 23:37

Re: Pybattery - battery statusbar applet with candies
 
Is there any noticeable faster batter drain when using this rather than the standard battery applet?

doc_oli 2009-05-28 15:38

Not able to get most up-to-date versions up and running
 
I'm using a N810 with OS version 5.2008.43-7.
I installed APM 0.4.1 and AP 0.3.6 and I just got a red battery icon plus a low battery warning after a few seconds (although the battery was fully loaded) and it was not possible to start APMD from the menu. Then I tried AP 0.3.5 and I just saw an empty slot where the applet icon should be. After installing AP 0.3.4 everything works as expected. No problems so far. I use the original theme and I do not have any other non-Maemo top bar applets running.
Any ideas what prevents my N810 from running AP 0.3.6? Thanks for your help. :)

jself 2009-06-03 17:36

Re: Pybattery - battery statusbar applet with candies
 
Beyond confusnig. What is bme in the project download page? Where do I get this py thingy it's missing that it complains about when trying to install? Another OSS with no documentation, grrrrr.

qole 2009-06-03 21:17

Re: Pybattery - battery statusbar applet with candies
 
jself:

The BME is for Mer, not for Maemo. Don't worry about it.

You need to install the monitor and the applet, that should be all you need.

(I have these apps in my repository, more info at qole.org, so that might make it easier to install for you)

412b 2009-06-03 22:23

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by qole (Post 293481)
The BME is for Mer, not for Maemo

It works under Maemo too ;)

@jself
Use qole's repo or install dependencies via XTerm with extras turned on.

412b 2009-07-31 13:03

Re: Pybattery - battery statusbar applet with candies
 
As I'm finally back home, there gonna be released AP-0.3.7 and APM-0.4.2 with some add-ons and changes. Also release will be in Extras finally ;), if nothing goes wrong...

Soulfunkdup 2009-08-15 01:14

Re: Pybattery - battery statusbar applet with candies
 
I've installed both the monitor and the applet but I get absolutely nothing. I cant find the applet and I dont see any new icons on the status bar.

What am I doing wrong. I'm also a novice so be gentle. ;)

Fionn 2009-08-15 01:44

Re: Pybattery - battery statusbar applet with candies
 
Go to Settings->Control Panel->Panels->Status Bar tab
You should now have an "Advanced Power" option there so tick it and it should then appear.

Soulfunkdup 2009-08-15 01:49

Re: Pybattery - battery statusbar applet with candies
 
Doh!!! I was just in there earlier today snooping around.

Thanks Fionn!!

neville 2009-08-15 03:03

Re: Pybattery - battery statusbar applet with candies
 
hello,

Looking for some assistance please, this program stopped working so I thought I would re-install, but am getting this error ,

/home/user # apt-get remove advanced-power-monitorReading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
advanced-power advanced-power-monitor
0 upgraded, 0 newly installed, 2 to remove and 88 not upgraded.
3 not fully installed or removed.
Need to get 0B of archives.
After unpacking 390kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 32379 files and directories currently installed.)
Removing advanced-power ...
Removing advanced-power-monitor ...
invoke-rc.d: not a symlink: "/etc/rc2.d/S50apmd"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S50apmd"
dpkg: error processing advanced-power-monitor (--remove):
subprocess pre-removal script returned error exit status 102
Cache file created successfully.
invoke-rc.d: not a symlink: "/etc/rc2.d/S50apmd"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S50apmd"
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 102
Errors were encountered while processing:
advanced-power-monitor
E: Sub-process /usr/bin/dpkg returned an error code (1)
/home/user #

Thanks for any help,

Neville

Saturn 2009-08-15 09:08

Re: Pybattery - battery statusbar applet with candies
 
Hi Neville,

you can try the following (with root privileges):

Code:

mv /etc/rc2.d/S50apmd  /etc/rc2.d/S50apmd.off
then repeat the apt-get remove you already tried.
After re-installing those packages you can do the reverse if needed, i.e.
Code:

mv /etc/rc2.d/S50apmd.off  /etc/rc2.d/S50apmd
From the log you posted it seems there are other problems too.
for e.x.
Quote:

0 upgraded, 0 newly installed, 2 to remove and 88 not upgraded.
3 not fully installed or removed.
I would propose to do the following and post the results. (someone might be able to help on your other problems.)

Code:

apt-get update
apt-get -s upgrade

hope it helps, Chris

neville 2009-08-15 13:19

Re: Pybattery - battery statusbar applet with candies
 
Thanks Chris, I did the move and that did the trick, thanks for your support . About the apt-get upgrade, I read somewhere on this forum it was not recommended in Maemo?
Neville

tso 2009-08-15 13:49

Re: Pybattery - battery statusbar applet with candies
 
the -s means that apt-get will simulate a upgrade, but not actually perform it, so one can see if anything will break.

Saturn 2009-08-15 17:16

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by neville (Post 311968)
Thanks Chris, I did the move and that did the trick, thanks for your support . About the apt-get upgrade, I read somewhere on this forum it was not recommended in Maemo?
Neville

Great!

As tso said, the -s will only simulate and will not do any changes. The intention was to check why you are missing so many updates.

It came to me later that you might be in the middle of a broken SSU update caused by those dangling symlinks. Could it be the case?

neville 2009-08-16 06:31

Re: Pybattery - battery statusbar applet with candies
 
I tried the apt-get upgrade -s and a excerpt from the output is,

pre-installed-documentation-rx44 python-gdata
python2.5-Imaging python2.5-edbus
python2.5-edje python2.5-evas
python2.5-runtime zenity
50 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Inst libcomerr2 [1.37-2sarge1] (1.37-2sarge1 Extras:diablo, Extras-devel:diablo)
Conf libcomerr2 (1.37-2sarge1 Extras:diablo, Extras-devel:diablo)


Does this mean anything?

Not sure what you mean by in the middle of a broken SSL ?

Thanks, Neville

Saturn 2009-08-16 11:24

Re: Pybattery - battery statusbar applet with candies
 
Hi, some info on the SSU here: http://wiki.maemo.org/SSU

From your excerpt it can be seen that many python libraries want to get updated, which might be related to your previous problem with the Pybattery (?). Also, in general it is advised to disable the extras-devel repository.

If you'd like to get more advice I would propose to do the following:
Code:

apt-get -s upgrade > /home/user/MyDocs/update_log.txt
The ">" sends the output instead of the screen to a file.

Then attach the update_log.txt file you will create in a new thread and ask for help on which of those updates missing you should install.

412b 2009-08-25 19:35

Road to new versions. RC.
 
So, I decided to share RCs. Feedback is very appreciated.
Advanced Power 0.4.0-rc1
Advanced Power Monitor 0.5.0-rc1
Russian locale for Advanced Power

tso 2009-08-25 21:29

Re: Pybattery - battery statusbar applet with candies
 
bluetooth on (limited)?

tso 2009-08-29 01:44

Re: Pybattery - battery statusbar applet with candies
 
seems there is a bug, where it gets stuck reporting about 95% battery :(

412b 2009-08-29 12:46

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by tso (Post 317709)
seems there is a bug, where it gets stuck reporting about 95% battery :(

Does this happen right after startup? If it's so, then it's already fixed in RC2.

verumgero 2009-08-29 13:14

Re: Pybattery - battery statusbar applet with candies
 
Is RC2 available? Iw as having a similar problem with RC1.

verumgero 2009-08-29 13:16

Re: Pybattery - battery statusbar applet with candies
 
Oh, and I would also like to add that this is problem one of my favorite applications for my n800. I recently reflashed and when I started it up I clicked on the standard battery icon and was just plain let down. I really appreciate all the work you have put into this.

heavyt 2009-08-29 13:21

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 317839)
Does this happen right after startup? If it's so, then it's already fixed in RC2.

For me it does not show a decrease. It will show 26% and if I reboot it will show low battery for a few seconds then back to 26% after "apmd" flash in the upper right hand part of the screen. Is there a link to RC2?

412b 2009-08-29 13:54

Re: Pybattery - battery statusbar applet with candies
 
I will release it in the evening and post links here. Right now, you can just execute
Code:

sudo /etc/init.d/apmonitord restart
in XTerm to restart monitor, so applet will connect to it in a proper way.

heelio 2009-08-29 14:21

Re: Road to new versions. RC.
 
Always reports <1 min on the times even w/90+% battery life.

heelio 2009-08-29 17:13

Re: Pybattery - battery statusbar applet with candies
 
I must also report I am stuck at 94.1% battery; been there since I rebooted. At least a couple hours.

tso 2009-08-29 17:31

Re: Pybattery - battery statusbar applet with candies
 
did you try the daemon restart?

412b 2009-08-29 18:55

Re: Road to new versions. RC.
 
Quote:

Originally Posted by heelio (Post 317860)
Always reports <1 min on the times even w/90+% battery life.

Time left may become unsupported in AP. I'm still thinking of removing it or leaving. It depends on amount of people needing it.

412b 2009-08-29 19:08

Re: Pybattery - battery statusbar applet with candies
 
RC2
Advanced Power Monitor 0.5.0-rc2
Advanced Power 0.4.0-rc2

heelio 2009-08-30 03:14

Re: Pybattery - battery statusbar applet with candies
 
I can't get that link to work.

412b 2009-08-30 11:58

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by heelio (Post 318153)
I can't get that link to work.

It does work...

akorvemaker 2009-09-11 17:23

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 318002)
Time left may become unsupported in AP. I'm still thinking of removing it or leaving. It depends on amount of people needing it.

For what it's worth, I like having it, even if it's not perfectly accurate. It gives me a nice rough idea of what the power level is.

On a different note: The icon doesn't update for me unless I change between the default and GTK theme. If it's plugged in when one theme is set, it always shows as plugged in. If the battery is full, it always shows as full. When I change to or from the GTK theme it seems to recheck and shows whatever is applicable then, but doesn't update. It's been like this since I reflashed the OS several months ago.

I haven't tried the RC2 yet. I'm using AP 0.3.6 and APM 0.4.1

akorvemaker 2009-09-11 19:42

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by akorvemaker (Post 325479)
The icon doesn't update for me unless I change between the default and GTK theme.

Looks like I was wrong. It doesn't update unless the Battery option is shown in the drop-down. I had it hidden and was just showing the Idle Time and Active Time remaining. Adding the Battery % back makes the icon update properly.

KristianW 2009-09-12 10:51

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 318007)

(N810, OS .43-7, boots from int.mmc,
Adv. power installed from extras)

Just tried updating to these from garage.
All OK until after reboot :
"Connecting to APMD" (or similar) went on for minutes.

Tried RC1 versions, > no status bar icon.
Uninstalled, reinstalled extras versions, seems OK.

What did I miss or do wrong ?


EDIT: What is the differeence between rc1 and rc2 ?

412b 2009-09-12 11:32

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by KristianW (Post 325769)
Just tried updating to these from garage.
All OK until after reboot :
"Connecting to APMD" (or similar) went on for minutes.

It's quite strange... It's a pity you have no logs, I can't debug it as it never occurred to me...

Quote:

Originally Posted by KristianW (Post 325769)
Tried RC1 versions, > no status bar icon.
...
What did I miss or do wrong ?

Try purging current release and installing RC.

Quote:

Originally Posted by KristianW (Post 325769)
EDIT: What is the difference between rc1 and rc2 ?

Almost all of the difference is in code. For end-user there is difference in speed/memory and a bit of UI.

I'm going to release RC3 this weekend (I guess, tomorrow) in which APM has nice things like code optimizations (and AP), polling and notifying only battery info (if AP is subscribed to it) while system inactivity, working timeleft info (updated), almost end-variant architecture of wrappers and a bit of packaging cleanups.

KristianW 2009-09-12 15:42

Re: Pybattery - battery statusbar applet with candies
 
Tell me how to make logs, and I'll be happy to repeat and supply them.
Me: New to linux, almost.

notnarb 2009-09-13 09:11

Re: Pybattery - battery statusbar applet with candies
 
if I didn't rely so heavily on this application, I would happily test the RC versions, thank you for all of your continued work on this project.

412b 2009-09-14 11:45

Re: Pybattery - battery statusbar applet with candies
 
RC3
Advanced Power Monitor 0.5.0-rc3
Advanced Power 0.4.0-rc3
Advanced Power Russian locale 0.2

This RC is a pre-release. Before installing it purging previous versions is highly recommended.

For testing purposes APM can be restarted in xterm, so you can get some output...
Logging for AP is not implemented yet.
AP crashes for me, when I manipulate with bluetooth from standard bt statusbar item. Sometimes hildon-desktop crashes, but I haven't figured out the reasons, perhaps, some other software is the reason.
This RC has final wrappers structure, new wrappers can be added without adding import for them in any file. I should have written docs for sure... I guess doc will be available with release.


All times are GMT. The time now is 20:48.

vBulletin® Version 3.8.8