Ubuntu 22 with 2x 4060ti and only 1 displays output

Hi,

I’ve just installed Ubuntu Desktop 22 in a new system with 2x 4060ti.
Both GPUs are functional and show the bios screen ok.

However, in Ubuntu, the monitors connected to the second GPU do not display anything. However they are there in the “Displays” view and enabled

Both GPUs are detected:

jason@ubuntu-desktop:~$ nvidia-smi
Sat Dec  2 22:14:38 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.129.03             Driver Version: 535.129.03   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 4060 Ti     Off | 00000000:01:00.0  On |                  N/A |
|  0%   49C    P0              24W / 165W |   1017MiB / 16380MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
|   1  NVIDIA GeForce RTX 4060 Ti     Off | 00000000:02:00.0 Off |                  N/A |
|  0%   37C    P8               2W / 165W |    326MiB / 16380MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      2324      G   /usr/bin/gnome-shell                       1012MiB |
|    1   N/A  N/A      2324      G   /usr/bin/gnome-shell                          2MiB |
+---------------------------------------------------------------------------------------+
jason@ubuntu-desktop:~$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.1/0000:02:00.0 ==
modalias : pci:v000010DEd00002805sv0000196Esd000013ECbc03sc00i00
vendor   : NVIDIA Corporation
driver   : nvidia-driver-535 - distro non-free recommended
driver   : nvidia-driver-525-open - distro non-free
driver   : nvidia-driver-525 - distro non-free
driver   : nvidia-driver-535-server - distro non-free
driver   : nvidia-driver-535-open - distro non-free
driver   : nvidia-driver-535-server-open - distro non-free
driver   : nvidia-driver-525-server - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

Any ideas how to get the second GPU to display output?

Cheers,

Jason

Got it working now by disabling Wayland. Some issue there.

It’s still not working properly. Monitors don’t come back after sleep.

Please check whether the monitor’s sleep mode is set to deep or normal if available.

no sleep mode set on the actual monitors themselves.

I was able to get the monitors working again by deleting ~/.config/monitors.xml and rebooting.
However, this issue just happened again today. So I deleted monitors.xml, rebooted, arranged the monitors, took a backup of monitors.xml, and did a chattr +i monitors.xml forcing read only.
Still some issue there, but I’m thinking this will prevent the system from changing the setup maybe…
The issue still is present only after coming back to my computer when the screens have been switched off.

Setting monitors.xml to read only didn’t fix it. I can reproduce by setting the monitors to off after 1 min. When I log back in one screen is gone and won’t come back.

Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.