maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] BatteryGraph (https://talk.maemo.org/showthread.php?t=44831)

jwittema 2010-04-06 11:09

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by exe (Post 596661)
- Add a legend for colors in the exported image, as it is now i wouldnt know if a user set a color for something i cannot see (not too important)

Could be useful, but will require a reasonable amount of work. May happen someday...

Quote:

Originally Posted by exe (Post 596661)
- Add a background color selection (could be easier to adjust colors for the colorblind like me lol), and also allow for adjusting transparency values (if possible, it would be nice to have a transparent wifi/grps such that colors dont interfere with each other)

Background color: could be done, but then you would probably want to change the grid color too :)
Transparency: I tried that for charging status, but it made kinetic scrolling kinda slow. Right now only the part of the graph that is visible is drawn. Kinetic scrolling performance could be improved by drawing the entire (which right now can be 21 days wide) graph into memory, but that will cause a noticeable delay when enabling or disabling graph elements (because the entire graph needs to be redrawn) and cause a higher memory usage.

Quote:

Originally Posted by exe (Post 596661)
- Allow for splitting the exported graph into chunks (as a programmer i realize that to make this really versatile, you would have to define a start time and a period for each of the chunks but it would primarily be helpful to compare day-by-day battery consumption so a fixed daily period would do wonders for a start ;)

Could be useful, I'll see if I can add a simple start and stop date selection for the exported image.

Quote:

Originally Posted by gaute (Post 597436)
I have three suggestions:
- Logging network traffic on either interface (GPRS/3G and WLAN, i.e. two graphs: one for 3G/GPRS and one for WLAN, both combining RX and TX bytes)
- Logging call duration
- Logging cell signal strength

Interesting suggestions, will require some further research though on whether these are possible. And this will make the graph even more complex :)

gaute 2010-04-06 16:29

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by jwittema (Post 597527)
Interesting suggestions, will require some further research though on whether these are possible. And this will make the graph even more complex :)

Well, I presume you read the posts I linked to - I posted some suggestions as to how to extract the info. The only thing I'm not sure of is how to extract data from the builtin, accumulated call timers (as accessed from the phone app's menu).

Commander 2010-04-07 17:25

Re: [Announce] BatteryGraph
 
Hello,

it is normal that the CPU Graph is between 40-50% when the N900 is shutdown and hangs on the power supply?

Helmuth 2010-04-07 22:00

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by Commander (Post 599682)
it is normal that the CPU Graph is between 40-50% when the N900 is shutdown and hangs on the power supply?

No. :) I would suggest to restart the phone.

jwittema 2010-04-08 17:59

Re: [Announce] BatteryGraph
 
BatteryGraph version 0.3.2 can now be found in Extras-Testing

Changelog
  • Changed fullscreen toggle to double click and menu option
  • Added option to configure drawing of charging bars
  • Small layout changes for upcoming Qt4.6

j-a-k 2010-04-09 07:14

Re: [Announce] BatteryGraph
 
1 Attachment(s)
why does it indicate that the battery is always charging. I think you invented free energy.

jwittema 2010-04-09 08:02

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by Commander (Post 599682)
it is normal that the CPU Graph is between 40-50% when the N900 is shutdown and hangs on the power supply?

Quote:

Originally Posted by j-a-k (Post 602312)
why does it indicate that the battery is always charging. I think you invented free energy.

If you shutdown your device, the background daemon is no longer running and therefore is not collecting any data.

This will cause incorrect display in the graph, because no charger connect and disconnect events and cpu load data are recorded. Cpu load is therefore shown as the last known value during the period your device was shutdown.

Ronaldo 2010-04-10 01:40

Re: [Announce] BatteryGraph
 
how do i reset the app?

cheers

jwittema 2010-04-10 11:14

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by Ronaldo (Post 603693)
how do i reset the app?

To reset all settings to default values you can remove the config file /home/user/.config/BatteryGraph/BatteryGraph.ini

To reset the database you can remove the database file /home/user/.BatteryGraph/BatteryGraphDB.sqlite (but then you would probably have to reset your device before the background daemon will record new data).

