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-01-09 22:00

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by gerstavros (Post 461630)
At me, using ramzez, shows wrong values. Exactly apm doesnīt understand the space used by ramzswap. It seems that it takes the values from "free". 412b, when you complete your current work, it would be nice to try to make apm to take the memory state from /proc/meminfo (where values are right)

It does take it from /proc/meminfo, so deeper investigation needed.

412b 2010-01-09 22:09

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by corsac (Post 461035)
Running on an N900 (from ssh as root)

What version are you using? 0.5.1-3?
I think, I'm gonna add extra version info in output :)
And try run it directly on device. It shouldn't make any difference, but all can happen ;)

EDIT: -src packages had wrong files :( Fixed the building script, so everything should be right.

gerstavros 2010-01-10 11:32

Re: Pybattery - battery statusbar applet with candies
 
Can we upgrade normally, or we still need to remove completely the previous version? (Although i donīt see any problem)

EDIT: i couldnīt upgrade. I īll reinstall

gerstavros 2010-01-10 12:01

Re: Pybattery - battery statusbar applet with candies
 
Big problem here. I removed advanced-power, but cannot remove or reinstall the advanced-power-monitor! What can i do?
Code:

Upgrading advanced-power-monitor 0.5.1-3 to 0.5.1-4
Selecting previously deselected package advanced-power-monitor.
(Reading database ... 21840 files and directories currently installed.)
Preparing to replace advanced-power-monitor 0.5.1-3 (using .../advanced-power-monitor_0.5.1-4_all.deb) ...
invoke-rc.d: not a symlink: "/etc/rc2.d/S60apmonitord"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S60apmonitord"
dpkg: warning - old pre-removal script returned error exit status 102
dpkg - trying script from the new package instead ...
invoke-rc.d: not a symlink: "/etc/rc2.d/S60apmonitord"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S60apmonitord"
dpkg: error processing /media/mmc2/.apt-archive-cache/advanced-power-monitor_0.5.1-4_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 102
invoke-rc.d: not a symlink: "/etc/rc2.d/S60apmonitord"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S60apmonitord"
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 102
Errors were encountered while processing:
 /media/mmc2/.apt-archive-cache/advanced-power-monitor_0.5.1-4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Code:

Uninstalling advanced-power-monitor 0.5.1-3
dpkg: error processing advanced-power-monitor (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 advanced-power-monitor
E: Sub-process /usr/bin/dpkg returned an error code (1)


412b 2010-01-10 12:43

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by gerstavros (Post 462235)
Big problem here. I removed advanced-power, but cannot remove or reinstall the advanced-power-monitor! What can i do?

Hmmm... You didn't made the symlinks fix as I can see... Well, nevertheless you can download advanced-power-monitor-0.5.1-3, install and then remove it, after that install 0.5.1-4. E.g.:
Code:

sudo apt-get --reinstall install advanced-power-monitor && sudo apt-get remove advanced-power-monitor && sudo apt-get install advanced-power-monitor
It's kinda proper way. And make symlinks fix :)

EDIT: Btw, I've installed ramzez. All seems to be OK.

Saturn 2010-01-10 16:39

Re: Pybattery - battery statusbar applet with candies
 
You can also fix it by doing the following (as root):

Code:

mv /etc/rc2.d/S60apmonitord /etc/rc2.d/S60apmonitord.old
apt-get update
apt-get -f install
apt-get install advanced-power-monitor
mv /etc/rc2.d/S60apmonitord.old /etc/rc2.d/S60apmonitord

hope is helps.

gerstavros 2010-01-10 17:02

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 462274)
Hmmm... You didn't made the symlinks fix as I can see... Well, nevertheless you can download advanced-power-monitor-0.5.1-3, install and then remove it, after that install 0.5.1-4. E.g.:
Code:

sudo apt-get --reinstall install advanced-power-monitor && sudo apt-get remove advanced-power-monitor && sudo apt-get install advanced-power-monitor
It's kinda proper way. And make symlinks fix :)

EDIT: Btw, I've installed ramzez. All seems to be OK.

I can't install neither advanced-power-monitor nor advanced-power (any versions)

412b 2010-01-10 17:10

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by gerstavros (Post 462539)
I can't install neither advanced-power-monitor nor advanced-power (any versions)

What did you try? Fixing symlinks? Reinstalling via apt-get?

gerstavros 2010-01-10 17:20

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Saturn (Post 462511)
You can also fix it by doing the following (as root):

Code:

mv /etc/rc2.d/S60apmonitord /etc/rc2.d/S60apmonitord.old
apt-get update
apt-get -f install
apt-get install advanced-power-monitor
mv /etc/rc2.d/S60apmonitord.old /etc/rc2.d/S60apmonitord

hope is helps.

It fixed, but the "apt-get install advanced-power-monitor" has no meening, it's already installed. And the "mv /etc/rc2.d/S60apmonitord.old /etc/rc2.d/S60apmonitord" wiil overwrite the new S60apmonitord

gerstavros 2010-01-10 17:25

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 462556)
What did you try? Fixing symlinks? Reinstalling via apt-get?

reinstalling via apt-get. But now everything seems ok

As about ramzez, at me apm shows that i have ,for example 70 MB free RAM, but according to meminfo i have 30, because 40 MB are used by ramzswap.


All times are GMT. The time now is 23:04.

vBulletin® Version 3.8.8