AMD Ryzen 7 + Geforce GTX 1660 Ti laptop ---> cannot get Nvidia to be used as primary graphics

new nvidia logs here
nvidia-bug-report.log.gz (1.1 MB)

djczaps@djczapslapTUF:~$ sudo prime-select nvidia
Info: the nvidia profile is already set

You still have
nogpumanager acpi_osi=! “acpi_osi=Windows 2009”
in your kernel parameters. Please remove them, without the gpu-manager switching to nvidia is impossible. Don’t forget to run
sudo update-grub
after changing the config.

strange

This is what my grub customizer actually show it :

recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root de97cb82-7cfc-4b57-a1b6-b0bbb3a24dfa
else
search --no-floppy --fs-uuid --set=root de97cb82-7cfc-4b57-a1b6-b0bbb3a24dfa
fi
echo ‘Loading Linux 5.1.15-050115-generic …’
linux /boot/vmlinuz-5.1.15-050115-generic root=UUID=de97cb82-7cfc-4b57-a1b6-b0bbb3a24dfa ro quiet splash $vt_handoff
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-5.1.15-050115-generic

Then it didn’t run
sudo update-grub
you can check the command line of the running kernel with
cat /proc/cmdline

grub properly updated now .
However after deleting that secure file blacklist-nvidia.cong from /etc/modprobe.d system didnt run into GUI state again.

In recovery mode when getting to terminal one positive sign was blinked : Nvidia persistency daemon → OK

However needed to copy that file again to be able to start GUI. new nvidia logz attached.
nvidia-bug-report.log.gz (1.1 MB)

The nvidia log is probably of no help. Please do the following:

  • Remove blacklist file, reboot
  • wait until you hit the black screen, reboot to recovery.
  • in recovery mode, run
    sudo journalctl -b-1 --no-pager >journal.txt
    and attach journal.txt

journal attached here
journal.txt (556 KB)

That’s a log from june 22nd, the “-b-1” option should have created the log from the previous boot. Did you use the option “-b 1”? That would create the log from the first recorded boot. The minus sign is important. You can recreate the log from the currently running one by using “-b-2” if you rebooted twice.

here it is a new journal then ;)

journal.txt (86.9 KB)

That was from a boot with nvidia blacklisted, beginning at Jul 03 20:51:56

ok here is another one with blacklist file deleted , and then journal created during the security boot.

journal.txt (87 KB)

Those are both the same from Jul 03 22:09:52, no nvidia driver enabled.
New approach:
please setup ssh so you can log in from another computer/smartphone when you hit the black screen and then run nvidia-bug-report.log.

Currently my internet connection is having problems. I will post nvidia bug report tomorrow morning.

Thanks

new nvidia bug report log attached. Done in rescue mode without blacklist-nvidia.conf file.
nvidia-bug-report.log (2.34 MB)

Ok, this time an xorg.log from the nvidia boot was included. Looks like the problem is the amd gpu again:

[    21.403] (EE) modeset(G0): [DRI2] No driver mapping found for PCI device 0x1002 / 0x15d8
[    21.403] (EE) modeset(G0): Failed to initialize the DRI2 extension.

Two things to try:

  1. revert the change to /usr/share/X11/xorg.conf.d/10-amdgpu.conf, replacing “modesetting” with “amdgpu” again and hope the ubuntu scripts are smart enough.
  2. upgrade your xserver to 1.20:
    https://wiki.ubuntu.com/Kernel/LTSEnablementStack
    sudo apt-get install --install-recommends xserver-xorg-hwe-18.04

after Your suggestions and those 2 steps still not succeed to see the GUI after login screen.
Nvidia report attached once again from secure boot to shell .
nvidia-bug-report.log.gz (1.09 MB)

Ok, please change “amdgpu” back to “modesetting” to check if the 1.20 driver works.

“modesetting” or “modesettings” just to be sure …

Driver "modesetting"

is correct