View Single Post
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: