Bug 104330 - No display on my monitor if i plug in the VGA cable after entering os
Summary: No display on my monitor if i plug in the VGA cable after entering os
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev, Triaged
Keywords:
: 106397 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-12-19 00:52 UTC by Liuxiaoqian
Modified: 2018-05-04 07:52 UTC (History)
1 user (show)

See Also:
i915 platform: SKL
i915 features: display/Other


Attachments
The modinfo i915 about kernel 4.14.7 (491.42 KB, image/png)
2017-12-19 00:52 UTC, Liuxiaoqian
no flags Details
lspci -nn (2.26 KB, text/plain)
2017-12-20 00:23 UTC, Liuxiaoqian
no flags Details
dmesg info with drm.debug=0x1e (505.65 KB, text/plain)
2017-12-20 00:24 UTC, Liuxiaoqian
no flags Details
RHEL7.3 (424.25 KB, image/png)
2017-12-22 06:52 UTC, Liuxiaoqian
no flags Details
RHEL7.4 (414.74 KB, image/png)
2017-12-22 06:53 UTC, Liuxiaoqian
no flags Details
dmesg with log_buf_len=4M (61.47 KB, text/plain)
2018-01-23 08:02 UTC, Liuxiaoqian
no flags Details
dmesg with drm.debug=0x1e log_buf_len=2M (1.97 MB, text/plain)
2018-01-24 00:47 UTC, Liuxiaoqian
no flags Details
dmesg with drm.debug=0x1e log_buf_len=4M (1.53 MB, text/plain)
2018-01-24 00:48 UTC, Liuxiaoqian
no flags Details
dmegs with drm.debug=0x1e log (402.38 KB, text/plain)
2018-05-03 08:08 UTC, Liuxiaoqian
no flags Details
plug in the vga cable, it stops here. (2.70 MB, image/jpeg)
2018-05-04 07:45 UTC, Liuxiaoqian
no flags Details
dmesg with drm.debug=0x1e from the boot to failure (96.91 KB, text/plain)
2018-05-04 07:46 UTC, Liuxiaoqian
no flags Details

Description Liuxiaoqian 2017-12-19 00:52:11 UTC
Created attachment 136264 [details]
The modinfo i915 about kernel 4.14.7

I have a display problem about Intel Graphics driver.
I use CentOS7.4(Kernel 3.10.0-693), and enter to OS without VGA cable. After entering OS, I plug in VGA cable but without display on my monitor.
I also try to test Win10. If I install the Graphics driver, this problem disappears.
So I guess this is the problem of Intel integrated Graphics driver.
I update kernel to the stable version 4.14.7, but the problem is also existed. I check the modinfo i915.ko, and the firmware is the latest version as follows.
https://01.org/zh/linuxgraphics/downloads/firmware 
The PCH of my board is H110, with CPU i3-6100/G4560. 
I hope you can check this problem, and hope to hearing from you as soon as possible. Thanks.
Comment 1 Rodrigo Vivi 2017-12-19 20:31:53 UTC
The firmware info is irrelevant here honestly ;)

Could you please provide output of 
lspci -nn

Also boot your kernel with drm.debug=0x1e and then collect the output of dmesg and attach here as well?

Thanks,
Rodrigo.
Comment 2 Liuxiaoqian 2017-12-20 00:23:30 UTC
Created attachment 136305 [details]
lspci -nn
Comment 3 Liuxiaoqian 2017-12-20 00:24:42 UTC
Created attachment 136306 [details]
dmesg info with drm.debug=0x1e
Comment 4 Liuxiaoqian 2017-12-20 00:27:34 UTC
The info of lspci and dmesg with drm.debug=0x1e as attachment. Thanks.
Comment 5 Liuxiaoqian 2017-12-22 06:52:31 UTC
Created attachment 136360 [details]
RHEL7.3

I test RHEL 7.3 is OK. And Intel graphics driver can work normally. Please refer to RHEL7.3.png
Comment 6 Liuxiaoqian 2017-12-22 06:53:47 UTC
Created attachment 136361 [details]
RHEL7.4

