So I know similar issues have been posted a thousand times already, yet I ask you to trust me when I say I reviewed a dozen or more threads and still couldn't solve my problem.
I recently installed Ubuntu 20.04 on an old laptop of mine, which as usual has a dual GPU: Intel chipset and NVidia GTX765M.
I thought I managed to handle the driver situation pretty well, doing ubuntu-drivers devices
and then installing the recommended driver with sudo apt install nvidia-driver-440
. I even ensured in nvidia-settings
that Prime was selected so that the pc used the NVidia GPU.
Anyway I think I did manage to reboot after that but I'm not sure. What matters is that the next day the computer didn't want to boot anymore and stayed stuck at the logo screen.
I tried an handful of soltions found here and elsewhere on the net if that can help:
Editing Grub
I followed this tutorial: https://itsfoss.com/fix-ubuntu-freezing/
None of the solutions proposed by editing GRUB worked for me unfortunately.
Editing /etc/gdm3/custom.conf
I booted in Recovery Mode and from the root terminal edited /etc/gdm3/custom.conf
to un-comment the line #Wayland = false
, but unfortunately the pc still doesn't boot.
I still suspect the issue is linked to the NVidia driver but at this point I have no further idea or proof of anything.
I thank you in advance for reading my post and if you can, propose your help to solve my issue that would be much appreciated !
EDIT: I can confirm that the Nvidia driver is the cause of the issue. The simple act of saving a xconf file causes the pc to be stuck on reboot, even without editing it
clicking on Save to X configuration file causes the boot issue
I however solved my issue by running in recovery mode from the grub screen (press ESC at start, choose the second option, launch recovery mode), and then opening a terminal with the "root" option and deleting the xconf file in /etc/X11/. Rebooting then works normally.
The issue is a want to enable vsync to get rid of screen tearing issues and the only way I found so far is to do it though a xconf file.