Contact is lost with internal modem after some random period - a suspend and wake cycle or a restart fixes it -- Wireless 5520 Voda I Mobile Broadband (3G HSDPA) Minicard EAP-SIM Port

Bug #367856 reported by Motin
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned
network-manager (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: network-manager

Short version:

Modem communication drops to a non-working state at seemlingly random times. In that state, serial communication times out. If the driver is reloaded and Network Manager restarted, nm doesn't detect mobile broadband capabilities:
Apr 28 13:28:28 motin-xps nm-system-settings: SCPlugin-Ifupdown: device added (udi: /org/freedesktop/Hal/devices/usb_device_413c_8138_Novatel_Wireless_HSDPA_Modem_if0_serial_usb_0, iface: (null)): iface not found
Apr 28 13:28:28 motin-xps NetworkManager: <info> (ttyUSB1): ignoring due to lack of mobile broadband capabilties
Apr 28 13:28:28 motin-xps NetworkManager: <info> (ttyUSB0): found serial port (udev: hal:GSM)
Apr 28 13:28:28 motin-xps NetworkManager: <info> (ttyUSB0): ignoring due to lack of probed mobile broadband capabilties

Only a suspend+resume cycle resets the modem to a working state again:
Apr 28 13:51:27 motin-xps NetworkManager: <info> (ttyUSB0): found serial port (udev:GSM hal:GSM)
Apr 28 13:51:27 motin-xps NetworkManager: <info> (ttyUSB0): new Modem device (driver: 'option')
Apr 28 13:51:27 motin-xps NetworkManager: <info> (ttyUSB0): exported as /org/freedesktop/Hal/devices/usb_device_413c_8138_Novatel_Wireless_HSDPA_Modem_if0_serial_usb_0

And the modem can be used as usual.

Long version (the attachments is in a comment below):

This is so frustrating, loosing internet connection frequently.

Modem communication (and thus the current ppp connection) with the Dell XPS M1330 internal UMTS / HSDPA modem silently drops dead at times (around 1-4 hours after connection, sometimes 8-10 hours afterwards, sometimes 0.5h etc - very randomly it seems, but certain for sure), with no other choice than to suspend and resume the laptop to be able to connect again. (Not a favorable workaround since suspend fails around 1 time of 10...)

At times that I just have noticed the internet connection dropping dead I have looked in syslog, kern.log and dmesq for a trace of that something particular was logged, but find nothing at all...

I tried enabling debug options in ppp option, but the connection process stops before even attempting a ppp connection.

In the failed state, without reloading the option-drivers, I performed a nm serial debug log
  NetworkManager: <debug> [1240826372.112830] nm_serial_device_open(): (ttyUSB0) opening device...
  NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
  NetworkManager: <debug> [1240826387.214334] nm_serial_debug(): Sending: 'ATZ E0 V1 X4 &C1 +FCLASS=0
'
  NetworkManager: <debug> [1240826389.419279] nm_serial_debug(): Error: too many retries sending: 'ATZ E0 V1 X4 &C1 +FCLASS=0
'
  NetworkManager: <WARN> init_done(): Modem initialization timed out

In a working state (like after a resume), when it is successful, it continues instead of the ERROR with:
NetworkManager: <debug> [1240826623.265441] nm_serial_debug(): Got: 'ATZ E0 V1 X4 &C1 +FCLASS=0
'
NetworkManager: <debug> [1240826623.274204] nm_serial_debug(): Got: 'ATZ E0 V1 X4 &C1 +FCLASS=0

OK

'
and continues connections etc.

(I have disabled the PIN because of another bug, where network manager doesn't realize that the PIN is needed.)

HOWEVER, this is just the tip of the ice berg, symptoms of deeper issues it seems. Here is a full debug session initiated after I detected that internet had stopped working:

motin@motin-xps:~$ sudo modprobe -r option
FATAL: Module option is in use.
motin@motin-xps:~$ sudo killall pppd
motin@motin-xps:~$ sudo killall pppd
motin@motin-xps:~$ sudo killall -s9 pppd
motin@motin-xps:~$ sudo killall -s9 pppd
pppd: ingen process avslutad
motin@motin-xps:~$ sudo modprobe -r option
FATAL: Module option is in use.
motin@motin-xps:~$ sudo /etc/init.d/NetworkManager stop
 * Stopping network connection manager NetworkManager [ OK ]
motin@motin-xps:~$ sudo modprobe -r option
motin@motin-xps:~$ sudo modprobe option

In syslog:
Apr 28 13:27:42 motin-xps kernel: [46986.836054] option 4-2:1.0: GSM modem (1-port) converter detected
Apr 28 13:27:42 motin-xps kernel: [46986.836208] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB0
Apr 28 13:27:42 motin-xps kernel: [46986.836243] option 4-2:1.1: GSM modem (1-port) converter detected
Apr 28 13:27:42 motin-xps kernel: [46986.836345] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB1

motin@motin-xps:~$ sudo /etc/init.d/NetworkManager start
 * Starting network connection manager NetworkManager [ OK ]

In syslog:
Apr 28 13:28:28 motin-xps nm-system-settings: SCPlugin-Ifupdown: device added (udi: /org/freedesktop/Hal/devices/usb_device_413c_8138_Novatel_Wireless_HSDPA_Modem_if0_serial_usb_0, iface: (null)): iface not found
Apr 28 13:28:28 motin-xps NetworkManager: <info> (ttyUSB1): ignoring due to lack of mobile broadband capabilties
Apr 28 13:28:28 motin-xps NetworkManager: <info> (ttyUSB0): found serial port (udev: hal:GSM)
Apr 28 13:28:28 motin-xps NetworkManager: <info> (ttyUSB0): ignoring due to lack of probed mobile broadband capabilties

motin@motin-xps:~$ sudo /lib/udev/nm-modem-probe --verbose --export /sys/class/tty/ttyUSB0
L: main(): (/sys/class/tty/ttyUSB0): usb-vid 0x0000 usb-pid 0x0000 usb-intf 0 driver '(null)'
L: main(): probing /sys/class/tty/ttyUSB0
^C

(I had to manually break this as it never seems to finish)

motin@motin-xps:~$ sudo /etc/init.d/NetworkManager stop
 * Stopping network connection manager NetworkManager [ OK ]
motin@motin-xps:~$ sudo /lib/udev/nm-modem-probe --verbose --export /sys/class/tty/ttyUSB0
L: main(): (/sys/class/tty/ttyUSB0): usb-vid 0x0000 usb-pid 0x0000 usb-intf 0 driver '(null)'
L: main(): probing /sys/class/tty/ttyUSB0
^C

motin@motin-xps:~$ udevadm info --query=all --path=/sys/class/tty/ttyUSB0 --attribute-walk > udevadm-ttyUSB0-info.txt
motin@motin-xps:~$ lshal > lshal.txt

motin@motin-xps:~$ sudo bash -c "echo Y > /sys/module/option/parameters/debug"
motin@motin-xps:~$ sudo modprobe -r option
motin@motin-xps:~$ sudo modprobe option debug=Y

Here I assembled syslog output into the attached option-debug-output-during-modprobe-in-non-working-state.txt

motin@motin-xps:~$ sudo /etc/init.d/NetworkManager start
 * Starting network connection manager NetworkManager [ OK ]

Apr 28 13:38:40 motin-xps NetworkManager: <info> (ttyUSB0): found serial port (udev: hal:GSM)
Apr 28 13:38:40 motin-xps NetworkManager: <info> (ttyUSB0): ignoring due to lack of probed mobile broadband capabilties
Apr 28 13:38:40 motin-xps NetworkManager: <info> (ttyUSB1): ignoring due to lack of mobile broadband capabilties

Here I performed a suspend + resume

With the following logs:
syslog-suspend.log
syslog-resume-up-until-device-correctly-probed.log

And now in syslog it clearly shows that it works again:
Apr 28 13:51:27 motin-xps NetworkManager: <info> (ttyUSB0): found serial port (udev:GSM hal:GSM)
Apr 28 13:51:27 motin-xps NetworkManager: <info> (ttyUSB0): new Modem device (driver: 'option')
Apr 28 13:51:27 motin-xps NetworkManager: <info> (ttyUSB0): exported as /org/freedesktop/Hal/devices/usb_device_413c_8138_Novatel_Wireless_HSDPA_Modem_if0_serial_usb_0

Where is the bug occuring? I don't know... Please help!

Revision history for this message
Motin (motin) wrote :

I did some more testing, and stopped NetworkManager, killed all pppd, reloaded the option driver, and then instead of:

Apr 27 12:54:43 motin-xps NetworkManager: <info> (ttyUSB1): ignoring due to lack of mobile broadband capabilties
Apr 27 12:54:43 motin-xps avahi-daemon[4339]: Successfully dropped remaining capabilities.
Apr 27 12:54:43 motin-xps NetworkManager: <info> (ttyUSB0): found serial port (udev:GSM hal:GSM)
Apr 27 12:54:43 motin-xps NetworkManager: <info> (ttyUSB0): new Modem device (driver: 'option')
Apr 27 12:54:43 motin-xps NetworkManager: <info> (ttyUSB0): exported as /org/freedesktop/Hal/devices/usb_device_413c_8138_Novatel_Wireless_HSDPA_Modem_if0_serial_usb_0

... I got:
Apr 27 12:44:19 motin-xps NetworkManager: <info> (ttyUSB1): ignoring due to lack of mobile broadband capabilties
Apr 27 12:44:19 motin-xps NetworkManager: <info> (ttyUSB0): found serial port (udev: hal:GSM)
Apr 27 12:44:19 motin-xps NetworkManager: <info> (ttyUSB0): ignoring due to lack of probed mobile broadband capabilties

What more can I supply?

Revision history for this message
Alexander Sack (asac) wrote :

First, please dont lumb multiple bugs together ... please remove the parts you dont want to be treated in this bug from the description/summary.

please provide output of

lshal
lsusb

Also stop NetworkManager and use:

sudo su
export NM_SERIAL_DEBUG=1
NetworkManager --no-daemon 2>&1 | tee /tmp/nm.log.txt

and attach the nm.log.txt after reproducing whatever bug you want this bug to stand for ;).

Revision history for this message
swoke (swoke) wrote :

Hello.

I got almost the same bug.

In fact, I lost my provider network after one connection. I'm using internal gsm modem on a dell latitude d430.

On minicom, AT+COPS? gives me :
AT+COPS?
+COPS: 0,0,"",2

It's only after a successful connection.

Here's the log :

Revision history for this message
Motin (motin) wrote :

@Alexander: That serial log is what is included in the original description. However, since I am now removing parts I don't want treated, then I am removing that serial log... The issue seems to go deeper than that and serial logging just proves that there is something funky with the modem communication. I'll be back soon with an updated description.

@smoke: Thanks, but that doesn't look like the same bug at all. I don't even get past this part:
NetworkManager: <info> (ttyUSB0): found serial port (udev:GSM hal:GSM)
NetworkManager: <info> (ttyUSB0): new Modem device (driver: 'option')

Please open a new bug on your case if you are interested of it getting solved. Thanks for the input otherwise!

Revision history for this message
Motin (motin) wrote :
description: updated
Revision history for this message
Motin (motin) wrote :
Revision history for this message
Motin (motin) wrote :
Revision history for this message
Motin (motin) wrote :
Revision history for this message
Motin (motin) wrote :
Revision history for this message
Motin (motin) wrote :
Revision history for this message
mcimino (mcimino) wrote :

i have the same problem with a IBM/Lenovo Thinkpad X60x with UMTS internal modem...

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi Motin,

This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/lucid.

If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux 367856

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kernel-suspend
tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Jeff Buchbinder (rufustfirefly) wrote :

I can confirm that this is still going on in Natty (11.04).

Usually after a few suspend/resume cycles, the cdc_acm module is loaded and recognized when a USB dongle is used, but NetworkManager refuses to identify it properly. Currently running:

network-manager 0.8.4~git.20110319t175609.d14809b-0ubuntu3
linux-image-2.6.38-8-generic 2.6.38-8.42

Changed in network-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Thomas Hood (jdthood) wrote :

@Motin: What the model number of your modem? Are you still having this problem in Ubuntu 12.04?

summary: - Contact is lost with internal HSDPA/UMTS modem after some random period
- - a suspend and wake cycle or a restart is needed to be able to use the
- modem again
+ Contact is lost with internal modem after some random period - a suspend
+ and wake cycle or a restart fixes it -- Wireless 5520 Voda I Mobile
+ Broadband (3G HSDPA) Minicard EAP-SIM Port
Changed in network-manager (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for network-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in network-manager (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
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.