All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 41588] New: connected DVI output dies after suspend/resume occasionally.
@ 2011-10-08 14:29 bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
       [not found] ` <bug-41588-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
  0 siblings, 1 reply; 9+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2011-10-08 14:29 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

           Summary: connected DVI output dies after suspend/resume
                    occasionally.
           Product: xorg
           Version: git
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Driver/nouveau
        AssignedTo: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
        ReportedBy: maximlevitsky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
         QAContact: xorg-team-go0+a7rfsptAfugRpC6u6w@public.gmane.org


Created an attachment (id=52120)
 View: https://bugs.freedesktop.org/attachment.cgi?id=52120
 Review: https://bugs.freedesktop.org/review?bug=41588&attachment=52120

disable hotplug polling while in suspend

Just like summary says, to reproduce just attach external monitor via DVI
(other inputs should cause same problem) suspend/resume.

On resume you see black/white stripes on internal screen (LVDS) and external
monitor is on standby.
If you then disconnect external monitor and suspend again, on resume often the
desktop's screen doesn't come back ether.
Happens with and without compiz, with and without pageflipping enabled.

However I found what triggers the problem. kernel driver doesn't disable output
polling during suspend so once in a while, it polls the port while whole card
is disabled and logically doesn't detect anything connected.
Then on resume it detects the monitor again, and that triggers the bug.
Of course this should be fixed, and patch to do so will be attached here.

However, its still possible to reproduce same bug, with 100% probability, by
doing:

1. ensure you don't have apps that listen to hotplug events and reconfigure the
screen. KDE sadly is belongs here.

2. connect external monitor, and activate an output on it using xrandr (side by
side screens) aka:
xrandr --output DVI-I-1 --auto --left-of LVDS-1

3. suspend the system

4. while system suspended, disconnect the monitor

5. resume the system, and note that screen configuration didn't change, because
no apps listen to hotplug events. Yet, if you connect the DVI screen now, it
won't activate. don't connect it though yet.

7. suspend system

8. connect monitor

9. resume system, and see the problem.

10. if you also run compiz and try to rotate screen, enjoy hung compiz. Dunno
why.


Yet though, the above sequence of events is unlikely to happen while using the
system, thus patch to stop hotplug detection while in suspend is enough for me
to use external monitor safely.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 41588] suspend/resume with active CRTC, but disconnected output causes problems
       [not found] ` <bug-41588-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
@ 2011-10-08 15:18   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2011-10-08 15:22   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2011-10-08 15:18 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

maximlevitsky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|connected DVI output dies   |suspend/resume with active
                   |after suspend/resume        |CRTC, but disconnected
                   |occasionally.               |output causes problems

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 41588] suspend/resume with active CRTC, but disconnected output causes problems
       [not found] ` <bug-41588-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
  2011-10-08 15:18   ` [Bug 41588] suspend/resume with active CRTC, but disconnected output causes problems bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2011-10-08 15:22   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2011-10-08 18:21   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2011-10-08 15:22 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

--- Comment #1 from maximlevitsky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 2011-10-08 08:22:15 PDT ---
Changed bug title to reflect further findings.

So to reproduce the problem (with the patch), all you need is:

1. connect external monitor
2. activate it using xrandr
3. disconnect it (and rely on lack of software that deactivates the CRTC).

4. suspend/resume.

Now the bug is already there. If you suspended with compiz running, you can try
to rotate the cube and it will freeze, sometimes the screen will be filled with
black/white pattern.
Of course if you connect the DVI output it won't show anything.

If you suspend/resume again, you will get for sure that black/white pattern.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 41588] suspend/resume with active CRTC, but disconnected output causes problems
       [not found] ` <bug-41588-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
  2011-10-08 15:18   ` [Bug 41588] suspend/resume with active CRTC, but disconnected output causes problems bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2011-10-08 15:22   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2011-10-08 18:21   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2011-10-09 11:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2011-10-08 18:21 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

--- Comment #2 from maximlevitsky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 2011-10-08 11:21:35 PDT ---
Note that I verified that this problem doesn't happen on VGA output.
I suspect its somewhat related to clock scripts nouveau executes.

