How can I switch from r8169 to r8168 on an installed system?

How can I switch back from r8169 to r8168 on an installed system? The system runs well with WLAN and the r8169 driver, but it must also run with Ethernet (WLAN can be omitted!), which worked fine with the previous installation with r8168. A reinstallation of r8169 followed by a reboot did not improve anything.

1:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
	Subsystem: Hewlett-Packard Company ProBook 450/455
	Physical Slot: 0
	Flags: bus master, fast devsel, latency 0
	I/O ports at 4000 [size=256]
	Memory at d5000000 (64-bit, non-prefetchable) [size=4K]
	Memory at d0000000 (64-bit, prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel modules: r8169

1 Like

This is a kernel module - how did you reinstall it?

Should just be a case of installing the package; if I remember correctly it will blacklist r8169.

Sorry, typo, I meant of course reinstallation of the r8168.

But exactly THAT is not what it has done at least not through sudo pacman -S r8168

1 Like

And how can I do that manually?

Not specific to #desktop-environments:xfce moved to #arch-based-related-questions:newbie
(no Networking category available)

1 Like

https://wiki.archlinux.org/title/Kernel_module#Blacklisting

1 Like

I have now added the line blacklist r8169 in /etc/modprobe.d/blacklist.conf, but the r8169 is still in use after the reboot.

Show the output

cat /etc/modprobe.d/blacklist.conf
[pany@HAL-hp ~]$ cat /etc/modprobe.d/blacklist.conf
# Disable intel mei (including mei_watchdog).
blacklist intel_pmc_bxt
blacklist iTCO_vendor_support

# Do not load the 'iTCO_wdt' watchdog module on boot.
blacklist iTCO_wdt

# Disable r8169
blacklist r8169

You are certain the it still loaded the r8169?

inxi -Na
[pany@HAL-hp ~]$ inxi -Na
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard ProBook 450/455 driver: N/A modules: r8169 pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 port: 4000 bus-ID: 01:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  Device-2: Ralink RT3290 Wireless 802.11n 1T/1R PCIe
    vendor: Hewlett-Packard driver: rt2800pci v: 2.3.0 pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 1814:3290
    class-ID: 0280

At least lspci -v still shows me the r8169 and my ethernet witrd doesn’t even show me to connect.

Hmm?

sudo modprobe -r r8169
sudo modprobe r8168

reboot and check again.

1 Like
    vendor: Hewlett-Packard ProBook 450/455 driver: N/A modules: r8169 pcie:

it says: driver: N/A

and to use r8168 this need to be installed what will blacklist the in kernel driver: r8169 when installing the package:
/usr/lib/modprobe.d/r8168.conf
blacklist r8169

1 Like

Good catch…

:scream:

[pany@HAL-hp ~]$ sudo modprobe r8168
modprobe: FATAL: Module r8168 not found in directory /lib/modules/5.15.44-1-lts

but I have installed it with sudo pacman -S r8168 …

You have to install the lts version.

sudo pacman -S r8168-lts
1 Like

indeed its kernel agnostic… https://archlinux.org/packages/community/x86_64/r8168-lts/

1 Like

its all in the logs and i love read the logs … :smiling_face_with_three_hearts: a lot of lotsalogs :wink:

4 Likes

I can give you some more… logs :laughing: