Needed to add the nomodeset
option to grub to correctly boot
After boot edit /etc/default/grub
and add the nomodeset
to the line with
GRUB_CMDLINE_LINUX_DEFAULT
.
Run this to make it persistent:
sudo update-grub2
The RTX 2060 was not detected by default even when installed the nvidia drivers.
Also thermal fans were working all the time.
After a little bit of reading i found no thermal support for the 5.4 kernel.
First installed the Ubuntu Mainline Kernel Installer
from here --> https://github.com/bkw777/mainline
Once installed run mainline-gtk
and selected the 5.9.10
Hit install and wait for all the process to finish.
Now you need to reboot but fist you need to disable secure boot
from the BIOS
if not the boot wont work as linux kernel is not signed.
So wait for reboot and press F2 (keep it pressed until bios config start). Go to advanced and disable the secure boot, save and exit.
Now is going to boot, you then can check the version of ther kernel uname -a
The fans are no longer spining all the time.
You can install now the nvidia drivers and it will work! (use the additional drivers
from ubuntu)
I had problems with the many audio devices detected
So, first get a list of all of them from alsa
$ aplay -l
Output:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 0: ALC256 Analog [ALC256 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
Now select the card 2
to do that just create a file called /etc/asound.conf
and put this inside:
pcm.!default {
type hw
card 2
}
ctl.!default {
type hw
card 2
}
Go to /etc/default/grub
and replace the nomodeset
for
amdgpu.exp_hw_support=1
This will allow to use the AMD vide card, not the NVIDIA.
Follow this for full config with nvidia: https://askubuntu.com/questions/1244376/cant-get-internal-and-external-monitor-working-simultaneously-with-20-04-on-lap
I love to work that way so:
go to /etc/systemd/logind.conf
and add on [login]
section this:
HandleLidSwitch=ignore
you are welcome.