06-02-2022, 01:19 PM
I've always used sudo with mmcli. I still don't have GPS stuff working though.
GPS/location services don't work with Maps after Bookworm upgrade
|
06-02-2022, 01:19 PM
I've always used sudo with mmcli. I still don't have GPS stuff working though.
06-06-2022, 03:41 PM
The wiki entries certainly need updating - I'll do it if nobody else has by the time I've got something I'm confident in. The AGPS data can now be uploaded using mmcli which does it using QMI rather than AT commands. I'm not clear on whether it sets the time though, which I think was important for being able to use the AGPS data. There still seems to be a gap around where responsibility for triggering the AGPS upload and (if necessary) time setting lies, and ModemManager doesn't have an API for checking its validity (don't want to repeat download/upload if data is still valid). If you hit polkit restrictions using mmcli then sudo will work around it until we've got something 'proper' that can get its own permissions config.
06-13-2022, 05:33 AM
(06-06-2022, 03:41 PM)wibble Wrote: The wiki entries certainly need updating - I'll do it if nobody else has by the time I've got something I'm confident in. The AGPS data can now be uploaded using mmcli which does it using QMI rather than AT commands. I'm not clear on whether it sets the time though, which I think was important for being able to use the AGPS data. There still seems to be a gap around where responsibility for triggering the AGPS upload and (if necessary) time setting lies, and ModemManager doesn't have an API for checking its validity (don't want to repeat download/upload if data is still valid). If you hit polkit restrictions using mmcli then sudo will work around it until we've got something 'proper' that can get its own permissions config. can you write exactly how to do it?
06-13-2022, 08:16 AM
(06-13-2022, 05:33 AM)kubussz Wrote:(06-06-2022, 03:41 PM)wibble Wrote: The wiki entries certainly need updating - I'll do it if nobody else has by the time I've got something I'm confident in. The AGPS data can now be uploaded using mmcli which does it using QMI rather than AT commands. I'm not clear on whether it sets the time though, which I think was important for being able to use the AGPS data. There still seems to be a gap around where responsibility for triggering the AGPS upload and (if necessary) time setting lies, and ModemManager doesn't have an API for checking its validity (don't want to repeat download/upload if data is still valid). If you hit polkit restrictions using mmcli then sudo will work around it until we've got something 'proper' that can get its own permissions config. Not with any confidence, especially as gitlab.freedesktop.org is currently down due to hardware failure so I can only see the modemmanager issues that I've got in open tabs still. Remembering the polkit issue above, some of these may need sudo to even run. You can get a list of possible URLs for location data using: Code: mmcli -m any --location-status Code: mmcli -m any --location-inject-assistance-data=/path/to/downloaded/xtrapath3-xtra3gr.bin Code: $ mmcli -m any --command='AT+QGPSXTRADATA?'
06-13-2022, 09:57 AM
gitlab.freedesktop.org is back, apparently without data loss and thanks to Benjamin Tissoires and Daniel Stone.
I should also have mentioned the possibility of automating turning on the gps and perhaps doing the agps data bit for applications using gpsd rather than geoclue. From the gpsd man page: When a device is activated (i.e. a client requests data from it), gpsd attempts to execute a hook from /etc/gpsd/device-hook with first command line argument set to the pathname of the device and the second to ACTIVATE. On deactivation it does the same passing DEACTIVATE for the second argument. PmOS has used this to turn the gps on and off in the past. With mmcli (and sudo unless there's a polkit permission change) the options location-enable-gps-unmanaged and location-disable-gps-unmanaged can do this without modemmanager grabbing the serial port for the nmea data before gpsd can - from the mmcli man page: --location-enable-gps-unmanaged Enable location discovery using GPS but without taking control of the NMEA tty port. This allows other programs, e.g. gpsd, to use the NMEA tty once the GPS engine has been enabled. The script should of course check whether one of the other gps sources is already enabled and the port already grabbed. There will no doubt be debate about which should get priority, how/whether this should be packaged, interaction with location preference in the settings gui etc. that will need sorting out. I don't know if gpsd has a mechanism to allow/deny access per application, but getting it working at all as a user installed option would be a start.
06-13-2022, 10:18 AM
I think it would be useful for us at Pine64 forum to work on a community tested .sh script to enable the modem so we are not having issues where people are not following instructions. W could upload and host it in both the Pine and Mobian wikis to cut/paste into an executable file.
I don't really understand why it is not an optional or included package in Mobian but we can have something standardized to get Mobian navigation set up in a standard way while anyone who wants can take the creative route as an alternative.
06-13-2022, 02:37 PM
It looks like geoclue already enables some types of AGPS support, so adding support for others seems a legitimate feature request.
https://gitlab.freedesktop.org/geoclue/g...ger.c#L990 Whether it's going to need some changes on the ModemManager side before the necessary interfaces exist to be used is another matter - possibly more feature requests? |