![]() |
SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Folks, here it is a deskop widget to display the battery level as a percentage.
Its in the desktop section as batlevel. You need t enable extras-devel repository. One thing I havent figured out completely is how to add it to the desktop add widgets menu, currenly it will appear in add shortcut as an app but when started it will open as a desktop widget. It seems deskop widgets need to be libraries and mine is a binary, while i figure out the technicalities related to this feel free to play with this and discuss any bugs/improvements. This is a very simple display, I will try adding more functional/eye-candy stuff if I dont get busy with some other projects. But Id like to hear your ideas. just to let you know Im currently working on making it look more like a battery than a progress bar :D Three ways to start it. 1. from X terminal run the command run_batlevel 2. from the desktop , click add a shortcut , choose batlevel, and then click on the shortcut ( the shortcut can be deleted later as the widget will appear on the desktop ) 3. The usual way, go to the applications menu and run the installed app. Last but not the least, maemo fellow members have been most helpful in helping create this app . Hope the maemo spirit lives on and grows stronger , ok enough of the emotions now :p Ill let you guys develop more on this. cheers, |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
I guess I posted this in the wrong thread nstead of applications.
Mods pls feel free to move if not appropriate, but the app is specifically for N900 so maybe its ok to be here . Sorry I couldnt find an option to move it.:p |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Just tried it, it seems to work. 8 MB, I guess it's optified, isn't it? :)
Thank you very much, I was looking forward to something like this. |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
8 MB for this??? To see the battery level on the desktop that I see already in the status area? Another useless widget.
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
anyways the app itself is abt 17K only, maybe you had to download a list of other dependencies that werent on your N900. Yes the app behaved well so far on my N900 past couple of days, doesnt use too much memory or cpu. rest we will know soon when the others also try ;) to know the dependencies you can run this command on your N900 apt-cache showpkg batlevel alternatively you can also see it when you are about to download the app from the application manager, it lists the dependencies in the details tab. cheers |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Not workin for me, just get a black screen, and at top the loading icon
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
just minimize that screen( clicking on the top left hand corner ), you will see the widget on your desktop and that window just closes on its own immediately. not sure why that window pops up and stays though I run the app int he background. will be working on it :). |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Nice widget!I hope there will be an improvement of the interface in future:)
Good luck for future releases! PS sorry for my bad english:) |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
7.59MB wtf...
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
not working.. Got the same Black screen and when minimize it just it just closed immediately. And it's 7.59MB for your information.
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
And I bet if you look back at your desktop, you'll see the battery bar.
I agree, almost 8 megs does seem a little excessive. But nevertheless, thank you, Dev. At least you did something and created an app for this purpose. |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
Im sure you would have seen this getting installed. You will be needing all this in your N900 sooner or later to be able to have QT applications so I dont see it as an issue. Feel free to correct me QT gurus. The app as such is only 16K. the memory footprint is negligible too. hope ive answered the questions around the 8MB download. can clarify more if needed, PM me. cheers EDIT: the additional dependent libs are installed in /opt/qt4-maemo5 ( QT4.6 stuff which is unlikely to exist on your N900 if you havent installed any QT apps that depend on them ) and ive configured qtsysteminfo libs to install in /usr/lib |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Working great for me and something i was looking for.
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Working nice for me too. Only one thing. I uninstallet it, but the widget was still there. I then manually deleted the widget from the homescreen, but is it really deleted now, I mean uninstalled? And 8 MB, it is optified (you didn't answer that question earlier)?
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Guys, yet again: the application itself *is not* 8mb.
That 8mb figure includes libraries (Qt, specifically), and whether or not that is optified is certainly not in the control of an external application developer. To the developer - Great job. I've been wanting something like this for a while, and will test it out when I get a chance. |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
Wtf, I can't find your app in there. :confused: *** Nice effort krk969. It does not stay resident after a reboot but I'm sure you know that. I'm looking forward to seeing it widgetized. Perhaps it can be incorporated in the existing status widget like the simple brightness app is. :) |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
good job..
i am a trainee developer on a graduate programm with a major airline company.. i been doing java and just started learning C++. was thing about doing something small like this to get me started as a developer for maemo but looks like u go there 1st. quick question. how did you get started setting up and using QT and would it be possible to look at the souce code (hopefully with detailed comments) as a little training for me? |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
so,but it couldn't like other widget autoboot,add widget fron menu
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
http://talk.maemo.org/showpost.php?p...6&postcount=13 |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
Qt 4.5 in /usr is currently the default version of Qt and it's going to be replaced by 4.6 some time in the future. For those complaining about the size. The widget itself is small but if you haven't installed any apps that depend on Qt 4.6, those libs are installed also. If you look at the package details in the application manager you will see that packages that are going to be installed. The libraries are only installed once so next time you install some Qt application it doesn't appear as big. Regarding the "black screen" -issue. The blank application screen appear because the widget isn't a shared object like the other widgets are (and are supposed to be). Because the widget is a normal application binary it's started as one (just close the application window and it works). In order to fix this the widget needs to be compiled differently and it has to have some interfaces implemented in it that don't exist in the current version. This obviously needs to be studied how it's done with Qt and so on. The widget is still a work in progress and that why it's in extras-devel and further more there's a reason why normal users should stay away from extras-devel. Anyway nice work krk969 |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
i think there are now a few more widgets that appear as applications, egg timer, FM RDS Notify widget and so on.
They all have the same behavior, so i guess a wiki page needs to be clear what exactly must be done to create/compile a widget... |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
so one way is to figure out how its done in gtk and make a dummy gtk to call my code ( compiled as a lib ) I havent found a way yet to make a QT widget appear in the desktop widget menu. will most certainly work on it as I think its something we all cannot do without :) if anybody has any info please share. for those that didnt know you can get the source of my code using apt-get source batlevel |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
Some questions for you krk969:
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
normal unix/linux stuff nothing different for maemo. about my opinion on your OOT questions I have PM'ed you , else it will hijack the thread ;) |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
from http://qt.gitorious.org/, you could see all of source code for QT. please enjoy QT!!! |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
(My Beta testing):cool:
1 issue when battery is fully charged the widget displays 96%.(not sure what it maybe... maybe my device or your code but i havent seen anyone else complain about it yet) BTW I just restarted and the widget displays 90%:( Any who thank you for your time and your work.(I like the app it just needs some love) |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
==> check it out here Ive also seen many threads discussing this, some of them are here , here , and here think its something to do with the libhal implementation, but I cant be sure about it. Was waiting for more inputs from other users, but I guess Ill go ahead and raise a bug in bugzilla if it doesnt exist there already. cheers |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
anyways my n900 lasts more or less the same amount of time without the widget for me. last nite at 1145pm battery was at 14% and when i woke up at 7.30am it was 5% had the widget running.( emails on, wifi, bluetooth gps all on ) Anyways, the widget doesnt poll to get the battery info, its using a signal mechanism to where it recieves a signal when the battery level changes then it updates it on screen. Im hopeful the qtmobility api's have taken into consideration the effect on battery, if not we will learn soon and do something abt it :) |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Sry..:o (i found out about this app in this thread)
Next time will do more research. |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Hi All,
One quick question. I want to try this app, i did not see this app was not listed in the app manager in My N900. How do i install this on my phone? Please excuse if it is a very sill question, i am very new to this env. :-) |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
you can start ==> here |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Seems to be working fine for me. When you get the custom graphics working, just give me the required specs (resolution and such) and I'll work out the graphics as planned.
|
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
You can copy-paste one from the existing ones, but the file format is also documented somewhere in SDK docs. |
Re: SImple QT Desktop Widget to display battery level and percentage in Extras-devel now
Quote:
if you have installed the app, you must have noticed the .desktop being installed in /usr/share/applications/hildon/ ( as per the maemo developer guide ) Ive even tried /usr/share/applications/hildon-home, doesnt work. |
All times are GMT. The time now is 06:26. |
vBulletin® Version 3.8.8