modem-manager state doesn't match hardware state after suspend (not able to connect)

Bug #1231858 reported by Pauli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
modemmanager (Ubuntu)
New
Undecided
Unassigned

Bug Description

After suspend/resume cycle USB 3G modem is in disconnected state. Modem-manager reports device state just changing between disconnecting and connected:

Sep 27 11:17:02 rantapallo modem-manager[1198]: <info> Modem /org/freedesktop/ModemManager/Modems/8: state changed (connected -> disconnecting)
Sep 27 11:17:02 rantapallo modem-manager[1198]: <info> Modem /org/freedesktop/ModemManager/Modems/8: state changed (disconnecting -> connected)

But I can make modem-manager to reset the complete state just by killing it.

Sep 27 11:17:25 rantapallo modem-manager[1198]: <info> Caught signal 15, shutting down...
Sep 27 11:17:25 rantapallo modem-manager[1198]: <info> Modem /org/freedesktop/ModemManager/Modems/8: state changed (connected -> disconnecting)
Sep 27 11:17:25 rantapallo modem-manager[1198]: <info> Modem /org/freedesktop/ModemManager/Modems/8: state changed (disconnecting -> connected)
Sep 27 11:17:25 rantapallo modem-manager[1198]: disable_disconnect_done: (/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2): error disconnecting the modem while disabling: (5) The serial port is not open.
Sep 27 11:17:25 rantapallo modem-manager[1198]: (mm-generic-gsm.c:2285):disable: runtime check failed: (priv->cid == -1)
Sep 27 11:17:25 rantapallo modem-manager[1198]: <info> Modem /org/freedesktop/ModemManager/Modems/8: state changed (connected -> disabling)
Sep 27 11:17:25 rantapallo NetworkManager[1270]: <info> WWAN now disabled by management service
Sep 27 11:17:25 rantapallo modem-manager[1198]: <info> (ttyUSB2) closing serial port...
Sep 27 11:17:25 rantapallo modem-manager[1198]: <info> (ttyUSB2) serial port closed
Sep 27 11:17:25 rantapallo modem-manager[1198]: <info> Modem /org/freedesktop/ModemManager/Modems/8: state changed (disabling -> disabled)
Sep 27 11:17:25 rantapallo NetworkManager[1270]: <info> (ttyUSB0): device state change: disconnected -> unmanaged (reason 'removed') [30 10 36]
Sep 27 11:17:25 rantapallo NetworkManager[1270]: <info> (ttyUSB0): cleaning up...
Sep 27 11:17:25 rantapallo NetworkManager[1270]: <info> (ttyUSB0): taking down device.
Sep 27 11:17:25 rantapallo NetworkManager[1270]: nm_system_iface_set_up: assertion `ifindex > 0' failed
Sep 27 11:17:25 rantapallo NetworkManager[1270]: <info> the modem manager disappeared
Sep 27 11:17:25 rantapallo dbus[729]: [system] Activating service name='org.freedesktop.ModemManager' (using servicehelper)
Sep 27 11:17:25 rantapallo modem-manager[8154]: <info> ModemManager (version 0.6.0.0) starting...
Sep 27 11:17:25 rantapallo modem-manager[8156]: <info> ModemManager (version 0.6.0.0) starting...
Sep 27 11:17:25 rantapallo dbus[729]: [system] Successfully activated service 'org.freedesktop.ModemManager'
Sep 27 11:17:25 rantapallo NetworkManager[1270]: <info> modem-manager is now available
*** plugin loading ***
*** Serial port opening spam ***
Sep 27 11:17:54 rantapallo modem-manager[8154]: <info> Modem /org/freedesktop/ModemManager/Modems/0: state changed (disabled -> enabling)
Sep 27 11:17:55 rantapallo modem-manager[8154]: <info> (ttyUSB2): using PDU mode for SMS
Sep 27 11:17:55 rantapallo modem-manager[8154]: <info> Modem /org/freedesktop/ModemManager/Modems/0: state changed (enabling -> enabled)
Sep 27 11:17:55 rantapallo NetworkManager[1270]: <info> WWAN now enabled by management service
Sep 27 11:17:55 rantapallo modem-manager[8154]: <info> Modem /org/freedesktop/ModemManager/Modems/0: state changed (enabled -> registered)
Sep 27 11:17:55 rantapallo modem-manager[8154]: <info> (ttyUSB0) opening serial port...
Sep 27 11:17:55 rantapallo modem-manager[8154]: <warn> (ttyUSB0): port attributes not fully set
Sep 27 11:17:55 rantapallo modem-manager[8154]: <info> Modem /org/freedesktop/ModemManager/Modems/0: state changed (registered -> connecting)
Sep 27 11:17:55 rantapallo modem-manager[8154]: <info> Modem /org/freedesktop/ModemManager/Modems/0: state changed (connecting -> connected)

To me it seems that modem-manager would just need to know about suspend/resume and how to close and reopen with completely clean state the modem.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: modemmanager 0.6.0.0.really-0ubuntu5
ProcVersionSignature: Ubuntu 3.8.0-30.44-generic 3.8.13.6
Uname: Linux 3.8.0-30-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
Date: Fri Sep 27 11:19:21 2013
InstallationDate: Installed on 2011-11-02 (695 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
MarkForUpload: True
SourcePackage: modemmanager
UpgradeStatus: Upgraded to raring on 2013-09-18 (8 days ago)

Revision history for this message
Pauli (paniemin) wrote :
Revision history for this message
Aleksander Morgado (aleksander-m) wrote :

In ModemManager 1.x, the current power state of the modem is not assumed when the modem is enabled; i.e. we always re-check current power status before trying to power-up.

Revision history for this message
Pauli (paniemin) wrote :

Ok. So issue is most likely fixed in a newer release that haven't yet reached Ubuntu. For some reason even saucy is using 0.6.0 only. Maybe I should try to build the package from the newer source my self.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.