You can also drop the tables from the database with the following commands in a terminal (or only 1 if you want to delete something specific):
Code:

sqlite3 /home/user/.BatteryGraph/BatteryGraphDB.sqlite "drop table data"
sqlite3 /home/user/.BatteryGraph/BatteryGraphDB.sqlite "drop table connection"
sqlite3 /home/user/.BatteryGraph/BatteryGraphDB.sqlite "drop table cpu"
sqlite3 /home/user/.BatteryGraph/BatteryGraphDB.sqlite "drop table charging"

After that you would only need to run BatteryGraph to automatically recreate the tables.

PS the above is untested but should work :D

Ronaldo 2010-04-10 11:23

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by jwittema (Post 604039)
To reset all settings to default values you can remove the config file /home/user/.config/BatteryGraph/BatteryGraph.ini

To reset the database you can remove the database file /home/user/.BatteryGraph/BatteryGraphDB.sqlite (but then you would probably have to reset your device before the background daemon will record new data).

You can also drop the tables from the database with the following commands in a terminal (or only 1 if you want to delete something specific):
Code:

sqlite3 /home/user/.BatteryGraph/BatteryGraphDB.sqlite "drop table data"
sqlite3 /home/user/.BatteryGraph/BatteryGraphDB.sqlite "drop table connection"
sqlite3 /home/user/.BatteryGraph/BatteryGraphDB.sqlite "drop table cpu"
sqlite3 /home/user/.BatteryGraph/BatteryGraphDB.sqlite "drop table charging"

After that you would only need to run BatteryGraph to automatically recreate the tables.

PS the above is untested but should work :D

Thank you, i deleted BatteryGraphDB.sqlite last night and RS phone and it worked

j-a-k 2010-04-11 02:35

Re: [Announce] BatteryGraph
 
It seems like after I turn the device on it should realize that it is no longer connected to the charger. You can see in the pic where it was turned on, yet it still indicates that it is being charged??

jwittema 2010-04-11 12:15

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by j-a-k (Post 604903)
It seems like after I turn the device on it should realize that it is no longer connected to the charger. You can see in the pic where it was turned on, yet it still indicates that it is being charged??

Can be done, will be fixed in next release

racinfo 2010-04-13 06:43

Re: [Announce] BatteryGraph
 
Jerome, if you have a heavier battery in the N900 uses remains the current display it on the default value, you can make a difference, eg menu the maximum flow (capacity battery) change so that the average current values again more accurate ? It would be a donation worth

Heavier batteries include. 1930 and was the Mugen 2400 mAh.

Jeroen, indien je een zwaardere batterij in de N900 toepast dan blijft de stroom aangave toch op de standaard waarde staan; kun je hier iets aan doen, bijv. in menu de max stroom (capaciteit accu) wijzigen zodat de gemiddelde stroomwaarden ook weer meer kloppen? Het zou mij een donatie waard zijn ;)

Zwaardere batterijen zijn oa. de gold 1930 en Mugen 2400 mAh.

jwittema 2010-04-13 10:55

Re: [Announce] BatteryGraph
 
The problem is that HAL/BME is unable to report the correct charge for batteries with higher capacity. See https://bugs.maemo.org/show_bug.cgi?id=9789

Scaling the current charge-reading to 1930 or 2400 mAh would not make it any more accurate. You could just as well use the percentage reading which seems to be coupled to the charge reading anyway, i.e. 50% with a 2400 mAh battery would suggest about 1200 mAh left.

shadowjk 2010-04-13 13:45

Re: [Announce] BatteryGraph
 
With the 2400mAh mugen it depends on how warm the battery is at boot. Beyond a certain point, the battery meter starts displaying 100% all the time, and then jump from 100% to 0% in one big step.

The battery bars remain slightly more useful though.

assetburned 2010-04-13 23:50

Re: [Announce] BatteryGraph
 
hmm not necessary in one big step but it looks a bit strange. I have a battery labeled with 1800mAh (i will remove the label tomorrow to see if the cell got a different note) and the graph looks a bit... strange.

