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)

allnameswereout 2008-11-12 06:50

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by TrueJournals (Post 241228)
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?

OMWeather also sets this. Ideally, this would be set in the Configuration Screen (based on LOCALE).

I like it a lot.

It doesn't tell about swap usage though, nor CPU usage. Some people use load-applet for this (with the 2 bars), but this shows realtime usage.

The entries appear to be clickable while unclickable options are normally grey. So it should be in an info box, or greyed out.

It is also a little bit slow before the information pops up.

qwerty12 2008-11-12 07:05

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by allnameswereout (Post 241247)
It doesn't tell about swap usage though

I'm not a python programmer by any means but by copying the RAM stuff by 412b, I quickly made this:

http://slexy.org/view/s2P5BWtSNa

It doesn't hide automatically however when swap is disabled (I need to read up on python's if statements usage)

bow 2008-11-12 08:47

Re: Pybattery - battery statusbar applet with candies
 
<solved>When I try to install this it says it's missing a couple of application packages. python2.5-hildondesktop and hildon-desktop-python-loader.</solved>


Yeah, silly me, a simple apt-get fixed that... Never mind :)

412b 2008-11-12 12:49

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by BrentDC (Post 241213)
What license are you releasing this under? GPL? I would love to modify it per my needs...

I think it's gonna be GPL or FreeBSD License. You can modify it in any way, but leaving the copyright. May be your needs would be community-wide and implemented in this app :)

412b 2008-11-12 12:50

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by tso (Post 241215)
i just wonder how this will interact with the n800 led indication for a fully charged battery.

On n810 it's as it was before. Just working :)

412b 2008-11-12 12:54

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by TrueJournals (Post 241228)
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.

All the configuration stuff will be implemented later (including localization and regional stuff, I guess).

Quote:

Originally Posted by TrueJournals (Post 241231)
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.

Yeah... Gonna fix it in 0.2.20

412b 2008-11-12 13:00

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by allnameswereout (Post 241247)
It doesn't tell about swap usage though, nor CPU usage. Some people use load-applet for this (with the 2 bars), but this shows realtime usage.

The entries appear to be clickable while unclickable options are normally grey. So it should be in an info box, or greyed out.

It is also a little bit slow before the information pops up.

If swap usage is needed, I can implement it easily in kind of way qwerty12 did it with some difference (code changed a bit in 0.2.19).

About clickable entries... Well, it becomes hardly readable in grey. So it's hard to figure out the best way. I'm testing different solutions.

Popup is speeded up in 0.2.19

dkwatts 2008-11-12 15:07

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by GeneralAntilles (Post 241230)
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).

When current cpu demand does not require max cpu speed, will “conservative” arrive at idle at the same time that “ondemand” arrives at idle?

If yes, then "conservative" is the better setting when on battery.

tso 2008-11-12 16:04

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by 412b (Post 241299)
On n810 it's as it was before. Just working :)

guessing that some brainiac over at nokia turned it of by default if running on a N800 then. grumble...

tso 2008-11-12 16:06

Re: Pybattery - battery statusbar applet with candies
 
Quote:

Originally Posted by dkwatts (Post 241342)
When current cpu demand does not require max cpu speed, will “conservative” arrive at idle at the same time that “ondemand” arrives at idle?

If yes, then "conservative" is the better setting when on battery.

iirc, ondemand goes straight to max clock, then steps downwards.

conservative steps upwards, then goes straight to min clock.


All times are GMT. The time now is 14:33.

vBulletin® Version 3.8.8