nvidia-xconfig doesnt do what i want it to, nor does nvidia-settings

Hello,

I have a Lenovo Legion Y520 that worked fine with Windows 10 AND Ubuntu 20.04 (on dual boot) until last week.
Although I basically use Ubuntu, from time to time I use Windows to keep it updated. Unfortunately, last week’s update updated BIOS and messed up with my Linux config. I think maybe the BIOS update reenabled secure boot. But, before I I came to this conclusion I tried uninstalling drivers and such and must have messed up with my linux config…

Nvidia still works fine under W10, but under Ubuntu I can only use Intel (IGPU?). I’ve been struggling for a few days now. I even acessed another thread in this forum (Version 460 nvidia driver stopped loading overnight under ubuntu 20.04 - #12 by jlacarneiro) to no avail.

Since it was taking too long, and various sites mentioned that nVidia worked fine under Ubuntu 21.04 using Wayland, I upgraded my Linux box to 20.10 and then to 21.04. But it still doesn’t work. If I tweak it too much, the notebook simply hangs after boot.

Can you help me?

nvidia-bug-report.log.gz (450.8 KB)