Troubleshoot Realtek RTL8111 / 8168B in LMDE

Many users have had problems with the Network cards Realtek because the data transfer is extremely slow.

The network card Realtek r8168B does not work well with Red Hat, CentOS, Fedora o Ubuntu: instead of loading the driver r8168, modprobe loads the driver r8169. In the forums Linux Mint have posted a solution for LMDE and I leave it to you below. What we will basically do is:

  1. Download a file from the official site of Realtek.
  2. We open a terminal.
  3. We go to the directory where we download the file and extract it.
  4. We execute the file autorun.sh.
  5. If we use the Kernel 3.x: we copy the file r8168.ko to the right place and load the module.
Explained in more detail the thing would be like this:

1.- We download the necessary driver

For this we are going to this link and we lower the driver.

2.- Unzip the downloaded file.

cd ~/Carpeta_donde_descargamos_el_driver
tar vjxf r8168-8.025.00.tar.gz
cd r8168-8.025.00
sudo ./autorun.sh

This script downloads and renames the r8169 driver so it won't cause any more problems. If we want, we add it to the black list with the following command:

echo "blacklist r8169" >> /etc/modprobe.d/blacklist.conf

3.- Correct in Kernel 3.X

If you are using the Kernel 3.0 they will realize that the file / src / Makefile has a bug that causes the file to be installed r8168.o instead of the file r8168.ko. After running the autorun.sh we put this in the terminal:

sudo cp src/r8168.ko   /lib/modules/3.0.0-1-amd64/kernel/drivers/net/
sudo depmod
sudo modprobe r8168

And that's it.


12 comments, leave yours

Leave a Comment

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

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Ender said

    And how do I avoid having to recompile it after updating the kernel?

  2.   luweeds said

    I have the problem with the rtl 8187, it seems that they do not improve anything in the development of the new kernels that come out, a bitch but hey, we will have to put imagination to the matter.
    regards

  3.   nocturnal said

    Now I see why! Thank you!

    Regards. 🙂

  4.   nocturnal said

    It seemed weird to me already! Thank you!

    Regards. 🙂

  5.   Luis said

    Hi how are you, when I run sudo ./autorun.sh I get: ./autorun.sh: 27: make: not fount

    And when I want to run the following: sudo cp src / r8168.ko /lib/modules/3.0.0-1-amd64/kernel/drivers/net/ (In my case it is 3.0.0-12-server)
    can't find the directory

    I have the Ubuntu Server 11.10

    Do you know why ???

    1.    KZKG ^ Gaara said

      See if you have the package installed make y gcc : )

      1.    Hugo said

        It is probably more convenient to just install the package build-essential

        1.    KZKG ^ Gaara said

          Oh yeah 😀… I just didn't remember the name of the LOL metapackage

  6.   joarivera said

    05: 00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111 / 8168 PCI Express Gigabit Ethernet controller (rev 06)
    Subsystem: Giga-byte Technology Motherboard
    Flags: fast development, IRQ 16
    I / O ports at b000 [size = 256]
    Memory at dc104000 (64-bit, prefetchable) [size = 4K]
    Memory at dc100000 (64-bit, prefetchable) [size = 16K]
    Capabilities: [40] Power Management version 3
    Capabilities: [50] MSI: Enable- Count = 1/1 Maskable- 64bit +
    Capabilities: [70] Express Endpoint, MSI 01
    Capabilities: [b0] MSI-X: Enable- Count = 4 Masked-
    Capabilities: [d0] Vital Product Data
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Virtual Channel

    root @ vs r8168_scripts # ./switchmods
    Attempting to remove running r8168 and r8169 modules if loaded…
    Attempting to move /lib/modules/3.8.1-201.fc18.x86_64/kernel/drivers/net/r8169.ko to /lib/modules/3.8.1-201.fc18.x86_64/kernel/drivers/net/r8169.ko.bak.
    Blacklisting r8169 in /etc/modprobe.d/blacklist…
    Creating a tmp dir in which to build the module…
    Checking for gcc and linux-headers-3.8.1-201.fc18.x86_64… dpkg-query: failed to open package info file `/ var / lib / dpkg / status' for reading: No such file or directory
    You need to install package linux-headers-3.8.1-201.fc18.x86_64.
    root @ vs r8168_scripts # yum install kernel-headers.x86_64
    Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
    Loading mirror speeds from cached hostfile
    * fedora: mirrors.med.harvard.edu
    * rpmfusion-free: mirror.us.leaseweb.net
    * rpmfusion-free-updates: mirror.us.leaseweb.net
    * rpmfusion-nonfree: mirror.us.leaseweb.net
    * rpmfusion-nonfree-updates: mirror.us.leaseweb.net
    * updates: mirrors.med.harvard.edu
    Package kernel-headers-3.8.1-201.fc18.x86_64 already installed and latest version

  7.   Alan said

    Thanks a lot! It happened to my pc that it did not connect the internet and there was no way, I did this as you put it and it worked! Now I just need to know because it only recognizes 2 usb ports of all what is in the computer and I would have everything 100% to be a new user in linux

  8.   Felipe said

    Warning: No support for locale: es_CL.utf8 ???

  9.   Jesusn said

    Really, thanks so much. Two days to raise the blessed card and this has been the only solution that has worked. Thank you very much