Active Topics

 



Notices


Reply
Thread Tools
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#91
I was wondering how to do dbus from applets .

For power saving, the display can go to dimmed or off, and there is an inactivity flag that can be set or clear - the latter normally is what you use to shut off tasks. If you watch via VNC, the original battery icon will stop animating when this goes true (the screen goes off though there may be other qualifiers). It is one of the other com/nokia/mce signals - just subscribe to it and stop asking.

I do something like this in my minigpsd setup applet - I use the stock-ok icon instead of the animated GPS status when it goes inactive and stop the icon updates. When it goes active again, I restart them. Since I wasn't able to figure out dbus (but now that I can see your code I have an idea), I used a dbus-to-gconf task since I could get gconf events in my applet.
 
lcuk's Avatar
Posts: 1,635 | Thanked: 1,816 times | Joined on Apr 2008 @ Manchester, England
#92
412b, thats the longest couple of weeks ever
i'm in the middle of a cycle as well, can't believe December is almost upon us


edit, context:

Today, 01:33 PM : 412b : Sorry, but a couple of weeks I'm gonna veeery busy
Today, 05:42 PM : 412b : Update uploaded.
__________________
liqbase sketching the future.
like what i say? hit the Thanks, thanks!
twitter.com/lcuk
 
Posts: 462 | Thanked: 550 times | Joined on Sep 2008 @ Moscow
#93
Originally Posted by tz1 View Post
I was wondering how to do dbus from applets .

For power saving, the display can go to dimmed or off, and there is an inactivity flag that can be set or clear - the latter normally is what you use to shut off tasks. If you watch via VNC, the original battery icon will stop animating when this goes true (the screen goes off though there may be other qualifiers). It is one of the other com/nokia/mce signals - just subscribe to it and stop asking.

I do something like this in my minigpsd setup applet - I use the stock-ok icon instead of the animated GPS status when it goes inactive and stop the icon updates. When it goes active again, I restart them. Since I wasn't able to figure out dbus (but now that I can see your code I have an idea), I used a dbus-to-gconf task since I could get gconf events in my applet.
I was thinking about it. Well, there are just 7 battery states. Nor changing image when inactive neither stopping animation is problem . But IMO it should be done in a proper way, not just stop animating the meter, but also stop listening to all of the stuff except battery low mAh and display/inactivity state. But on the device wakeup it's time for updating all the thiings... It's quite hard to say what way is better...

Btw, all the MCE could be found in mce-dev files (e.g. on sourcearchive) and mixing it with dbus-monitor makes the magic

Originally Posted by lcuk View Post
412b, thats the longest couple of weeks ever
i'm in the middle of a cycle as well, can't believe December is almost upon us

edit, context:

Today, 01:33 PM : 412b : Sorry, but a couple of weeks I'm gonna veeery busy
Today, 05:42 PM : 412b : Update uploaded.
Those couple of weeks starts on Monday December is almost here and it's gonna be hot

P.S. Next time it's gonna be "1 line added see the attachment" and not "update uploaded"
 

The Following User Says Thank You to 412b For This Useful Post:
Posts: 145 | Thanked: 32 times | Joined on Dec 2007
#94
One thing I don't understand. The battery applet shows e.g.
67mb/123mb. What does this mean?

free shows:

Code:
           total         used         free       shared      buffers
 Mem:       126796       122248         4548            0         2024
 Swap:       249592            0       249592
Total:       376388       122248       254140
 
Posts: 609 | Thanked: 232 times | Joined on Dec 2007 @ the end of my rope
#95
Man o man. Installed new version. Saw that I had 49%. I then switched to performance, launched canola, downloaded TWO podcasts, and immediately had critically low .3%. WTF? Is it performance mode, canola, or my battery, I wonder??
 
Posts: 397 | Thanked: 99 times | Joined on Jun 2008 @ Toronto, Ontario
#96
Why is it when I install the update, when I click on the battery applet, all it says in the drop down panel is "Settings"?

If I click on Setting I'm not given any options.
 
Posts: 609 | Thanked: 232 times | Joined on Dec 2007 @ the end of my rope
#97
Originally Posted by Nelson L. Squeeko View Post
Why is it when I install the update, when I click on the battery applet, all it says in the drop down panel is "Settings"?

If I click on Setting I'm not given any options.
the instruction was to reboot after install.
 

The Following User Says Thank You to lm2 For This Useful Post:
Posts: 397 | Thanked: 99 times | Joined on Jun 2008 @ Toronto, Ontario
#98
Originally Posted by lm2 View Post
the instruction was to reboot after install.
I guess that's what I get for reading "update" and then clicking on download without reading much else. I figured I'd have to reboot, but wanted to hold off in case it was happening for another reason. Thanks.
 
pixelseventy2's Avatar
Posts: 357 | Thanked: 115 times | Joined on Sep 2007 @ Sunny England :)
#99
Originally Posted by 412b View Post
Sorry, but a couple of weeks I'm gonna veeery busy, so may be around New Year it can be released in stable tree.
No worries, it's hardly a high priority thing Keep up the excellent work
__________________
pixel - pushing buttons that shouldn't be pushed, and fiddling with things that shouldn't be fiddled with
 
Posts: 462 | Thanked: 550 times | Joined on Sep 2008 @ Moscow
#100
Originally Posted by albright View Post
One thing I don't understand. The battery applet shows e.g.
67mb/123mb. What does this mean?
See /proc/meminfo
It's free memory + cached memory. May be I should also add buffered, but it's not big enough.

Originally Posted by lm2 View Post
Man o man. Installed new version. Saw that I had 49%. I then switched to performance, launched canola, downloaded TWO podcasts, and immediately had critically low .3%. WTF? Is it performance mode, canola, or my battery, I wonder??
I guess it's all together.
 
Reply

Tags
applet, battery, python, statusbar


 
Forum Jump


All times are GMT. The time now is 10:50.