ModemManager: Difference between revisions

Manu (talk | contribs)
m Minor corrections, such as using "computer code" style instead of backticks (which did not work as expected).
Manu (talk | contribs)
m Removed information that is accurate only if the other services defined under the section "Unreliable suspend/resume" are enabled.
Line 20: Line 20:
   serviceConfig = {
   serviceConfig = {
     Type = "oneshot";
     Type = "oneshot";
     RemainAfterExit = true; # The service won't run again on successive ModemManager activations (i.e., after the machine resumes from suspend).
     RemainAfterExit = true; # The service won't run again on successive ModemManager activations.
     ExecStart = "${pkgs.networkmanager}/bin/nmcli radio wwan off";
     ExecStart = "${pkgs.networkmanager}/bin/nmcli radio wwan off";
   };
   };
};</syntaxhighlight>Note that the state of the cellular connection will be retained after resuming from suspend. This is intended for scenarios such as changing trains. However, if the intended goal is to never establish a cellular connection on resume as well, then simply remove the <code>RemainAfterExit</code> line.
};</syntaxhighlight>Note that the state of the cellular connection will be retained even if <code>ModemManager</code> is restarted (as long as the system has not been rebooted).


== Troubleshooting ==
== Troubleshooting ==