Internet instabilities RTL8125 - Driver 8169

,

Hello everyone,

I’m new to fedora and quite a newbie in Linux.

I’ve installed new hardware and installed Fedora 39.
Asus Prime B650 plus
AMD 7800X3D

I’ve trouble with my internet connection with my PC.

My card is limited to 100 Mbps (i’m connected to a powerplug adaptator so it can be the limitation) and the connection is unstable, it often completely shut for a few seconds - minutes and go back. (especially if I download a game with steam).

Here is the lspci result :

lspci -knn | grep -A 3 10ec:8125
07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 05)
DeviceName: Realtek RTL8125BG LAN
Subsystem: ASUSTeK Computer Inc. Device [1043:87d7]
Kernel driver in use: r8169

uname -a :
Linux Host-002 6.7.7-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar 1 16:53:59 UTC 2024 x86_64 GNU/Linux

dmesg :
dmesg | grep eno1
[ 4.487115] r8169 0000:07:00.0 eno1: renamed from eth0
[ 9.349434] r8169 0000:07:00.0 eno1: Link is Down
[ 11.789110] r8169 0000:07:00.0 eno1: Link is Up - 100Mbps/Full - flow control rx/tx

I’ve read a couple a topics from people facing the same issues with this driver and type of card.
But I realy never find a working solution.

On realtek website there is a driver 8125 but working until kernel 6.4.
https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software

I’ve seen some 8125-dkms driver like :
https://copr.fedorainfracloud.org/coprs/laurie-reeves/realtek-r8125-dkms/
But it seems to be broken.

And this one seems not compatible with Fedora 39 :
https://copr.fedorainfracloud.org/coprs/tjuberg/realtek-r8125-dkms/

I have similar issues with my wifi (with is an additionnal PCI). For exemple the network manager don’t show me the wifi connection today.

I’ve try to installed an Arco Linux and Linux Mint with the sames issues.

I’ve had a hard time trying making sense of all of this. Can you help me out ?

Thanks.
Regards.

Welcome to Fedora @tofusoyeux

Please test if this helps to solve your problem.

Hi,

Thanks you very much for your reply !

I’m tested that one but I cant get the driver to be used by the network card.

I’ve installed it following the instructions from the link and blacklist r8169 and r8125 but i’ve got the following :

sudo modprobe r8168

lsmod | grep r8
r8168                 684032  0

lspci -knn | grep -A 3 10ec:8125
07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 05)
        DeviceName: Realtek RTL8125BG LAN
        Subsystem: ASUSTeK Computer Inc. Device [1043:87d7]
        Kernel modules: r8169, r8125

After blacklisting the two other driver I use :
sudo dracut --regenerate-all --force

To make the changes effectives.

How can I get the card to use the driver ?

Use journalctl -b -g r81 to search for relevant messages.

% journalctl -b -g r81
Mar 10 09:25:41 imacf39 kernel: percpu: Embedded 64 pages/cpu s225280 r8192 d28672 u524288
Mar 10 09:25:41 imacf39 kernel: pcpu-alloc: s225280 r8192 d28672 u524288 alloc=1*2097152

The dracut tool is for the modules needed to access the root filesystem, so should not be needed when using a 3rd party network module. lspci shows r8125 so you appear to have installed the module but failed to blacklist r8169.

You can try using sudo modprobe -r r8169 r8125 then sudo modprobe -v r8168. Once you have verified that the r8168 module is working, create a file /etc/modprobe.d/blacklist_r8169.conf containing the lines:

# Use r8168 (https://copr.fedorainfracloud.org/coprs/sunwire/dkms-r8168/) 
blacklist r8169
1 Like

Thanks for your reply.

I succefully “remove” r8169 and 8125 but when I activate r8168 my network card dont go up.

