Ethernet keeps deactivating and reactivating randomly

I used journalctl -b with the eos-log-tool command to get an output. It puts out a lot of information but someone might be able to spot something I’m not seeing in there

https://wiki.archlinux.org/title/Power_management#USB_autosuspend

You can then upload to pastebin with

journalctl -b | eos-sendlog

Then just post the link it gives you.

This is the output journalctl -b | eos-sendlog gives https://clbin.com/v4OL0
Disabling autosuspend doesn’t do anything.

Maybe this helps?

Already tried, didn’t work sadly.

Have you tried usbcore.quirks=0bda:8153:k to kernel boot options?

Edit: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00

Looking at your log, seems that touchegg dumps core.
Do you need that? Can you remove it to test if that is the problem?

Added it to my boot parameters, doesn’t do anything.

Disabled and removed touchegg, problem still remains

Tricky problem. Sounds like either a driver problem, or there’s a need for some suitable kernel parameter(s) to make some stuff work for this hardware.

But did you already see this?
https://bbs.archlinux.org/viewtopic.php?id=228195

By the way, which 8152 drivers have you tried?

r8152-dkms from AUR is one, but a driver might also be available directly in the kernel.
So one thing to try is to remove r8152-dkms and reboot. And reboot to either of the kernels: linux-lts or linux.

I have tried the built in one and the dkms one. I have installed the dkms one using the following commands (please give some feedback whether I have done it correctly):
pamac build r8152-dkms
echo "blacklist r8152" | sudo tee /etc/modprobe.d/r8152-blacklist.conf
sudo depmod -a
sudo mkinitcpio -P

Edit: something strange to note, I decided that I try and completely remove/blacklist any r8152 driver on my system. So I blacklisted the r8152 from the kernel (or so I thought) and removed the r8152-dkms driver I build with pamac. However when I reboot, the r8152 driver remains active. So either I am doing something wrong which is more than likely a possibility or something is very very persistent.

If you remove the aur package and the r8152 module is loading then it is a kernel module?

Edit: When you originally installed did the ethernet work? Or did you have to add or build the r8152 package?

Ethernet works, it just keeps disconnecting and reconnecting randomly, I didn’t have to build or install anything.

On my previous Fedora 34 installation it was also just plug and play and on EOS everything works, it just gets switched on/off all the time somehow so it must be some kind of setting somewhere.

Have you tried this package?

Edit: Also check this out as your device is r8153. The r8152 module supports both but here is another link.

@Tiget1998

Also this one with udev rule.

Tried them all at this point, the dkms, the built-in kernel driver, and the one from github including the udev rules. So either I’m not installing the drivers right or it is not a driver issue.

The one thing I haven’t posted yet that might give some insight is the dmesg output:


