View Single Post
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#41
I like the sound of this context aware framework, sounds similar to Graham Cobb's DBUS scripts: http://www.cobb.uk.net/770/index.html#dbus-scripts

Just thinking about usability, and power consumption mainly, how many of these things/events have dbus messages?

Afaiu the network up/down/change stuff has messages one could listen for (and therefore not need to poll).

Things like the accelerometer are probably half way, some dbus messages exist, but to obtain more accurate data than simply portrait|landscape one would need to poll the sysfs device.

Same goes for location, really course data is pretty much free, but to get more accurate data the GPS will need to be running.

Attila, how do you currently hook into events? And do you have some test code available?
 

The Following User Says Thank You to lardman For This Useful Post: