NetworkManager does not auto connect mobile broadband network

Bug #875075 reported by Hồng Quân
74
This bug affects 15 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I use the 3G USB dongle of HuaweiE173Eu-1 to connect to Internet. In the Ubuntu 11.04 (Narwhale), the NetworkManager can connect the network automatically at startup, but in Ubuntu 11.10 (Ocelot) it does not though I tick "Connect automatically".

Tags: precise
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cnetworkmanager (Ubuntu):
status: New → Confirmed
Revision history for this message
Tuomas Salo (naapuri) wrote :

A clumsy workaround for autoconnecting (and auto-reconnecting):

As root or with sudo, create a text file /ect/cron.d/keep-it-up with the following contents: (as one line!)

*/2 * * * * root nmcli dev|grep -q '\bconnected *'|| nmcli con up id my_connection_id > /dev/null 2>&1

Every other minute, it checks whether you have a connected network connection. If not, it brings one up. Replace my_connection_id with the name of your mobile (or bluetooth) connection. Get a list of id's with the command:

grep ^id= /etc/NetworkManager/system-connections/*

If the name of the connection contains eg. spaces, try using quotes or renaming the connection.

Revision history for this message
wqqar (kindevil) wrote :

I'm facing the same problem

@Tuomas Salo : I tried your solution by creating a job.

But, what it does is even if the connection is connected it disconnects the connection and reconnects it.

May be I'm missing something here :)

--
Thanks
Waqar

Revision history for this message
Tuomas Salo (naapuri) wrote :

@wqqar: going a bit off-topic here, but try running:

nmcli dev|grep '\bconnected *'

It should return a line ending with "connected" when there is a connection, otherwise empty. Also try running (as root):

nmcli dev|grep -q '\bconnected *'|| nmcli con up id my_connection_id

If there's a problem, this should print it. Check for typos and/or modify the grep clauses.

Revision history for this message
David Engel (de-c) wrote :

This is affecting me too. I wish it would just auto connect.

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

Is this a duplicate of bug #391729?

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

It seems like the auto connection is only happening after enabling "Mobile broadband" switch in the nm-applet menu, which is off by default.

tags: added: precise
Thomas Hood (jdthood)
affects: cnetworkmanager (Ubuntu) → network-manager (Ubuntu)
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.