The internet connection to my computer using Ubuntu 16.04.5 became very unstable over the last month after some updates Another computer on the same network, not using Linux, does not show issues. And this is not using a WiFi connection.
After some research, I found several references to issues related to the r8168 RealTek Ethernet controller I have with kernel 4.15.0-33.
Reading various answers, I found that I should install a newer version of the driver compatible with 4.15 linux kernels.
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1779817
- 63 ask to test a kernel which happen to be 4.15.0-33 which has the issue
- 59 it is recommended to load latest r8168 driver version, so I downloaded and installed version 8.046.00 from .deb
But the connection is still unstable and afterwards when I use the following command to check driver installation there is a warning:
This is the output of dkms status
:
bbswitch, 0.8, 4.15.0-32-generic, x86_64: installed
bbswitch, 0.8, 4.15.0-33-generic, x86_64: installed
bbswitch, 0.8, 4.4.0-134-generic, x86_64: installed
nvidia-384, 384.130, 4.15.0-32-generic, x86_64: installed
nvidia-384, 384.130, 4.15.0-33-generic, x86_64: installed
nvidia-384, 384.130, 4.4.0-134-generic, x86_64: installed
r8168, 8.046.00, 4.15.0-33-generic, x86_64: installed (WARNING! Diff between built and installed module!)
And this is output of modinfo r8168 | grep -i version
asked on similar issue discussions:
version: 8.046.00-NAPI
srcversion: EEF16FD7BFA162691D9F9DD
So from dkms status
I think the installation did not work properly, but I do not know what to do from there.
Could anyone point me to what I should do or could try?
EDIT:
I realize that sound card was not working anymore using kernel 4.15 as well. So I tried to start using older kernel 4.4.0-134. At least it solved the sound issue. But regarding the internet unstability, as r8168 8.046 did not build with that kernel, I re-installed the r8168-dkms
package from synaptic (r8168-8.041) but it did not solve the internet issue which is still completely unstable using 4.4.0-134 & r8168-8.041.
sudo dkms build r8168/8.046.00 -k "$(uname -r)/$(uname -p)"
sudo dkms install r8168/8.046.00 -k "$(uname -r)/$(uname -p)"
modinfo r8168 | grep -i version
version: 8.046.00-NAPI srcversion: 1B7F4580601BCFA0300F9D2dkms status
r8168, 8.046.00, 4.15.0-33-generic, x86_64: installedReboot, internet still not stable after 30 seconds it goes off, then it comes back, then off etc.
– user867375 Sep 04 '18 at 19:07dkms status
output. I just exchanged the ethernet cable from my wife's computer with mine, and it is still the same afterwards. My internet is unstable whereas it is working fine on her computer. – user867375 Sep 05 '18 at 18:43sudo lspci -vv
return is missing number "Kernel modules" line with 4.15 kernel compared to 4.4. Specifically for the RTL8111/8168/8411 Ethernet Controller there is one difference that sounds potentially like a bug. 4.4 givesCapabilities: [d0] Vital Product Data Unknown small resource type 00, will not decode more.
whereas 4.15 givesCapabilities: [d0] Vital Product Data pcilib: sysfs_read_vpd: read failed: Input/output error Not readable
– user867375 Sep 05 '18 at 19:23# Let NetworkManager manage all devices on this system network: version: 2 renderer: NetworkManager
– user867375 Sep 09 '18 at 18:37