Skip to contentSkip to conversation

New: [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

Bug 99922 [email protected] 1 participant 18 messages Feb 23, 2017 – Oct 31, 2017 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=99922

Bug ID: 99922
Summary: [NVE4] [regression, bisected] 4.10 (atomic): X shows
black screen with cursor after monitors turn off
Product: xorg
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Keywords: bisected
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

On Linux 4.10, after waking monitors up from powersave mode, X displays only a black screen with a movable cursor on all three monitors. Linux 4.9.11 does not exhibit this issue.

I initially noticed the issue with a triple-monitor setup, but it still occurs even if only one monitor is plugged in via HDMI.

I've bisected the issue to the following atomic-mode-setting commit (full git bisect log attached):

commit 839ca903f12ef8f09374e0b655456482536a733e

Author: Ben Skeggs <[email protected]>
Date:   Fri Nov 4 17:20:36 2016 +1000

drm/nouveau/kms/nv50: transition to atomic interfaces internally

This commit implements the atomic commit interfaces, and implements the legacy modeset and page flipping interfaces on top of them.

There's two major changes in behavior from before:

- We're now making use of interlocks between core and satellite EVO channels, which greatly improves our ability to keep their states synchronised.
- DPMS is now implemented as a full modeset to either tear down the entire pipe (or bring it back up). This choice was made mostly to ease the initial implementation, but I'm also not sure what we gain by bring backing the old behaviour. We shall see.

This does NOT currently expose the atomic ioctl by default, due to limited testing having been performed.

Dmesgs and Xorg logs will be provided for the following configurations that exhibit the issue:
- 4.10, with one monitor attached
- 4.10, with three monitors attached
- A bisected revision that displays the issue (seems to have a bit more
information)

I'm using an MSI GTX 770 2GB; vbios will be attached.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#2 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

--- Comment #1 from [email protected] --- Created attachment 129871
--> https://bugs.freedesktop.org/attachment.cgi?id=129871&action=edit
problematic dmesg with three monitors on Linux 4.10

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

--- Comment #2 from [email protected] --- *** Bug 99921 has been marked as a duplicate of this bug. ***

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

--- Comment #3 from [email protected] --- Created attachment 129872
--> https://bugs.freedesktop.org/attachment.cgi?id=129872&action=edit
problematic xorg log on 4.10 with three monitors

(Apologies for the email spam; I'm new to bugzilla. I'll refrain from posting any more attachments to avoid more spam. If you need the vbios/other dmesgs or Xorg logs, just ask.)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

--- Comment #4 from Ben Skeggs <[email protected]> --- Are you able to try with xf86-video-modesetting instead of the nouveau 2d driver and report if the issue still occurs?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

--- Comment #5 from [email protected] --- Created attachment 129896
--> https://bugs.freedesktop.org/attachment.cgi?id=129896&action=edit
Normal Xorg logs on Linux 4.10 with xf86-video-modesetting

Interestingly, the bug does not appear with the generic modesetting driver! I've attached the Xorg log, but it seems normal.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#7 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

 Attachment #129896|text/x-log                  |text/plain
          mime type|                            |
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#8 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

--- Comment #6 from Ben Skeggs <[email protected]> --- (In reply to kevin from comment #5)

Quoted 5 lines

Created attachment 129896 [details]
Normal Xorg logs on Linux 4.10 with xf86-video-modesetting

Interestingly, the bug does not appear with the generic modesetting driver! I've attached the Xorg log, but it seems normal.

Yeah, the nouveau 2D driver doesn't handle page flips failing correctly for some reason (this can happen under atomic when DPMS is set to a power-saving mode).

I wasn't able to reproduce this with the nouveau DDX running in its (default) DRI2 mode, only DRI3, so I hadn't prioritized looking into it.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#9 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

--- Comment #7 from [email protected] --- I can confirm this problem. I'm using nouveau on a "NVIDIA Corporation GT200b [GeForce GTX 285]" GPU. I'm not using DRI3 either:

$ grep DRI /var/log/Xorg.0.log
[    14.197] (==) NOUVEAU(0): Allowed maximum DRI level 2.
[    14.350] (==) NOUVEAU(G0): Allowed maximum DRI level 2.
[    14.426] (II) NOUVEAU(G0): [DRI2] Setup complete
[    14.426] (II) NOUVEAU(G0): [DRI2]   DRI driver: nouveau
[    14.426] (II) NOUVEAU(G0): [DRI2]   VDPAU driver: nouveau
[    14.443] (II) NOUVEAU(0): [DRI2] Setup complete
[    14.443] (II) NOUVEAU(0): [DRI2]   DRI driver: nouveau
[    14.443] (II) NOUVEAU(0): [DRI2]   VDPAU driver: nouveau
[    14.598] (II) GLX: Initialized DRI2 GL provider for screen 0
$ LIBGL_DEBUG=verbose glxinfo 2>&1 | grep DRI
libGL: Using DRI2 for screen 0
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#10 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #8 from [email protected] --- *** Bug 100025 has been marked as a duplicate of this bug. ***

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#11 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

--- Comment #9 from Ben Skeggs <[email protected]> --- (In reply to Ben Skeggs from comment #6)

Quoted 7 lines

(In reply to kevin from comment #5)

Quoted 5 lines

Created attachment 129896 [details]
Normal Xorg logs on Linux 4.10 with xf86-video-modesetting

Interestingly, the bug does not appear with the generic modesetting driver! I've attached the Xorg log, but it seems normal.

Quoted 6 lines

Yeah, the nouveau 2D driver doesn't handle page flips failing correctly for some reason (this can happen under atomic when DPMS is set to a power-saving mode).

I wasn't able to reproduce this with the nouveau DDX running in its (default) DRI2 mode, only DRI3, so I hadn't prioritized looking into it.

Lyude has posted a patch[1] which should address this issue.

Ben.

[1] https://lists.freedesktop.org/archives/nouveau/2017-March/027422.html

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#12 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

--- Comment #10 from [email protected] --- The patch indeed fixes this issue! The monitors go to sleep and wake up without problems.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#13 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

--- Comment #11 from [email protected] --- I can also confirm that the patch fixes the problem.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#14 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

--- Comment #12 from Stefan Becker <[email protected]> --- I can also confirm that the DPMS problem with kernel 4.10.x is gone after installing xorg-x11-drv-nouveau-1.0.14-1.fc25.x86_64.

1.0.14 includes the patch:
https://cgit.freedesktop.org/nouveau/xf86-video-nouveau/log/?id=b71de83b7fae0abeb311251e6144294d319062cf

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#15 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

--- Comment #13 from mish <bradford-2EFSgMI5/k+zXXRXsSGsVFaTQe2KTcn/@public.gmane.org> --- I had the same issue on an Intel-based system. I managed to overcome it by changing the BIOS video settings from PEG to IGD. I have to use the on-board video to see the BIOS bootup screen, but once Linux takes over, both of my monitors work fine.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#16 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

Pierre Moreau <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#17 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

--- Comment #14 from [email protected] --- I see this regularly on a system with

Kubuntu 17.10 (that is linux 4.13.x)
Nvidia G84GL [Quadro FX 570]
Xserver xserver-xorg-video-nouveau 1.0.15

so the issue does not seem to be solved yet.

When the power management kicks in and the screen dims, it is then impossible to get back to work. Ideally, by moving the mouse you should get the screenlock screen and the possibility to enter a password to disable the lock. In fact, you only get a black screen with a moving cursor.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#18 lore raw

[Bug 99922] [NVE4] [regression, bisected] 4.10 (atomic): X shows black screen with cursor after monitors turn off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99922

--- Comment #15 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- (In reply to sergio.callegari from comment #14)

Quoted 5 lines

I see this regularly on a system with

Kubuntu 17.10 (that is linux 4.13.x)
Nvidia G84GL [Quadro FX 570]
Xserver xserver-xorg-video-nouveau 1.0.15

That's a contradiction in terms. This bug was for a GK104. You have a G84.

Have you gone through all the diagnostic stages that the OP went through and you've found the same thing? Seems highly unlikely. Even if it's true, it's still a different bug.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau