Fix: Slow Wired Ethernet on Lenovo Legion 5 15ARH7H with Pop!_OS 22.04 LTS

Ever since moving to Pop!_OS 22.04 LTS wired networking have been very slow. I recalled seeing posts on this problem and the issue being the included driver for the RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller.

Performance was not only poor but downloads were much slower than uploads as evidenced by the Speedtest CLI package:

Download:
* Speed: 83.19 Mbps
* Jitter: 34.18ms, low: 6.21ms, high: 385.14ms
Upload:
* Speed: 464.66 Mbps
* Jitter: 58.86ms, low: 8.41ms, high: 1139.23ms

The problem is the driver is the r8169. The solution is replace the r8169 with the correct r8168.

Here are the steps (thanks to  realtechtalk.com – full details at: https://realtechtalk.com/Ubuntu_Debian_Linux_Mint_r8169_r8168_Network_Driver_Problem_and_Solution-2253-articles)

  1. Download the r8168 driver:
    sudo apt-get install r8168-dkms
  2. Make sure the r8169 module doesn’t load any more:
    sudo echo "blacklist r8169" > /etc/modprobe.d/blacklist-r8169.conf
  3. Remove the current r8169 driver:
    sudo rmmod r8169
  4. Install the r8168 driver:
    sudo modprobe r8168
  5. Activate the change:
    sudo systemctl restart networking

Here are the new results (noting people in the house gaming, streaming, etc.):

Download:
* Speed: 528.56 Mbps
* Jitter: 0.34ms, low: 1.81ms, high: 2.67ms
Uploads:
* Speed:705.05 Mbps
* Jitter: 0.68ms, low: 2.04ms, high: 18.32ms

About Mike Pelley

Let’s see… A little about me… I’ve been around information technology since 1983 with computers such as DEC Rainbows (weird machine – the standard DOS couldn’t format its own floppy disks – remember them? – and I had to format them on a friend’s IBM PC) to Radio Shack TRS-80 to Apple ][e and Apple //c in the beginning. I have programmed in 8-bit assembly language on 6502, FORTRAN and COBOL on IBM System/370 (and I still hate JCL), VAX BASIC and COBOL (and a weird and massive WordPerfect 4.0 macro) on DEC VMS (Alpha), C/C++ on Digital Unix (ALPHA), and C/C++, Perl (it may be powerful but I still hate it), PHP on Linux (Red Hat, Centos, Ubuntu, etc.). I have work with databases such as Digital RDB (later to become Oracle RDB), Oracle DBMS, Microsoft SQL Server, MySQL and PostgreSQL on VAX, Alpha, Sun and Intel. Check out my professional profile and connect with me on LinkedIn. See http://lnkd.in/nhTRZe I still think that Digital created some of the best ideas in the world: VAX clustering, DSSI disks (forerunner to SCSI) and the Alpha processor (first commercial 64-bit processor – Red Hat screamed on an Alpha!). DEC just could not seem to be able to give air conditioners away to someone lost in the Sahara Desert! VMware is one of the best ways to get the most out of an x64 server. And I have tried Oracle VM, Virtual Box and Microsoft Virtual Server. Outside of that I am a huge military history buff starting in the early 20th century. I love Ford Mustangs (my ’87 Mustang GT was awesome) and if I had the money I would have a Porsche 928S4. If I had a lot of money I would have a Porsche 911 Turbo. I also play too much AmrA 3 Exile mod. Over 5,000+ hours... I have a wonderful son, Cameron. I have a long suffering (Do you really need all that computer junk?) wife, Paula. I live in Paradise, Newfoundland and Labrador.
This entry was posted in aide-mémoire. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.