[R8168] Wired Connection sometimes drop

Hi everyone,

I'm using Manjaro XFCE running with kernel 5.1.16-1. Sometimes, while I'm browsing online, my wired connection drop and I'm not able to connect to the internet.
It doesn't connect to the router web page too, but as soon as I reboot the system, it works fine.

I have no idea how to debug and where to look for logs/errors/reports; any suggestion on how I can tackle the problem?

Thanks in advance

$ hwinfo
...
34: PCI 100.2: 0604 PCI bridge (Normal decode)                                                                                                                                                
  [Created at pci.386]                                                                                                                                                                        
  Unique ID: Essh.spkcxKHknOF                                                                  
  Parent ID: VRCs.0TU4LKoL980                                                                  
  SysFS ID: /devices/pci0000:00/0000:00:01.3/0000:01:00.2                                                                                                                                     
  SysFS BusID: 0000:01:00.2                                                                                                                                                                   
  Hardware Class: bridge                                                                                                                                                                      
  Model: "AMD PCI bridge"                                                                                                                                                                     
  Vendor: pci 0x1022 "AMD"                                                                                                                                                                    
  Device: pci 0x43b2                                                                           
  SubVendor: pci 0x1b21 "ASMedia Technology Inc."                                                                                                                                             
  SubDevice: pci 0x0201                                                                                                                                                                       
  Revision: 0x02                                                                                                                                                                              
  Driver: "pcieport"                                                                                                                                                                          
  IRQ: 33 (no events)                                                                                                                                                                         
  Module Alias: "pci:v00001022d000043B2sv00001B21sd00000201bc06sc04i00"                                                                                                                       
  Config Status: cfg=new, avail=yes, need=no, active=unknown                                                                                                                                  
  Attached to: #48 (PCI bridge) 
...
40: PCI 206.0: 0604 PCI bridge (Normal decode)                                                 
  [Created at pci.386]                                                                         
  Unique ID: ejN_.sArAqRDibeE                                                                                                                                                                 
  Parent ID: Essh.spkcxKHknOF                                                                                                                                                                 
  SysFS ID: /devices/pci0000:00/0000:00:01.3/0000:01:00.2/0000:02:06.0                                                                                                                        
  SysFS BusID: 0000:02:06.0                                                                                                                                                                   
  Hardware Class: bridge                                                                                                                                                                      
  Model: "AMD PCI bridge"                                                                      
  Vendor: pci 0x1022 "AMD"                                                                                                                                                                    
  Device: pci 0x43b4                                                                                                                                                                          
  SubVendor: pci 0x1b21 "ASMedia Technology Inc."                                                                                                                                             
  SubDevice: pci 0x3306                                                                                                                                                                       
  Revision: 0x02                                                                                                                                                                              
  Driver: "pcieport"                                                                                                                                                                          
  IRQ: 38 (no events)                                                                                                                                                                         
  Module Alias: "pci:v00001022d000043B4sv00001B21sd00003306bc06sc04i00"                                                                                                                       
  Config Status: cfg=new, avail=yes, need=no, active=unknown                                                                                                                                  
  Attached to: #34 (PCI bridge)
...
48: PCI 01.3: 0604 PCI bridge (Normal decode)                                                                                                                                                 
  [Created at pci.386]                                                                                                                                                                        
  Unique ID: VRCs.0TU4LKoL980                                                                                                                                                                 
  SysFS ID: /devices/pci0000:00/0000:00:01.3                                                   
  SysFS BusID: 0000:00:01.3                                                                    
  Hardware Class: bridge                                                                                                                                                                      
  Model: "AMD PCI bridge"                                                                                                                                                                     
  Vendor: pci 0x1022 "AMD"                                                                                                                                                                    
  Device: pci 0x1453                                                                                                                                                                          
  SubVendor: pci 0x1043 "ASUSTeK Computer Inc."                                                                                                                                               
  SubDevice: pci 0x8747                                                                                                                                                                       
  Driver: "pcieport"                                                                                                                                                                          
  IRQ: 28 (no events)                                                                          
  Module Alias: "pci:v00001022d00001453sv00001043sd00008747bc06sc04i00"                        
  Config Status: cfg=new, avail=yes, need=no, active=unknown  

