Notices


Reply
Thread Tools
Posts: 70 | Thanked: 6 times | Joined on Dec 2009
#31
Same for me. When i couldn find it in devel i uninstalled it and removed everything with autoremove. Like Rob1n i have 1.0-3 installed.
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#32
Originally Posted by Rob1n View Post
Here you go:

Looks like it's missing libQtSystemInfo. I've checked and the qtsysteminfo package (1.0-3) is installed, but it would appear not to be in the linker's path.
seems like the output is same as mine, all dependencies look fine.

The QtSystemInfo is another package I uploaded so its installed in /opt/qtsysteminfo so naturally its not in the PATH.

I set the path to it in the /usr/bin/run_batlevel script that actually brings up the batlevel app.
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#33
Originally Posted by krk969 View Post
seems like the output is same as mine, all dependencies look fine.

The QtSystemInfo is another package I uploaded so its installed in /opt/qtsysteminfo so naturally its not in the PATH.

I set the path to it in the /usr/bin/run_batlevel script that actually brings up the batlevel app.
I've run an strace on the process and found the problem. It's trying to run /home/user/run_lshal, which doesn't exist.
 

The Following User Says Thank You to Rob1n For This Useful Post:
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#34
Originally Posted by Rob1n View Post
I've run an strace on the process and found the problem. It's trying to run /home/user/run_lshal, which doesn't exist.
Thanks Rob.
maybe that got missed out in the package. Update is on the way next 30 min.

Last edited by krk969; 2010-01-21 at 10:32.
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#35
updated and optified now
version 2.0-7 available to use.

Again for those who want to start this on every reboot please follow my previous post

but now that its optified

replace
/usr/bin/run_batlevel
with
/opt/batlevel/bin/run_batlevel
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#36
Many thanks - works perfectly now.

I'm a little concerned about the power usage of this widget though - powertop shows it responsible for 10% of the wakeups on my N900, and strace shows it continually polling
 

The Following User Says Thank You to Rob1n For This Useful Post:
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#37
Originally Posted by krk969 View Post
for those who want this widget or any other qt widget on the desktop every time the reboot may do this

create a new file /etc/event.d/batlevel
and add the following lines

Code:
start on started hildon-desktop
script 
        /usr/bin/run_batlevel
end script
you need to be root.
though i wouldnt suggest it till its in extras and also this is only a workaround not a solution.
Is this suggesting that it can't be added like a normal widget? - i know for some the terminal methods are ok, but i would like the ability to add these types of widgets normally? (By normally i mean, a way that i am confortable in doing - may not be normal on these forums hehe )
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#38
Originally Posted by noobmonkey View Post
Is this suggesting that it can't be added like a normal widget? - i know for some the terminal methods are ok, but i would like the ability to add these types of widgets normally? (By normally i mean, a way that i am confortable in doing - may not be normal on these forums hehe )
No, it can't be - this is (apparently) a limitation in the current QT framework.
 

The Following User Says Thank You to Rob1n For This Useful Post:
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#39
Originally Posted by noobmonkey View Post
Is this suggesting that it can't be added like a normal widget? - i know for some the terminal methods are ok, but i would like the ability to add these types of widgets normally? (By normally i mean, a way that i am confortable in doing - may not be normal on these forums hehe )
Normally widgets are gtk dynamic library (libxxx.so ) files or python scripts and this is what is added to the .desktop file.
For some reasons nt yet clear, executable files are not being recognized as widgets while doing add widget but that does not mean these apps are not widgets, they do have the same properties like the gtk/python based widgets just that they are currently not available to add via the add widget menu.

Originally Posted by Rob1n View Post
No, it can't be - this is (apparently) a limitation in the current QT framework.
thats correct that its a limitation now.
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#40
Originally Posted by Rob1n View Post
Many thanks - works perfectly now.

I'm a little concerned about the power usage of this widget though - powertop shows it responsible for 10% of the wakeups on my N900, and strace shows it continually polling
can you mail me the logs.
maybe a bug can be raised against the QT mobility api's which is what Im using.
They are still TP so maybe they are already looking into it.
AFAIK, it shouldnt be polling, all that the qt api's may be doing is registering with the HAL device( in this case battery ) to get any parameter change events as a signal.
So when the percentage param changes a signal is emitted and the app catches that to change the bar percentage.

cheers.
 
Reply


 
Forum Jump


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