[SOLVED] Ubuntu 22.04 ethernet not functioning "cable unplugged" issue

Framework 13 on 11th gen, fresh install of Ubuntu 22.04, followed all Framework guides including the post-install optimization guide for the 11th gen. My Plugable 2.5 GBe USB adapter isn’t working (it uses the Realtek RT8156 chipset - this is the same chipset used in Framework’s own ethernet adaptor). I see “cable unplugged” in the Settings > Network. This adapter has worked on other Ubuntu installs that I’ve tried in the past, so I don’t think it’s the adapter (I have two and tried both. I also tried replacing the ethernet cable).

sudo ethtool enx8cae4cdd0b79

Settings for enx8cae4cdd0b79:
Supported ports: [ ]
Supported link modes: Not reported
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 2500Mb/s
Duplex: Half
Auto-negotiation: off
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
MDI-X: Unknown
Current message level: 0x00000007 (7)
drv probe link
Link detected: no

When running sudo dmesg, I’m greeted with this helpful info:

[178142.199593] usb 2-2: new SuperSpeed USB device number 14 using xhci_hcd
[178142.220482] usb 2-2: New USB device found, idVendor=0bda, idProduct=8156, bcdDevice=30.00
[178142.220503] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[178142.220510] usb 2-2: Product: USB 10/100/1G/2.5G LAN
[178142.220513] usb 2-2: Manufacturer: Realtek
[178142.220519] usb 2-2: SerialNumber: 000000001
[178142.248640] cdc_ncm 2-2:2.0: MAC-Address: 8c:ae:4c:dd:0b:79
[178142.248657] cdc_ncm 2-2:2.0: setting rx_max = 16384
[178142.248718] cdc_ncm 2-2:2.0: setting tx_max = 16384
[178142.249582] cdc_ncm 2-2:2.0 eth0: register 'cdc_ncm' at usb-0000:00:0d.0-2, CDC NCM (NO ZLP), 8c:ae:4c:dd:0b:79
[178142.922145] cdc_ncm 2-2:2.0 enx8cae4cdd0b79: renamed from eth0
[178202.909550] i915 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe B (start=64877 end=64878) time 509 us, min 1431, max 1439, scanline start 1398, end 1442
[178561.799453] i915 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe A (start=10526 end=10527) time 385 us, min 1494, max 1503, scanline start 1480, end 1516
[178682.953469] usb 2-2: USB disconnect, device number 14

And finally, sudo ifconfig -a gives us:

