Installing r8125 driver

completely new to Manjaro. installed to desktop. no internet . need ethernet . not wifi . right now on android hot spot . I don’t code or much of anything .
done a lot of research . installed r8125 dkms .but r8169 driver is still installed . not 100% sure how to blacklist r8169 . not sure if I can just uninstall it from " add/remove software ??

inxi -F

THANK YOU

Hi @loimp,

From what I can see, the driver for r8125 is in the AUR:

$ pamac search 8125
r8125-dkms                                                                                                                                                                                                                                  9.007.01-1  AUR
Kernel module for RTL8125

So can be installed with:

pamac build r8125-dkms

AFAIK this should, theoretically, be all that’s necessary. Please report back. If still not working, please report back with the output of:

lsmod | grep 81

To find out which module to blacklist.

Hope this helps!

At least the Linux 5.16 kernel has support for Realtek r8125 built in. The module/driver is called r8169.

You can still use the 8125-only driver, but theres not point as that has been merged with r8169 as far as I can tell. if you want to, follow mirdarthos suggestion.

P.S. I have the same 2.5gig ethernet on my storage/media server and had zero issues with it thus far, tho i am still limited to 1gig as I only have 1gig devices to test it with ^^

well , I’m a little stumped . after I followed your inst. , there was a change when I hover over the connection icon .now it’s giving all the info for wifi etc. ; which it wasn’t doing previously .

question ; is it unsafe to post here or any where all my dns , IP , and gateway addresses ?; like to paste bin public ?

