Re: nmcli radio off connected to ModemManager power state low

2016-03-15 Thread Aleksander Morgado
On Mon, Mar 14, 2016 at 5:01 PM, Carlo Lobrano wrote: >> I'm not entirely sure what you mean with "power off" and "shut down the >> radio", but here are the definitions I'm using: >> power off: the entire modem is powered off not just the radio. The >> device does not

Re: nmcli radio off connected to ModemManager power state low

2016-03-14 Thread Carlo Lobrano
> I'm not entirely sure what you mean with "power off" and "shut down the > radio", but here are the definitions I'm using: > power off: the entire modem is powered off not just the radio. The > device does not communicate with the host because it is unpowered. > > radio off: the radio is powered

Re: nmcli radio off connected to ModemManager power state low

2016-03-14 Thread Dan Williams
On Mon, 2016-03-14 at 09:40 -0500, Dan Williams wrote: > On Sun, 2016-03-13 at 18:23 +0100, c.lobr...@gmail.com wrote: > > > > I'm sorry, I think I explained myself wrong. > > > > CFUN=4 is ok for radio off, I wanted to say that some plugins might > > not  > > use CFUN=4 for "power low". > > In

Re: nmcli radio off connected to ModemManager power state low

2016-03-14 Thread Dan Williams
On Sun, 2016-03-13 at 18:23 +0100, c.lobr...@gmail.com wrote: > I'm sorry, I think I explained myself wrong. > > CFUN=4 is ok for radio off, I wanted to say that some plugins might > not  > use CFUN=4 for "power low". > In Telit modem, as example, I might use CFUN=5 "mobile full  > functionality

Re: nmcli radio off connected to ModemManager power state low

2016-03-14 Thread Dan Williams
On Sun, 2016-03-13 at 12:26 +0100, Aleksander Morgado wrote: > On Sun, Mar 13, 2016 at 10:28 AM, Carlo Lobrano > wrote: > > > > > > thank you, it is more clear now. I will check in my system for > > rfkill. > > One more question, do you think it will be feasible for NM to

Re: nmcli radio off connected to ModemManager power state low

2016-03-13 Thread c.lobr...@gmail.com
I'm sorry, I think I explained myself wrong. CFUN=4 is ok for radio off, I wanted to say that some plugins might not use CFUN=4 for "power low". In Telit modem, as example, I might use CFUN=5 "mobile full functionality with power saving enabled" and CFUN=4 for power off, but doing so "nmcli

Re: nmcli radio off connected to ModemManager power state low

2016-03-13 Thread Aleksander Morgado
On Sun, Mar 13, 2016 at 1:56 PM, Carlo Lobrano wrote: >> The problem is that if the modem is totally powered off with a CFUN=0, >> > then how do we power it back on? CFUN=4, where the modem is still >> > alive but with radio off is already more than enough in most cases. >>

Re: nmcli radio off connected to ModemManager power state low

2016-03-13 Thread Carlo Lobrano
> ​The problem is that if the modem is totally powered off with a CFUN=0, ​> ​ then how do we power it back on? CFUN=4, where the modem is still ​> ​ alive but with radio off is already more than enough in most cases. > Why do you need the modem to be totally off? In power low I could expect that

Re: nmcli radio off connected to ModemManager power state low

2016-03-13 Thread Aleksander Morgado
On Sun, Mar 13, 2016 at 10:28 AM, Carlo Lobrano wrote: > > thank you, it is more clear now. I will check in my system for rfkill. > One more question, do you think it will be feasible for NM to check whether > rfkill is available and, if not, to set the modem in power off in

Re: nmcli radio off connected to ModemManager power state low

2016-03-13 Thread Aleksander Morgado
On Fri, Mar 11, 2016 at 5:18 PM, Dan Williams wrote: >> making some changes in ModemManager "set power state", I observed >> that setting >> setting a radio interface to OFF with nmcli, the ModemManager power >> state >> triggered is the LOW one, while I expected it to be the OFF

Re: nmcli radio off connected to ModemManager power state low

2016-03-13 Thread Carlo Lobrano
Hello Dan, thank you, it is more clear now. I will check in my system for rfkill. One more question, do you think it will be feasible for NM to check whether rfkill is available and, if not, to set the modem in power off in place of just disabling it? Carlo On Fri, 11 Mar 2016 at 17:18 Dan

Re: nmcli radio off connected to ModemManager power state low

2016-03-11 Thread Dan Williams
On Fri, 2016-03-11 at 14:49 +0100, Carlo Lobrano wrote: > Hello everybody, > > making some changes in ModemManager "set power state", I observed > that setting > setting a radio interface to OFF with nmcli, the ModemManager power > state > triggered is the LOW one, while I expected it to be the