Upgraded to kernel 6.1 and my realtek RTL810xE (Wired ethernet) no longer works

Since I’ve upgraded to the new 6.1.12-1-lts my wired connection is no longer recongnized (Realtek RTL810xE). the previous 5.19-lts it worked with this AUR package >> aur/r8101-dkms 1.035.03-2 (+6 0.00) (Orphaned)

I tried to build it on the new 6.1-lts kernel and I got this output:

:: Running post-transaction hooks…
(1/3) Arming ConditionNeedsUpdate…
(2/3) Install DKMS modules
==> dkms install --no-depmod r8101/1.035.03 -k 6.1.12-arch1-1
Error! Bad return status for module build on kernel: 6.1.12-arch1-1 (x86_64)
Consult /var/lib/dkms/r8101/1.035.03/build/make.log for more information.
==> WARNING: dkms install --no-depmod r8101/1.035.03 -k 6.1.12-arch1-1' exited 10 ==> dkms install --no-depmod r8101/1.035.03 -k 6.1.12-1-lts Error! Bad return status for module build on kernel: 6.1.12-1-lts (x86_64) Consult /var/lib/dkms/r8101/1.035.03/build/make.log for more information. ==> WARNING: dkms install --no-depmod r8101/1.035.03 -k 6.1.12-1-lts’ exited 10
(3/3) Refreshing PackageKit…

I’m stuck using wifi at this moment until I can find a solution.
Thanks!

its no longer maintained, last updated 2 years ago and apparently incompatible with the new kernel.

I saw that some cards using that driver also work with the in-kernel driver. So maybe removing it completely might help (because the package most likely blacklists the in-kernel driver, leading to it not being loaded)

There is no in-kernel driver for this.

You could try increasing the grub timeout to 10 seconds from 5. It was reported on the Arch forum as possible that it needs time to power up or it doesn’t load the module.

This is done in /etc/default/grub

Then update grub with sudo grub-mkconfig -o /boot/grub/grub.cfg

This is something you can check as it should use the r8169 kernel module.

There is:

that was also the information I found when googling it. There are definitely cards that used the r8101 that can also use the in-kernel r8169