I had the same issue with 18.04 built-in r8169
driver not being able to negotiate gigabit speed. Then I found this in kernel log (dmesg | grep r8169
):
[ 3.484886] r8169 0000:01:00.0 eth0: RTL8168g/8111g at 0x (ptrval), 84:39:be:65:a4:1c, XID 0c000800 IRQ 119
[ 3.484891] r8169 0000:01:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
It seems to me the driver struggled at finding the address/port number (?) of the NIC. Fortunately re-trying initialization again made the issue go away. Maybe it's a timing issue?
What I did was to add several lines into rc.local
to force reloading the r8169
kernel module:
rmmod r8169
sleep 2
modprobe r8169
Then the kernel log changes to this:
[ 24.366692] r8169 0000:01:00.0 eth0: RTL8168g/8111g at 0x00000000955f6cfd, 84:39:be:65:a4:1c, XID 0c000880 IRQ 119
[ 24.366700] r8169 0000:01:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
From this point on, it works on gigabit speed without any more issues.
Hope this helps.
Late answer to this question but I had the same problem which I had to figure out by myself. This problem seems to stem from the fact that gaming laptops rely on nvidia graphics cards for the display and so tend to be tied to nvidia graphics drivers so there seems to be a conflict with nvidia graphics drivers and the Ubuntu noveau drivers.
The solution is to black-list the noveau drivers and install the nvidia ones .
Disable Secure Boot (change this in BIOS)
Go to Grub Ubuntu option (BUT DONT PRESS ENTER) Press e
Find the line that starts with: linux
then add: modprobe.blacklist=nouveau
after: quiet splash
.
After installation make sure to blacklist noveau at the installed Grub
Then install the nvidia drivers;
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-driver-[**your driver version number**]
sudo reboot
I gleaned this from a solution for MSI laptops as a guide. I had already installed Ubuntu but it was freezing at startup so at the Grub menu I just modified the Ubuntu Entry to blacklist the noveau driver and then proceeded to install nvidia drivers. Note: make sure to use the correct nvidia driver for your card as it may not be the 396 used in the solution mine was 390 for the 1050Ti
Best Answer
After several days trying to solve the problem, I found this post explaining some solutions, it seems that the kernel that is using Ubuntu 18.04 has some problems with the Nvidia cards.
You can check how this can be done too in this other post.
You must edit this file:
and then add "acpi=off" to GRUB_CMDLINE_LINUX_DEFAULT:
And then save by hitting Ctrl+O, then exit nano with Ctrl+X, then simply run:
Final Solution and last step:
Due to the risk of disabling the acpi=off, because this controls everything related to temperature sensors, fan speed I tried a final option:
This installs all the default drivers including the Nvidia driver in my case with the version: nvidia-driver-390
When you do the reboot, the laptop does not do the booting, but do not worry, let doing the same procedure to pass parameters to the kernel but this time we remove the "acpi=off" and we put "nvidia-drm.modeset=1". We get out the grub edition and the laptop works correctly again but with all the functionalities that in my case were disabled as the battery sensor percent and others.
Now finally we have to make this persistent change in the grub configuration file, the final result will be this:
Save and close and do this last command:
Reboot the laptop and everything will work perfectly. This solution was found here.
So enjoy your fresh Ubuntu 18.04 LTS installation.