You are not logged in.

#1 2021-08-28 10:22:54

pr0m3th3us
Member
Registered: 2021-08-28
Posts: 13

[Ethernet] Automatic module loading with systemd is not working!

My Ethernet driver module is not loaded by kernel automatically.

> lspci -v
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 05)
	Subsystem: Realtek Semiconductor Co., Ltd. Device 0123
	Physical Slot: 32
	Flags: bus master, fast devsel, latency 0, IRQ 16
	I/O ports at e800 [size=256]
	Memory at fbfff000 (64-bit, prefetchable) [size=4K]
	Memory at fbff8000 (64-bit, prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169
	Kernel modules: r8169

> sudo dmesg | grep r8169
[  104.589442] libphy: r8169: probed
[  104.589820] r8169 0000:02:00.0 eth0: RTL8105e, 00:e0:4c:07:03:70, XID 40c, IRQ 28
[  104.612807] r8169 0000:02:00.0 ens32: renamed from eth0
[  104.650427] RTL8208 Fast Ethernet r8169-0-200:00: attached PHY driver (mii_bus:phy_addr=r8169-0-200:00, irq=MAC)
[  104.935343] r8169 0000:02:00.0 ens32: Link is Down
[  106.668783] r8169 0000:02:00.0 ens32: Link is Up - 100Mbps/Full - flow control rx/tx

But when I try and load it manually it works I am connected to the network.

sudo modprobe -v r8169

But it goes back to not working when I restart the computer. So I tried to use [PRE]systemd[/PRE] to automatically load the model every time the computer starts:

> cat /etc/modules-load.d/ethernet-r8169.conf
# Load Ethernet Module r8169 at boot
r8169

> sudo systemctl status systemd-modules-load.service
● systemd-modules-load.service - Load Kernel Modules
     Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static)
     Active: active (exited) since Sat 2021-08-28 15:26:01 IST; 28min ago
       Docs: man:systemd-modules-load.service(8)
             man:modules-load.d(5)
    Process: 192 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=0/SUCCESS)
   Main PID: 192 (code=exited, status=0/SUCCESS)
        CPU: 9ms

Notice: journal has been rotated since unit was started, output may be incomplete.

But it does not work; I still have to run [PRE]sudo modprobe -v r8169[/PRE].

What seems to be the issue?

Last edited by pr0m3th3us (2021-08-28 17:23:07)

Offline

#2 2021-08-28 10:37:52

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Ethernet] Automatic module loading with systemd is not working!

Those logs suggest the module IS loaded at boot, but there's a simple way to verify that .

Once booted and logged in , execute

$ lsmod | grep r8169

If that outputs anything, the module is loaded.
Incase it's loaded but you don't have internet access something else goes wrong.

Post full dmesg and/or journal output.

Welcome to archlinux forums


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2021-08-28 17:33:46

pr0m3th3us
Member
Registered: 2021-08-28
Posts: 13

Re: [Ethernet] Automatic module loading with systemd is not working!

Lone_Wolf wrote:

Those logs suggest the module IS loaded at boot, but there's a simple way to verify that .

Once booted and logged in , execute

$ lsmod | grep r8169
> lsmod | grep r8169

Gives no output.

Post full dmesg and/or journal output.

> sudo dmesg > dmesg.txt

https://hastebin.com/qacozuyofi.yaml

Welcome to archlinux forums

Thank you! Looking forward to a great time here!!!

Offline

#4 2021-08-29 11:35:06

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Ethernet] Automatic module loading with systemd is not working!

There is nothing about network devices in dmesg.
I do notice errors related to sdc / ata4.00  . If you do have a sdc drive it has problems .

There is hardware in this system I haven't seen in a long time (like  a parallel port) .

Please post lspci -knn and ip link just after booting .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2021-08-29 12:13:04

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Ethernet] Automatic module loading with systemd is not working!

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 05)

https://aur.archlinux.org/packages/r8101-dkms/

r8169 isn't automatically loaded because it only generically can drive that device, but doesn't fit the vendor/model ID.
Not sure why systemd wouldn't load the module at all, though.

Lone_Wolf wrote:

There is nothing about network devices in dmesg.

@pr0m3th3us, do you have a parallel windows installation?

Offline

#6 2021-08-29 13:23:24

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: [Ethernet] Automatic module loading with systemd is not working!

If you've installed r8168{-lts} that contains a blacklist for r8169 and you probably want to remove those packages if you have them installed.

Offline

#7 2021-08-30 05:48:48

pr0m3th3us
Member
Registered: 2021-08-28
Posts: 13

Re: [Ethernet] Automatic module loading with systemd is not working!

