06-23-2022, 01:43 AM
(This post was last modified: 06-24-2022, 05:53 AM by alaraajavamma.)
Hello!
I find out quite good workaround for MMS if you have separate APN for Data and MMS.
If you wan't to find out more about this original issue see here:
https://gitlab.com/kop316/mmsd/-/issues/5
https://gitlab.freedesktop.org/NetworkMa...issues/958
So there is option in elogind that it will do something right before and/ord after suspending and this is what I am now using.
Firs you need to create bash script and for me this works:
You can just open gedit and paste it there but notice that you have change "mms" and "internet" (right after nnmcli c up) to match your own apn names.
Then save file for example mms.sh and put it in your home folder
Now open terminal and type:
And reboot.
Now right before your phone suspends it will switch to MMS APN so your arriving MMS messages does not get expired (only thing you have to remember is suspend atleast once a day ). You will also receive notification because it is MMS.
When suspend stops (you open phone or receive call,sms or mms) it will wait 5 seconds and switch back to DATA APN.
Make sure you have correct apn settings in System settings AND in Chatty
I am trying to learn more on this MMS thing but right now this is ok solution.
Ps. This should work also on Mobian, Arch and Manjaro but the file goes to different place and the command might be little bittle different.
I find out quite good workaround for MMS if you have separate APN for Data and MMS.
If you wan't to find out more about this original issue see here:
https://gitlab.com/kop316/mmsd/-/issues/5
https://gitlab.freedesktop.org/NetworkMa...issues/958
So there is option in elogind that it will do something right before and/ord after suspending and this is what I am now using.
Firs you need to create bash script and for me this works:
Code:
#!/bin/bash
case $1/$2 in
pre/*)
nmcli c up mms
;;
post/*)
sleep 5 && nmcli c up internet
;;
esac
You can just open gedit and paste it there but notice that you have change "mms" and "internet" (right after nnmcli c up) to match your own apn names.
Then save file for example mms.sh and put it in your home folder
Now open terminal and type:
Code:
sudo cp mms.sh /usr/libexec/elogind/system-sleep/
Code:
sudo chmod +x /usr/libexec/elogind/system-sleep/mms.sh
And reboot.
Now right before your phone suspends it will switch to MMS APN so your arriving MMS messages does not get expired (only thing you have to remember is suspend atleast once a day ). You will also receive notification because it is MMS.
When suspend stops (you open phone or receive call,sms or mms) it will wait 5 seconds and switch back to DATA APN.
Make sure you have correct apn settings in System settings AND in Chatty
I am trying to learn more on this MMS thing but right now this is ok solution.
Ps. This should work also on Mobian, Arch and Manjaro but the file goes to different place and the command might be little bittle different.