Also, I managed even with all this still to cause DVI not to come back after
resume, and that seems to be partially unreleated bug, and unlike the bug we
discuss here its mostly harmless (I can suspend/resume again or turn output
on/off to fix this) and happens very rarely

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 41588] suspend/resume with active CRTC, but disconnected output causes problems
       [not found] ` <bug-41588-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (2 preceding siblings ...)
  2011-10-08 18:21   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2011-10-09 11:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2011-10-09 13:28   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2011-10-09 11:12 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

--- Comment #3 from maximlevitsky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 2011-10-09 04:12:21 PDT ---
And I found the way to 100% reproduce the other way of breaking external
output.
I opened another bugreport: https://bugs.freedesktop.org/show_bug.cgi?id=41608

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 41588] suspend/resume with active CRTC, but disconnected output causes problems
       [not found] ` <bug-41588-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (3 preceding siblings ...)
  2011-10-09 11:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2011-10-09 13:28   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2012-09-10 19:56   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2011-10-09 13:28 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

--- Comment #4 from maximlevitsky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 2011-10-09 06:28:02 PDT ---
And with patch I just wrote for the other bugreport, this bug now it clearly
causes much less damage that expected initially.

Now if I suspend/resume with external DVI output activated and off (and with or
without cursor on it), on resume output is deactivated, but off/on cycle fixes
it.
If I suspend/resume again, then I see garbage over main screen, but that
doesn't cause any hangs, I just need to redraw that screen.
I dig into this deeper later, but really now I can finally safely use my DVI
monitor.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 41588] suspend/resume with active CRTC, but disconnected output causes problems
       [not found] ` <bug-41588-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (4 preceding siblings ...)
  2011-10-09 13:28   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2012-09-10 19:56   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2013-08-30 23:43   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2013-10-01 16:24   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2012-09-10 19:56 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

--- Comment #5 from Carsten Pfeiffer <pfeiffer-RoXCvvDuEio@public.gmane.org> 2012-09-10 19:56:32 UTC ---
I Lenovo notebook W510 with a GT216 [Quadro FX 880M] (rev a2) running
xserver-xorg-video-nouveau 1.0.1-3 (Debian unstable), Kernel 3.2.0-3-amd64.

My problem is that after resuming from ram, I cannot re-activate the LVDS-1
display if it had been disabled once before suspending.

To reproduce, do the following:
1. plug in external monitor (DVI here)
2. use xrandr or e.g. krandrtray to enable external display and disable
internal display (LVDS-1)
3. suspend to ram
4. resume
5. => LVDS-1 stays black forever, no way to reactivate it

I tried to disable the external display and re-enable LVDS-1 *before*
suspending, which works fine (LVDS-1 works). But after suspend&resume, LVDS-1
is black and cannot be reactivated.

A workaround is to keep LVDS-1 always on, but then you cannot use two external
displays anymore. For using two external displays, you *have* to disable
LVDS-1.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 41588] suspend/resume with active CRTC, but disconnected output causes problems
       [not found] ` <bug-41588-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (5 preceding siblings ...)
  2012-09-10 19:56   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2013-08-30 23:43   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2013-10-01 16:24   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2013-08-30 23:43 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 261 bytes --]

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

--- Comment #6 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org> ---
Does this still happen with the latest kernel?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1053 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 41588] suspend/resume with active CRTC, but disconnected output causes problems
       [not found] ` <bug-41588-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (6 preceding siblings ...)
  2013-08-30 23:43   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2013-10-01 16:24   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2013-10-01 16:24 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 603 bytes --]

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

Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #7 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org> ---
No response to re-test request for over a month. Closing as invalid.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2085 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-10-01 16:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-08 14:29 [Bug 41588] New: connected DVI output dies after suspend/resume occasionally bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
     [not found] ` <bug-41588-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2011-10-08 15:18   ` [Bug 41588] suspend/resume with active CRTC, but disconnected output causes problems bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-10-08 15:22   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-10-08 18:21   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-10-09 11:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-10-09 13:28   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2012-09-10 19:56   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2013-08-30 23:43   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2013-10-01 16:24   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.