05-03-2022, 04:30 AM
That used to be pretty easy, but I've not tried on the PinePhone. From previous messing with GPS on the PinePhone working out how to get the NMEA serial stream out can be done, but takes a bit more doing as mobian doesn't integrate gpsd and ModemManager's location docs aren't as informative as might be hoped. I _think_ you could set up gpsd to run a script to enable raw nmea access via mmcli when a client connects, allowing gpsd to connect to the NMEA serial port, but I never got round to trying it. The other location modes have ModemManager / Geoclue using the serial port which blocks gpsd from using it. I think... Why they couldn't use gpsd to multiplex access to the nmea data and have Geoclue be another gpsd client I'm not sure - that would seem to be the best of both worlds.
http://wiki.openmoko.org/wiki/Neo_FreeRu..._GPS_relay
http://wiki.openmoko.org/wiki/Neo_FreeRu..._GPS_relay