[pkg-fso-maint] gpsd

Rico Rommel rico at bierrommel.de
Sun Sep 11 08:57:00 UTC 2011


Hi all,

because ogpsd only talks gypsy and fso-gpsd conflicts with gpsd, gps-
applications like navit are only useable with workarounds to enable gps.


So last weeks i played around with gpsd and got this solution:

1. disable ogpsd in frameworkd.conf

2. enable gps-powercontrol in fsodeviced by default

3. set gps resource policy to enabled by script in /etc/Xsession.d, something 
like that:

RESULT=1
GPSFOUND=0

for i in 1 2 3 4 5; do
    dbus-send --system --print-reply --dest=org.freesmartphone.ousaged 
/org/freesmartphone/Usage org.freesmartphone.Usage.ListResources | grep "GPS"
    RESULT=$?
    
    if [ "$RESULT" -eq "0" ]; then
        GPSFOUND=1
        break;
    else 
        echo "Waiting 2 seconds for gps to appear..."
        sleep 2
    fi
done

#set resource policy to enabled
if [ "$GPSFOUND" -eq "1" ]; then
    dbus-send --system --print-reply --dest=org.freesmartphone.ousaged 
/org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy 
string:"GPS" string:"enabled"
else
    echo "giving up..."
fi

Any comments?

Rico

 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-fso-maint/attachments/20110911/aba732fc/attachment.pgp>


More information about the pkg-fso-maint mailing list