49: PCI 600.0: 0200 Ethernet controller                                                                                                                                                       
  [Created at pci.386]                                                                                                                                                                        
  Unique ID: 4Nnf.eyqrN5GWcA7                                                                                                                                                                 
  Parent ID: ejN_.sArAqRDibeE                                                                  
  SysFS ID: /devices/pci0000:00/0000:00:01.3/0000:01:00.2/0000:02:06.0/0000:06:00.0                                                                                                           
  SysFS BusID: 0000:06:00.0                                                                                                                                                                   
  Hardware Class: network                                                                                                                                                                     
  Model: "Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"                                                                                                                  
  Vendor: pci 0x10ec "Realtek Semiconductor Co., Ltd."                                                                                                                                        
  Device: pci 0x8168 "RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"                                                                                                              
  SubVendor: pci 0x1043 "ASUSTeK Computer Inc."                                                                                                                                               
  SubDevice: pci 0x8677                                                                                                                                                                       
  Revision: 0x15                                                                                                                                                                              
  Driver: "r8168"                                                                                                                                                                             
  Driver Modules: "r8168"                                                                      
  Device File: enp6s0                                                                          
  I/O Ports: 0xf000-0xf0ff (rw)                                                                                                                                                               
  Memory Range: 0xf7504000-0xf7504fff (rw,non-prefetchable)                                                                                                                                   
  Memory Range: 0xf7500000-0xf7503fff (rw,non-prefetchable)                                                                                                                                   
  IRQ: 49 (521369 events)                                                                                                                                                                     
  HW Address: 2c:fd:a1:73:7e:38                                                                                                                                                               
  Permanent HW Address: 2c:fd:a1:73:7e:38                                                                                                                                                     
  Link detected: yes                                                                                                                                                                          
  Module Alias: "pci:v000010ECd00008168sv00001043sd00008677bc02sc00i00"                        
  Driver Info #0:                                                                              
    Driver Status: r8169 is not active                                                                                                                                                        
    Driver Activation Cmd: "modprobe r8169"                                                                                                                                                   
  Driver Info #1:                                                                                                                                                                             
    Driver Status: r8168 is active                                                                                                                                                            
    Driver Activation Cmd: "modprobe r8168"                                                                                                                                                   
  Config Status: cfg=new, avail=yes, need=no, active=unknown                                   
  Attached to: #40 (PCI bridge)
...
103: None 00.0: 10701 Ethernet
  [Created at net.126]
  Unique ID: l02Y.ndpeucax6V1
  Parent ID: 4Nnf.eyqrN5GWcA7
  SysFS ID: /class/net/enp6s0
  SysFS Device Link: /devices/pci0000:00/0000:00:01.3/0000:01:00.2/0000:02:06.0/0000:06:00.0
  Hardware Class: network interface
  Model: "Ethernet network interface"
  Driver: "r8168"
  Driver Modules: "r8168"
  Device File: enp6s0
  HW Address: 2c:fd:a1:73:7e:38
  Permanent HW Address: 2c:fd:a1:73:7e:38
  Link detected: yes
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #49 (Ethernet controller)

open manjaro settings manager and click on hardware. remove r8168 using that and the more stable r8169 driver will be un-blacklisted. restart the system and see if it's any better. It should be...

2 Likes

It's fairly unusual that an r8168 driver has intermittent drops. Uninstall the driver as @micsim suggested. If this does not fix your issue my next guess would be a hardware cause. Have you replaced the network cables yet. Cat6e is the preferred grade of cable.

If you still can't resolve your drops after that, I just wrote a service to help with dropped connections. Give me a shout if you want help setting the service up.

If you need further assistance please post:

inxi -Fxxxz

Good Luck

1 Like