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 |
Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
Quote:
|
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?
|
Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
Quote:
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)... |
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.
|
Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
Quote:
I'll add a note in the about screen, or I'll remove it if you don't want me to use it. |
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? |
Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
Quote:
4% can happen when it's updating data; the preogressbar should take from 0.75 to 2/3%. Try to set the textual style. |
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. |
Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
Quote:
|
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... |
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. |
Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
niceeee =P
|
Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
anyone having problem with temp reading stuck at -40 using Dr frost??
|
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 I'm planning to read it always from the module (if present). |
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
|
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 |
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!!!!
|
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... |
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 :) |
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. |
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 ? |
Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
Quote:
Thanks for the suggestion. ;) Quote:
https://www.assembla.com/code/qtbatt...t_IT.ts?rev=40 |
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 :) |
Re: QtBatteryWidget: battery voltage, charge, temperature and time left on your dekstop
Quote:
|
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