Ethernet (wired) keeps dropping

Questions about cabled networking
Forum rules
Before you post please read how to get help
Post Reply
birkopf
Level 2
Level 2
Posts: 64
Joined: Sun Jun 19, 2011 5:53 am

Ethernet (wired) keeps dropping

Post by birkopf »

This is weird... I worked on WiFI for quite a time, and now I connected by wire. Mint keeps dropping connection on cable regularly, roughly every 10 min. It never happened on WiFi. Anyone would have idea, where to start looking for causes ?

inxi -Fxz

Code: Select all

 System:    Host: studio Kernel: 5.6.7-050607-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.4.8 
           Distro: Linux Mint 19.3 Tricia base: Ubuntu 18.04 bionic 
Machine:   Type: Laptop System: Micro-Star product: PS42 8RB v: REV:0.B serial: <filter> 
           Mobo: Micro-Star model: MS-14B1 v: REV:1.0 serial: <filter> UEFI: American Megatrends v: E14B1IMS.10C 
           date: 09/04/2018 
Battery:   ID-1: BAT1 charge: 36.4 Wh condition: 38.3/50.0 Wh (77%) model: BIF0_9 status: Unknown 
CPU:       Topology: Quad Core model: Intel Core i5-8250U bits: 64 type: MT MCP arch: Kaby Lake rev: A 
           L2 cache: 6144 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 28800 
           Speed: 600 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 600 2: 600 3: 632 4: 600 5: 609 6: 600 7: 600 
           8: 600 
Graphics:  Device-1: Intel UHD Graphics 620 vendor: Micro-Star MSI driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA GP108M [GeForce MX150] vendor: Micro-Star MSI driver: nvidia v: 440.82 bus ID: 03:00.0 
           Display: x11 server: X.Org 1.19.6 driver: modesetting,nvidia unloaded: fbdev,nouveau,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: GeForce MX150/PCIe/SSE2 v: 4.6.0 NVIDIA 440.82 direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 
           Sound Server: ALSA v: k5.6.7-050607-generic 
Network:   Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi v: kernel port: f040 
           bus ID: 02:00.0 
           IF: wlp2s0 state: down mac: <filter> 
           Device-2: Realtek type: USB driver: r8152 bus ID: 2-5.1:87 
           IF: enx00e04c6803ac state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 1.38 TiB used: 474.00 GiB (33.7%) 
           ID-1: /dev/nvme0n1 vendor: A-Data model: SX6000PNP size: 476.94 GiB 
           ID-2: /dev/sda type: USB vendor: Samsung model: M3 Portable size: 931.51 GiB 
Partition: ID-1: / size: 19.10 GiB used: 15.36 GiB (80.4%) fs: ext4 dev: /dev/nvme0n1p6 
           ID-2: /home size: 202.67 GiB used: 169.43 GiB (83.6%) fs: ext4 dev: /dev/nvme0n1p8 
           ID-3: swap-1 size: 500.0 MiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p7 
Sensors:   System Temperatures: cpu: 43.0 C mobo: N/A gpu: nvidia temp: 44 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 319 Uptime: 1h 49m Memory: 15.51 GiB used: 3.48 GiB (22.5%) Init: systemd runlevel: 5 
           Compilers: gcc: 7.5.0 Shell: bash v: 4.4.20 inxi: 3.0.32  
rene
Level 16
Level 16
Posts: 6681
Joined: Sun Mar 27, 2016 6:58 pm

Re: Ethernet (wired) keeps dropping

Post by rene »

birkopf wrote:
Sat May 16, 2020 4:47 pm

Code: Select all

           Device-2: Realtek type: USB driver: r8152 bus ID: 2-5.1:87 
This appears to be a USB autosuspend issue, i.e., https://askubuntu.com/questions/1044127 ... connecting

You would from the output of lsusb obtain the VID:PID for your adapter, in that link 0BDA:8153, and would create a file e.g /etc/udev/rules.d/r8152.rules consisting of

Code: Select all

ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8153", TEST=="power/control", ATTR{power/control}="on"
and then remove/reinsert the adapter.

The first solution on that linked page configures this through TLP, sudo apt-get install tlp, but I personally wouldn't if the udev rule works to satisfaction.
birkopf
Level 2
Level 2
Posts: 64
Joined: Sun Jun 19, 2011 5:53 am

