Not true for most.
Simply edit the file /etc/environment and add a line reading GSK_RENDERER=ngl then log out and back in (or reboot).
It may be necessary to replace ‘ngl’ wih ‘gl’ if you have an older gpu.
Boot to a live usb media and edit the file from there. The nvidia drivers will not be loaded but you can still use the system to make recovery.
Most can boot to a text environment by using the grub menu and editing the commands there.
On the line beginning with linux= remove the rhgb quiet and replace it with 3
You also can force a boot without using the nvidia drivers by editing the same line and removing the 2 blacklist options rd.driver.blacklist=nouveau modprobe.blacklist=nouveau so the nouveau drivers are loaded first and the nvidia drivers are ignored
I bricked my system even 565 drivers had to remove Mok key to get back to system since no terminal or nothing opened so it is more than Nvidia driver bug all works fine with nouveau and mesa just happened like week ago when testing
Thanks! It worked. It was Nvidia after all, the usual suspect. At one point, I was convinced its not them.
Need to update the solution to the question.
To apply these fixes you can switch to the x11 session, or open a VT using ctrl + alt + f3
1
Add GSK_RENDERER=gl (GSK_RENDERER=ngl also works on better hardware) in /etc/environment and after saving the file, reboot the pc ( just logging out should work too ).
/etc/environment is a system-wide configuration file used to set up environment variables, whereas /etc/profile.d/*.sh are global initialization scripts. That’s why in the latter case you need to use the EXPORT command, but not in the former.
Either works, but the timing on when they are used and the scope of affect is different.
Files in /etc/profile.d/ are sourced when the user logs in and are implemented for the users environment only.
The /etc/environment file is system wide with global effect for all users as already noted. It is activated when the system is booted.