Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)<SOLVED>

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Someone_Jarvis
Level 1
Level 1
Posts: 13
Joined: Fri Apr 12, 2024 2:12 pm

Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)<SOLVED>

Post by Someone_Jarvis »

Hi, I wanted to revive an old machine and learn Linux. Installed Linux Mint but have issues with my wired connection. Wi-fi works(sometimes) slowly but wired connection is not consistent. Already tried a few things from other threads/forums.
-updated kernel to latest superseded and then back when it didn't work
-followed instructions on how to install a different one, r8168 (maybe I didn't do it right)
-reinstalled Linux Mint and during boot from install media it automatically worked again, after installation it stopped working. It shows cable unplugged.

Ethernet Cable works fine
No issues with router as far as I can tell
My PPPOE connection details are correct.

Any help would be much appreciated. PS First time using Linux.

Code: Select all

System:
  Kernel: 5.15.0-102-generic x86_64 bits: 64 compiler: gcc v: 11.4.0
    Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: HP product: HP Pavilion Notebook
    v: Type1ProductConfigId serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 8093 v: 89.33 serial: <superuser required> UEFI: Insyde
    v: F.84 date: 05/25/2017
CPU:
  Info: dual core model: Intel Core i3-5157U bits: 64 type: MT MCP
    smt: enabled arch: Broadwell rev: 4 cache: L1: 128 KiB L2: 512 KiB
    L3: 3 MiB
  Speed (MHz): avg: 798 min/max: 500/2400 cores: 1: 798 2: 798 3: 798
    4: 798 bogomips: 19952
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
Graphics:
  Device-1: Intel Iris Graphics 6100 vendor: Hewlett-Packard driver: i915
    v: kernel ports: active: HDMI-A-1 empty: none bus-ID: 00:02.0
    chip-ID: 8086:162b class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x571mm (40.0x22.5")
    s-diag: 1165mm (45.9")
  Monitor-1: HDMI-1 mapped: HDMI-A-1 model: Samsung serial: <filter>
    res: 3840x2160 hz: 30 dpi: 52 size: 1872x1053mm (73.7x41.5")
    diag: 1093mm (43") modes: max: 3840x2160 min: 720x400
  OpenGL: renderer: Mesa Intel Iris Graphics 6100 (BDW GT3)
    v: 4.6 Mesa 23.2.1-1ubuntu3.1~22.04.2 direct render: Yes
Audio:
  Device-1: Intel Broadwell-U Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel bus-ID: 00:03.0 chip-ID: 8086:160c
    class-ID: 0403
  Device-2: Intel Wildcat Point-LP High Definition Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
    chip-ID: 8086:9ca0 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.0-102-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Wireless 3165 driver: iwlwifi v: kernel pcie:
    speed: 2.5 GT/s lanes: 1 bus-ID: 08:00.0 chip-ID: 8086:3165 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 09:00.0 chip-ID: 10ec:8136 class-ID: 0200
  IF: eno1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
    bus-ID: 1-7:3 chip-ID: 8087:0a2a class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
    bt-v: 2.1 lmp-v: 4.2 sub-v: 1000 hci-v: 4.2 rev: 1000
Drives:
  Local Storage: total: 298.09 GiB used: 25.5 GiB (8.6%)
  ID-1: /dev/sda vendor: Seagate model: ST9320325AS size: 298.09 GiB
    speed: 3.0 Gb/s type: HDD rpm: 5400 serial: <filter> rev: SDM1 scheme: GPT
Partition:
  ID-1: / size: 291.86 GiB used: 25.49 GiB (8.7%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 40.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: apt: 2187
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
    1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://packages.linuxmint.com virginia main upstream import backport
    2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/repos/code stable main
Info:
  Processes: 221 Uptime: 12m wakeups: 1 Memory: 7.68 GiB
  used: 1.99 GiB (25.9%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.4.0 alt: 11/12 Shell: Bash v: 5.1.16 running-in: gnome-terminal
  inxi: 3.3.13

Code: Select all

 NetworkManager.service - Network Manager
     Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2024-04-12 20:53:44 EEST; 34min ago
       Docs: man:NetworkManager(8)
   Main PID: 706 (NetworkManager)
      Tasks: 3 (limit: 9277)
     Memory: 9.8M
        CPU: 1.252s
     CGroup: /system.slice/NetworkManager.service
             └─706 /usr/sbin/NetworkManager --no-daemon

Apr 12 20:58:51 Jarvis NetworkManager[706]: <info>  [1712944731.8993] device (eno1): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Apr 12 21:01:53 Jarvis NetworkManager[706]: <info>  [1712944913.7635] agent-manager: agent[17c8a81a585a11da,:1.88/nmcli-connect/1000]: agent registered
Apr 12 21:01:53 Jarvis NetworkManager[706]: <info>  [1712944913.7706] audit: op="connection-add-activate" pid=2753 uid=1000 result="fail" reason="Connection 'eno1' is not available on device eno1 because device has no carrier"
Apr 12 21:02:46 Jarvis NetworkManager[706]: <info>  [1712944966.2358] agent-manager: agent[991fe092780127c4,:1.91/nmcli-connect/1000]: agent registered
Apr 12 21:02:46 Jarvis NetworkManager[706]: <info>  [1712944966.2366] audit: op="connection-activate" uuid="d73f82ea-433e-4e41-85bd-b545ccb8bc71" name="Digi" result="fail" reason="No suitable device found for this connection (device eno1>
Apr 12 21:03:47 Jarvis NetworkManager[706]: <info>  [1712945027.8981] audit: op="connection-add" uuid="59f96500-db57-4451-9659-40566f50d90c" name="Ethernet connection 1" pid=2763 uid=1000 result="success"
Apr 12 21:04:24 Jarvis NetworkManager[706]: <info>  [1712945064.4137] audit: op="connection-add" uuid="6292cccb-672b-4903-827b-517b2a29f659" name="Profile 2" pid=2838 uid=1000 result="success"
Apr 12 21:04:41 Jarvis NetworkManager[706]: <info>  [1712945081.0395] audit: op="connection-delete" uuid="6292cccb-672b-4903-827b-517b2a29f659" name="Profile 2" pid=2838 uid=1000 result="success"
Apr 12 21:04:49 Jarvis NetworkManager[706]: <info>  [1712945089.7702] audit: op="connection-delete" uuid="59f96500-db57-4451-9659-40566f50d90c" name="Ethernet connection 1" pid=2838 uid=1000 result="success"
Apr 12 21:23:56 Jarvis NetworkManager[706]: <info>  [1712946236.0590] dhcp4 (wlo1): state changed new lease, address=192.168.152.227
lines 1-21/21 (END)
Last edited by Someone_Jarvis on Thu Apr 18, 2024 3:43 pm, edited 2 times in total.
sleeper12
Level 21
Level 21
Posts: 14742
Joined: Thu May 25, 2017 3:22 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by sleeper12 »

See if this helps any:

Code: Select all

 sudo modprobe -r r8169 && sudo modprobe r8169 && systemctl restart NetworkManager 
Someone_Jarvis
Level 1
Level 1
Posts: 13
Joined: Fri Apr 12, 2024 2:12 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by Someone_Jarvis »

Found this in another thread and unfortunately it didn't work.
sleeper12
Level 21
Level 21
Posts: 14742
Joined: Thu May 25, 2017 3:22 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by sleeper12 »

Are you sure the cable is good? These seem to offer a clue:

"fail" reason="Connection 'eno1' is not available on device eno1 because device has no carrier"
"fail" reason="No suitable device found for this connection (device eno1>


Have you tried a different cable?
Someone_Jarvis
Level 1
Level 1
Posts: 13
Joined: Fri Apr 12, 2024 2:12 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by Someone_Jarvis »

Yup, tried a different Ethernet cable and also linked the current Ethernet cable to a different device and worked perfectly. Even tried different Ethernet ports on router.
Last edited by Someone_Jarvis on Sat Apr 13, 2024 5:02 am, edited 1 time in total.
Someone_Jarvis
Level 1
Level 1
Posts: 13
Joined: Fri Apr 12, 2024 2:12 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by Someone_Jarvis »

I read somewhere there is an issue with Realtek drivers especially with r8169, but have no idea how to check and how to fix.
Someone_Jarvis
Level 1
Level 1
Posts: 13
Joined: Fri Apr 12, 2024 2:12 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by Someone_Jarvis »

Found these drivers from linux hardware site, would they help and can anybody tell me the instructions on how and where to install them? https://github.com/ponychicken/RealtekR1000
JeremyB
Level 21
Level 21
Posts: 13915
Joined: Fri Feb 21, 2014 8:17 am

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by JeremyB »

Someone_Jarvis wrote: Sat Apr 13, 2024 9:53 am Found these drivers from linux hardware site, would they help and can anybody tell me the instructions on how and where to install them? https://github.com/ponychicken/RealtekR1000
Those won't even compile now as they haven't been updated in 10 years
sleeper12
Level 21
Level 21
Posts: 14742
Joined: Thu May 25, 2017 3:22 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by sleeper12 »

Have you restarted your router?
Also, what does this show for speed & duplex:

Code: Select all

ethtool eno1
Someone_Jarvis
Level 1
Level 1
Posts: 13
Joined: Fri Apr 12, 2024 2:12 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by Someone_Jarvis »

Restarted router, tried default firmware with factory reset and updated to latest firmware as well. Wired doesn't connect at all and even wifi disconnects sometimes either when it's connected to router or to phone hot spot.

Code: Select all

Settings for eno1:
	Supported ports: [ TP	 MII ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	Supported pause frame use: Symmetric Receive-only
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Speed: Unknown!
	Duplex: Unknown! (255)
	Auto-negotiation: on
	master-slave cfg: preferred slave
	master-slave status: unknown
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: external
	MDI-X: Unknown
netlink error: Operation not permitted
	Link detected: no
Someone_Jarvis
Level 1
Level 1
Posts: 13
Joined: Fri Apr 12, 2024 2:12 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by Someone_Jarvis »

Tried updating Network Manager and had some errors.

Code: Select all

someone@Jarvis:~$ sudo apt upgrade network-manager-gnome
[sudo] password for someone:             
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
network-manager-gnome is already the newest version (1.24.0+mint2+vanessa).
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-hwe-6.5-headers-6.5.0-14 linux-hwe-6.5-headers-6.5.0-27
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up r8168-dkms (8.049.02-1ubuntu1.3) ...
Removing old r8168-8.049.02 DKMS files...
Deleting module r8168-8.049.02 completely from the DKMS tree.
Loading new r8168-8.049.02 DKMS files...
Building for 5.15.0-102-generic
Building initial module for 5.15.0-102-generic
Error! Bad return status for module build on kernel: 5.15.0-102-generic (x86_64)
Consult /var/lib/dkms/r8168/8.049.02/build/make.log for more information.
dpkg: error processing package r8168-dkms (--configure):
 installed r8168-dkms package post-installation script subprocess returned error
 exit status 10
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-102-generic
Errors were encountered while processing:
 r8168-dkms 33%] [###################.......................................] 
E: Sub-process /usr/bin/dpkg returned an error code (1)
someone@Jarvis:~$ 
sleeper12
Level 21
Level 21
Posts: 14742
Joined: Thu May 25, 2017 3:22 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by sleeper12 »

I found this on a Ubuntu site, modified it to see if it works for you:

Set the speed and duplex using:

Code: Select all

ethtool -s eno1 speed 100 duplex full
For modern networks, this config should work.
Once the speed and duplex are set, do dhclient eno1 if you still don't get an IP.

Note: The above setup will reset on reboot. So, if the above solution solves your problem, add following lines to /etc/rc.local:

ethtool -s eno1 speed 100 duplex full
dhclient eno1
Someone_Jarvis
Level 1
Level 1
Posts: 13
Joined: Fri Apr 12, 2024 2:12 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by Someone_Jarvis »

Unfortunately nothing happened...

Code: Select all

someone@Jarvis:~$ ethtool -s eno1 speed 100 duplex full
netlink error: Operation not permitted
someone@Jarvis:~$ sudo ethtool -s eno1 speed 100 duple full
[sudo] password for someone:             
ethtool (-s): unknown parameter 'duple'
someone@Jarvis:~$ sudo ethtool -s eno1 speed 100 duplex full
someone@Jarvis:~$ dhclient eno1
RTNETLINK answers: Operation not permitted
someone@Jarvis:~$ sudo dhclient eno1
Someone_Jarvis
Level 1
Level 1
Posts: 13
Joined: Fri Apr 12, 2024 2:12 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by Someone_Jarvis »

After 5-10 minutes of using the previous commands the wired connection icon popped up and a new wired connection named eno1 appeared there, but wasn't able to connect to any site(no internet). Everything looked legit just couldn't access any sites.

Code: Select all

someone@Jarvis:~$ nmcli connection show
NAME                       UUID                                  TYPE      DEVICE 
eno1                       c6f0e7b9-86cc-4557-9147-83322c3d18a2  ethernet  eno1   
Auto Big Fudge             709e1890-63e6-4c35-a74e-dcb303f8b878  wifi      --     
Auto Life in the Fast LAN  46d7e996-9d62-4691-a6c6-a3d361fd8dc5  wifi      --     
Auto Silence of the LAN    251f07e8-c2f6-4b04-a6e1-960e65a8003f  wifi      --     
Digi                       d73f82ea-433e-4e41-85bd-b545ccb8bc71  pppoe     --     
DSL connection 1           7da59950-269e-4ec9-9869-9197a7fd685f  pppoe     --     
Profile 1                  6d54819e-1ea4-41d0-b0cd-4454b39a3641  ethernet  --     
someone@Jarvis:~$ nmcli device show eno1
GENERAL.DEVICE:                         eno1
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         94:57:A5:DF:AE:4A
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     eno1
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/4
WIRED-PROPERTIES.CARRIER:               off
IP4.ADDRESS[1]:                         169.254.12.208/16
IP4.GATEWAY:                            --
IP4.ROUTE[1]:                           dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 100
IP6.GATEWAY:                            --
someone@Jarvis:~$ nmcli device
DEVICE        TYPE      STATE        CONNECTION 
eno1          ethernet  connected    eno1       
wlo1          wifi      unavailable  --         
p2p-dev-wlo1  wifi-p2p  unavailable  --         
lo            loopback  unmanaged    --         
someone@Jarvis:~$ 
someone@Jarvis:~$ nmcli device connect eno1
Device 'eno1' successfully activated with 'c6f0e7b9-86cc-4557-9147-83322c3d18a2'.
someone@Jarvis:~$ ^C
someone@Jarvis:~$ 
sleeper12
Level 21
Level 21
Posts: 14742
Joined: Thu May 25, 2017 3:22 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by sleeper12 »

Maybe if you remove the r8168:

Code: Select all

sudo apt purge r8168-dkms
Reboot
sleeper12
Level 21
Level 21
Posts: 14742
Joined: Thu May 25, 2017 3:22 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by sleeper12 »

It seems to me that this needs to be on:

GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: eno1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/4
WIRED-PROPERTIES.CARRIER: off

How to turn that on I don't know. Maybe reinsert the cable or restart the router?
sleeper12
Level 21
Level 21
Posts: 14742
Joined: Thu May 25, 2017 3:22 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by sleeper12 »

Try:

Code: Select all

ethtool -s eno1 speed 100 duplex full autoneg on
Someone_Jarvis
Level 1
Level 1
Posts: 13
Joined: Fri Apr 12, 2024 2:12 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by Someone_Jarvis »

Code: Select all

someone@Jarvis:~$ ethtool -s eno1 speed 100 duplex full autoneg on
netlink error: Operation not permitted
someone@Jarvis:~$ sudo ethtool -s eno1 speed 100 duplex full autoneg on
[sudo] password for someone:             
someone@Jarvis:~$ 
Nothing...
sleeper12
Level 21
Level 21
Posts: 14742
Joined: Thu May 25, 2017 3:22 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by sleeper12 »

I'm about out of ideas, but I've seen these as possible solutions. Try just one at a time:

Code: Select all

mii-tool -F 100baseTx-FD

Code: Select all

ethtool -s autoneg off speed 100
sleeper12
Level 21
Level 21
Posts: 14742
Joined: Thu May 25, 2017 3:22 pm

Re: Ethernet Driver issues (Realtek RTL810xE PCI Express Fast Ethernet)

Post by sleeper12 »

If that doesn't help, post what this shows:

Code: Select all

lspci -nnk | grep -iA3 net ; dkms status
Post Reply

Return to “Networking”