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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ pkg-fso-maint mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-fso-maint
