![]() |
Advanced Power - battery statusbar applet with candies
2 Attachment(s)
Once upon a time I got tired of the standard battery applet and decided to make my own one. So here is the result.
1. I DO think that it would be better to be written in C, but... 2. I tested it only on n810 (2008, Diablo, 36-5/43-7) and N900 (10.2010.19-1), so testing feedback is highly appreciated. 3. Known issues: - Right after full battery charge it's not 100%, because battery capacity is less than designed value. - CPU governor isn't saved in gconf, so after reboot it's gonna be "ondemand" again. P.S. Hope you enjoy using it ;) Since AP and APM are in Extras, no need for download links, I guess. Garage: Advanced Power Monitor 0.4.1, Advanced Power 0.3.6, themes: Hildon, LCARS, Okuda Fremantle version can be found in extras-devel repo at the moment. Remember to reboot your device if status-menu is messed up Localization templates attached only for Fremantle. P.P.S. If you can make translation to your language for this app, feel free to PM me. |
Re: Pybattery - battery statusbar applet with candies
How about making this the Advanced Power applet? ;) I like where this is heading, though. I can help with icons and UI Mockups if you're interested.
|
Re: Pybattery - battery statusbar applet with candies
Quote:
I'm interested, 'cause I'm using it ;) So you are welcomed. I'm thinking of theme support and settings for hiding/showing info. |
Re: Pybattery - battery statusbar applet with candies
Woah, this is some seriously nice **** :)
How about putting this in the postinst: sed -i 's/^Mandatory/#Mandatory/' /usr/share/applications/hildon-status-bar/hildon-status-bar-battery.desktop at least #6 is done automatically then :) |
Re: Pybattery - battery statusbar applet with candies
Quote:
Each applet will benefit from the shared branding with the others, people will instantly know what it is when you slap "Advanced" on the front of the name. The end result is better for everybody involved. ;) |
Re: Pybattery - battery statusbar applet with candies
Reattach, please. I'm not planning on uninstalling it.
|
Re: Pybattery - battery statusbar applet with candies
When the charger is inserted, is it possible to play the /usr/share/sounds/ui-charging_started.wav sound?
|
Re: Pybattery - battery statusbar applet with candies
Fixed and uploaded.
Quote:
I just don't like that sound on charger connect. |
Re: Pybattery - battery statusbar applet with candies
Quote:
|
Re: Pybattery - battery statusbar applet with candies
CPU Freq Definitions:
conservative = ondemand = same as liqbase? null = powersave = same as liqbase? performance = same as liqbase? |
Re: Pybattery - battery statusbar applet with candies
Quote:
Governors and cpufreq are system-wide... |
Re: Pybattery - battery statusbar applet with candies
Quote:
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" |
Re: Pybattery - battery statusbar applet with candies
dkwatts, yes they are the same.
|
Re: Pybattery - battery statusbar applet with candies
I read "with candles". Made me wonder.
... Thanks for the statusbar applet, I'm trying it out. |
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:
|
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. |
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. |
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. |
Re: Pybattery - battery statusbar applet with candies
Quote:
|
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. |
Re: Pybattery - battery statusbar applet with candies
Quote:
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. |
Re: Pybattery - battery statusbar applet with candies
Quote:
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) |
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 :) |
Re: Pybattery - battery statusbar applet with candies
Quote:
|
Re: Pybattery - battery statusbar applet with candies
Quote:
|
Re: Pybattery - battery statusbar applet with candies
Quote:
Quote:
|
Re: Pybattery - battery statusbar applet with candies
Quote:
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 |
Re: Pybattery - battery statusbar applet with candies
Quote:
If yes, then "conservative" is the better setting when on battery. |
Re: Pybattery - battery statusbar applet with candies
Quote:
|
Re: Pybattery - battery statusbar applet with candies
Quote:
conservative steps upwards, then goes straight to min clock. |
Re: Pybattery - battery statusbar applet with candies
Thank you, thank you, thank you!
Wonderful applet that I have been wanting for ages. It does everything I want (plus, I'm very happy you wrote it in Python so that I can muss with it. Like making it display Fahrenheit ;)). I just have one, kinda weird, request. When the screen is off on the (edit) N810, the led blinks a nice blue color infrequently, right? Well, I was wondering if you could use the led to indicate battery status. Green for high, Blue for ok , do we have a Yellow?, and red for almost dead. Please think about it :D Thanks again for this great applet! It is very much appreciated. |
Re: Pybattery - battery statusbar applet with candies
Quote:
|
Re: Pybattery - battery statusbar applet with candies
seems pybattery is triggering an old classic when it comes to using python inside hildon-desktop.
basically, ones i have activated pybattery, the cpu will stay at max clock, and will remain there even if i turn pybattery of. the only real option for freeing up the cpu so that the cpu can idle and clock down is to kill hildon-desktop. |
Re: Pybattery - battery statusbar applet with candies
Quote:
Do you have python-launcher installed? I have had some sad experience, which leaded to uninstalling it. Does anyone else has such behavior? |
Re: Pybattery - battery statusbar applet with candies
I can confirm the bug. I don't have python-launcher
|
Re: Pybattery - battery statusbar applet with candies
just for the record, yes i have python-launcher installed.
but i have been using some of the home* applets, and they make use of python, without seeing this lately. |
Re: Pybattery - battery statusbar applet with candies
I can confirm. I *wondered* why after installing
advanced (sic)-power my tablet on idle was eating the battery. Pegged at 400mhz!! I wonder what's causing this (otherwise, it is a great app). |
Re: Pybattery - battery statusbar applet with candies
albright, ive run in performance for months now on multiple tablets, running at 400 isn't really the problem, because it still does sleep state things i believe and by far the biggest killers on an idle tablet is the wifi/screen/disk.
however constantly running a naughty process at 400 drains the battery quicker than running a naughty process at 133. |
Re: Pybattery - battery statusbar applet with candies
that is a good point, lcuk. Is there any app which, like
powertop, can tell if the processor is entering low power states properly? In this case, the *only* difference between yesterday (very good battery performance) and today (very poor battery performance, an externally physically warm tablet) is the installation of advanced-power. Once it is killed, and hildon-desktop restarted, you can watch the temperature drop (from mid-thirties C to 20 C - basically ambient temp). Who knows, perhaps whatever causes this problem pegs the processor speed and somehow interferes with the sleep states too. Hopefully, somebody can figure this out. |
Re: Pybattery - battery statusbar applet with candies
albright, one day does not really tell you the exact cause.
i cannot even install it at the moment, but I "feel" how well my device is doing every time i view the stars in liqbase. When it is busy I see the stars stutter and jerk, when completely idle they flow smoothly. really good indicator for me :) |
All times are GMT. The time now is 04:12. |
vBulletin® Version 3.8.8