SOLVED Realtek RTL8111/8168/8411 stops working after some time

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ooounohu
Level 1
Level 1
Posts: 17
Joined: Mon Aug 24, 2020 12:58 pm

SOLVED Realtek RTL8111/8168/8411 stops working after some time

Post by ooounohu »

SCENARIO:
  • Linux Mint 20.3
  • Lenovo IdeaPad L340 Gaming laptop with Realtek r8169 GB NIC
  • Updated to Linux Kernel 5.15
PROBLEM:
Wired network would stop working minutes after boot.

TROUBLESHOOTING:
Revert to Linux Kernel 5.13, behavior resolved. Boot to Linux Mint 21 Cinnamon USB drive, behavior persists.

Found nearly identical report of behavior on Ask Ubuntu (https://askubuntu.com/questions/1405788 ... ot-working) with suggestion to install r8168-dkms, reboot and retest which worked for OP.

Installed Linux Kernel 5.15.0-43, rebooted, tested for persistent behavior, installed r8168-dkms via WiFi network, rebooted, tested, behavior resolved.

SOLUTION:
Install r8168-dkms after updating to Linux Kernel 5.15.

NOTE:
Hopefully this helps others if not a reminder for myself in the future.
Last edited by LockBot on Wed Feb 08, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: SOLVED Realtek RTL8111/8168/8411 stops working after some time

Post by deepakdeshp »

Very good documentation. Thank you.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
hkall
Level 1
Level 1
Posts: 3
Joined: Tue Mar 01, 2022 3:00 pm

Re: SOLVED Realtek RTL8111/8168/8411 stops working after some time

Post by hkall »

If 5.13 is ok and 5.15 fails for you, then one of the very few changes to r8169 driver between these two kernel versions should cause the issue.
I see only the following as candidate. 5.15 enables PCI ASPM L0 power-saving. You could test after disabling ASPM in BIOS. Alternative you can dynamically switch off ASPM L0 by writing 0 to /sys/class/net/<if>/device/link/l0_aspm.
Typically ASPM-related issues are system-specific (combination of R8168 chip version, mainboard chipset, BIOS).
ooounohu
Level 1
Level 1
Posts: 17
Joined: Mon Aug 24, 2020 12:58 pm

Re: SOLVED Realtek RTL8111/8168/8411 stops working after some time

Post by ooounohu »

hkall wrote: Wed Aug 10, 2022 4:13 pm If 5.13 is ok and 5.15 fails for you, then one of the very few changes to r8169 driver between these two kernel versions should cause the issue.
I see only the following as candidate. 5.15 enables PCI ASPM L0 power-saving. You could test after disabling ASPM in BIOS. Alternative you can dynamically switch off ASPM L0 by writing 0 to /sys/class/net/<if>/device/link/l0_aspm.
Typically ASPM-related issues are system-specific (combination of R8168 chip version, mainboard chipset, BIOS).
I did a little digging prior to discovering the Ask Ubuntu post though I'm not yet fluent in kernel speak. Honestly, my Linux game is still a bit new. That said, I did see the ASPM stuff in the kernel change log and suspected it was related. I'm favoring your suggestions so I may give them a try in the near future. Thanks! Also, I think I'm picking up what you're laying down regarding system specific issues. Perhaps I should amend my post title to be more specific to the Lenovo IdeaPad L340 Gaming device that the OP at Ask Ubuntu and I have?
Locked

Return to “Networking”