maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop (https://talk.maemo.org/showthread.php?t=74305)

sakya 2011-06-24 11:06

QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
Hi! :)

QtBatteryWidget is just another battery widget for the N900.

It can display: voltage, charge, temperature and time left.
In the settings window you can choose the informations to display, the type of percentage (module bq27x00, standard or dr_frost_dk based on his battery meter widget), the percentage style (graphical, standard progressbar or textual) and the widget opacity.

The percentage and time left are updated when a dbus signal is emitted by the system, so time left can take some time to update.
If you want to update it click on the widget.

The time left is based on actual consumption (only if module bq27x00 or the command i2cget is present) or from the last percentage change.

The battery's graphic was made by Joppu
http://talk.maemo.org/showthread.php?t=31279

Screenshot:
http://www.assembla.com/spaces/qtbat...4r4iNteJe5cbLr

Homepage: http://www.assembla.com/spaces/qtbatterywidget/wiki
Package: http://maemo.org/packages/view/qtbatterywidget/
Donations: https://www.paypal.com/cgi-bin/websc...=TGHNGBMN88YSC

n900ak 2011-06-24 11:17

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
Quote:

Originally Posted by sakya (Post 1037996)
Hi! :)

QtBatteryWidget is just another battery widget for the N900.

It can display: voltage, charge, temperature and time left.
In the settings window you can choose the informations to display, the type of percentage (module bq27x00, standard or dr_frost_dk based on his battery meter widget), the percentage style (graphical, standard progressbar or textual) and the widget opacity.

The percentage and time left are updated when a dbus signal is emitted by the system, so time left can take some time to update.
If you want to update it click on the widget.

The time left is based on actual consumption (only if module bq27x00 or the command i2cget is present) or from the last percentage change.

Screenshot:
http://www.assembla.com/spaces/qtbat...4r4iNteJe5cbLr

Homepage: http://www.assembla.com/spaces/qtbatterywidget/wiki
Package: http://maemo.org/packages/view/qtbatterywidget/
Donations: https://www.paypal.com/cgi-bin/websc...=TGHNGBMN88YSC

Just installed....looks cool...Nice work mate....however how is the value for "Time Left" calculated??? It's showing some value which does not make sense....(06:26 for battery at 68%)...what deos this mean....???:confused:

Andre Franc 2011-06-24 11:27

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
yeah...mine says 14.57 in time left with 72.9% battery. can't be 14 minutes right? but it can't be 14 hours too right?

sakya 2011-06-24 11:30

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
Quote:

Originally Posted by n900ak (Post 1037998)
how is the value for "Time Left" calculated??? It's showing some value which does not make sense....(06:26 for battery at 68%)...what deos this mean....???:confused:

It's based on the actual power consumption, if you put the n900 in standby, wait some seconds and recheck the widget it will display a different value (mine is more than 48h with 72%).

It should display the time left depending on what you are doing with the device ("time left if you continue to do what you're doing").

I don't know how much precise is the power consumption value (taken from /sys/class/power_supply/bq27200-0/current_now or /usr/sbin/i2cget -y 2 0x55 0x14 w)...

joppu 2011-06-24 11:45

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
Nice work ahem utilizing my graphics without even asking. Not that I am complaining or anything.

sakya 2011-06-24 11:50

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
Quote:

Originally Posted by joppu (Post 1038011)
Nice work ahem utilizing my graphics without even asking. Not that I am complaining or anything.

Ops, sorry. I forgot where I found that battery graphic (I thought I found it with google, maybe I'm wrong).
I'll add a note in the about screen, or I'll remove it if you don't want me to use it.

ade 2011-06-24 12:11

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
Looks nice, but uses just a little too much cpu for me (about 1-4%).
It would be acceptable for a program, but not for a widget constantly in the background (in my opinion that is).
Do other people experience the same cpu usage?

sakya 2011-06-24 12:13

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
Quote:

Originally Posted by ade (Post 1038022)
Looks nice, but uses just a little too much cpu for me (about 1-4%).
It would be acceptable for a program, but not for a widget constantly in the background (in my opinion that is).
Do other people experience the same cpu usage?

It's the Qt progressbar, I cannot do anything (maybe I can try to use only images avoiding QProgressbar).
4% can happen when it's updating data; the preogressbar should take from 0.75 to 2/3%.
Try to set the textual style.

corduroysack 2011-06-24 12:17

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
mine is using between 0 and 0.2% cpu and 2.3% mem

edit: in textual mode.

ade 2011-06-24 13:47

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
Quote:

Originally Posted by sakya (Post 1038027)
It's the Qt progressbar, I cannot do anything (maybe I can try to use only images avoiding QProgressbar).
4% can happen when it's updating data; the preogressbar should take from 0.75 to 2/3%.
Try to set the textual style.

Yep, switching to text mode definitely makes a cpu-use impact (in a positive way).


All times are GMT. The time now is 03:41.

vBulletin® Version 3.8.8