Bug 89468 - disabling one modem disables all modems
Summary: disabling one modem disables all modems
Status: RESOLVED NOTOURBUG
Alias: None
Product: ModemManager
Classification: Unclassified
Component: general (show other bugs)
Version: 1.4
Hardware: x86 (IA32) Linux (All)
: medium major
Assignee: ModemManager bug user
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-06 13:22 UTC by jan.haegeman
Modified: 2015-03-09 12:05 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
enabling both modems (201.07 KB, text/plain)
2015-03-09 10:27 UTC, jan.haegeman
Details
disabling modem 0 (22.38 KB, text/plain)
2015-03-09 10:27 UTC, jan.haegeman
Details
disabling modem (second try) (22.38 KB, text/plain)
2015-03-09 10:35 UTC, jan.haegeman
Details

Description jan.haegeman 2015-03-06 13:22:15 UTC
I'm on Ubuntu 14.04 on a 32-bit machine and using ModemManager 1.4. I've also tested the following on ModemManager 1.0 with the same results. I'm in a scenario where I have two MC7304 Sierra modems, both connected to ModemManager through USB.

When I issue 'mmcli -L' I get the following:

	/org/freedesktop/ModemManager1/Modem/1 [Sierra Wireless, Incorporated] MC7304
	/org/freedesktop/ModemManager1/Modem/0 [Sierra Wireless, Incorporated] MC7304

I then enable both modems. I do this by issuing the commands:

mmcli -m 0 -e
mmcli -m 1 -e

Both end up in state 'registered'. So far so good...

           |          state: 'registered'

However, when I disable one of the two modems, and only one, the other one disables as well. If I issue the command:

mmcli -m 0 -d

both modems will end up in:

           |          state: 'disabled'

It seems that disabling one modem disables the lot of them. The same principle applies for 3 or 4 modems which I have also tested.
Comment 1 Aleksander Morgado 2015-03-06 14:23:12 UTC
I'll try to reproduce myself, but cannot do that right now as I don't have 2 SIM cards at this very moment.

Anyway, could you get me ModemManager and NetworkManager debug logs when you reproduce the issue yourself?
http://www.freedesktop.org/wiki/Software/ModemManager/Debugging/

