Bug 1341303

Summary: Please enable suspend/resume support
Product: [Fedora] Fedora Reporter: Tore Anderson <tore>
Component: ModemManagerAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 24CC: dcbw, fgiudici, lkundrak, madstitz, marc.jadoul, tore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ModemManager-1.6.0-1.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-31 13:22:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
ModemManager Debug log none

Description Tore Anderson 2016-05-31 18:30:38 UTC
Some modems must be reinitialised from scratch following a resume from suspend. ModemManager can detect that a suspend is taking place, but this functionality isn't enabled in the ModemManager-1.6-0.3.rc3.fc24 build. That means that it might be impossible to reconnect to mobile broadband following a suspend/resume cycle, as described in the external freedesktop.org bug.

Could you please enable suspend/resume awareness in the Fedora ModemManager packages? The configure option you'll need is "--with-suspend-resume=systemd".

Comment 1 Fedora Update System 2016-07-27 07:05:01 UTC
usb_modeswitch-2.4.0-4.fc24 ModemManager-1.6.0-1.fc24 libmbim-1.14.0-1.fc24 libqmi-1.16.0-1.fc24 usb_modeswitch-data-20160612-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-494a721a73

Comment 2 Fedora Update System 2016-07-28 05:58:49 UTC
ModemManager-1.6.0-1.fc24, libmbim-1.14.0-1.fc24, libqmi-1.16.0-1.fc24, usb_modeswitch-2.4.0-4.fc24, usb_modeswitch-data-20160612-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-494a721a73

Comment 3 Lubomir Rintel 2016-07-28 10:13:18 UTC
*** Bug 1352223 has been marked as a duplicate of this bug. ***

Comment 4 madstitz 2016-07-29 07:11:14 UTC
After installing the update, I still have to restart ModemManager to get my Huawei ME906s-158 to work.

Comment 5 Dan Williams 2016-07-30 14:12:41 UTC
Sorry it's not working yet, to help narrow this down further could you:

mmcli --set-logging=DEBUG

then reproduce the problem (without restarting ModemManager!) and when the modem is no longer working:

journalctl -b -u ModemManager > /tmp/modem.log

and then please attach /tmp/modem.log so we can investigate.  Thanks!

Comment 6 Marc Jadoul 2016-08-08 12:06:31 UTC
(In reply to Dan Williams from comment #5)
> Sorry it's not working yet, to help narrow this down further could you:
> 
> mmcli --set-logging=DEBUG
> 
> then reproduce the problem (without restarting ModemManager!) and when the
> modem is no longer working:
> 
> journalctl -b -u ModemManager > /tmp/modem.log
> 
> and then please attach /tmp/modem.log so we can investigate.  Thanks!

Hello,

I Have a HP hs2350. It is using CentOS 7.2... I Know it is not the same setup. Nevertheless, I have the same issue from a long time with Suspend/Resume and modem.
Initially, I needed a complete poweroff of the laptop to reinitialize the modem.

I recompiled and applied patches from here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-494a721a73

I see improvement: 
* First tests I did Friday last week, everything was OK even after suspend resume....
* Now, after the WE, Monday, After suspend/resume, I get no connection. But effectivelly If I restart ModemManager, it works again! No shutdown required anymore.

I do not know what changed....

I attache the log (modem_after_restart_CentOS.log)
at 13h49 --> suspend+resume
No Connection anymore
at 13:56 --> restart Modem Manager; it redetect Modem.
at 14:00 --> reconnected

Regards, Marc

Comment 7 Marc Jadoul 2016-08-08 12:12:59 UTC
Created attachment 1188682 [details]
ModemManager Debug log

HP hs2350 on CentOS 7.2 with ModemManager/libqmi/libmbim patches from here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-494a721a73

ModemManager-glib-1.6.0-1.el7.centos.x86_64
libmbim-1.14.0-1.el7.centos.x86_64
libqmi-1.16.0-1.el7.centos.x86_64
ModemManager-1.6.0-1.el7.centos.x86_64
libqmi-utils-1.16.0-1.el7.centos.x86_64
libmbim-utils-1.14.0-1.el7.centos.x86_64

After suspend/resume, no connection. Restart ModemManager --> it works again

at 13h49 --> suspend+resume
No Connection anymore
at 13:56 --> restart Modem Manager; it redetect Modem.
at 14:00 --> reconnected

Comment 8 madstitz 2016-08-08 12:40:27 UTC
My modem doesn't even connect anymore now, even after restarting NetworkManager. Will try a cold boot or maybe boot windows in between to reset it to a workable state, then fetching some debug logs.

Comment 9 madstitz 2016-08-19 14:13:24 UTC
nope, still not working after cold boot/windows in between (which connected fine).

I tested both with the packages in fedora 24 and in updates-testing, same result.
So could be a kernel bug.

Comment 10 Fedora Update System 2016-08-31 13:22:29 UTC
ModemManager-1.6.0-1.fc24, libmbim-1.14.0-1.fc24, libqmi-1.16.0-1.fc24, usb_modeswitch-2.4.0-4.fc24, usb_modeswitch-data-20160612-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 madstitz 2016-09-01 20:33:09 UTC
still getting 'GDBus.Error:org.freedesktop.ModemManager1.Error.MobileEquipment.NetworkTimeout: Network timeout' when trying to connect with mmcli on kernel 4.7.2-201