jwittema do you know how the graph for the bars and the percentage is calculated? i mean is it something you read directly out of an eeprom or is it something your app calculates?

i tried to figure that out with the two different batteries, but wasn't able to get a proper answer by myself.

shadowjk 2010-04-14 12:50

Re: [Announce] BatteryGraph
 
The mAh and percentage is supplied by bme, which only gives vaguely correct values for fresh original batteries and well-made third party batteries

jwittema 2010-04-14 13:51

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by assetburned (Post 609535)
jwittema do you know how the graph for the bars and the percentage is calculated? i mean is it something you read directly out of an eeprom or is it something your app calculates?

BatteryGraph gets battery readings from HAL/BME, you can view the readings yourself by running "lshal -u /org/freedesktop/Hal/devices/bme" in a terminal.

rooted 2010-04-14 20:42

Re: [Announce] BatteryGraph
 
I have a feature request (easy one). And that is RAM and swap usage on graph.

And also a possibility to disable logging of certain resources by the daemon (smaller database, less resources used).

By the way, more apps polished like that!

assetburned 2010-04-15 00:32

Re: [Announce] BatteryGraph
 
oh yes... i can agree to that, more good looking apps please. BatteryGraph is really some eye candy stuff :-)

Patroclo 2010-04-19 17:20

Re: [Announce] BatteryGraph
 
Yesterday an upgrade was put, but on my phone I don't see the upgrade. I checked, but it says nothing.

zimon 2010-04-19 17:28

Re: [Announce] BatteryGraph
 
Should Bluetooth and USB network be with WLAN color? Now it seems like Bluetooth-TCP/IP would be GPRS/UMTS.

jwittema 2010-04-19 18:49

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by rooted (Post 610820)
I have a feature request (easy one). And that is RAM and swap usage on graph.

And also a possibility to disable logging of certain resources by the daemon (smaller database, less resources used).

By the way, more apps polished like that!

Easy request doesn't mean easy to implement :)
There are other values which might be interesting to monitor as well, I will look into it when I have some more time.
Monitoring more values does also result in a bigger database, so an option to disable the monitoring of some values might indeed be usefull.

Quote:

Originally Posted by Patroclo (Post 618001)
Yesterday an upgrade was put, but on my phone I don't see the upgrade. I checked, but it says nothing.

Strange, it showed up on my device...
Maybe you need to be more patient?

Quote:

Originally Posted by zimon (Post 618010)
Should Bluetooth and USB network be with WLAN color? Now it seems like Bluetooth-TCP/IP would be GPRS/UMTS.

Hmm, I never made a bluetooth or usb network connection, so not sure if the difference is logged by the daemon. But the graph drawing code is "if connection type is wlan use wlan-color else use grps-color".

Could you send me your database (/home/user/.BatteryGraph/BatteryGraphDB.sqlite)?
Or check for yourself if anything other than "WLAN_INFRA" or "GRPS" is logged in the database by running the following command (one line) in a terminal
Code:

sqlite3 /home/user/.BatteryGraph/BatteryGraphDB.sqlite ".dump table connection"

fms 2010-04-22 05:15

Re: [Announce] BatteryGraph
 
Got another idea: How about also plotting temperature sensor values?

Helmuth 2010-04-26 12:46

Re: [Announce] BatteryGraph
 
1 Attachment(s)
Okay. What about the possibility for the user to calculate graphically the left time with the actual Battery usage?

It should be easy to use. In my mind it's only a line with a fixed point at the end of the actual graph (percentage). The user can move the left side (blue pinhead) of the line and can change the angle of the line resulting a intersection on the other side of the line with the x-axis. Battery Graph shows the exact time the Battery reaches 0% with the angle the user has given.

I have drawn a fast mockup. I hope the developer like the Idea: :)

phase315 2010-06-26 19:47

Re: [Announce] BatteryGraph
 
Does anyone know why ever since I updated to PR 1.2, I haven't been able to see a graph? I just get a black screen with the side bars telling me: Bars, Volts, Percent, etc.

m1o6d 2010-06-28 18:32

