Today, after whole night suspend of my PC at the moring i wake up it.
And it occur that i have no ethernet connection.
After some searching i found this topic:
Ubuntu 18.04 - Ethernet disconnected after suspend
I have 24.04.2 LTS so the bug still persist. In this discussion there is mentioned ethernet interface kernel module Realtek 8169. To solve problem with that there is solution to reload that module. Using:
sudo modprobe -r r8169
sudo modprobe -i r8169
But you need to check which kernel module uses your network interfaces. Using command lshw -C network
you can check what network interfaces do you have:
*-network
description: Wireless interface
product: Raptor Lake-S PCH CNVi WiFi
...
*-network DISABLED
description: Ethernet interface
product: Ethernet Controller I226-V
...
First one is Wi-Fi it works, but the second as you can see i had one interface disabled after woke up. Some googling give me information that for Ethernet Controller I226-V the igc
kernel module is used. Using equivalent to original commands. Has solve my problem.
sudo modprobe -r r8169
sudo modprobe -i r8169
There is also command that allows to show what PCI devices are present with their kernel modules:
lspci -v | less
. You need to scroll trough whole list and find "Ethernet controller". There is mentioned this igc
:
06:00.0 Ethernet controller: Intel Corporation Ethernet Controller I226-V (rev 06)
DeviceName: Intel I226-V LAN
Subsystem: ASUSTeK Computer Inc. Ethernet Controller I226-V
Flags: bus master, fast devsel, latency 0, IRQ 18, IOMMU group 19
Memory at 86f00000 (32-bit, non-prefetchable) [size=1M]
Memory at 87000000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: igc
Kernel modules: igc
Some users created Paulo/Andypotter wrote script that will restart your network from script or Noah Henyon written some script which changes boot/hibernate so it solves problem too.