I am using ubuntu 18.04. when I start my laptop and plug a network cable it will connect. But when I unplug the cable and then replug it won't reconnect. I have to then put the laptop in sleep mode and then it will reconnect. That means between 2 suspends the laptop will connect to the LAN port only once. If it is unplugged then make it sleep, wake up and then replug. I have figured out the problem is happening due to the installation of tlp. As soon as I install tlp this problem shows up and uninstalling it makes everything just fine. Please note that I am talking about the LAN port and not the port which we use for pendrives for file transfer. Also the problem doesn't show up in windows 10 as my laptop is dual booted
1 Answers
From this Dell LAN problem with TLP: Wired network not working after resuming from suspend (Ubuntu 16.04) #222
Edit TLP configuration using: sudo -H gedit /etc/default/tlp
Locate these lines:
# Disable wake on LAN: Y/N
WOL_DISABLE=Y
- Change "
Y" to "N"
Locate your USB_BLACKLIST lines (if any) and un-blacklist them by placing # at beginning:
#USB_BLACKLIST="10ec:8168"
#USB_BLACKLIST="103c:832b"
- Save file and exit
- Restart TLP with command:
sudo tlp start
Second option: Disable PCIe power management
From: TLP Troubleshooting:
Disable Runtime Power Management completely
Comment both related config lines with a leading '#':
#RUNTIME_PM_ON_AC=on
#RUNTIME_PM_ON_BAT=auto
When the problem disappears, uncomment above lines and continue with the next section.
Otherwise the cause is not a PCIe device – proceed to USB.
Bug Watch
Here are some related bugs that will interest R8169 users:
Mar 21, 2018 - Fix Runtime PM for r8169:
===SRU Justification===
[Impact]
r8169 stays in D0 even when no ethernet cable is plugged in. This drains lots of power (~3W). The tested laptop uses 5.5W when r8169 is in D0, 1.8W when r8169 is in D3. The power saved is substantial.[Fix]
Improved rumtime PM logic to let the device gets suspended (D3) when the port is not in used and the link is down.
July 3, 2018 - r8169 no internet after suspending:
===SRU Justification===
[Impact]
r8169 failed to establish connection after the fix for LP: #1752772 landed.[Fix]
Accepts BIOS WoL settings again, and disables MSI-X for certain chip revisions.
March 2, 2018 - r8169 ethernet card don't work after returning from suspension
This bug affects 127 people:
===SRU Justification===
[Impact]
Ethernet r8169 stops working after system resumed from suspend.[Test]
User confirmed these patches fix the issue. r8169 continues to work after resume from suspend.[Regression Potential]
Medium. The fix is limited to one device, all patches are in mainline. The WOL default change might cause regression for users that depend on BIOS settings. We can advice them to use userspace tool (systemd, ethtool, etc.) instead.
Summary
There have been quite a few bugs with r8169 in 2018. I'm using a kernel from 2017 (4.13.0-36) so I haven't experienced the same problems with TLP. It is more difficult to fix bugs I'm not experiencing. The kernel developers do have time to install new kernels, test for bugs and come up with solutions. I can do a little but, time constraints prevent installation of newer kernels.
- 105,762