Ubuntu 22.04.2 LTS + Nvidia 525.105.17 - hangs on login screen

I have Ubuntu with hybrid cards Intel and Nvidia. I had some problems with Nvidia drivers but I was able in the past to solve them and everything worked properly. After the last update of Ubuntu my Nvidia card stop to work.

Ubuntu hangs and the login screen and I’m not able to use keyboard (is inactive) I can’t switcht to console by pressing Ctrl+Alt+F1 (or F4) and I can’t use mouse too.

The only way to get my laptop alive is to boot in advanced (rescue) mode, go into root shell and switch to intel card by prime-select intel. After rebooting, I’m able to login and use my laptop. But I’m not able to use external monitor without Nvidia card.

I made very big amount of attempts of solutions which I found over Internet. Nothing helped me. So, maybe somebody here could help me?

I’m attaching the nvidia-bug-report when the computer is running with Intel card enabled by prime-select in advanced (rescue) mode of Ubuntu.

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

Regards,
Grzegorz

I am experiencing somewhat similar issues with the 525-series driver on my DELL Precision 5750 with Quadro RTX 3000 (Max-Q Design), running Ubuntu 22.04 in on-demand mode.
Regular desktop activities seem to be fine (I have noticed that the driver appears to negatively affect the stability of my WiFi connection though).
But when I launch certain programs (such as Universe Sandbox) with the following environment variables set:
__NV_PRIME_RENDER_OFFLOAD=1
__VK_LAYER_NV_optimus=NVIDIA_only
__GLX_VENDOR_LIBRARY_NAME=nvidia
the system freezes almost immediately, especially with the 525.105.17 driver. The cursor moves and music plays, but there is no response to any input. This issue also occurs with other GL applications.
I have found that rolling back to the 470 driver resolves the problem, and that version works stably.

Since you’re running a wayland session, please check if setting kernel parameter
nvidia-drm.modeset=1
helps.

Thank You for advice.

Setting the nvidia-drm.modeset=1 in the /etc/default/grub as the kernel parameter GRUB_CMDLINE_LINUX_DEFAULT="nvidia-drm.modeset=1" does not help.
The only way to log into computer is boot into advanced mode, go to the root shell, select prime-select intel In other case - the computer hangs at the login screen - no keyboard, no mouse, no console by Alt+Ctrl+F2 or F3.

The new log:

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

Now there is a working Xorg session with the nvidia driver visible but the input drivers seemed to be missing, so keyboard/mouse didn’t work.
Please install xserver-xorg-input-all and check if xserver-xorg-input-libinput gets installed.

Thank You!
Installation of these packages xserver-* helped.
The driver is working and I can use external monitor.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.