Notices


Reply
Thread Tools
Posts: 16 | Thanked: 3 times | Joined on Jul 2008
#11
Excellant, solved my problem with not loading above test file format.

replace
p=re.compile('\\[(\w\w\w) (\d+) (\d\d)\d\d)\\] ([\d.]+)');
with
p=re.compile("\\[(\w\w\w) (\d+) (\d\d)\d\d)\\]\\[(\d\d)\d\d)\\] ([\d.]+)");

and
percent = m.group(5)
with
percent = m.group(7)

must be a format difference between my battery-status and others.

This could be a really usefull app. I like plotting graphs, but app writters generally integrate them into something else or use strange static input formats. I can see how battery-graph could be enhanced to covers lots of useful formats, not least CSV.

Excellant app, whish you luck in packaging it up
 
Posts: 40 | Thanked: 21 times | Joined on Nov 2008 @ New York, NY
#12
I modified battery-graph to accept either input format from battery-status. I've updated the download from post #1. Please retrieve it again if you are having problems.
 
Lord Raiden's Avatar
Posts: 1,562 | Thanked: 349 times | Joined on Jun 2008
#13
I wish battery graph could show you which apps were drawing the most power based on load and usage, as well as possibly components. Now I don't know how possible that is, but it'd be worth looking into.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#14
Originally Posted by bluechalk View Post
And need some help in packaging this. I’m not sure where the library should go. And I haven’t mastered the art of putting together a Debian archive. So, here is a tarball to try:
I'm a nice guy. I took the debianisations of youamp and modified them heavily to fit this. This will install battery-graph to /usr/bin, the gtk chart stuff to site-packages. I've also written a desktop file so it can be launched from the menu and I've also added dbus integration. I've left hints in various places about any changes I did.

In a scratchbox, doing a "dpkg-buildpackage -rfakeroot" will produce an ready to install debian package. This could be uploaded to extras if you wanted to (after checking everything first . But also remember that battery-status is not in extras).

http://qwerty12.maemobox.org/battery-graph.tar.bz2
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
Posts: 40 | Thanked: 21 times | Joined on Nov 2008 @ New York, NY
#15
qwerty12: thanks for your help. Can I run dpkg-buildpackage on the N810? If so, where do I get it from?
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#16
Originally Posted by bluechalk View Post
qwerty12: thanks for your help. Can I run dpkg-buildpackage on the N810? If so, where do I get it from?
Because this is a python package and no compiling is needed (in the compiled languages sense anyway) and this doesn't run an configure of any kind, you probably could get the needed stuff from the SDK repo which is from:
https://bugs.maemo.org/show_bug.cgi?id=3405#c6

I'd guess you need dpkg-dev, python2.5-distutils, python2.5-dev. But installing them on an N810 will take copious amounts of space so I'd really do this in a scratchbox where possible.

I tested the package BTW :P, works well . Oh yes, before I forget, you probably want to add an license to that. In setup.py, I've left it as GPL v3 because that was what youamp was and I don't really know what this is licensed under.

Last edited by qwerty12; 2008-11-22 at 07:06.
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Posts: 16 | Thanked: 3 times | Joined on Jul 2008
#17
For packaging, have you tried pyPackager ?

Just used it to create a fake package for libxml2juuiiii that pkgtkeditor upgrade required, so guess it works even for a complete newbie to python and maemo packaging like me.

You may find pygtkeditor useful for on platform development as well.
 

The Following User Says Thank You to neilj For This Useful Post:
Posts: 40 | Thanked: 21 times | Joined on Nov 2008 @ New York, NY
#18
I packaged battery-graph into a deb file, making it easier to download and run.

I also wrote a replacement for battery-status, called battery-info. Its like battery-status, but shows more information. In addition to the battery status, it shows the temperature, the number of bytes of new network traffic and the CPU speed. The network traffic and CPU speed are only shown when you use the -d flag. There is also a -p flag, which analyzes process usage. It shows processes that have accumulated CPU time, and lets you know how many process have come and gone. These two outputs are differential, and are shown starting with the second output with -d.

Instead of dbus signalling, battery-info gets battery status from the lshal command. This should eliminate the problem of activating the battery applet.

I've updated Post #1 with both downloads.
 
allnameswereout's Avatar
Posts: 3,397 | Thanked: 1,212 times | Joined on Jul 2008 @ Netherlands
#19
This is also interesting to plot how fast it goes to 100% while on, while on adapter.

You can also use this to test every day, putting one application off (for example OMWeather; not to bad mouth OMWeather, this is just an example, and besides that the settings of each application affect their CPU cycles as well). This way you can (roughly!) debug which applications use more resources than you wish for.

Originally Posted by tso View Post
i just wish that one had a working powertop variant available.

i know work have been done towards it but i dont recall there being news about a fully working version...
Linking errors.

It requires Linux kernel version >= 2.6.24

So, no (full) WiFi driver. For now.
__________________
Goosfraba! All text written by allnameswereout is public domain unless stated otherwise. Thank you for sharing your output!
 
Posts: 40 | Thanked: 21 times | Joined on Nov 2008 @ New York, NY
#20
I forgot to mention that you need to download rps (the real Linux ps command) from http://www.makikiweb.com/n800/downlo....2.7.armel.deb
to use the -p flag.
 
Reply


 
Forum Jump


All times are GMT. The time now is 06:48.