desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #64194
[Bug 566812] Re: USB Modem wont connect after modem hangup
I use a script to reconnect my ONDA 3G modem, because the solution above
doesn't work for me. My script is executed by cron, every 5 minutes.
#!/bin/bash
MCHECK=`lsusb | grep ONDA`
if ! [ -n "$MCHECK" ]; then
echo "3G/GPRS modem not in use, ignoring..."
exit 0
fi
NCHECK=`/sbin/ifconfig ppp`
NCHECK1=`echo $NCHECK | cut -d " " -f 1`
if [ "$NCHECK1" = "ppp0" ]; then
echo "Connection up, reconnect not required..."
exit 0
else
echo "Connection down, reconnecting..."
#/etc/init.d/networking restart
killall modem-manager
modem-manager
killall NetworkManager
fi
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/566812
Title:
USB Modem wont connect after modem hangup
Status in ModemManager (with NetworkManager support):
New
Status in “network-manager” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: network-manager
Running my Huawei USB modem (Bus 002 Device 007: ID 12d1:1001 Huawei
Technologies Co., Ltd. E620 USB Modem) in Lucid Beta 2 amd64 (uname -a
= Linux laptop-hostname 2.6.32-19-generic #28-Ubuntu SMP Thu Apr 1
10:39:41 UTC 2010 x86_64 GNU/Linux) and, after the same
usb_modeswitch used in Intrepid, connection is fine.
If signal is lost causing modem hangup, reconnection is not possible
without unplugging modem, replugging, usb_modeswitch and then
reconnect.
Logs:
Apr 19 18:03:42 laptop-hostname pppd[1751]: Sent 91110 bytes, received 298361 bytes.
Apr 19 18:03:42 laptop-hostname pppd[1751]: Modem hangup
Apr 19 18:03:42 laptop-hostname pppd[1751]: Connection terminated.
Apr 19 18:03:42 laptop-hostname NetworkManager: <info> (ttyUSB0): device state change: 8 -> 9 (reason 13)
Apr 19 18:03:42 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) failed.
Apr 19 18:03:42 laptop-hostname NetworkManager: <info> (ttyUSB0): device state change: 9 -> 3 (reason 0)
Apr 19 18:03:42 laptop-hostname NetworkManager: <info> (ttyUSB0): deactivating device (reason: 0).
Apr 19 18:03:42 laptop-hostname modem-manager: (ttyUSB0) closing serial device...
Apr 19 18:03:42 laptop-hostname modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (connected -> disconnecting)
Apr 19 18:03:42 laptop-hostname modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (disconnecting -> connected)
Apr 19 18:03:42 laptop-hostname NetworkManager: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Apr 19 18:03:44 laptop-hostname NetworkManager: <debug> [1271696624.001843] ensure_killed(): waiting for ppp pid 1751 to exit
Apr 19 18:03:44 laptop-hostname NetworkManager: <debug> [1271696624.003285] ensure_killed(): ppp pid 1751 cleaned up
Apr 19 18:04:19 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) starting connection '3 Internet'
Apr 19 18:04:19 laptop-hostname NetworkManager: <info> (ttyUSB0): device state change: 3 -> 4 (reason 0)
Apr 19 18:04:19 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
Apr 19 18:04:19 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
Apr 19 18:04:19 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
Apr 19 18:04:19 laptop-hostname NetworkManager: <WARN> stage1_prepare_done(): GSM modem connection failed: (32) Sending command failed: device is not enabled
Apr 19 18:04:19 laptop-hostname NetworkManager: <info> (ttyUSB0): device state change: 4 -> 9 (reason 1)
Apr 19 18:04:19 laptop-hostname NetworkManager: <info> Marking connection '3 Internet' invalid.
Apr 19 18:04:19 laptop-hostname modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (connected -> disconnecting)
Apr 19 18:04:19 laptop-hostname modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (disconnecting -> connected)
Apr 19 18:04:19 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) failed.
Apr 19 18:04:19 laptop-hostname NetworkManager: <info> (ttyUSB0): device state change: 9 -> 3 (reason 0)
Apr 19 18:04:19 laptop-hostname NetworkManager: <info> (ttyUSB0): deactivating device (reason: 0).
Apr 19 18:04:31 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) starting connection '3 Internet'
Apr 19 18:04:31 laptop-hostname NetworkManager: <info> (ttyUSB0): device state change: 3 -> 4 (reason 0)
Apr 19 18:04:31 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
Apr 19 18:04:31 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
Apr 19 18:04:31 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
Apr 19 18:04:31 laptop-hostname NetworkManager: <WARN> stage1_prepare_done(): GSM modem connection failed: (32) Sending command failed: device is not enabled
Apr 19 18:04:31 laptop-hostname NetworkManager: <info> (ttyUSB0): device state change: 4 -> 9 (reason 1)
Apr 19 18:04:31 laptop-hostname NetworkManager: <info> Marking connection '3 Internet' invalid.
Apr 19 18:04:31 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) failed.
Apr 19 18:04:31 laptop-hostname NetworkManager: <info> (ttyUSB0): device state change: 9 -> 3 (reason 0)
Apr 19 18:04:31 laptop-hostname NetworkManager: <info> (ttyUSB0): deactivating device (reason: 0).
Apr 19 18:04:31 laptop-hostname modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (connected -> disconnecting)
Apr 19 18:04:31 laptop-hostname modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (disconnecting -> connected)
Apr 19 18:04:44 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) starting connection '3 Internet'
Apr 19 18:04:44 laptop-hostname NetworkManager: <info> (ttyUSB0): device state change: 3 -> 4 (reason 0)
Apr 19 18:04:44 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
Apr 19 18:04:44 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
Apr 19 18:04:44 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
Apr 19 18:04:44 laptop-hostname NetworkManager: <WARN> stage1_prepare_done(): GSM modem connection failed: (32) Sending command failed: device is not enabled
Apr 19 18:04:44 laptop-hostname NetworkManager: <info> (ttyUSB0): device state change: 4 -> 9 (reason 1)
Apr 19 18:04:44 laptop-hostname NetworkManager: <info> Marking connection '3 Internet' invalid.
Apr 19 18:04:44 laptop-hostname modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (connected -> disconnecting)
Apr 19 18:04:44 laptop-hostname modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (disconnecting -> connected)
Apr 19 18:04:44 laptop-hostname NetworkManager: <info> Activation (ttyUSB0) failed.
Apr 19 18:04:44 laptop-hostname NetworkManager: <info> (ttyUSB0): device state change: 9 -> 3 (reason 0)
Apr 19 18:04:44 laptop-hostname NetworkManager: <info> (ttyUSB0): deactivating device (reason: 0).
To manage notifications about this bug go to:
https://bugs.launchpad.net/modemmanager/+bug/566812/+subscriptions