Ubuntu – Why does Ubuntu keep trying to connect to a WiFi network while plugged into an ethernet

ethernetgnomenetwork-managerwireless

My desk is situated at the edge of the range of a wireless signal which I use occasionally (when away from my desk) and is therefore saved in network manager. At my desk, however, I plug into the ethernet cable. While I'm working the computer is constantly trying to join the wireless network and usually failing this results in two annoying behaviors.

1: In gnome shell the network connect and disconnect notices keep popping up at the bottom of the screen and I have to click them to make them disappear (I assume it's been fixed in the next version of gnome).

2: (the worst!) Occasionally the wifi password dialog will pop up and ask for the password to this network (which is already saved). An additionally annoyance is that in gnome shell I'll get two copies of the dialog that I have to cancel, one is gnome shell themed (no window border etc…) and the other is just normal gnome themed. (Sometimes if I've been away from the computer for a while I will have multiple copies of this dialog up as its been trying to connect for a while resulting in at times 20 dialogs to cancel).

Note, all the while I've been happily connected to the ethernet and have full network access.

This is incredibly annoying and distracting, why doesn't ubuntu stop trying to connect to wifi if I'm on the ethernet (unless I want to broadcast my own network, but that's different)?

Best Answer

Well, it obviously should check for ethernet connection first, so it's a bug, and you should file a bug report against the network-manager package.

ubuntu-bug network-manager

For more info, see the bug filing howto: https://help.ubuntu.com/community/ReportingBugs

Meanwhile, disable auto-connecting to that network:

  • right click the network applet in the panel
  • select "Edit Connections..."
  • select the Wireless tab and double click the network
  • uncheck the "Connect Automatically" box
Related Question