geoclue can't connect to gpsd
openSUSE Tumbleweed geoclue 2.7.1
gspd is started with "-Gn" options
I checked with xgps that gpsd supplies nmea data.
I ran
avahi-publish-address grincheux.local 127.0.0.1 avahi-publish-service -H grincheux.local NMEA_SOURCE _nmea-0183._tcp 2947 accuracy=exact
I ran sudo G_MESSAGES_DEBUG=Geoclue /usr/libexec/geoclue
we see that geoclue connects to gpsd but uses only WIFI source.
(geoclue:28298): Geoclue-DEBUG: 17:37:25.422: Failed to query location: Source is inactive (geoclue:28298): Geoclue-DEBUG: 17:37:25.426: New agent for user ID '1001' (geoclue:28298): Geoclue-DEBUG: 17:37:25.430: Service 'NMEA_SOURCE' of type '_nmea-0183._tcp' found in domain 'local' (geoclue:28298): Geoclue-DEBUG: 17:37:25.431: Service 'NMEA_SOURCE' of type '_nmea-0183._tcp' found in domain 'local' (geoclue:28298): Geoclue-DEBUG: 17:37:25.431: Network changed: Enabling locate URL queries (geoclue:28298): Geoclue-DEBUG: 17:37:25.431: Cache miss for key (99, '', 0, 0, []) (geoclue:28298): Geoclue-DEBUG: 17:37:25.431: Available accuracy level from GClueWifi: 6 (geoclue:28298): Geoclue-DEBUG: 17:37:25.431: Network changed: Enabling locate URL queries (geoclue:28298): Geoclue-DEBUG: 17:37:25.431: Service 'NMEA_SOURCE' of type '_nmea-0183._tcp' found in domain 'local' (geoclue:28298): Geoclue-DEBUG: 17:37:25.433: Failed to query location: Source is inactive (geoclue:28298): Geoclue-DEBUG: 17:37:25.433: Failed to query location: Source is inactive (geoclue:28298): Geoclue-DEBUG: 17:37:25.433: Avahi Service Browser's CACHE_EXHAUSTED event occurred (geoclue:28298): Geoclue-DEBUG: 17:37:25.615: Service 'NMEA_SOURCE' of type '_nmea-0183._tcp' in domain 'local' resolved to grincheux.local:2947 (geoclue:28298): Geoclue-DEBUG: 17:37:25.615: No. of _nmea-0183._tcp services 1 (geoclue:28298): Geoclue-DEBUG: 17:37:25.615: Scheduling NMEA accuracy level refresh (geoclue:28298): Geoclue-DEBUG: 17:37:25.616: Service 'NMEA_SOURCE' of type '_nmea-0183._tcp' in domain 'local' resolved to grincheux.local:2947 (geoclue:28298): Geoclue-DEBUG: 17:37:25.616: NMEA service NMEA_SOURCE already exists (geoclue:28298): Geoclue-DEBUG: 17:37:25.616: Service 'NMEA_SOURCE' of type '_nmea-0183._tcp' in domain 'local' resolved to grincheux.local:2947 (geoclue:28298): Geoclue-DEBUG: 17:37:25.616: NMEA service NMEA_SOURCE already exists (geoclue:28298): Geoclue-DEBUG: 17:37:25.618: Available accuracy level from GClueNMEASource: 8 (geoclue:28298): Geoclue-DEBUG: 17:37:26.431: Avahi Service Browser's ALL_FOR_NOW event occurred (geoclue:28298): Geoclue-DEBUG: 17:38:14.710: Service now in use (geoclue:28298): Geoclue-DEBUG: 17:38:14.710: Number of connected clients: 1 (geoclue:28298): Geoclue-DEBUG: 17:38:14.716: 'geoclue-where-am-i' not in configuration (geoclue:28298): Geoclue-DEBUG: 17:38:14.716: requested accuracy level: 8. Max accuracy level allowed by agent: 8 (geoclue:28298): Geoclue-DEBUG: 17:38:14.716: 'geoclue-where-am-i' not in configuration (geoclue:28298): Geoclue-DEBUG: 17:38:14.716: GClueModemManager: New time-threshold: 0 (geoclue:28298): Geoclue-DEBUG: 17:38:14.716: GClueLocator now active (geoclue:28298): Geoclue-DEBUG: 17:38:14.717: GClueNMEASource now active (geoclue:28298): Geoclue-DEBUG: 17:38:14.717: Trying to connect to NMEA service grincheux.local:2947. (geoclue:28298): Geoclue-DEBUG: 17:38:14.717: GClueWifi now active (geoclue:28298): Geoclue-DEBUG: 17:38:14.717: Connecting cache prune timeout (geoclue:28298): Geoclue-DEBUG: 17:38:14.717: Starting WiFi scan… (geoclue:28298): Geoclue-DEBUG: 17:38:14.720: Not starting GClue3G (accuracy level: 0). Requested accuracy level: 8. (geoclue:28298): Geoclue-DEBUG: 17:38:14.720: Not starting GClueCDMA (accuracy level: 0). Requested accuracy level: 8. (geoclue:28298): Geoclue-DEBUG: 17:38:14.720: Not starting GClueModemGPS (accuracy level: 0). Requested accuracy level: 8. (geoclue:28298): Geoclue-DEBUG: 17:38:14.720: Not starting GClueStaticSource (accuracy level: 0). Requested accuracy level: 8. (geoclue:28298): Geoclue-DEBUG: 17:38:14.720: 'geoclue-where-am-i' started. (geoclue:28298): Geoclue-DEBUG: 17:38:14.728: NMEA service connected. (geoclue:28298): Geoclue-DEBUG: 17:38:14.728: Network source sent: "{"class":"VERSION","release":"3.25","rev":"3.25","proto_major":3,"proto_minor":15}"