Lone_Wolf wrote:

There is nothing about network devices in dmesg.
I do notice errors related to sdc / ata4.00  . If you do have a sdc drive it has problems .

There is hardware in this system I haven't seen in a long time (like  a parallel port) .

Please post lspci -knn and ip link just after booting .

Yep, my computer is a dinosaur.

> lspci -knn

00:00.0 Host bridge [0600]: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub [8086:2770] (rev 02)
	Subsystem: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub [8086:2770]
	Kernel modules: intel_agp
00:01.0 PCI bridge [0604]: Intel Corporation 82945G/GZ/P/PL PCI Express Root Port [8086:2771] (rev 02)
	Kernel driver in use: pcieport
00:1b.0 Audio device [0403]: Intel Corporation NM10/ICH7 Family High Definition Audio Controller [8086:27d8] (rev 01)
	Subsystem: Intel Corporation DeskTop Board D945GTP [8086:27d8]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation NM10/ICH7 Family PCI Express Port 1 [8086:27d0] (rev 01)
	Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 [8086:27c8] (rev 01)
	Subsystem: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 [8086:27c8]
	Kernel driver in use: uhci_hcd
00:1d.1 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 [8086:27c9] (rev 01)
	Subsystem: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 [8086:27c9]
	Kernel driver in use: uhci_hcd
00:1d.2 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 [8086:27ca] (rev 01)
	Subsystem: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 [8086:27ca]
	Kernel driver in use: uhci_hcd
00:1d.3 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 [8086:27cb] (rev 01)
	Subsystem: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 [8086:27cb]
	Kernel driver in use: uhci_hcd
00:1d.7 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller [8086:27cc] (rev 01)
	Subsystem: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller [8086:27cc]
	Kernel driver in use: ehci-pci
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev e1)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge [8086:27b8] (rev 01)
	Subsystem: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge [8086:27b8]
	Kernel driver in use: lpc_ich
	Kernel modules: intel_rng, lpc_ich, leds_ss4200
00:1f.1 IDE interface [0101]: Intel Corporation 82801G (ICH7 Family) IDE Controller [8086:27df] (rev 01)
	Subsystem: Intel Corporation 82801G (ICH7 Family) IDE Controller [8086:27df]
	Kernel driver in use: ata_piix
	Kernel modules: ata_piix, pata_acpi, ata_generic
00:1f.2 IDE interface [0101]: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] [8086:27c0] (rev 01)
	Subsystem: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] [8086:27c0]
	Kernel driver in use: ata_piix
	Kernel modules: ata_piix, pata_acpi, ata_generic
00:1f.3 SMBus [0c05]: Intel Corporation NM10/ICH7 Family SMBus Controller [8086:27da] (rev 01)
	Subsystem: Intel Corporation NM10/ICH7 Family SMBus Controller [8086:27da]
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208B [GeForce GT 710] [10de:128b] (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd Device [1458:36f7]
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device [0403]: NVIDIA Corporation GK208 HDMI/DP Audio Controller [10de:0e0f] (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd Device [1458:36f7]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 05)
	Subsystem: Realtek Semiconductor Co., Ltd. Device [10ec:0123]
	Kernel modules: r8169
> ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

sdc / ata4.00

Is there any GUI utility to monitor my hard disk?

Last edited by pr0m3th3us (2021-08-30 05:49:49)

Offline

#8 2021-08-30 05:50:51

pr0m3th3us
Member
Registered: 2021-08-28
Posts: 13

Re: [Ethernet] Automatic module loading with systemd is not working!

seth wrote:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 05)

https://aur.archlinux.org/packages/r8101-dkms/

r8169 isn't automatically loaded because it only generically can drive that device, but doesn't fit the vendor/model ID.
Not sure why systemd wouldn't load the module at all, though.

Lone_Wolf wrote:

There is nothing about network devices in dmesg.

@pr0m3th3us, do you have a parallel windows installation?

Yes! Windows 10.

Offline

#9 2021-08-30 05:59:06

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Ethernet] Automatic module loading with systemd is not working!

Is there any GUI utility to monitor my hard disk?

https://wiki.archlinux.org/title/SMART

No GUI, none needed.
Post "smartctl -a /dev/sdc" for a general oversight and see the wiki on how the daemon can send you mails or a desktop notification if there're issues.

Yes! Windows 10.

See the 3rd link below. This *can* also be the cause for the ata error.

Other than that, please see what V1del posted about r8168 and myself about your device actually requiring r8101 rather than 8169

Offline

#10 2021-08-31 17:08:30

pr0m3th3us
Member
Registered: 2021-08-28
Posts: 13

