View Single Post
gnuite's Avatar
Posts: 1,245 | Thanked: 421 times | Joined on Dec 2005
#339
Originally Posted by Chelli View Post
I checked out how Chinook handles GPS a little bit, it seems that GPSD is started via DBus by the integrated Wayfinder application and the Control Panel. dbus-monitor shows the following while enabling GPS:

signal sender=:1.196 -> dest=(null destination) path=/org/hildon/Statusbar; interface=org.hildon.Statusbar; member=UpdateStatus
string "/usr/share/applications/hildon-status-bar/hildon-status-bar-bluetooth.desktop"
boolean true
signal sender=:1.196 -> dest=(null destination) path=/org/hildon/Statusbar; interface=org.hildon.Statusbar; member=UpdateStatus
string "/usr/share/applications/hildon-status-bar/location.desktop"
boolean true
I did a little investigation, and UpdateStatus appears to be a signal (not a method), so it's probably just notification about the change in status of the GPS receiver and/or GPSD (on or off).

I've been trying to incorporate the new libgpsmgr/libgpsbt framework into Maemo Mapper, and while the libgpsbt framework uses DBUS to search for a bluetooth GPS receiver, the libgpsmgr framework that actually controls GPSD itself doesn't appear to use DBUS at all. Looking at the code in gregale/bora, I think libgpsmgr uses lock files to track GPS clients. There are new versions of libgpsmgr and libgpsbt, but Nokia appears to have closed-source them (grr!), so I can't see how they work. Perhaps the new libgpsmgr controls access to the internal GPS receiver.