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)

gerstavros 2009-10-23 11:38

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 356266)
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).

Here i have a serious problem. After some tests, i noticed that apm uses CPU all the time.
The python process has constantly load 0-6% and if cpu is set to on-demand it works on 400Mηz (and drains the battery). If i turn off the apm applet, this doesn't happen.
Is that a bug? Do you know of that?

Fionn 2009-10-23 14:13

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 354558)
On the one hand, why not... Build 3 works as supposed. If you have build 2 or older, upgrade. If you have n810, upgrade.
On the other hand, I'm very interested in Saturn's test.py output...

Upgraded to the version in Extras on my n800.
Unfortunately had the same problem as Saturn i.e. applet not visible in the status bar.

How does one clean up the conf?
I have the gconf editor tool but it doesn't seem to have a delete option :confused:.

Edit: Advanced power doesn't appear to be in my Installed Applications list in Application manager.
I presume it didn't install correctly then? It reported that it had installed and prompted for a reboot :confused:.

When I look in the "Browse installable applications" list in Application manager it lists the following for advanced power:
Code:

advanced-power                      0.4.0-8
advanced-power-|10n-ru-ru            0.3.1-3
advanced-power-monitor              0.5.0-5


412b 2009-10-23 17:42

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by gerstavros (Post 356355)
Here i have a serious problem. After some tests, i noticed that apm uses CPU all the time.
The python process has constantly load 0-6% and if cpu is set to on-demand it works on 400Mηz (and drains the battery). If i turn off the apm applet, this doesn't happen.
Is that a bug? Do you know of that?

It's really strange. When device goes to idle APM don't get any info, so don't use CPU.
My tests gave 0-1.9% of CPU use with all items turned on.
Can you provide top/htop output for APM?
E.g. attach apm.log from running
Code:

top -b | grep $(ps aux | grep 'AdvancedPower' | grep -v 'grep' | awk {'print $3'}) >> /home/user/MyDocs/apm.log
EDIT: And let it cycle for an hour or more. Be careful with diskspace ;)

412b 2009-10-23 17:43

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Fionn (Post 356479)
Upgraded to the version in Extras on my n800.
Unfortunately had the same problem as Saturn i.e. applet not visible in the status bar.

How does one clean up the conf?
I have the gconf editor tool but it doesn't seem to have a delete option :confused:.

Edit: Advanced power doesn't appear to be in my Installed Applications list in Application manager.
I presume it didn't install correctly then? It reported that it had installed and prompted for a reboot :confused:.

When I look in the "Browse installable applications" list in Application manager it lists the following for advanced power:
Code:

advanced-power                      0.4.0-8
advanced-power-|10n-ru-ru            0.3.1-3
advanced-power-monitor              0.5.0-5


Can you provide output of installing via apt-get or Application Manager log?

akorvemaker 2009-10-23 17:49

Re: Pybattery - battery statusbar applet with candies
 
FYI: I cloned the operating system to the internal SD card last night, and now booting from the SD card I don't see the AP icon. I'll do some testing, reinstalling, etc. tonight to see if I can find an easy solution.

Thanks for all the work you do on this, 412b. It's a great addition to the tablets.

gerstavros 2009-10-23 18:11

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by Fionn (Post 356479)
[...]How does one clean up the conf?
I have the gconf editor tool but it doesn't seem to have a delete option :confused:.
[...]

With emelfm2 i had looked to all directories and deleted everything related to apm. Now i don't remember where, but i think you ll be fine if you delete the folder on /etc/osso-af-init/gconf-dir/apps/

gerstavros 2009-10-23 18:40

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 356673)
It's really strange. When device goes to idle APM don't get any info, so don't use CPU.
My tests gave 0-1.9% of CPU use with all items turned on.
Can you provide top/htop output for APM?
E.g. attach apm.log from running
Code:

top -b | grep $(ps aux | grep 'AdvancedPower' | grep -v 'grep' | awk {'print $3'}) >> /home/user/MyDocs/apm.log
EDIT: And let it cycle for an hour or more. Be careful with diskspace ;)

This command doesn't write anything.
When I said that python process has load all the time, i meant when the device is in use and i have opened the process manager of load-applet or running «top» in xterm.

412b 2009-10-23 18:57

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by gerstavros (Post 356714)
This command doesn't write anything.
When I said that python process has load all the time, i meant when the device is in use and i have opened the process manager of load-applet or running «top» in xterm.

This command writes to /home/user/MyDocs/apm.log output of top for AdvancedPowerMonitor process...
Alternatively you can post output of top.

gerstavros 2009-10-23 18:59

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 356741)
This command writes to /home/user/MyDocs/apm.log output of top for AdvancedPowerMonitor process...
Alternatively you can post output of top.

But there is no output! The file was created but empty

I post from my desktop the output:
Code:

0.1 19.9 python
0.3
0.5
0.9
1.5
1.8
1.9
0.3
0.1
1.3
1.5
.......
Is that the cpu load?
load-applet shows 0-6% now


412b 2009-10-23 19:33

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by gerstavros (Post 356745)
But there is no output! The file was created but empty
Is that the cpu load?
load-applet shows 0-6% now

Hmmm, I've got the output, never mind, it's not important now :)
Yep, it's the CPU load...
My load-applet shows 0-1%.
What items do you have turned on?


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

vBulletin® Version 3.8.8