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 2008-11-11 21:59

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by dkwatts (Post 241147)
CPU Freq Definitions:
conservative =
ondemand = same as liqbase?
null =
powersave = same as liqbase?
performance = same as liqbase?

What do you mean by "same as liqbase"?
Governors and cpufreq are system-wide...

dkwatts 2008-11-11 22:21

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 241150)
What do you mean by "same as liqbase"?
Governors and cpufreq are system-wide...

Found my answer at http://www.mjmwired.net/kernel/Docum.../governors.txt

Up until now I have been using liqbase scripts to regulate cpufreq:

"sudo /usr/bin/liqbase-cpu-powersave"
"sudo /usr/bin/liqbase-cpu-ondemand"
"sudo /usr/bin/liqbase-cpu-performance"

lcuk 2008-11-11 22:33

Re: Pybattery - battery statusbar applet with candies
 
dkwatts, yes they are the same.

allnameswereout 2008-11-11 23:01

Re: Pybattery - battery statusbar applet with candies
 
I read "with candles". Made me wonder.

...

Thanks for the statusbar applet, I'm trying it out.

qwerty12 2008-11-11 23:36

Re: Pybattery - battery statusbar applet with candies
 
Hrm, noticed original battery applet gets activated when you use my sed conmand line to comment mandatory ;)

Anyway, delete that postinst with just that sed line and make a preinst with:

Quote:

#!/bin/sh

qDesktop=/usr/share/applications/hildon-status-bar/hildon-status-bar-battery.desktop

12MandCheck=`cat $qDesktop | grep Mandatory`

if [ x$12MandCheck = xMandatory=true ]; then
sed -i 's/^Mandatory/#Mandatory/' $qDesktop
fi
Running it as preinst should stop maemo from realising desktop file changed and reenabling original applet.

BrentDC 2008-11-12 03:27

Re: Pybattery - battery statusbar applet with candies
 
Thank you 412b, this is a great addition to my tablet.

I've actually been learning Python for the single purpose of creating an applet just like this! What license are you releasing this under? GPL? I would love to modify it per my needs...

Thank you again.

tso 2008-11-12 03:32

Re: Pybattery - battery statusbar applet with candies
 
heh, watching that percentage drop makes me want to do something about my wifi setup.

i just wonder how this will interact with the n800 led indication for a fully charged battery.

TrueJournals 2008-11-12 04:34

Re: Pybattery - battery statusbar applet with candies
 
Very nice! I modified it once I downloaded it to use farenheit instead of celsius for the temperature (hooray America!) Do you think you could include an option for this?

Also, I think something like acmonitor would be cool incorporated into this. acmonitor lets you have different backlight levels (and baclight settings) for plugged in and running on batteries. I'd like to see cpu governor added to that list, so I could have performance when plugged in, and ondemand for battery usage. Maybe go another step and change it to powersave when the battery gets low.

GeneralAntilles 2008-11-12 04:40

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by TrueJournals (Post 241228)
Maybe go another step and change it to powersave when the battery gets low.

Unless you're constantly using the CPU, this is likely to use more power, as it'll take longer for the CPU to complete tasks and go to idle, and idle is where you want to be as quickly as possible (Race to Idle).

TrueJournals 2008-11-12 04:45

Re: Pybattery - battery statusbar applet with candies
 
Ah, ok. Thanks for the explination. Kind of ironic, isn't it?

Also, I've stumbled upoon a bug: this applet doesn't update when other applications change the cpu governor. I went into liqbase and changed it to performance, but the applet still shows it as ondemand.


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

vBulletin® Version 3.8.8