here is the result of ```
lsmod | grep 81

,


[bloinal@ME ~]$ lsmod | grep 81
rtl8192cu              98304  0
rtl_usb                24576  1 rtl8192cu
rtl8192c_common        73728  1 rtl8192cu
rtlwifi               131072  3 rtl8192c_common,rtl_usb,rtl8192cu
mac80211             1097728  4 rtl_usb,rtl8192cu,rtlwifi,rtl8xxxu
r8169                 102400  0
mdio_devres            16384  1 r8169
libphy                151552  3 r8169,mdio_devres,realtek
usb_storage            81920  1 uas

if I understand this right , the r8125 is still not installed .
I also tried to “build” it from "add/remove software " ; I think the dkms is installed but I need to move up to the next kernel . I read here - Manjaro Kernels - Manjaro

but I’m unsure what to do given this warning -
Warning DO NOT attempt to delete an existing kernel while it is actually being used by Manjaro at the time. You can first identify what kernel is running on your system by using the command mhwd-kernel -li in the terminal (see above).

Manjaro Kernels - Manjaro

thanks a lot for your help

guess my last paste bin with 2 images , I didn’t do it right .

Imgur

No, you didn’t. Pastebin is not for images and unnecccessary for text.

If you provide the output of:

sudo inxi --admin --verbosity=7 --filter --no-host --width

or any inxi command with the --filter any and all identifiable information will be stripped from the output. for more. see:

man inxi

Also see: [HowTo] Provide System Information


Tip:

To provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:

```
pasted text
```

This will just cause it to be rendered like this:

Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.

Instead of like this:

Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.

Thereby improving legibility and making it much easier for those trying to be of assistance.

Please edit your post accordingly.

Mirdarthos

thank you for these info/ tips

Mirdarthos and David64

thanks for input.

The following packages will be installed:

linux515

linux515-nvidia

Starting

resolving dependencies...

looking for conflicting packages...

Packages (2) linux515-5.15.28-1 linux515-nvidia-510.54-7

Total Download Size: 147.15 MiB

Total Installed Size: 152.06 MiB

:: Proceed with installation? [Y/n]

:: Retrieving packages...

linux515-5.15.28-1-x86_64 downloading...

linux515-nvidia-510.54-7-x86_64 downloading...

checking keyring...

checking package integrity...

loading package files...

checking for file conflicts...

checking available disk space...

:: Processing package changes...

installing linux515...

Optional dependencies for linux515

crda: to set the correct wireless channels of your country [installed]

installing linux515-nvidia...

In order to use nvidia module, reboot the system.

:: Running post-transaction hooks...

(1/6) Arming ConditionNeedsUpdate...

(2/6) Updating module dependencies...

(3/6) Install DKMS modules

==> ERROR: Missing 5.15.28-1-MANJARO kernel headers for module r8125/9.007.01.

(4/6) Updating linux initcpios...

==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'

-> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img

==> Starting build: 5.15.28-1-MANJARO

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [autodetect]

-> Running build hook: [modconf]

-> Running build hook: [block]

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

==> WARNING: consolefont: no font found in configuration

-> Running build hook: [filesystems]

-> Running build hook: [fsck]

==> Generating module dependencies

==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64.img

==> Image generation successful

==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'

-> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect

==> Starting build: 5.15.28-1-MANJARO

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: qla2xxx

==> WARNING: Possibly missing firmware for module: bfa

==> WARNING: Possibly missing firmware for module: qed

==> WARNING: Possibly missing firmware for module: qla1280

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

==> WARNING: consolefont: no font found in configuration

-> Running build hook: [filesystems]

-> Running build hook: [fsck]

==> Generating module dependencies

==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img

==> Image generation successful

(5/6) Updating Kernel initcpios for Nvidia-DRM...

(6/6) Updating Grub-Bootmenu

Generating grub configuration file ...

Found theme: /usr/share/grub/themes/manjaro/theme.txt

Found linux image: /boot/vmlinuz-5.15-x86_64

Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img

Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img

Found linux image: /boot/vmlinuz-5.10-x86_64

Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.10-x86_64.img

Found initrd fallback image: /boot/initramfs-5.10-x86_64-fallback.img

Warning: os-prober will be executed to detect other bootable partitions.

Its output will be used to detect bootable binaries on them and create new boot entries.

Adding boot menu entry for UEFI Firmware Settings ...

Found memtest86+ image: /boot/memtest86+/memtest.bin

done

I will restart now and hold esc button down while booting and choose new kernel; hopefully .

First install the kernel headers. To install the headers for all installed kernels, run:

pamac install $(pamac list --quiet --installed | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ')

And then re-run the installation command:

pamac build r8125-dkms

Tip:

To provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:

```
pasted text
```

This will just cause it to be rendered like this:

Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.

Instead of like this:

Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.

Thereby improving legibility and making it much easier for those trying to be of assistance.

Please edit your post accordingly.

1 Like
[bloinal@ME ~]$ pamac install $(pamac list --quiet --installed | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ')
Preparing...
Synchronizing package databases...
Refreshing community.db...                                                      
Refreshing AUR...                                                               
Resolving dependencies...                                                       
Checking inter-conflicts...

To install (3):
 pahole            1.23-1      (Required By: linux510-headers)  extra  295.7 kB
 linux510-headers  5.10.105-1                                   core   29.9 MB
 linux515-headers  5.15.28-1                                    core   32.5 MB

Total download size: 62.6 MB
Total installed size: 269.1 MB

Apply transaction ? [y/N] y
Download of linux515-headers (5.15.28-1) started                                
Download of pahole (1.23-1) started                                             
Download of pahole (1.23-1) finished                                            
Download of linux510-headers (5.10.105-1) started                               
Download of linux515-headers (5.15.28-1) finished                               
Download of linux510-headers (5.10.105-1) finished                              
Checking keyring...                                                        [3/3]
Checking integrity...                                                      [3/3]
Loading packages files...                                                  [3/3]
Checking file conflicts...                                                 [3/3]
Checking available disk space...                                           [3/3]
Installing pahole (1.23-1)...                                              [1/3]
Installing linux510-headers (5.10.105-1)...                                [2/3]
Installing linux515-headers (5.15.28-1)...                                 [3/3]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                             [1/3]
Updating module dependencies...                                            [2/3]
Install DKMS modules                                                       [3/3]
==> dkms install --no-depmod r8125/9.007.01 -k 5.10.105-1-MANJARO
==> dkms install --no-depmod r8125/9.007.01 -k 5.15.28-1-MANJARO
==> depmod 5.15.28-1-MANJARO
==> depmod 5.10.105-1-MANJARO
A restart is required for the changes to take effect.
Transaction successfully finished.

I will restart now . also choose 5.15.28-1

also

reparing...
Cloning r8125-dkms build files...
Generating r8125-dkms information...
Checking r8125-dkms dependencies...
Warning: r8125-dkms-9.007.01-1 is up to date -- reinstalling
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  r8125-dkms  9.007.01-1                AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y


Building r8125-dkms...
==> Making package: r8125-dkms 9.007.01-1 (Tue 15 Mar 2022 09:41:47 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found r8125-9.007.01.tar.bz2
  -> Found dkms.conf
==> Validating source files with sha256sums...
    r8125-9.007.01.tar.bz2 ... Passed
    dkms.conf ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting r8125-9.007.01.tar.bz2 with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "r8125-dkms"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: r8125-dkms 9.007.01-1 (Tue 15 Mar 2022 09:41:48 AM EDT)
==> Cleaning up...

Checking keyring...                                                        [1/1]
Checking integrity...                                                      [1/1]
Loading packages files...                                                  [1/1]
Checking file conflicts...                                                 [1/1]
Checking available disk space...                                           [1/1]
Running pre-transaction hooks...
Creating Timeshift snapshot before upgrade...                              [1/2]
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
Remove upgraded DKMS modules                                               [2/2]
==> dkms remove --no-depmod r8125/9.007.01 -k 5.10.105-1-MANJARO
==> dkms remove --no-depmod r8125/9.007.01 -k 5.15.28-1-MANJARO
Reinstalling r8125-dkms (9.007.01-1)...                                    [1/1]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                             [1/2]
Install DKMS modules                                                       [2/2]
==> dkms install --no-depmod r8125/9.007.01 -k 5.10.105-1-MANJARO
==> dkms install --no-depmod r8125/9.007.01 -k 5.15.28-1-MANJARO
==> depmod 5.15.28-1-MANJARO
==> depmod 5.10.105-1-MANJARO
Transaction successfully finished.

now restart

Looks good, yes. a Reboot is in order.

And regarding the terminal outputs:

It should be wwrapped in three backticks, not single-quotes. This one, on the US layout:


Backtick key location on US keyboard layout.

my apologies, or in current lingo , my bad. wrong key.

also

thank you for all your help.

now , I need 1 more thing please . the command please to show me in terminal , I think for networking etc . , for the device name so I can input it in my network connection manager . I know it starts with enp something; yes, I should have made a note of it .

There are many, but one is:

ip link

thanks; I tried what I thought it was - but it wasn’t. no luck googling . trying to save hotspot data

Mirdarthos, do I need to disable the wifi in order for the ethernet to enable ?

I honestly don’t know if it’s necessary, but it won’t do harm.

Mirdarthos

there seems to be an issue with the network connection manager "Advanced Network Configuration " ```