[   63.573939] usb 4-1.1: new SuperSpeed USB device number 4 using xhci_hcd
[   63.590977] usb 4-1.1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
[   63.590980] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[   63.590982] usb 4-1.1: Product: USB 10/100/1000 LAN
[   63.590983] usb 4-1.1: Manufacturer: Realtek
[   63.590983] usb 4-1.1: SerialNumber: 000001
[   63.674547] usb 4-1.1: reset SuperSpeed USB device number 4 using xhci_hcd
[   63.717441] r8152 4-1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[   63.745136] r8152 4-1.1:1.0 eth0: v1.12.11
[   63.894764] usb 4-1.1: reset SuperSpeed USB device number 4 using xhci_hcd
[   63.937630] r8152 4-1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[   63.965217] r8152 4-1.1:1.0 eth0: v1.12.11
[   64.002973] audit: type=1111 audit(1634750276.459:91): pid=410 uid=0 auid=4294967295 ses=4294967295 msg='op=
statistics interface="eth0" ifindex=5 args=500 pid=1607 uid=1000 result=success exe="/usr/bin/NetworkManager" h
ostname=? addr=? terminal=? res=success'
[   64.020360] audit: type=1111 audit(1634750276.476:92): pid=410 uid=0 auid=4294967295 ses=4294967295 msg='op=
statistics interface="eth0" ifindex=5 args=500 pid=1607 uid=1000 result=success exe="/usr/bin/NetworkManager" h
ostname=? addr=? terminal=? res=success'
[   64.695474] r8152 4-1.1:1.0 enp60s0u1u1: renamed from eth0
[   66.510958] IPv6: ADDRCONF(NETDEV_CHANGE): enp60s0u1u1: link becomes ready
[   66.511272] r8152 4-1.1:1.0 enp60s0u1u1: carrier on
[   66.546752] r8152 4-1.1:1.0 enp60s0u1u1: carrier off
[   69.583264] r8152 4-1.1:1.0 enp60s0u1u1: carrier on
[   73.280138] audit: type=1131 audit(1634750285.734:93): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=
NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succes
s'
[  134.004805] NOHZ tick-stop error: Non-RCU local softirq work is pending, handler #08!!!
[  148.603935] usb 4-1.1: USB disconnect, device number 4
[  148.664291] audit: type=1130 audit(1634750361.118:94): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=
NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succes
s'
[  148.738899] usb 4-1.1: new SuperSpeed USB device number 5 using xhci_hcd
[  148.759940] usb 4-1.1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
[  148.759954] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[  148.759960] usb 4-1.1: Product: USB 10/100/1000 LAN
[  148.759965] usb 4-1.1: Manufacturer: Realtek
[  148.759969] usb 4-1.1: SerialNumber: 000001
[  148.835857] usb 4-1.1: reset SuperSpeed USB device number 5 using xhci_hcd
[  148.875432] r8152 4-1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[  148.906326] r8152 4-1.1:1.0 eth0: v1.12.11
[  149.029480] usb 4-1.1: reset SuperSpeed USB device number 5 using xhci_hcd
[  149.072066] r8152 4-1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[  149.100024] r8152 4-1.1:1.0 eth0: v1.12.11
[  149.137768] audit: type=1111 audit(1634750361.591:95): pid=410 uid=0 auid=4294967295 ses=4294967295 msg='op=
statistics interface="eth0" ifindex=7 args=500 pid=1607 uid=1000 result=success exe="/usr/bin/NetworkManager" h
ostname=? addr=? terminal=? res=success'
[  149.151656] audit: type=1111 audit(1634750361.605:96): pid=410 uid=0 auid=4294967295 ses=4294967295 msg='op=
statistics interface="eth0" ifindex=7 args=500 pid=1607 uid=1000 result=success exe="/usr/bin/NetworkManager" h
ostname=? addr=? terminal=? res=success'
[  149.843013] r8152 4-1.1:1.0 enp60s0u1u1: renamed from eth0
[  151.646523] IPv6: ADDRCONF(NETDEV_CHANGE): enp60s0u1u1: link becomes ready
[  151.646846] r8152 4-1.1:1.0 enp60s0u1u1: carrier on
[  151.682809] r8152 4-1.1:1.0 enp60s0u1u1: carrier off
[  154.750963] r8152 4-1.1:1.0 enp60s0u1u1: carrier on
[  159.280939] audit: type=1131 audit(1634750371.735:97): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=
NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succes
s'
[  288.716724] usb 4-1.1: USB disconnect, device number 5
[  288.802902] audit: type=1130 audit(1634750501.257:98): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=
NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succes
s'
[  288.969904] usb 4-1.1: new SuperSpeed USB device number 6 using xhci_hcd
[  288.988672] usb 4-1.1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
[  288.988686] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[  288.988692] usb 4-1.1: Product: USB 10/100/1000 LAN
[  288.988696] usb 4-1.1: Manufacturer: Realtek
[  288.988700] usb 4-1.1: SerialNumber: 000001
[  289.066987] usb 4-1.1: reset SuperSpeed USB device number 6 using xhci_hcd
[  289.109546] r8152 4-1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[  289.137357] r8152 4-1.1:1.0 eth0: v1.12.11
[  289.277081] usb 4-1.1: reset SuperSpeed USB device number 6 using xhci_hcd
[  289.323162] r8152 4-1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[  289.350811] r8152 4-1.1:1.0 eth0: v1.12.11
[  289.389317] audit: type=1111 audit(1634750501.844:99): pid=410 uid=0 auid=4294967295 ses=4294967295 msg='op=
statistics interface="eth0" ifindex=9 args=500 pid=1607 uid=1000 result=success exe="/usr/bin/NetworkManager" h
ostname=? addr=? terminal=? res=success'
[  289.407247] audit: type=1111 audit(1634750501.864:100): pid=410 uid=0 auid=4294967295 ses=4294967295 msg='op
=statistics interface="eth0" ifindex=9 args=500 pid=1607 uid=1000 result=success exe="/usr/bin/NetworkManager"
hostname=? addr=? terminal=? res=success'
[  290.122356] r8152 4-1.1:1.0 enp60s0u1u1: renamed from eth0
[  291.886514] IPv6: ADDRCONF(NETDEV_CHANGE): enp60s0u1u1: link becomes ready
[  291.887111] r8152 4-1.1:1.0 enp60s0u1u1: carrier on
[  291.921475] r8152 4-1.1:1.0 enp60s0u1u1: carrier off
[  295.054642] r8152 4-1.1:1.0 enp60s0u1u1: carrier on
[  299.278848] audit: type=1131 audit(1634750511.734:101): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit
=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succe
ss'
[  322.179552] usb 4-1.1: USB disconnect, device number 6
[  322.238473] audit: type=1130 audit(1634750534.694:102): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit
=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succe
ss'
[  322.422899] usb 4-1.1: new SuperSpeed USB device number 7 using xhci_hcd
[  322.441679] usb 4-1.1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
[  322.441693] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[  322.441699] usb 4-1.1: Product: USB 10/100/1000 LAN
[  322.441703] usb 4-1.1: Manufacturer: Realtek
[  322.441707] usb 4-1.1: SerialNumber: 000001
[  322.520049] usb 4-1.1: reset SuperSpeed USB device number 7 using xhci_hcd
[  322.566062] r8152 4-1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[  322.593925] r8152 4-1.1:1.0 eth0: v1.12.11
[  322.743364] usb 4-1.1: reset SuperSpeed USB device number 7 using xhci_hcd
[  322.790885] r8152 4-1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[  322.817456] r8152 4-1.1:1.0 eth0: v1.12.11
[  322.833257] audit: type=1111 audit(1634750535.291:103): pid=410 uid=0 auid=4294967295 ses=4294967295 msg='op
=statistics interface="eth0" ifindex=11 args=500 pid=1607 uid=1000 result=success exe="/usr/bin/NetworkManager"
hostname=? addr=? terminal=? res=success'
[  322.837230] audit: type=1111 audit(1634750535.294:104): pid=410 uid=0 auid=4294967295 ses=4294967295 msg='op
=statistics interface="eth0" ifindex=11 args=500 pid=1607 uid=1000 result=success exe="/usr/bin/NetworkManager"
hostname=? addr=? terminal=? res=success'
[  323.496386] r8152 4-1.1:1.0 enp60s0u1u1: renamed from eth0
[  325.390212] IPv6: ADDRCONF(NETDEV_CHANGE): enp60s0u1u1: link becomes ready
[  325.390592] r8152 4-1.1:1.0 enp60s0u1u1: carrier on
[  325.424277] r8152 4-1.1:1.0 enp60s0u1u1: carrier off
[  328.334761] r8152 4-1.1:1.0 enp60s0u1u1: carrier on
[  332.276897] audit: type=1131 audit(1634750544.734:105): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit
=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succe
ss'
[  374.044118] usb 4-1.1: USB disconnect, device number 7
[  374.124164] audit: type=1130 audit(1634750586.581:106): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit
=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succe
ss'
[  374.295744] usb 4-1.1: new SuperSpeed USB device number 8 using xhci_hcd
[  374.313800] usb 4-1.1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
[  374.313807] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[  374.313809] usb 4-1.1: Product: USB 10/100/1000 LAN
[  374.313811] usb 4-1.1: Manufacturer: Realtek
[  374.313812] usb 4-1.1: SerialNumber: 000001
[  374.392977] usb 4-1.1: reset SuperSpeed USB device number 8 using xhci_hcd
[  374.439158] r8152 4-1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[  374.467494] r8152 4-1.1:1.0 eth0: v1.12.11
[  374.626313] usb 4-1.1: reset SuperSpeed USB device number 8 using xhci_hcd
[  374.669208] r8152 4-1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[  374.697000] r8152 4-1.1:1.0 eth0: v1.12.11
[  374.729564] audit: type=1111 audit(1634750587.188:107): pid=410 uid=0 auid=4294967295 ses=4294967295 msg='op
=statistics interface="eth0" ifindex=13 args=500 pid=1607 uid=1000 result=success exe="/usr/bin/NetworkManager"
hostname=? addr=? terminal=? res=success'
[  374.737922] audit: type=1111 audit(1634750587.194:108): pid=410 uid=0 auid=4294967295 ses=4294967295 msg='op
=statistics interface="eth0" ifindex=13 args=500 pid=1607 uid=1000 result=success exe="/usr/bin/NetworkManager"
hostname=? addr=? terminal=? res=success'
[  375.386779] r8152 4-1.1:1.0 enp60s0u1u1: renamed from eth0
[  377.246212] IPv6: ADDRCONF(NETDEV_CHANGE): enp60s0u1u1: link becomes ready
[  377.246546] r8152 4-1.1:1.0 enp60s0u1u1: carrier on
[  377.280633] r8152 4-1.1:1.0 enp60s0u1u1: carrier off
[  380.254638] r8152 4-1.1:1.0 enp60s0u1u1: carrier on
[  384.276205] audit: type=1131 audit(1634750596.734:109): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit
=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succe
ss'
[  404.530485] usb 4-1.1: USB disconnect, device number 8
[  404.601514] audit: type=1130 audit(1634750617.058:110): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit
=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succe
ss'
[  404.775492] usb 4-1.1: new SuperSpeed USB device number 9 using xhci_hcd
[  404.794424] usb 4-1.1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
[  404.794438] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[  404.794444] usb 4-1.1: Product: USB 10/100/1000 LAN
[  404.794448] usb 4-1.1: Manufacturer: Realtek
[  404.794452] usb 4-1.1: SerialNumber: 000001
[  404.876033] usb 4-1.1: reset SuperSpeed USB device number 9 using xhci_hcd
[  404.922147] r8152 4-1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[  404.949639] r8152 4-1.1:1.0 eth0: v1.12.11
[  405.096170] usb 4-1.1: reset SuperSpeed USB device number 9 using xhci_hcd
[  405.138936] r8152 4-1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[  405.166586] r8152 4-1.1:1.0 eth0: v1.12.11
[  405.206927] audit: type=1111 audit(1634750617.665:111): pid=410 uid=0 auid=4294967295 ses=4294967295 msg='op
=statistics interface="eth0" ifindex=15 args=500 pid=1607 uid=1000 result=success exe="/usr/bin/NetworkManager"
hostname=? addr=? terminal=? res=success'
[  405.226603] audit: type=1111 audit(1634750617.685:112): pid=410 uid=0 auid=4294967295 ses=4294967295 msg='op
=statistics interface="eth0" ifindex=15 args=500 pid=1607 uid=1000 result=success exe="/usr/bin/NetworkManager"
hostname=? addr=? terminal=? res=success'
[  405.919904] r8152 4-1.1:1.0 enp60s0u1u1: renamed from eth0
[  407.726134] IPv6: ADDRCONF(NETDEV_CHANGE): enp60s0u1u1: link becomes ready
[  407.726481] r8152 4-1.1:1.0 enp60s0u1u1: carrier on
[  407.760829] r8152 4-1.1:1.0 enp60s0u1u1: carrier off
[  410.830634] r8152 4-1.1:1.0 enp60s0u1u1: carrier on
[  415.276118] audit: type=1131 audit(1634750627.735:113): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit
=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succe
ss'
[  456.229169] usb 4-1.1: USB disconnect, device number 9
[  456.332067] audit: type=1130 audit(1634750668.792:114): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit
=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succe
ss'
[  456.461879] usb 4-1.1: new SuperSpeed USB device number 10 using xhci_hcd
[  456.480579] usb 4-1.1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
[  456.480593] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[  456.480599] usb 4-1.1: Product: USB 10/100/1000 LAN
[  456.480603] usb 4-1.1: Manufacturer: Realtek
[  456.480606] usb 4-1.1: SerialNumber: 000001
[  456.562318] usb 4-1.1: reset SuperSpeed USB device number 10 using xhci_hcd
[  456.608299] r8152 4-1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[  456.636129] r8152 4-1.1:1.0 eth0: v1.12.11
[  456.765652] usb 4-1.1: reset SuperSpeed USB device number 10 using xhci_hcd
[  456.808659] r8152 4-1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[  456.835990] r8152 4-1.1:1.0 eth0: v1.12.11
[  456.876563] audit: type=1111 audit(1634750669.335:115): pid=410 uid=0 auid=4294967295 ses=4294967295 msg='op
=statistics interface="eth0" ifindex=17 args=500 pid=1607 uid=1000 result=success exe="/usr/bin/NetworkManager"
hostname=? addr=? terminal=? res=success'
[  456.895168] audit: type=1111 audit(1634750669.355:116): pid=410 uid=0 auid=4294967295 ses=4294967295 msg='op
=statistics interface="eth0" ifindex=17 args=500 pid=1607 uid=1000 result=success exe="/usr/bin/NetworkManager"
hostname=? addr=? terminal=? res=success'

I would go through this whole list. I personally believe it’s a usb power issue and it disconnects dropping the connection as a result.

1 Like

Ding ding ding, we have a winner, thank you so much!!.
sudo echo on | sudo tee /sys/bus/usb/devices/4-1/power/control
Does the trick… Now I only need to get it running on boot, but the script and service I made just won’t run. I made the following script:
poweron.sh:

#!/bin/sh

echo on > /sys/bus/usb/devices/4-1/power/control 
exit 0

#"$@"

I did a sudo chmod +x poweron.sh to make it executable.
The service that goes along with it “power-usb.service”

[Unit]
Description=ethernetpower

[Service]
ExecStart=/usr/bin/usbpower/power.sh

[Install]
WantedBy=multi-user.target

And I enabled and started the service with systemctl. But it still won’t run on startup.

Edit: The script was run to early in boot, all I needed to do was add a little sleep to the script:

#!/bin/sh
sleep 10
echo on > /sys/bus/usb/devices/4-1/power/control 
exit 0

#"$@"