Re: Ethernet (wired) keeps dropping

Post by birkopf »

Thank you @rene

You are way more advanced, so I just wanted to double check:

1. lsusb gives this output:

lsusb

Code: Select all

Bus 002 Device 044: ID 0bda:8153 Realtek Semiconductor Corp. 
Bus 002 Device 003: ID 2109:0813 VIA Labs, Inc. 
Bus 002 Device 002: ID 04e8:61b6 Samsung Electronics Co., Ltd M3 Portable Hard Drive 1TB
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 004: ID 06cb:009b Synaptics, Inc. 
Bus 001 Device 003: ID 8087:0aa7 Intel Corp. 
Bus 001 Device 002: ID 2109:2813 VIA Labs, Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I see that you already took the realtek ID and split it in the code below for me, many thanks. I have created a file named exactly as you advised and saved with that config in the mentioned directory.

I will give it few days to test. if this doesn't work, the nest step will be TLP ?
gittiest personITW
Level 8
Level 8
Posts: 2088
Joined: Tue May 28, 2019 4:27 pm

Re: Ethernet (wired) keeps dropping

Post by gittiest personITW »

Just asking not judging - why are you using the 5.6 kernel?
rene
Level 16
Level 16
Posts: 6681
Joined: Sun Mar 27, 2016 6:58 pm

Re: Ethernet (wired) keeps dropping

Post by rene »

birkopf wrote:
Wed May 20, 2020 5:52 am

Code: Select all

Bus 002 Device 044: ID 0bda:8153 Realtek Semiconductor Corp. 
Seems that your VID:PID is in fact the exact same so, yes, the answer was good to go. Saving it as /etc/udev/rules.d/<whatever>.rules as you say you did should therefore be all there's to it.

I don't in fact know what TLP does in detail but expect it to be functionally the very same, even if only not through a udev rule but through /sys. As such I wouldn't be sure it would be a useful next attempt --- but certainly now that you confirmed to be speaking about the exact same adapter as the linked discussion I'd also find it unexpected if a next attempt were needed.
birkopf
Level 2
Level 2
Posts: 64
Joined: Sun Jun 19, 2011 5:53 am

Re: Ethernet (wired) keeps dropping

Post by birkopf »

Thanks,

Sadly it did not solve the problem, my Ethernet keeps dropping like before. I restarted but it doesn't make a difference.
rene
Level 16
Level 16
Posts: 6681
Joined: Sun Mar 27, 2016 6:58 pm

Re: Ethernet (wired) keeps dropping

Post by rene »

That's really unexpected. Can you paste back the /etc/udev/rules.d/r8152.rules file that you created so as to verify e.g. you having indeed used a single rather than double = for the very last component?

Otherwise sudo apt-get install tlp and following the advise on that link directly would be a second try even if as said I wouldn't feel it to have good chance.
birkopf
Level 2
Level 2
Posts: 64
Joined: Sun Jun 19, 2011 5:53 am

Re: Ethernet (wired) keeps dropping

Post by birkopf »

This is what I have in the file

Code: Select all

ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8153", TEST=="power/control", ATTR{power/control}="on"
The lead with kernel version is good, I installed Ukuu Kernel manager and it shouts at me every week to install new kernel. Switching to 4.18.20 to see if this resolves the issue.
Babiruso
Level 1
Level 1
Posts: 2
Joined: Wed May 20, 2020 12:17 pm

Re: Ethernet (wired) keeps dropping

Post by Babiruso »

Hello: Try "Network Connections" -> "Editing Wired Connection 1" -> "General":

"Connection priority for automatic activation -999"

Switch to :

"Connection priority for automatic activation 1"

And see if it works .....
birkopf
Level 2
Level 2
Posts: 64
Joined: Sun Jun 19, 2011 5:53 am

[SOLVED] Ethernet (wired) keeps dropping

Post by birkopf »

I reverted to kernel v4, and it doesn't drop the Ethernet connection now. It also restored some functions like control of nvidia power management and other applets which I had to remove due to lack of compatibility with v5 kernel. I will observe but I think it has solved the problem. Thanks for the help everyone.
Post Reply

Return to “Ethernet”