#992834 nvidia-driver: No output after sleep

#992834#5
Date:
2021-08-24 04:08:07 UTC
From:
To:
Dear Maintainer,

At night I power off my 3 external monitors.  Next morning, I turn
them on, and press a key to bring laptop out of dpms.  This worked
fine with buster, but after the upgrade to bullseye I often (>75%)
don't get any video at all.  I use ctrl+alt+f1 to shift to a
virtual terminal then ctrl+alt+f7, then I have been getting
video on 1 of my monitors.  The other 2 monitors are disabled.
Here is a working vs non-working output from xrandr (note the
missing "*' on DP-0 and DP-1 in the 2nd output):

Screen 0: minimum 8 x 8, current 11520 x 2160, maximum 16384 x 16384
DP-0 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 697mm x 392mm
   3840x2160     60.00*+  29.98
   2560x1440     59.95
   1920x2160     59.99
   1920x1080     60.00
   1680x1050     59.95
   1440x900      59.89
   1400x1050     59.98
   1280x2160     59.93
   1280x1024     75.02    60.02
   1280x960      60.00
   1280x800      59.81
   1280x720      60.00
   1080x1920     59.92
   1024x768      75.03    70.07    60.00
   800x600       75.00    72.19    60.32    56.25
   640x480       75.00    72.81    59.94
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected (normal left inverted right x axis y axis)
   3840x2160     60.02 +
DP-3 connected 3840x2160+3840+0 (normal left inverted right x axis y axis) 697mm x 392mm
   3840x2160     60.00*+  29.98
   2560x1440     59.95
   1920x2160     59.99
   1920x1080     60.00
   1680x1050     59.95
   1440x900      59.89
   1400x1050     59.98
   1280x2160     59.93
   1280x1024     75.02    60.02
   1280x960      60.00
   1280x800      59.81
   1280x720      60.00
   1080x1920     59.92
   1024x768      75.03    70.07    60.00
   800x600       75.00    72.19    60.32    56.25
   640x480       75.00    72.81    59.94
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 connected 3840x2160+7680+0 (normal left inverted right x axis y axis) 697mm x 392mm
   3840x2160     60.00*+  29.98
   2560x1440     59.95
   1920x2160     59.99
   1920x1080     60.00
   1680x1050     59.95
   1440x900      59.89
   1400x1050     59.98
   1280x2160     59.93
   1280x1024     75.02    60.02
   1280x960      60.00
   1280x800      59.81
   1280x720      60.00
   1080x1920     59.92
   1024x768      75.03    70.07    60.00
   800x600       75.00    72.19    60.32    56.25
   640x480       75.00    72.81    59.94
DP-6 disconnected (normal left inverted right x axis y axis)

Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 16384 x 16384
DP-0 connected primary (normal left inverted right x axis y axis)
   3840x2160     60.00 +  29.98
   2560x1440     59.95
   1920x2160     59.99
   1920x1080     60.00
   1680x1050     59.95
   1440x900      59.89
   1400x1050     59.98
   1280x2160     59.93
   1280x1024     75.02    60.02
   1280x960      60.00
   1280x800      59.81
   1280x720      60.00
   1080x1920     59.92
   1024x768      75.03    70.07    60.00
   800x600       75.00    72.19    60.32    56.25
   640x480       75.00    72.81    59.94
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected (normal left inverted right x axis y axis)
   3840x2160     60.02 +
DP-3 connected (normal left inverted right x axis y axis)
   3840x2160     60.00 +  29.98
   2560x1440     59.95
   1920x2160     59.99
   1920x1080     60.00
   1680x1050     59.95
   1440x900      59.89
   1400x1050     59.98
   1280x2160     59.93
   1280x1024     75.02    60.02
   1280x960      60.00
   1280x800      59.81
   1280x720      60.00
   1080x1920     59.92
   1024x768      75.03    70.07    60.00
   800x600       75.00    72.19    60.32    56.25
   640x480       75.00    72.81    59.94
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 697mm x 392mm
   3840x2160     60.00*+  29.98
   2560x1440     59.95
   1920x2160     59.99
   1920x1080     60.00
   1680x1050     59.95
   1440x900      59.89
   1400x1050     59.98
   1280x2160     59.93
   1280x1024     75.02    60.02
   1280x960      60.00
   1280x800      59.81
   1280x720      60.00
   1080x1920     59.92
   1024x768      75.03    70.07    60.00
   800x600       75.00    72.19    60.32    56.25
   640x480       75.00    72.81    59.94
DP-6 disconnected (normal left inverted right x axis y axis)

I tried `xrandr --output DP-0 --off` follow by
`xrandr --output DP-0 --auto` but it did not enable the monitors.

I don't see any errors in dmesg, syslog or Xorg.0.log that seem to
correspond to the issue.  Losing my session, of course, but
`systemctl restart lightdm` fully restores service.

Today, I found that I enable the two screens via the
nvidia-settings app where the two displays are enabled.  It
restores xrandr but my i3 config for screens is not happy to still
end up logging out and back in.

Happy to try things or provide additional data.

#992834#10
Date:
2021-08-24 12:15:45 UTC
From:
To:
Control: tag -1 + upstream

Please try the 470.xx driver from sid/testing. Unfortunately that came
out too late for the bullseye release, but we intend to switch to this
driver version (which is an upstream LTS driver with updates for the
next three years) in an early buster point release.

Andreas