Bug 91407 - [SNB] switching monitor off and on breaks DP output
Summary: [SNB] switching monitor off and on breaks DP output
Status: CLOSED INVALID
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-20 19:15 UTC by Anton Khirnov
Modified: 2017-07-24 22:46 UTC (History)
1 user (show)

See Also:
i915 platform: SNB
i915 features: display/DP


Attachments

Description Anton Khirnov 2015-07-20 19:15:49 UTC
After turning the monitor on again, there is no signal on the DP output. HDMI still works fine. I first found the issue in 3.18 and it's still present in 4.0.7.

Doing 'xrandr --output DP2 --off; xrandr --output DP2 --auto' makes it work again, but it has to be done from X, with the monitor switched to DP.

My HW is
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
Comment 1 Jani Nikula 2015-08-20 13:58:05 UTC
(In reply to Anton Khirnov from comment #0)
> Doing 'xrandr --output DP2 --off; xrandr --output DP2 --auto' makes it work
> again, but it has to be done from X, with the monitor switched to DP.

"has to be done from X"... do you have some userspace running responding to hotplug signals from the driver?
Comment 2 Anton Khirnov 2015-08-20 14:10:14 UTC
(In reply to Jani Nikula from comment #1)
> (In reply to Anton Khirnov from comment #0)
> > Doing 'xrandr --output DP2 --off; xrandr --output DP2 --auto' makes it work
> > again, but it has to be done from X, with the monitor switched to DP.
> 
> "has to be done from X"... do you have some userspace running responding to
> hotplug signals from the driver?

Not that I know, unless it's Xorg itself. I don't have any fancy DE, just X with FVWM.

What I meant by the sentence you quoted is that I usually switch to HDMI (which is working), enter "sleep 10; xrandr....", then switch to DP and wait for xrandr to run. Running xrandr while the monitor is switched to HDMI, or when i'm switched from X to a different VT, won't work.
Comment 3 Jani Nikula 2015-08-20 14:39:01 UTC
Do I understand correctly that you have the machine hooked up to the same monitor using both DP and HDMI?

The symptoms do sound like your userspace is not fancy enough to handle the hotplug uevents. What to do on hotplug (or hot-unplug, or switching the sink on/off) is a userspace policy decision. I'm guessing the driver keeps transmitting the signal even after you've switched off the display, your userspace does nothing, and when you switch the display back on, HDMI has a fighting chance to recover, however the DP link doesn't recover like that.
Comment 4 Anton Khirnov 2015-08-20 14:50:48 UTC
(In reply to Jani Nikula from comment #3)
> Do I understand correctly that you have the machine hooked up to the same
> monitor using both DP and HDMI?
> 

Yes. I added the HDMI connection there just for re-enabling DP because of this problem, otherwise I don't use it since it doesn't support my monitor's full resolution.

> The symptoms do sound like your userspace is not fancy enough to handle the
> hotplug uevents. What to do on hotplug (or hot-unplug, or switching the sink
> on/off) is a userspace policy decision. I'm guessing the driver keeps
> transmitting the signal even after you've switched off the display, your
> userspace does nothing, and when you switch the display back on, HDMI has a
> fighting chance to recover, however the DP link doesn't recover like that.

Well, before kernel 3.18 my setup worked just fine without any fancy userspace hotplug handlers.
Comment 5 Jani Nikula 2015-08-20 15:04:06 UTC
(In reply to Anton Khirnov from comment #4)
> (In reply to Jani Nikula from comment #3)
> > Do I understand correctly that you have the machine hooked up to the same
> > monitor using both DP and HDMI?
> > 
> 
> Yes. I added the HDMI connection there just for re-enabling DP because of
> this problem, otherwise I don't use it since it doesn't support my monitor's
> full resolution.
> 
> > The symptoms do sound like your userspace is not fancy enough to handle the
> > hotplug uevents. What to do on hotplug (or hot-unplug, or switching the sink
> > on/off) is a userspace policy decision. I'm guessing the driver keeps
> > transmitting the signal even after you've switched off the display, your
> > userspace does nothing, and when you switch the display back on, HDMI has a
> > fighting chance to recover, however the DP link doesn't recover like that.
> 
> Well, before kernel 3.18 my setup worked just fine without any fancy
> userspace hotplug handlers.

I wonder how that is possible for DP. The DP link goes down when you switch the display off. We never automatically trained the link on hotplugging.
Comment 7 Jesse Barnes 2016-01-11 17:46:10 UTC
I guess this is fixed or the reporter is gone...


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.