/sys/class/drm/*/enabled reports “disabled” for all monitors

Hi,

I used to use nouveau driver with wayland and it works fine. For better performance I swapped to Nvidia driver however
sway cannot start. The error says it failed to commit the outputs.

After some digging, it seems I got a very similar symptoms as an old thread in this forum:
For all displays’ ports, it reports disabled in /sys/class/drm/*/enabled.
Compare to the old thread, I am on a desktop PC, not a laptop.

I have 2 monitors, plugged to a Nvidia 3080ti card.
nvidia-bug-report.log.gz (245.5 KB)
Kernel is booted with nvidia-drm.modeset=1, driver version 510.60.02.

card0-DP-2 is the port used. However I got:

> head -n 1 /sys/class/drm/card0-DP-{1,2,3}/{status,enabled}
==> /sys/class/drm/card0-DP-1/status <==
disconnected

==> /sys/class/drm/card0-DP-1/enabled <==
disabled

==> /sys/class/drm/card0-DP-2/status <==
connected

==> /sys/class/drm/card0-DP-2/enabled <==
disabled

==> /sys/class/drm/card0-DP-3/status <==
disconnected

==> /sys/class/drm/card0-DP-3/enabled <==
disabled

While using back to nouveau driver, I got:

> head -n 1 /sys/class/drm/card0-DP-{1,2,3}/{status,enabled}
==> /sys/class/drm/card0-DP-1/status <==
disconnected

==> /sys/class/drm/card0-DP-1/enabled <==
disabled

==> /sys/class/drm/card0-DP-2/status <==
connected

==> /sys/class/drm/card0-DP-2/enabled <==
enabled

==> /sys/class/drm/card0-DP-3/status <==
disconnected

==> /sys/class/drm/card0-DP-3/enabled <==
disabled

It’s the same for another HDMI port which is connected to 2nd display.

Does anyone have any idea?