lsmod | grep 81 - seems fine

[bloinal@ME ~]$ lsmod | grep 81
rtl8192cu             106496  0
rtl_usb                28672  1 rtl8192cu
rtl8192c_common        77824  1 rtl8192cu
rtlwifi               143360  3 rtl8192c_common,rtl_usb,rtl8192cu
mac80211             1236992  4 rtl_usb,rtl8192cu,rtlwifi,rtl8xxxu
r8125                 229376  0
r8169                 106496  0
mdio_devres            16384  1 r8169
libphy                167936  3 r8169,mdio_devres,realtek
usb_storage            81920  1 uas

bloinal@ME ~]$ 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
2: enp5s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether d4:5d:64:b4:d5:6b brd ff:ff:ff:ff:ff:ff
3: wlp2s0f0u9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 10:bf:48:4b:a6:28 brd ff:ff:ff:ff:ff:ff

I have no ethernet. when I right click on the icon it offers options but "enable networking " is grayed out ; I can’t check the box for it .

any ideas please .

the backticks didn’t work , so I went back to these for now

They aorked here, or you used the </> button in the editor’s toolbar:

Makes me think it’s either the cable or the DHCP server. The only way to check is try another cable, and/or test another connection combination.

You can check if your computer can communicate with/identify the DHCP server on the network by running:

sudo nmap --script broadcast-dhcp-discover -e enp5s0

Mines output:

[sudo] password for mirdarthos:
Starting Nmap 7.92 ( https://nmap.org ) at 2022-03-15 16:47 SAST
Pre-scan script results:
| broadcast-dhcp-discover:
|   Response 1 of 1:
|     Interface: enp0s31f6
|     IP Offered: 10.0.0.117
|     DHCP Message Type: DHCPOFFER
|     Server Identifier: 10.0.0.254
|     IP Address Lease Time: 7d00h00m00s
|     Renewal Time Value: 3d12h00m00s
|     Rebinding Time Value: 6d03h00m00s
|     Subnet Mask: 255.255.255.0
|     Broadcast Address: 10.0.0.255
|     Domain Name Server: 10.0.0.254
|     Domain Name: discworld.co.za
|_    Router: 10.0.0.1
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 10.21 seconds

The Server Identifier line gives it away.

If it doesn’t show this, then it can’t communicate with the DHCP server, and that might be hardware or software related and the only way I know of finding out which, is a process of elimination. Checking and testing the cable in another PC or another cable in your PC.

hmmmm,

[bloinal@ME ~]$ sudo nmap --script broadcast-dhcp-discover -e enp5s0
sudo: nmap: command not found
[bloinal@ME ~]$ 

this cable works fine on the laptop right here . I just couldn’t get the laptop and desktop to hotspot together

Probable a non-standard package. (I have quite a few of those installed.)

nmap is in the extra repository:

$ pamac search nmap                                                                                                                                                                                                                                        
[...]
nmap                                                                                                                                                                                                              [Installed] 7.92-1              extra
Utility for network discovery and security auditing

So install it first:

pamac install nmap

And then try again.

Again: None of this driver madness is/was necessary with an up to date kernel.

Starting with Linux kernel 5.9, all currently known variants of RTL8125 are supported by the built-in r8169 driver.

You can remove the r8125-dkms module again, as this isn’t your issue.

1 Like

I don’t know why it wouldn’t connect but after calling my ISP and rebooting the modem after restarting and trying to connect at least 15 times it’s finally up. oh I checked with cli and software updater and everything is up to date .

thank you for your input