Re: [Ethernet] Automatic module loading with systemd is not working!

Looks like this is a known problem:

Description:
No ethernet after suspend. Reseting NetworkManager did not work. It seems to be a problem with the kernel module.

To work around the problem, I removed the package and build r8168-dkms from AUR (https://aur.archlinux.org/packages/r8168-dkms/). Now the problem seems to be gone.


What worked:

Uninstalling r8169

yay -R r8169

Installing r8168-dkms

yay -S r8168-dkms

Why the driver for r8168 works for r8169 befuddles me. Hope it's not an inefficient solution (because of wrong driver).

Last edited by pr0m3th3us (2021-08-31 17:14:04)

Offline

#11 2021-08-31 17:29:25

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Ethernet] Automatic module loading with systemd is not working!

Because you actually have neither:

02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 05)

You're getting generic support out of the other realtek drivers and unless this is a custom (zen/hardened) kernel, you also don't need the dkms version of r8168 (there's just no package for r8101 in the repos)

Offline

#12 2021-08-31 19:24:31

pr0m3th3us
Member
Registered: 2021-08-28
Posts: 13

Re: [Ethernet] Automatic module loading with systemd is not working!

seth wrote:

Because you actually have neither:

02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 05)

You're getting generic support out of the other realtek drivers and unless this is a custom (zen/hardened) kernel, you also don't need the dkms version of r8168 (there's just no package for r8101 in the repos)


Where can I get / build the actual driver for r8101?

Offline

#13 2021-08-31 21:19:54

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Ethernet] Automatic module loading with systemd is not working!

Offline

#14 2021-08-31 21:25:50

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Ethernet] Automatic module loading with systemd is not working!

A search for 10ec:8136 and linux lead me to linux-hardware.org[1] which indicates that controller is supported by the r8169 kernel module .

$ modinfo r8169 | grep 8136
alias:          pci:v000010ECd00008136sv*sd*bc*sc*i*
$ 

It does seem the r8169 module is indeed the correct one and you don't need another driver .


Looks like

[1]
http://linux-hardware.org/?id=pci:10ec-8136-17aa-3975
https://linux-hardware.org/?id=pci:10ec-8136-1028-04d8
https://linux-hardware.org/?id=pci:10ec-8136-103c-2ab1


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#15 2021-09-01 07:02:12

pr0m3th3us
Member
Registered: 2021-08-28
Posts: 13

Re: [Ethernet] Automatic module loading with systemd is not working!

Lone_Wolf wrote:

A search for 10ec:8136 and linux lead me to linux-hardware.org[1] which indicates that controller is supported by the r8169 kernel module .

$ modinfo r8169 | grep 8136
alias:          pci:v000010ECd00008136sv*sd*bc*sc*i*
$ 

It does seem the r8169 module is indeed the correct one and you don't need another driver .


Looks like

[1]
http://linux-hardware.org/?id=pci:10ec-8136-17aa-3975
https://linux-hardware.org/?id=pci:10ec-8136-1028-04d8
https://linux-hardware.org/?id=pci:10ec-8136-103c-2ab1


This is cool. But how can I compile and install these drivers?

Offline

#16 2021-09-01 07:18:38

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Ethernet] Automatic module loading with systemd is not working!

There's nothing to compile, he just linked a bunch of hw dbase entries to make his point.

yay -R r8169

This did nothing at all, there's no such package.

yay -S r8168-dkms

At worst, this just go in the way. At "best", it replaced a previous r8168 installation (shadowing the device from the r8169 support) and failed the dkms build, so you accidentally removed the r8168 module.

pacman -Qs realtek
modinfo r8168
grep -r r8169 /etc/modprobe.d

Offline

#17 2021-10-14 08:52:35

pr0m3th3us
Member
Registered: 2021-08-28
Posts: 13

Re: [Ethernet] Automatic module loading with systemd is not working!

pr0m3th3us wrote:

Looks like this is a known problem:

Description:
No ethernet after suspend. Reseting NetworkManager did not work. It seems to be a problem with the kernel module.

To work around the problem, I removed the package and build r8168-dkms from AUR (https://aur.archlinux.org/packages/r8168-dkms/). Now the problem seems to be gone.


What worked:

Uninstalling r8169

yay -R r8169

Installing r8168-dkms

yay -S r8168-dkms

Why the driver for r8168 works for r8169 befuddles me. Hope it's not an inefficient solution (because of wrong driver).

**r8168** no longer works.

This works now:

yay -S r8101-dkms

> inxi -N
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet driver: r8101

Last edited by pr0m3th3us (2021-10-14 08:53:57)

Offline

Board footer

Powered by FluxBB