I'm not sure how this can happen in MM, as the modems are fully isolated from each other, so if this really is an issue it may be that some other process triggers the disabling of the modems when one goes disabled or something.
Comment 2 jan.haegeman 2015-03-09 10:27:27 UTC
Created attachment 114153 [details]
enabling both modems
Comment 3 jan.haegeman 2015-03-09 10:27:56 UTC
Created attachment 114154 [details]
disabling modem 0
Comment 4 Aleksander Morgado 2015-03-09 10:30:33 UTC
(In reply to jan.haegeman from comment #3)
> Created attachment 114154 [details]
> disabling modem

Can't read the logs properly...
Comment 5 jan.haegeman 2015-03-09 10:35:02 UTC
Created attachment 114155 [details]
disabling modem (second try)
Comment 6 jan.haegeman 2015-03-09 10:35:34 UTC
(In reply to Aleksander Morgado from comment #4)
> (In reply to jan.haegeman from comment #3)
> > Created attachment 114154 [details]
> > disabling modem
> 
> Can't read the logs properly...

My apologies, should be ok now.
Comment 7 Aleksander Morgado 2015-03-09 10:46:00 UTC
So, it looks like NetworkManager sees that the modem #0 is being disabled, and after some checks it ends up also disabling the modem #1...

Could you please report the bug to the NetworkManager mailing list?
  https://bugzilla.gnome.org/enter_bug.cgi?product=NetworkManager

Thanks!


Mar  9 11:20:26 ubuntu ModemManager[669]: <info>  [1425896426.886702] [mm-iface-modem.c:1203] __iface_modem_update_state_internal(): Modem /org/freedesktop/ModemManager1/Modem/0: state changed (registered -> disabling)
Mar  9 11:20:26 ubuntu ModemManager[669]: <info>  [1425896426.886909] [mm-iface-modem.c:976] update_signal_quality(): Modem /org/freedesktop/ModemManager1/Modem/0: signal quality updated (0)
Mar  9 11:20:26 ubuntu ModemManager[669]: <debug> [1425896426.886923] [mm-iface-modem.c:1093] periodic_signal_quality_check_disable(): Periodic signal quality checks disabled
Mar  9 11:20:26 ubuntu ModemManager[669]: <info>  [1425896426.886942] [mm-iface-modem.c:726] mm_iface_modem_update_access_technologies(): Modem /org/freedesktop/ModemManager1/Modem/0: access technology changed (lte -> unknown)
Mar  9 11:20:26 ubuntu ModemManager[669]: <debug> [1425896426.886950] [mm-iface-modem.c:816] periodic_access_technologies_check_disable(): Periodic access technology checks disabled
Mar  9 11:20:26 ubuntu ModemManager[669]: <debug> [1425896426.886959] [mm-broadband-modem.c:8150] disabling_step(): Modem has messaging capabilities, disabling the Messaging interface...
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.887889] [nm-modem.c:675] nm_modem_get_uid(): in nm_modem_get_uid
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.887904] [nm-modem.c:680] nm_modem_get_uid(): nm_modem_get_uid: uid cdc-wdm0
Mar  9 11:20:26 ubuntu NetworkManager[707]: <info> (cdc-wdm0) modem state changed, 'registered' --> 'disabling' (reason: user-requested)
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.887912] [nm-modem.c:95] nm_modem_get_mm_enabled(): in nm_modem_get_mm_enabled
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.887921] [nm-modem.c:810] set_property(): in set_property
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.887930] [nm-device-modem.c:174] modem_enabled_cb(): in modem_enabled_cb: NMModemBroadband/156076304/156291464
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.887935] [nm-device-modem.c:179] modem_enabled_cb(): in modem_enabled_cb, got objects: NMDeviceModem
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.887938] [nm-modem.c:95] nm_modem_get_mm_enabled(): in nm_modem_get_mm_enabled
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.887942] [nm-device-modem.c:333] set_enabled(): in set_enabled: 0
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.887945] [nm-modem.c:105] nm_modem_set_mm_enabled(): in nm_modem_set_mm_enabled: 0
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.887953] [nm-modem.c:95] nm_modem_get_mm_enabled(): in nm_modem_get_mm_enabled
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.887956] [nm-modem.c:95] nm_modem_get_mm_enabled(): in nm_modem_get_mm_enabled
Mar  9 11:20:26 ubuntu NetworkManager[707]: <info> WWAN now disabled by management service
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888073] [nm-manager.c:1737] manager_rfkill_update_one_type(): WWAN hw-enabled 1 sw-enabled 1 daemon-enabled 0
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888090] [nm-manager.c:1592] manager_update_radio_enabled(): (cdc-wdm0): setting radio disabled
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888094] [nm-device-modem.c:333] set_enabled(): in set_enabled: 0
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888097] [nm-modem.c:105] nm_modem_set_mm_enabled(): in nm_modem_set_mm_enabled: 0
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888101] [nm-manager.c:1592] manager_update_radio_enabled(): (cdc-wdm4): setting radio disabled
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888104] [nm-device-modem.c:333] set_enabled(): in set_enabled: 0
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888107] [nm-modem.c:105] nm_modem_set_mm_enabled(): in nm_modem_set_mm_enabled: 0
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888167] [nm-modem.c:95] nm_modem_get_mm_enabled(): in nm_modem_get_mm_enabled
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888175] [nm-modem.c:810] set_property(): in set_property
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888185] [nm-device-modem.c:174] modem_enabled_cb(): in modem_enabled_cb: NMModemBroadband/156076416/156291792
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888401] [nm-device-modem.c:179] modem_enabled_cb(): in modem_enabled_cb, got objects: NMDeviceModem
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888408] [nm-modem.c:95] nm_modem_get_mm_enabled(): in nm_modem_get_mm_enabled
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888412] [nm-device-modem.c:333] set_enabled(): in set_enabled: 0
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888415] [nm-modem.c:105] nm_modem_set_mm_enabled(): in nm_modem_set_mm_enabled: 0
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888422] [nm-modem.c:95] nm_modem_get_mm_enabled(): in nm_modem_get_mm_enabled
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888426] [nm-modem.c:95] nm_modem_get_mm_enabled(): in nm_modem_get_mm_enabled
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888429] [nm-manager.c:1737] manager_rfkill_update_one_type(): WWAN hw-enabled 1 sw-enabled 1 daemon-enabled 0
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888433] [nm-modem.c:95] nm_modem_get_mm_enabled(): in nm_modem_get_mm_enabled
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888439] [nm-modem.c:95] nm_modem_get_mm_enabled(): in nm_modem_get_mm_enabled
Mar  9 11:20:26 ubuntu NetworkManager[707]: <debug> [1425896426.888443] [nm-modem.c:116] nm_modem_get_mm_connected(): in nm_modem_get_mm_connected
Mar  9 11:20:26 ubuntu ModemManager[669]: <info>  [1425896426.889106] [mm-iface-modem.c:1203] __iface_modem_update_state_internal(): Modem /org/freedesktop/ModemManager1/Modem/1: state changed (registered -> disabling)
Comment 8 jan.haegeman 2015-03-09 10:53:42 UTC
Will do, thanks.
Comment 9 jan.haegeman 2015-03-09 12:05:07 UTC
Bug created, for future reference:

https://bugzilla.gnome.org/show_bug.cgi?id=745884


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.