---------------------------------
Original request about dbus:
I've run into a problem trying to use dbus. Basically I need to determine when the screen is off or the tablet is inactive, some fairly standard dbus calls. The problem is the mainloop. This is the minimalist working dbus snippet:
I suspect the Python-hildon-desktop stuff has its own idea of a mainloop or whatever else, so when I try to integrate this (place the above code at the obvious places in the statusbar example), I don't get any events (maybe of any kind).
Could someone help, maybe with something that changes the statusbar icon from a stock yes to no when the screen dims and back when it goes on?
Last edited by tz1; 2008-10-31 at 18:19.
Reason: update
I managed to do it via gconf, by setting a gconf notification and running a separate program that listened for dbus notifications and set gconf variables when they changed.
http://www.internettablettalk.com/fo...ad.php?t=22857
The following is recognized but the callback never occurs (though it will in a stand-alone):
Original request about dbus:
I've run into a problem trying to use dbus. Basically I need to determine when the screen is off or the tablet is inactive, some fairly standard dbus calls. The problem is the mainloop. This is the minimalist working dbus snippet:
Could someone help, maybe with something that changes the statusbar icon from a stock yes to no when the screen dims and back when it goes on?
Last edited by tz1; 2008-10-31 at 18:19. Reason: update