Bug 1202913 - NetworkManager does not detect whether the cable is plugged in
Summary: NetworkManager does not detect whether the cable is plugged in
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 21
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Dan Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-17 16:55 UTC by Wilf
Modified: 2015-03-18 11:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-18 11:07:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Wilf 2015-03-17 16:55:34 UTC
Description of problem:

In Network Settings and the notification menu bit at the top right in Gnome Shell 3.14, the current status of the network connection is always shown as connected, even when it isn't.


Version-Release number of selected component (if applicable):

Installed Packages
NetworkManager.x86_64                                                      1:0.9.10.1-3.20150219git.fc21                                @updates                    
NetworkManager-adsl.x86_64                                                 1:0.9.10.1-3.20150219git.fc21                                @updates                    
NetworkManager-bluetooth.x86_64                                            1:0.9.10.1-3.20150219git.fc21                                @updates                    
NetworkManager-config-connectivity-fedora.x86_64                           1:0.9.10.1-3.20150219git.fc21                                @updates                    
NetworkManager-config-server.x86_64                                        1:0.9.10.1-3.20150219git.fc21                                @updates                    
NetworkManager-devel.x86_64                                                1:0.9.10.1-3.20150219git.fc21                                @updates                    
NetworkManager-glib.x86_64                                                 1:0.9.10.1-3.20150219git.fc21                                @updates                    
NetworkManager-glib-devel.x86_64                                           1:0.9.10.1-3.20150219git.fc21                                @updates                    
NetworkManager-iodine.x86_64                                               0.0.4-4.fc21                                                 @fedora                     
NetworkManager-iodine-gnome.x86_64                                         0.0.4-4.fc21                                                 @fedora                     
NetworkManager-l2tp.x86_64                                                 0.9.8.7-3.fc21                                               @fedora                     
NetworkManager-openconnect.x86_64                                          0.9.10.2-1.fc21                                              @updates                    
NetworkManager-openswan.x86_64                                             0.9.8.4-4.fc21                                               @fedora                     
NetworkManager-openswan-gnome.x86_64                                       0.9.8.4-4.fc21                                               @fedora                     
NetworkManager-openvpn.x86_64                                              1:1.0.0-1.fc21.1                                             @updates                    
NetworkManager-openvpn-gnome.x86_64                                        1:1.0.0-1.fc21.1                                             @updates                    
NetworkManager-pptp.x86_64                                                 1:0.9.8.2-6.fc21                                             @koji-override-0/$releasever
NetworkManager-pptp-gnome.x86_64                                           1:0.9.8.2-6.fc21                                             @koji-override-0/$releasever
NetworkManager-ssh.x86_64                                                  0.9.3-0.3.20140601git9d834f2.fc21                            @fedora                     
NetworkManager-ssh-gnome.x86_64                                            0.9.3-0.3.20140601git9d834f2.fc21                            @fedora                     
NetworkManager-tui.x86_64                                                  1:0.9.10.1-3.20150219git.fc21                                @updates                    
NetworkManager-vpnc.x86_64                                                 1:0.9.10.2-1.fc21                                            @updates                    
NetworkManager-vpnc-gnome.x86_64                                           1:0.9.10.2-1.fc21                                            @updates                    
NetworkManager-wifi.x86_64                                                 1:0.9.10.1-3.20150219git.fc21                                @updates                    
NetworkManager-wwan.x86_64                                                 1:0.9.10.1-3.20150219git.fc21                                @updates                    
network-manager-applet.x86_64                                              0.9.9.0-15.git20140424.fc21                                  @fedora  


How reproducible:
Every time computer is on

Steps to Reproduce:
1. Turn on computer without cable plugged in/unplug wired network cable

Actual results:

Notice that at the top right of the screen on Gnome 3.14/in the menu/in the settings window it doesn't show as disconnected - at most it will show a icon with a question mark (https://i.imgur.com/gbL2UcM.png) but will still show as connected in Network Manager.

Expected results:

It shows the real status of the connection (disconnected/connected/connecting..)

Additional info:

Gnome 3.14 on Fedora x86_64 on a Lenovo B590 - I ALSO posted the info of the problem on a Lenovo G570 (with a different network card) here: 

https://unix.stackexchange.com/questions/181152/networkmanager-does-not-detect-when-cable-is-connected-or-disconnected

This issue mainly causes issues when a program thinks it is connected to the internet, but isn't because the cable is unplugged, or when trying to use a WiFi network (for the latter issue have to turn off the wired networking in settings before it does anything.

I think with both of these machines when installing I set up to install via wired internet . The router in use also doesn't appear to support DHCP so also had to be set up specially (IP address, route, DNS etc).

The kernel/driver/something does detect the network changing as it shows this in `dmesg`:

[ 5317.125648] r8169 0000:03:00.0 enp3s0: link down
[ 5332.875157] r8169 0000:03:00.0 enp3s0: link up
[ 5335.535300] r8169 0000:03:00.0 enp3s0: link down
[ 5337.177861] r8169 0000:03:00.0 enp3s0: link up

Also, here is the `lspci -v` info on the network card:

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)
	Subsystem: Lenovo Device 5002
	Flags: bus master, fast devsel, latency 0, IRQ 26
	I/O ports at 2000 [size=256]
	Memory at f0404000 (64-bit, prefetchable) [size=4K]
	Memory at f0400000 (64-bit, prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169
	Kernel modules: r8169

Comment 1 Dan Williams 2015-03-17 17:15:12 UTC
If you have the NetworkManager-config-server RPM installed, that sets the 'ignore-carrier=true' option in /etc/NetworkManager/conf.d which gives you the behavior you describe.  If you uninstall that RPM, then you should get carrier detection back.

Comment 2 Wilf 2015-03-18 11:07:26 UTC
I uninstalled the package with:

   sudo yum autoremove NetworkManager-config-server

and rebooted, and it works, thanks!


Note You need to log in before you can comment on or make changes to this bug.