enx8cae4cdd0b79: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 8c:ae:4c:dd:0b:79  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1  bytes 342 (342.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I’m running Linux framework-Laptop 6.1.0-1014-oem #14-Ubuntu SMP PREEMPT_DYNAMIC Fri May 19 06:02:46 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

When running sudo tail =f /var/log/syslog , I’m able to see this in the syslog:

Jun 24 17:08:42 framework-Laptop kernel: [180052.620300] usb 2-2: new SuperSpeed USB device number 18 using xhci_hcd
Jun 24 17:08:42 framework-Laptop kernel: [180052.640951] usb 2-2: New USB device found, idVendor=0bda, idProduct=8156, bcdDevice=30.00
Jun 24 17:08:42 framework-Laptop kernel: [180052.640968] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=6
Jun 24 17:08:42 framework-Laptop kernel: [180052.640973] usb 2-2: Product: USB 10/100/1G/2.5G LAN
Jun 24 17:08:42 framework-Laptop kernel: [180052.640975] usb 2-2: Manufacturer: Realtek
Jun 24 17:08:42 framework-Laptop kernel: [180052.640978] usb 2-2: SerialNumber: 000000001
Jun 24 17:08:42 framework-Laptop kernel: [180052.664927] cdc_ncm 2-2:2.0: MAC-Address: 8c:ae:4c:dd:0b:79
Jun 24 17:08:42 framework-Laptop kernel: [180052.664957] cdc_ncm 2-2:2.0: setting rx_max = 16384
Jun 24 17:08:42 framework-Laptop kernel: [180052.665042] cdc_ncm 2-2:2.0: setting tx_max = 16384
Jun 24 17:08:42 framework-Laptop kernel: [180052.666460] cdc_ncm 2-2:2.0 eth0: register 'cdc_ncm' at usb-0000:00:0d.0-2, CDC NCM (NO ZLP), 8c:ae:4c:dd:0b:79
Jun 24 17:08:42 framework-Laptop NetworkManager[711]: <info>  [1687651722.5926] manager: (eth0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/40)
Jun 24 17:08:42 framework-Laptop mtp-probe: checking bus 2, device 18: "/sys/devices/pci0000:00/0000:00:0d.0/usb2/2-2"
Jun 24 17:08:42 framework-Laptop mtp-probe: bus: 2, device: 18 was not an MTP device
Jun 24 17:08:43 framework-Laptop systemd-udevd[56760]: Using default interface naming scheme 'v249'.
Jun 24 17:08:43 framework-Laptop kernel: [180053.326892] cdc_ncm 2-2:2.0 enx8cae4cdd0b79: renamed from eth0
Jun 24 17:08:43 framework-Laptop NetworkManager[711]: <info>  [1687651723.2799] device (eth0): interface index 30 renamed iface from 'eth0' to 'enx8cae4cdd0b79'
Jun 24 17:08:43 framework-Laptop NetworkManager[711]: <info>  [1687651723.2998] device (enx8cae4cdd0b79): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Jun 24 17:08:43 framework-Laptop mtp-probe: checking bus 2, device 18: "/sys/devices/pci0000:00/0000:00:0d.0/usb2/2-2"
Jun 24 17:08:43 framework-Laptop mtp-probe: bus: 2, device: 18 was not an MTP device
Jun 24 17:08:43 framework-Laptop systemd-udevd[56793]: Using default interface naming scheme 'v249'.
Jun 24 17:08:45 framework-Laptop kernel: [180055.579361] IPv6: ADDRCONF(NETDEV_CHANGE): enx8cae4cdd0b79: link becomes ready
Jun 24 17:08:45 framework-Laptop NetworkManager[711]: <info>  [1687651725.5026] device (enx8cae4cdd0b79): carrier: link connected
Jun 24 17:08:45 framework-Laptop NetworkManager[711]: <info>  [1687651725.5035] device (enx8cae4cdd0b79): state change: unavailable -> disconnected (reason 'carrier-changed', sys-iface-state: 'managed')
Jun 24 17:08:45 framework-Laptop NetworkManager[711]: <info>  [1687651725.5066] policy: auto-activating connection 'Wired connection 2' (5f7aee4a-3b16-3a31-905c-f6893769fb05)
Jun 24 17:08:45 framework-Laptop NetworkManager[711]: <info>  [1687651725.5083] device (enx8cae4cdd0b79): Activation: starting connection 'Wired connection 2' (5f7aee4a-3b16-3a31-905c-f6893769fb05)
Jun 24 17:08:45 framework-Laptop NetworkManager[711]: <info>  [1687651725.5086] device (enx8cae4cdd0b79): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Jun 24 17:08:45 framework-Laptop NetworkManager[711]: <info>  [1687651725.5095] device (enx8cae4cdd0b79): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Jun 24 17:08:45 framework-Laptop NetworkManager[711]: <info>  [1687651725.6996] device (enx8cae4cdd0b79): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Jun 24 17:08:45 framework-Laptop NetworkManager[711]: <info>  [1687651725.7008] dhcp4 (enx8cae4cdd0b79): activation: beginning transaction (timeout in 45 seconds)
Jun 24 17:08:45 framework-Laptop ModemManager[760]: <info>  [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:0d.0/usb2/2-2': not supported by any plugin

hi @Nixingit ,

anything showing up when you try,

sudo lshw -C network

This could be usb auto suspend. If you’re using tlp, theres a section under usb tab in tlpui where you can block the system from suspending specific devices.

1 Like

@Loell_Framework @AMoonRabbit This is now solved. I went into TLPUI and turned off USB auto-suspend, which was previously turned on. It worked!!! I’m connected via 2.5 Gbps on the ethernet adaptor.

I would recommend adding a note to Optimizing Ubuntu Battery Life in the section which advises turning on USB auto-suspend, since it interferes with the 2.5 gbps ethernet adapter, including the Framework 2.5 adapter with the same chipset.

1 Like