On Wed, 2014-06-04 at 16:57 +0000, Art Edwards wrote:
> I am running 12.10 on Dell  inspiron 14-z, and I'm using the novatel
> M760 over virgin mobile. I still have the problem that the system
> doesn't see the device  if I remove, and re-insert it. I have tried the
> solution suggested in #27, and, now, the modem does autoconnect.
> However, it has not solved the re-insertion problem. I note the Bug
> Watch updater that there is a new network-manager as of 2014-05-07. Will
> this be back-ported to 12.10?
> 

Try this. It was all that helped me get 12.04 to auto-connect.
sudo gedit /etc/init.d/mobile-broadband-connect
Copy/paste the following script in and where you see 8ta (2 places) you
have to enter your service provider. Then save and close gedit.
then
sudo chmod +x /etc/init.d/mobile-broadband-connect
sudo update-rc.d mobile-broadband-connect defaults
Then reboot and lets hope it works for you too.
Good luck
Miles


#!/bin/sh
# Mobile Broadband Startup Service script v0.1 alpha by The Fan Club -
April 2012
# acts as startup service script for nmcli to fire up Mobile Broadband
Connections
# NOTE: Use the name of the Mobile Connection in the Network Manager as
the 'id' 
# USAGE: start|stop|status
#
### BEGIN INIT INFO 
# Provides: mobile-broadband-connect 
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 3 4 5 
# Default-Stop: 0 1 6 
# Short-Description: Autoconnect 3G GSM
### END INIT INFO

NAME="mobile-broadband-connect"
DESC="Autoconnect 3G/4G GSM USB modem at startup"

test -x $DAEMON || exit 0

case "$1" in
        start)
           echo "Starting Mobile Broadband Connection."

           while true; do
              # testing...
              LC_ALL=C nmcli -t -f TYPE,STATE dev | grep -q "^gsm:disconnected
$"
              if [ $? -eq 0 ]; then
                 break
              else
                 # no GSM modem detected yet, sleeping for a second
                 sleep 1
              fi
           done

           # Once GSM modem detected, run the script
           nmcli -t con up id 8ta
        ;;
        stop)
           echo "Stopping Mobile Broadband Connection."
           nmcli -t con down id 8ta
           nmcli -t nm wwan off 
        ;;
        status)
           # Check to see if the process is running with nmcli
       nmcli -p dev
        ;;
        
        *)
           echo "Mobile Broadband Startup Service"
           echo $"Usage: $0 {start|stop|status}"
           exit 1
esac
exit 0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/848164

Title:
  Auto connect to 3G network only works after manually enabling mobile
  broadband after modem inserted/bootup/resume

To manage notifications about this bug go to:
https://bugs.launchpad.net/network-manager/+bug/848164/+subscriptions

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

Reply via email to