quentin@Host-002:~$ sudo modprobe -v r8168
insmod /lib/modules/6.7.7-200.fc39.x86_64/extra/r8168.ko.xz
quentin@Host-002:~$ journalctl -b -g r81
Journal file /var/log/journal/da7818a00c4d49e8acf7ed203904bdd2/system@00061340ad28abd5-6e043432b41ca342.journal~ is truncated, ignoring file.
mars 10 19:40:05 fedora kernel: percpu: Embedded 64 pages/cpu s225280 r8192 d28672 u262144
mars 10 19:40:05 fedora kernel: pcpu-alloc: s225280 r8192 d28672 u262144 alloc=1*2097152
mars 10 18:40:08 fedora kernel: r8169 0000:07:00.0 eth0: RTL8125B, e8:9c:25:45:62:d7, XID 641, IRQ 77
mars 10 18:40:08 fedora kernel: r8169 0000:07:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
mars 10 18:40:08 fedora kernel: r8169 0000:07:00.0 eno1: renamed from eth0
mars 10 18:40:10 fedora dkms[1474]: Deprecated feature: REMAKE_INITRD (/var/lib/dkms/r8125/9.012.03/source/dkms.conf)
mars 10 18:40:10 fedora dkms[1568]: Deprecated feature: REMAKE_INITRD (/var/lib/dkms/r8125/9.012.03/source/dkms.conf)
mars 10 18:40:10 fedora dkms[1582]: make -C /lib/modules/6.7.7-200.fc39.x86_64/build M=/var/lib/dkms/r8125/9.012.03/build clean
mars 10 18:40:10 fedora dkms[1481]: { 'make' -j16 KVER=6.7.7-200.fc39.x86_64 KERNELDIR=/lib/modules/6.7.7-200.fc39.x86_64/build BASEDIR=/lib/modules/6.7.7-200.fc39.x86_64/build/.. modules; } >> /var/lib/dkms/r8125/9.012.03/build/make.l>
mars 10 18:40:11 fedora dkms[1900]: Consult /var/lib/dkms/r8125/9.012.03/build/make.log for more information.
mars 10 18:40:11 fedora dkms[1050]: dkms autoinstall on 6.7.7-200.fc39.x86_64/x86_64 succeeded for r8168
mars 10 18:40:11 fedora dkms[1050]: dkms autoinstall on 6.7.7-200.fc39.x86_64/x86_64 failed for r8125(10)
mars 10 18:40:11 fedora kernel: RTL8226B_RTL8221B 2.5Gbps PHY r8169-0-700:00: attached PHY driver (mii_bus:phy_addr=r8169-0-700:00, irq=MAC)
mars 10 18:40:11 fedora kernel: r8169 0000:07:00.0 eno1: Link is Down
mars 10 18:40:13 fedora kernel: r8169 0000:07:00.0 eno1: Link is Up - 100Mbps/Full - flow control rx/tx
mars 10 18:40:13 fedora kernel: r8169 0000:07:00.0 eno1: Link is Up - 100Mbps/Full - flow control rx/tx
mars 10 18:41:53 Host-002 sudo[4140]:  quentin : TTY=pts/1 ; PWD=/home/quentin ; USER=root ; COMMAND=/usr/sbin/modprobe -r r8169 r8125
mars 10 18:41:53 Host-002 kernel: r8169 0000:07:00.0 eno1: Link is Down
mars 10 18:42:12 fedora sudo[4201]:  quentin : TTY=pts/1 ; PWD=/home/quentin ; USER=root ; COMMAND=/usr/sbin/modprobe -v r8168

If there were no error messages in the terminal then it appears the the r8168 module was successfully loaded. You can confirm that in the terminal with lsmod | grep r8168.

If the module is loaded, you should create two “blacklist” files, one as described above for the r8169 module and one where r8169 is replaced by r8125. I would reboot and check that wifi is working, then let us know how it works. If there are problems gettign wifi up, run journalctl -b -g r81 to see if we can find why it fails.

Hello, i’ve been on windows for a few days and apparently there is the same issues with bad drivers.

So reinstalled a fedora. But i’m at the same state.

I’ve blacklist r8169 and installed dkms-r8168 but it doesn’t activate my Ethernet card.

This is after a boot.

[mquentin@Host-002 ~]$ journalctl -b -g r81
mars 17 18:50:07 fedora kernel: percpu: Embedded 64 pages/cpu s225280 r8192 d28672 u262144
mars 17 18:50:07 fedora kernel: pcpu-alloc: s225280 r8192 d28672 u262144 alloc=1*2097152
[mquentin@Host-002 ~]$ sudo modprobe -v r8168
insmod /lib/modules/6.7.9-200.fc39.x86_64/extra/r8168.ko.xz 
[mquentin@Host-002 ~]$ journalctl -b -g r81
mars 17 18:50:07 fedora kernel: percpu: Embedded 64 pages/cpu s225280 r8192 d28672 u262144
mars 17 18:50:07 fedora kernel: pcpu-alloc: s225280 r8192 d28672 u262144 alloc=1*2097152
mars 17 17:51:07 fedora sudo[2625]: mquentin : TTY=pts/0 ; PWD=/home/mquentin ; USER=root ; COMMAND=/usr/sbin/modprobe -v r8168
mars 17 17:51:07 fedora kernel: r8168: loading out-of-tree module taints kernel.

I’ve “disable” the secure boot (set to windows UEFI in bios).

You also need to blacklist the r8192.

I think you’re misinterpreting that text, I don’t see any failures in there. the “tainted kernel” line isn’t fatal and doesn’t mean the module failed to load.

Run “lsmod | grep r81” to see if the module actually loaded