Re: [Announce] BatteryGraph
 
i have been seeing the batterygraph on pr1.2 but a week ago i also got a black screen just like phase315 does anyone know what this is?

bertolt 2010-07-14 20:03

Re: [Announce] BatteryGraph
 
now i am confused. the cpu in this app shows 50% usage constant for about an hr now, but cpumem applet shows minimal cpu, so does conky. i restarted the phone...still same cpu usage...

Cue 2010-07-27 17:01

Re: [Announce] BatteryGraph
 
I also get a black screen now in batterygraph it was working fine before even on PR1.2 but my battery completely finished when I replaced it I was asked to set the time date, etc. ever since battery graph shows a blank screen. Anybody want to take a guess as to what is actually wrong here?

Helmuth 2010-07-29 15:13

Re: [Announce] BatteryGraph
 
Hmm... I'm not the developer... but perhapt you can try to delete your database. (you can find how here somewhere in this thread)

must4get 2010-08-08 14:50

Re: [Announce] BatteryGraph
 
I have used battery graph to analyze battery usage with various settings, I am happy with BatteryGraph. My review here

shanrizvi 2010-09-06 15:19

Re: [Announce] BatteryGraph
 
Hey.

I have a feature request/suggestion for BatteryGraph. Instead of relying entirely on graphical representation, would it not be amazing to be able to see exactly how much time (in total, sum of all individual sessions) was spent using WiFi, 3G GPRS, 2G GPRS and on the phone?

I suppose the daemon must have this information and its just a matter of presenting it in a different way.

gohan2091 2010-09-06 16:23

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by shanrizvi (Post 808683)
Hey.

I have a feature request/suggestion for BatteryGraph. Instead of relying entirely on graphical representation, would it not be amazing to be able to see exactly how much time (in total, sum of all individual sessions) was spent using WiFi, 3G GPRS, 2G GPRS and on the phone?

I suppose the daemon must have this information and its just a matter of presenting it in a different way.

That would be nice!

shadowjk 2010-09-07 03:58

Re: [Announce] BatteryGraph
 
Define "using" and "and on the phone".

atilla 2010-11-01 16:56

Re: [Announce] BatteryGraph
 
4 Attachment(s)
hello guys.i have a strange behavior in batterygrph and i don't now why.
it seems that i have every line twice,and the cpu isn't showed.
here are some pics:

mirakels 2010-11-01 19:14

Re: [Announce] BatteryGraph
 
you probably had your date wrong (e.g. i the future ) some time causing batterygraph records in the future. I had that once and it 'resolved' automatically when the future date passed.

You can also play with sqlite trying to find the bogus records and delete them.

Or just delete your batterygraph datafile but that will off coarse erase your battery hsitory (that again may not be a problem because the history is kept for only 30 days by default I think(

atilla 2010-11-01 19:19

Re: [Announce] BatteryGraph
 
ok so i can just erease the database?will batterygraph make a new one?

zlatko 2010-11-02 09:06

Re: [Announce] BatteryGraph
 
Have been a "cure" found to false representation of CPU usage in BatteryGraph? Since yesterday I have false reading of constant 10% CPU usage, top doesn't show any abnormal behavior - usage aprox. 2-3% as usual. I have deleted DB,but problem persist.

PS. I have read the topic, but have not found any definitive answer.

NokiaRocks 2010-11-02 09:34

Re: [Announce] BatteryGraph
 
My BatterGraph shows a very hight usage the whole time (while idling) too but top only shows 2-3%.
I was wondering if it's real usage or just a bug.
http://www.abload.de/thumb/screensho...102-07un3s.png
(2 to 6am)

zlatko 2010-11-02 12:13

Re: [Announce] BatteryGraph
 
1 Attachment(s)
@NokiaRocks
The issue I am having is a bit different - it seems like the "ground zero" of CPU usage had shifted down 10% and when the phone is idle I have 10% usage, instead of usual 1-2%. You can see it from attached image.
I had such problem earlier this year, but know I can not remember how I solved it.


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

vBulletin® Version 3.8.8