05-27-2021, 06:02 AM
I try to turn off the modem to achieve a flight mode but the ofono commands won't do the job, so I discovered the following procedure
Turn off the modem with a Quectel specific AT command, it even disappears from the USB Bus, try lsusb
echo at+qpowd=1 | sudo atinout - /dev/EG25.MODEM -
that is send the Quectel Power Down command with parametre 1(Normal power off, for emergency power off is 0) to the modem through atinout, the two dashes indicate that atinout reads from keyboard and writes to the screen
The modem comes back in life with the help of eg25-manager service, stop ofono, restart eg25-manager, start ofono, then power on and online with ofonoctl and enter the PIN
sudo systemctl stop ofono
sudo systemctl restart eg25-manager
sudo systemctl start ofono
ofonoctl poweron
ofonoctl online
qdbus --system org.ofono /quectelqmi_0 org.ofono.SimManager.EnterPin pin your_pin
the problem for now is that the plasmaphonedialer loses contact and you can not dial with Plasma
Plasma is based on the Telepathy framework and you can explore all these with qdbus where I believe there will be a method to attach the modem to the dialer again
Turn off the modem with a Quectel specific AT command, it even disappears from the USB Bus, try lsusb
echo at+qpowd=1 | sudo atinout - /dev/EG25.MODEM -
that is send the Quectel Power Down command with parametre 1(Normal power off, for emergency power off is 0) to the modem through atinout, the two dashes indicate that atinout reads from keyboard and writes to the screen
The modem comes back in life with the help of eg25-manager service, stop ofono, restart eg25-manager, start ofono, then power on and online with ofonoctl and enter the PIN
sudo systemctl stop ofono
sudo systemctl restart eg25-manager
sudo systemctl start ofono
ofonoctl poweron
ofonoctl online
qdbus --system org.ofono /quectelqmi_0 org.ofono.SimManager.EnterPin pin your_pin
the problem for now is that the plasmaphonedialer loses contact and you can not dial with Plasma
Plasma is based on the Telepathy framework and you can explore all these with qdbus where I believe there will be a method to attach the modem to the dialer again