I test RHEL 7.4 is failed. Please compare it with RHEL7.3.
Comment 7 Jani Nikula 2018-01-22 12:14:37 UTC
(In reply to Liuxiaoqian from comment #3)
> Created attachment 136306 [details]
> dmesg info with drm.debug=0x1e

Please attach dmesg all the way from boot to plugging in the cable, add log_buf_len=4M or similar to make it all fit.
Comment 8 Jani Nikula 2018-01-22 12:15:24 UTC
Does it work if you boot with the cable connected?
Comment 9 Liuxiaoqian 2018-01-23 01:32:57 UTC
It works fine if I boot with the cable connected.
Comment 10 Liuxiaoqian 2018-01-23 08:02:51 UTC
Created attachment 136915 [details]
dmesg with log_buf_len=4M
Comment 11 Elizabeth 2018-01-23 18:06:18 UTC
Hello, for the log, both parameters should be used together in the command line to get full debug information, drm.debug=0x1e log_bug_len=2M(or bigger).
Comment 12 Liuxiaoqian 2018-01-24 00:47:22 UTC
Created attachment 136925 [details]
dmesg with drm.debug=0x1e log_buf_len=2M
Comment 13 Liuxiaoqian 2018-01-24 00:48:03 UTC
Created attachment 136926 [details]
dmesg with drm.debug=0x1e log_buf_len=4M
Comment 14 Elizabeth 2018-02-02 17:29:18 UTC
May not be related, but could you try: https://bugs.freedesktop.org/show_bug.cgi?id=103472#c6
Comment 15 Liuxiaoqian 2018-02-05 07:48:51 UTC
How to patch it? I can't find the file intel_dp.c.
Comment 16 Elizabeth 2018-02-06 19:27:08 UTC
You need to re-compile your kernel with patch on top and apply it.
Comment 17 Liuxiaoqian 2018-02-26 06:37:45 UTC
My situation is not the same with it as below.
https://bugs.freedesktop.org/show_bug.cgi?id=103472#c6
Comment 18 Liuxiaoqian 2018-03-14 07:26:47 UTC
Is there any update?
Comment 19 Jani Saarinen 2018-03-29 07:10:45 UTC
First of all. Sorry about spam.
This is mass update for our bugs. 

Sorry if you feel this annoying but with this trying to understand if bug still valid or not.
If bug investigation still in progress, please ignore this and I apologize!

If you think this is not anymore valid, please comment to the bug that can be closed.
If you haven't tested with our latest pre-upstream tree(drm-tip), can you do that also to see if issue is valid there still and if you cannot see issue there, please comment to the bug.
Comment 20 Liuxiaoqian 2018-04-03 03:15:39 UTC
Could you tell me how to re-compile your kernel with patch in detail?
Thank you.
Comment 21 Jani Nikula 2018-04-03 08:40:31 UTC
The patch has been merged upstream. Please retest on v4.16 kernel.
Comment 22 Liuxiaoqian 2018-04-03 10:52:07 UTC
OK, I will retest Kernel 4.16 and tell you the result.
Comment 23 Liuxiaoqian 2018-04-09 06:45:41 UTC
Hello, I have updated to kernel 4.16.0, but it is of no use for my issue.
Comment 24 Jani Saarinen 2018-04-24 06:11:27 UTC
Can you try latest drm-tip? https://cgit.freedesktop.org/drm-tip.
Resolving now, please open if not fixed.
Comment 25 Liuxiaoqian 2018-04-27 08:21:30 UTC
Could you tell me how to re-compile it? I want to try it. Thanks.
Comment 26 Jani Saarinen 2018-04-27 08:28:21 UTC
see: https://01.org/linuxgraphics/documentation/build-guide-0
Comment 27 Liuxiaoqian 2018-05-02 06:00:27 UTC
Thank you for your reply.
I try the latest drm-tip, re-complie the kernel through these commands.
(1)git clone git://anongit.freedesktop.org/drm-tip
(2)make defconfig
(3)make
(4)make modules_install
(5)make install
Then I power off my computer, plug off the VGA cable, and then power on my computer. A few minutes later, I plug in the VGA cable, and also without display on my monitor. 
So the latest drm-tip is of no use.
Comment 28 Jani Saarinen 2018-05-02 07:08:02 UTC
So problem still existing and need to be reopened?
Comment 29 Liuxiaoqian 2018-05-02 07:22:39 UTC
Yes. The problem is still existing and need to be reopened.
Comment 30 Jani Saarinen 2018-05-02 09:05:18 UTC
Please send dmesg with drm.debug=0x1e from the boot to failure.
Comment 31 Liuxiaoqian 2018-05-03 08:08:03 UTC
Created attachment 139295 [details]
dmegs with drm.debug=0x1e log

The attachment is the dmesg log. I have started my compute twice. The first one is the log without the VGA cable. And the second one is the log with the VGA cable. Please compare. Thank you.
Comment 32 Jani Saarinen 2018-05-03 08:49:03 UTC
Ville, Jani, any obvious from logs?
Comment 33 Ville Syrjala 2018-05-03 10:48:22 UTC
(In reply to Liuxiaoqian from comment #31)
> Created attachment 139295 [details]
> dmegs with drm.debug=0x1e log
> 
> The attachment is the dmesg log. I have started my compute twice. The first
> one is the log without the VGA cable. And the second one is the log with the
> VGA cable. Please compare. Thank you.

That log has multiple boots in it, so it's super hard to see what's going on. Furthermore it doesn't have any drm debugs in it for some reason. I did see some of the boots did have the drm.debug=0x1e in there, but not all. I don't know why the debug prints weren't present in the actual log though. Possibly due to it being captured via syslog/something. Try to grab the log directly with the 'dmesg' command.

Also please remove all i915 module parameters from whatever modprobe config file you're using. They are either useless, or actually unsafe and we don't want waste time debugging issues caused by them:
"May  3 15:39:46 localhost kernel: i915: unknown parameter 'enable_rc6' ignored
May  3 15:39:46 localhost kernel: Setting dangerous option enable_fbc - tainting kernel
May  3 15:39:46 localhost kernel: i915: unknown parameter 'lvds_downclock' ignored
May  3 15:39:46 localhost kernel: i915: unknown parameter 'semaphores' ignored"
Comment 34 Liuxiaoqian 2018-05-04 03:21:59 UTC
I have re-installed my operate system, then update to kernel 4.16.7-1, and my problem is disappeared. I think kernel 4.16.7-1 has fixed my issue.
Thank you very much for your support.
Comment 35 Jani Saarinen 2018-05-04 05:35:57 UTC
Based on this verifying and closing, thanks. If still occurs, please reopen.
Comment 36 Jani Saarinen 2018-05-04 07:09:53 UTC
*** Bug 106397 has been marked as a duplicate of this bug. ***
Comment 37 Liuxiaoqian 2018-05-04 07:44:48 UTC
If my operating system is CentOS 7.3 or update to kernel 4.16.7-1, it is normal. 
But when my operating system is CentOS 7.4 or update to kernel 4.16.7-1, it is normal. With kernel 4.16.7-1, when I plug in the VGA cable after entering os, the screen stops on the background but no login interface. See the picture of attachment.
Comment 38 Liuxiaoqian 2018-05-04 07:45:27 UTC
Created attachment 139337 [details]
plug in the vga cable, it stops here.
Comment 39 Liuxiaoqian 2018-05-04 07:46:13 UTC
Created attachment 139338 [details]
dmesg with drm.debug=0x1e from the boot to failure
Comment 40 Liuxiaoqian 2018-05-04 07:52:02 UTC
Ignore Comment #37 because some clerical mistake.
If my operating system is CentOS 7.3 or update to kernel 4.16.7-1, it is normal. 
But when my operating system is CentOS 7.4 or update to kernel 4.16.7-1, it is abnormal. With kernel 4.16.7-1, when I plug in the VGA cable after entering os, the screen stops on the background but no login interface. See the picture of attachment.


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.