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).

sakya 2011-06-24 13:57

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
I'll make a custom widget, without using the QProgressbar. :)

EDIT: I made the custom widget: cpu usage near zero. I'll release this version thie evening.
I'm wondering what the QProgressbar does to use 2/3% of the cpu while doing nothing...

sakya 2011-06-24 20:26

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
Update to version 0.1.6, now cpu usage is really low also using graphical style.
I also fixed a problem with time left on kernel v47, you need to install i2c-tools package.

victorevo 2011-06-24 20:38

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
niceeee =P

Jigzy 2011-06-24 20:44

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
anyone having problem with temp reading stuck at -40 using Dr frost??

sakya 2011-06-24 20:46

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
Can you try this command?
Code:

cat /sys/devices/platform/omap34xx_temp/temp1_input
Btw the temperature read without the module bq27200 isn't correct.
I'm planning to read it always from the module (if present).

Jigzy 2011-06-24 21:03

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
it comes up as: cat /sys/devices/platform/omap34xx_temp/temp1_input-40

sakya 2011-06-24 21:05

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
That's the number the program reads for the temperature...it says -40. :)
This should be the correct temperature:
Code:

cat /sys/class/power_supply/bq27200-0/temp
In the next update I'll use always this value (if available).

Jigzy 2011-06-24 21:09

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
yeah your right if I change it to the bq27200it changes to 34.6!!!!

ade 2011-06-24 22:29

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
sakya,
Now you have resolved the cpu consumption, could you also have a look at the memory usage? It is using around 8.5MB private memory in my case. hildon-desktop itself does not top 7MB effectively.
Simplecal (also using libQtGui) was my most memory consuming widget, using almost 3Mb of private memory.

Good chance it is just how the program is compiled and you can't do much about it. In that case, forget about this post...

sanros 2011-07-04 02:14

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
hello Sakya thank you for such a nice widget it is very usefull:) earlier i was using QBW for these values but i do not like QBW .
qtbattery uses a lot of ram (over 8mb in conky) is it ok?
can you please confirm how much cpu it use while in text and standard mode?
thank you again :)

sakya 2011-07-04 10:36

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
The cpu usage is near 0% for all modes (I fixed the cpu usage for progressbar).
For the ram: the widget doesn't have a lot of data or images loaded in memory; the memory is mainly used by the linked qt libraries.

NightShift79 2011-07-18 22:30

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
Can we get a different layout?
like battery vertical on the left/ side of the text.

also I would like to make a german translation for it. can you provide a .ts file ?

sakya 2011-07-19 15:57

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

Originally Posted by NightShift79 (Post 1053677)
Can we get a different layout?
like battery vertical on the left/ side of the text.

Maybe I'll add an option for this, if I find the time.
Thanks for the suggestion. ;)

Quote:

also I would like to make a german translation for it. can you provide a .ts file ?
The .ts file is in the svn repo:
https://www.assembla.com/code/qtbatt...t_IT.ts?rev=40

NightShift79 2011-07-20 21:57

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
1 Attachment(s)
here's the german translation.
... I really hope for different layouts and an option to set individual background for the widget :)

PMaff 2011-08-01 14:27

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

Originally Posted by NightShift79 (Post 1055070)
here's the german translation.
... I really hope for different layouts and an option to set individual background for the widget :)

Is there a way to readout the voltage of the power supply or charge voltage without installing a enhanced "kernel-power" or other tools (just on xterm)?

daniel_m 2012-03-24 00:18

Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
 
Very nice app! Especially the battery icon :D
Could you possibly shrink it a little ... or a lot?
Even at 60 % it is way too big for my crammed desktop and there is a lot of unused space on the left and right side.
Customizable font size would be great too.

So many wishes, sorry :D


All times are GMT. The time now is 23:52.

vBulletin® Version 3.8.8