You are not logged in.

#1 2020-11-24 07:05:00

andr3slelouch
Member
Registered: 2020-08-24
Posts: 9

Problems with Ethernet with r8168-dkms driver

Hello everyone, I have an network card that uses r8168 driver, by default was with r8169 driver but with that my ethernet connection after some minutes shuts down.
So reading in the wiki it says that it would be better to use r8168 driver, so I installed the AUR r8168-dkms driver that apparently installs the driver in the main kernel and the lts kernel, after that I added r8169 to the blacklist and loaded with modprobe the r8168 driver, so i thought that doing that would solve the problem but apparently even with the r8168 driver after some minutes the ethernet interface loses connection.

So anyone has any idea of how to solve that probem and use my ethernet without problems? Thanks in advance.

Offline

#2 2020-11-24 08:48:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,685

Re: Problems with Ethernet with r8168-dkms driver

Post  the outputs of

lspci -k
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
sudo journalctl -b

Use code tags or a pastebin service, first link in my signature explains how to do the latter.

Ftr, https://www.archlinux.org/packages/?q=r8168 - the driver is in the repos, no need for dkms here.

Offline

#3 2020-11-24 14:07:30

andr3slelouch
Member
Registered: 2020-08-24
Posts: 9

Re: Problems with Ethernet with r8168-dkms driver

seth wrote:

Post  the outputs of

lspci -k
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
sudo journalctl -b

Use code tags or a pastebin service, first link in my signature explains how to do the latter.

Ftr, https://www.archlinux.org/packages/?q=r8168 - the driver is in the repos, no need for dkms here.

Thank you for your response!

Output for "lscpi -k"
https://pastebin.com/qxRURCjd

Output for "find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f"
https://pastebin.com/XEFjSQsR

Output for "sudo journalctl -b"
Is too heavy for pastebin, is like 6.5mb text file, where can i put that?


Ftr, https://www.archlinux.org/packages/?q=r8168 - the driver is in the repos, no need for dkms here.

So, Do I uninstall r8168-dkms and install the main version and lts? Because I use both versions of the kernels day to day.

Offline

#4 2020-11-24 14:44:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,685

Re: Problems with Ethernet with r8168-dkms driver

You're using r8168 and there's only NM (which is good) but the overly large journal indicates a problem.

where can i put that?

Google drive?
https://wetransfer.com/ ?

So, Do I uninstall r8168-dkms and install the main version and lts?

Yes.

Offline

#5 2020-11-24 15:11:57

andr3slelouch
Member
Registered: 2020-08-24
Posts: 9

Re: Problems with Ethernet with r8168-dkms driver

seth wrote:

You're using r8168 and there's only NM (which is good) but the overly large journal indicates a problem.

where can i put that?

Google drive?
https://wetransfer.com/ ?

So, Do I uninstall r8168-dkms and install the main version and lts?

Yes.

Here is the journalctl in google drive.
https://drive.google.com/file/d/1x9PUmj … p=drivesdk

And all right, I'm going to do that.

Offline

#6 2020-11-24 15:30:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,685

Re: Problems with Ethernet with r8168-dkms driver

For clarification: there's a r8168 NIC (wired) that contantly fails to obtain a dhcp lease and a rtw_8822be NIC (wireless) that has a fairly weak signal.
Do you mind the wired or the wireless connection?
For the wired connection, try https://wiki.archlinux.org/index.php/Ne … HCP_client (you'll ave to install dhclient, but DO NOT ACTIVATE THE SERVICE - just configure NM to use it)

Offline

#7 2020-11-25 05:13:22

andr3slelouch
Member
Registered: 2020-08-24
Posts: 9

Re: Problems with Ethernet with r8168-dkms driver

For clarification: there's a r8168 NIC (wired) that contantly fails to obtain a dhcp lease and a rtw_8822be NIC (wireless) that has a fairly weak signal.

Yes

Do you mind the wired or the wireless connection?

I would like to have the wired connection at fully functioning because my wireless connection as you say has a weak signal.

