02-16-2021, 11:49 PM
(This post was last modified: 02-17-2021, 12:27 AM by dcinoz.
Edit Reason: ims removed as stays as is
)
Hi,
I've just realised eg25manager always turns GPS on using the command:
AT+QGPS=1
when resuming from sleep.
You can check via:
1 is on, 0 off.
To turn off use the command:
I've spotted this bug report:
https://gitlab.com/mobian1/devices/eg25-...-/issues/2
I don't understand the "GPS management is now disabled by default with 79974bc9 and can be activated with the -g command line option.
Leaving this issue open as it's just a workaround, I'll have to come up with a better solution later on."
That would suggest GPS should be OFF, no?
I tried to use systemd system-sleep by adding a shell script to send the OFF command to the modem but eg25manager always runs after system-sleep. Adding sleep 5 or 10 or 20 seconds just delays eg25manager running so modem is not found and the OFF command fails. eg25manager would turn it on anyway.
Note that Privacy -> Location Services is switched OFF. I assumed that meant the GPS was OFF too....
It doesn't help battery life, has this just changed explaining the larger battery drain noticed recently? Or is that something else?
How can I prevent eg25manager from sending the GPS ON command (other than running a script manually every time I wake up the Pinephone)?
Command to see eg25manager log from systemd:
Just did a few IMS tests.
Reboot phone, IMS is on, check via command:
If you disable it via:
then the setting is kept when the phone wakes from sleep.
No idea why eg25manager would enable IMS by default. Guess phone still works with a non-IMS enable operator (no VoLTE).
Here is systemd log from boot showing the IMS on part:
Feb 17 16:34:56 mobian eg25manager[362]: Response: [+QCFG: "ims",0,0
Feb 17 16:34:56 mobian eg25manager[362]: Got a different result than expected, changing value...
Feb 17 16:34:56 mobian eg25manager[362]: (null)
Feb 17 16:34:56 mobian eg25manager[362]: Sending command: AT+QCFG="ims",1
Feb 17 16:34:56 mobian eg25manager[362]: Response: [OK]
Further look at eg25manager logs, at least the GPS is turned OFF when it suspends:
eg25manager[362]: system is about to suspend
eg25manager[362]: Sending command: AT+QGPSEND
eg25manager[362]: Response: [OK]
I've just realised eg25manager always turns GPS on using the command:
AT+QGPS=1
when resuming from sleep.
You can check via:
Code:
mmcli -m any --command="AT+QGPS?"
1 is on, 0 off.
To turn off use the command:
Code:
mmcli -m any --command="AT+QGPSEND"
I've spotted this bug report:
https://gitlab.com/mobian1/devices/eg25-...-/issues/2
I don't understand the "GPS management is now disabled by default with 79974bc9 and can be activated with the -g command line option.
Leaving this issue open as it's just a workaround, I'll have to come up with a better solution later on."
That would suggest GPS should be OFF, no?
I tried to use systemd system-sleep by adding a shell script to send the OFF command to the modem but eg25manager always runs after system-sleep. Adding sleep 5 or 10 or 20 seconds just delays eg25manager running so modem is not found and the OFF command fails. eg25manager would turn it on anyway.
Note that Privacy -> Location Services is switched OFF. I assumed that meant the GPS was OFF too....
It doesn't help battery life, has this just changed explaining the larger battery drain noticed recently? Or is that something else?
How can I prevent eg25manager from sending the GPS ON command (other than running a script manually every time I wake up the Pinephone)?
Command to see eg25manager log from systemd:
Code:
sudo journalctl -b | grep eg25
Just did a few IMS tests.
Reboot phone, IMS is on, check via command:
Code:
mmcli -m any --command='AT+QCFG="IMS"'
If you disable it via:
Code:
mmcli -m any --command='AT+QCFG="IMS",0'
No idea why eg25manager would enable IMS by default. Guess phone still works with a non-IMS enable operator (no VoLTE).
Here is systemd log from boot showing the IMS on part:
Feb 17 16:34:56 mobian eg25manager[362]: Response: [+QCFG: "ims",0,0
Feb 17 16:34:56 mobian eg25manager[362]: Got a different result than expected, changing value...
Feb 17 16:34:56 mobian eg25manager[362]: (null)
Feb 17 16:34:56 mobian eg25manager[362]: Sending command: AT+QCFG="ims",1
Feb 17 16:34:56 mobian eg25manager[362]: Response: [OK]
Further look at eg25manager logs, at least the GPS is turned OFF when it suspends:
eg25manager[362]: system is about to suspend
eg25manager[362]: Sending command: AT+QGPSEND
eg25manager[362]: Response: [OK]
Pinephone v1.2 UBports CE. Adelaide, Australia using Amaysim SIM (Optus network, VoLTE enabled) with Mobian SD card. VoLTE working also with Felix / Vodafone AU and Aldimobile / Telstra AU.
Manjaro Plasma Mobile on EMMC.
Manjaro Plasma Mobile on EMMC.