** Description changed:

  Binary package hint: network-manager
  
- This is so frustrating, loosing internet connection frequently:
+ Short version:
  
- Modem connection (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...
+ 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.
  
- All I can come up with atm is a serial log for when it is not
- successful:
+ 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
  
- NetworkManager: <info>  (ttyUSB0): device state change: 1 -> 2
- NetworkManager: <info>  (ttyUSB0): deactivating device (reason: 2).
- NetworkManager: nm_system_device_flush_ip4_routes_with_iface: assertion 
`iface_idx >= 0' failed
- NetworkManager: nm_system_device_flush_ip4_addresses_with_iface: assertion 
`iface_idx >= 0' failed
- NetworkManager: <info>  (ttyUSB0): device state change: 2 -> 3
- NetworkManager: <info>  Activation (ttyUSB0) starting connection '3'
- NetworkManager: <info>  (ttyUSB0): device state change: 3 -> 4
- NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) 
scheduled...
- NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) 
started...
- 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
- NetworkManager: <info>  (ttyUSB0): device state change: 4 -> 9
- NetworkManager: <debug> [1240826400.001958] nm_serial_device_close(): Closing 
device 'ttyUSB0'
- NetworkManager: <info>  Marking connection '3' invalid.
- NetworkManager: <info>  Activation (ttyUSB0) failed.
- NetworkManager: <info>  (ttyUSB0): device state change: 9 -> 3
- NetworkManager: <info>  (ttyUSB0): deactivating device (reason: 0).
- NetworkManager: nm_system_device_flush_ip4_routes_with_iface: assertion 
`iface_idx >= 0' failed
- NetworkManager: nm_system_device_flush_ip4_addresses_with_iface: assertion 
`iface_idx >= 0' faile
- 
- And of course, when it is successful, it continues instead of the ERROR with:
+ 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...
+ (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:
+ 
+ mo...@motin-xps:~$ sudo modprobe -r option
+ FATAL: Module option is in use.
+ mo...@motin-xps:~$ sudo killall pppd
+ mo...@motin-xps:~$ sudo killall pppd
+ mo...@motin-xps:~$ sudo killall -s9 pppd
+ mo...@motin-xps:~$ sudo killall -s9 pppd
+ pppd: ingen process avslutad
+ mo...@motin-xps:~$ sudo modprobe -r option
+ FATAL: Module option is in use.
+ mo...@motin-xps:~$ sudo /etc/init.d/NetworkManager stop
+  * Stopping network connection manager NetworkManager                         
                                                                 [ OK ] 
+ mo...@motin-xps:~$ sudo modprobe -r option
+ mo...@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
+ 
+ mo...@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 
+ 
+ mo...@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)
+ 
+ mo...@motin-xps:~$ sudo /etc/init.d/NetworkManager stop
+  * Stopping network connection manager NetworkManager                         
                                                                [ OK ] 
+ mo...@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
+ 
+ mo...@motin-xps:~$ udevadm info --query=all --path=/sys/class/tty/ttyUSB0 
--attribute-walk > udevadm-ttyUSB0-info.txt
+ mo...@motin-xps:~$ lshal > lshal.txt
+ 
+ mo...@motin-xps:~$ sudo bash -c "echo Y > /sys/module/option/parameters/debug"
+ mo...@motin-xps:~$ sudo modprobe -r option
+ mo...@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
+ 
+ mo...@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!

** Attachment added: "non-working-state_nm.serial.log"
   http://launchpadlibrarian.net/26069230/non-working-state_nm.serial.log

-- 
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
https://bugs.launchpad.net/bugs/367856
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to