For the wired connection, try https://wiki.archlinux.org/index.php/Ne … HCP_client (you'll ave to install dhclient, but DO NOT ACTIVATE THE SERVICE - just configure NM to use it)

Ok i will try

Offline

#8 2020-11-25 05:47:11

andr3slelouch
Member
Registered: 2020-08-24
Posts: 9

Re: Problems with Ethernet with r8168-dkms driver

andr3slelouch wrote:

For clarification: there's a r8168 NIC (wired) that contantly fails to obtain a dhcp lease and a rtw_8822be NIC (wireless) that has a fairly weak signal.

Yes

Do you mind the wired or the wireless connection?

I would like to have the wired connection at fully functioning because my wireless connection as you say has a weak signal.

For the wired connection, try https://wiki.archlinux.org/index.php/Ne … HCP_client (you'll ave to install dhclient, but DO NOT ACTIVATE THE SERVICE - just configure NM to use it)

Ok i will try

Well I tried installing dhclient and I'm not seeing any difference because after some minutes the wired connection restarted again losing the IP and being unable to recover it.

I'm posting the commands that you say me again

Output for "lscpi -k"
https://pastebin.com/ExBsbatw

Output for "find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f"
https://pastebin.com/dqnU0uKz

Output for "sudo journalctl -b"
https://drive.google.com/file/d/183NiPX … p=drivesdk

Offline

#9 2020-11-25 06:50:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,685

Re: Problems with Ethernet with r8168-dkms driver

The journal looks like you intalled the dhclient package but didn't configure NM to use it ("dhcp4" is the internal dhcp client)

Offline

#10 2020-11-25 14:25:25

andr3slelouch
Member
Registered: 2020-08-24
Posts: 9

Re: Problems with Ethernet with r8168-dkms driver

seth wrote:

The journal looks like you intalled the dhclient package but didn't configure NM to use it ("dhcp4" is the internal dhcp client)

I have added the dhcp-client.conf file to the /etc/NetworkManager/conf.d/ directory, writing the same as the wiki but even with that the wired connection restarted.

I'm sharing with you the new "sudo journalctl -b" output:
https://drive.google.com/file/d/1XIiTwA … p=drivesdk

Offline

#11 2020-11-25 14:49:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,685

Re: Problems with Ethernet with r8168-dkms driver

You get a lease at ~8:50, then ~9:09 you get a rapid "link down - link up" cycle and then with increasing frequency this repeats every few seconds (rendering the network useless)

Ensure r8169 isn't loaded (somehow)

lsmod | grep 8169

and post the output of

ethtool enp8s0

Stop & disable TLP to ensure it doesn't power down the NIC and your NTFS partition tells me that there's likely a windows installation - see the 3rd link in my signature.

Offline

#12 2020-11-26 17:53:30

andr3slelouch
Member
Registered: 2020-08-24
Posts: 9

Re: Problems with Ethernet with r8168-dkms driver

seth wrote:

You get a lease at ~8:50, then ~9:09 you get a rapid "link down - link up" cycle and then with increasing frequency this repeats every few seconds (rendering the network useless)

Ensure r8169 isn't loaded (somehow)

lsmod | grep 8169

and post the output of

ethtool enp8s0

Stop & disable TLP to ensure it doesn't power down the NIC and your NTFS partition tells me that there's likely a windows installation - see the 3rd link in my signature.

The command

lsmod | grep 8169

don't shows anything.

The output for

ethtool enp8s0

shows me this:
https://pastebin.com/TSdwPPDh

I read the link and yes Fast-boot was activated, and I disabled that and I WORKS! I am using more than half day without problems, thank you so much! I didn't notice that.
How can i mark this thread as solved?

Offline

#13 2020-11-26 21:04:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,685

Re: Problems with Ethernet with r8168-dkms driver

It's in my signature for a reason ;-)

Edit your initial post - you can alter the thread subject there and just prepend "[SOLVED]"

Offline

Board footer

Powered by FluxBB