Problem Description: I am experiencing a persistent issue where my Ubuntu system fails to boot in GUI mode but boots successfully in CLI recovery mode. This issue has emerged despite the driver and kernel combination previously functioning without issues. The system is configured to dual boot with Windows, which operates without any problems, suggesting that the hardware is functioning correctly.
Symptoms:
The system hangs when attempting to boot into GUI mode.
It is possible to initiate an xterm session through startx from CLI mode, indicating that some graphical operations are possible.
The failure occurs regardless of whether the system is booted normally into Ubuntu or resumed from a recovery session to GUI mode.
Troubleshooting Steps Taken:
Reinstalled NVIDIA drivers and reconfigured them multiple times.
Checked and monitored system logs for errors related to NVIDIA drivers and Xorg.
Critical Errors Observed:
Repeated failures related to the NVIDIA kernel module initialization.
Xorg log files indicate issues with device recognition and configuration that seem to stem from NVIDIA driver interactions.
I would appreciate any guidance to resolve this issue, recommendations for further diagnostic tests or configuration adjustments.
Unfortunately, there’s no log left from a non-recovery mode boot. The nvidia driver seems to be working fine, though. Did you set “nomodeset” kernel parameter? If so, please remove it. Otherwise, please try to create an nvidia-bug-report.log from a normal boot.
Getting the log left from a non-recovery mode boot in my case is tricky because the system hangs. So I did the following in /etc/systemd/system/diagnostic_nvidia.service:
[Unit]
Description=Run diagnostics script at boot
Before=gdm.service