Bug 63172 - [945GM SDVO LVDS] disconnected on connect VGA
Summary: [945GM SDVO LVDS] disconnected on connect VGA
Status: CLOSED INVALID
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: low normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 15:00 UTC by Aitor Garcia
Modified: 2017-07-24 22:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg.0.log (46.14 KB, text/plain)
2013-04-05 15:00 UTC, Aitor Garcia
no flags Details
Xorg.0.log-3.8.0-17 (26.70 KB, text/plain)
2013-04-09 15:21 UTC, Aitor Garcia
no flags Details
dmesg w/debug - kernel 3.9.0-0.rc4.git0.1.fc19.i686 - xf86-video-intel-2.21.3 (123.73 KB, text/plain)
2013-04-11 14:19 UTC, Aitor Garcia
no flags Details
Xorg.0.log - kernel 3.9.0-0.rc4.git0.1.fc19.i686 - xf86-video-intel-2.21.3 (23.87 KB, text/plain)
2013-04-11 14:20 UTC, Aitor Garcia
no flags Details
drm/i915/sdvo: Fix LVDS connector status detection (5.43 KB, patch)
2014-03-05 09:04 UTC, Chris Wilson
no flags Details | Splinter Review

Description Aitor Garcia 2013-04-05 15:00:38 UTC
Created attachment 77488 [details]
Xorg.0.log

I have a PanelPC with a graphic card "Intel 945GM" inside.

Centos Release : CentOS release 6.3 (Final)
Intel driver Package : xorg-x11-drv-intel-2.20.2-2.el6.i686


When I connect an external VGA monitor, LVDS appear disconnected.


# xrandr -q
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
   800x600        72.2 +   75.0     60.3     56.2
   1024x768       75.1*    70.7     70.1     60.0
   832x624        74.6
   640x480        72.8     75.0     66.7     60.0
LVDS1 disconnected (normal left inverted right x axis y axis)



And it reconnects when I disconnect the VGA monitor.


# xrandr -q
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 4096 x 4096
VGA1 disconnected (normal left inverted right x axis y axis)
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1280x800       59.8*+   59.9
   1280x1024      59.7 +
   1280x960       60.0
   1280x768       59.9     60.0
   1024x768       60.0
   800x600        60.3     56.2
   848x480        60.0
   640x480        59.9
Comment 1 Chris Wilson 2013-04-05 16:39:54 UTC
2.6.32-279.el6.i686 - the behaviour you have here is not an artifact of our driver as the LVDS is always reported as connected unless you manually override that behaviour by telling it to use the lid status. Please try reproducing with an upstream kernel.
Comment 2 Aitor Garcia 2013-04-08 10:04:13 UTC
I don't think it is a kernel thing.

In any case, I've updated my kernel over CentOs to the last version : vmlinuz-2.6.32-358.2.1.el6.i686 ant the same results. ( log is attached )

I've also tested other enviroments with newer kernels and happen the same:

Fedora Core 17 i686 : xorg-x11-drv-intel 2.19.0-1 / kernel 3.3.4-5
Fedora Core 18 i686 : xorg-x11-drv-intel 2.20.19-2 / kernel 3.6.10-4

It happesns the same : LVDS1 repostes as disconnect on plug an VGA monitos


Also the vesa driver shows on LVDS1 and VGA1 a perfectly cloned desktop. Without disconnect LVDS1 display. Unlikely for oue propouses vesa driver is a very basic one, no extended desktop included.

I wanna focus on the hardware : is a Panel PC, not a laptop!! and acpi even don't create /proc/acpi/button/lid directory! this is why I think there is some problem into the understanding between ACAPI and Inter Driver. Intel drives could not report the right lid status and LVDS1 is disconnected by the drives when other option like VGA is available.
Comment 3 Daniel Vetter 2013-04-08 10:08:03 UTC
If you're not willing to test upstream kernels (this means 3.8 or even newer), then please file this bug against your distro.

2.6.32 is _NOT_ supported by us since a long time.
Comment 4 Aitor Garcia 2013-04-09 15:21:15 UTC
Created attachment 77673 [details]
Xorg.0.log-3.8.0-17
Comment 5 Aitor Garcia 2013-04-09 15:24:10 UTC
Same experience with upstream kernel 3.8.0-17 and intel-driver, see Xorg.0.log-3.8.0-17 attached.

Executing xrandr without motinitor attached at VGA

> Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 32767 x 32767
> LVDS1 connected 1280x1024+0+0 (normal left inverted right x axis y axis)
> 0mm x 0mm
>    1280x1024      59.7*+
>    1280x960       60.0  
>    1152x864       60.0  
>    1024x768       60.0  
>    800x600        60.3     56.2  
>    640x480        59.9  
> VGA1 disconnected (normal left inverted right x axis y axis)


Executing xrandr with VGA monitor attached

> Screen 0: minimum 320 x 200, current 1024 x 768, maximum 32767 x 32767
> LVDS1 disconnected (normal left inverted right x axis y axis)
> VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis)
> 304mm x 228mm
>   1024x768       75.1*    70.7     70.1     60.0     832x624        74.6  
>   800x600        72.2     75.0     60.3     56.2  
>   640x480        72.8     75.0     66.7     60.0  
>   720x400        70.1  

Expected results: LVDS1 connected.
Comment 6 Daniel Vetter 2013-04-09 15:27:23 UTC
Can you pls boot that 3.8 kernel with drm.debug=0xe added to your kernel cmdline and the attach the complete dmesg after having connected VGA and done an xrandr call?
Comment 7 Aitor Garcia 2013-04-11 14:19:34 UTC
Created attachment 77815 [details]
dmesg w/debug - kernel 3.9.0-0.rc4.git0.1.fc19.i686 - xf86-video-intel-2.21.3
Comment 8 Aitor Garcia 2013-04-11 14:20:16 UTC
Created attachment 77816 [details]
Xorg.0.log - kernel 3.9.0-0.rc4.git0.1.fc19.i686 - xf86-video-intel-2.21.3
Comment 9 Aitor Garcia 2013-04-11 14:26:07 UTC
Sorry about the delay.

The version I've testes Ubuntu life 13.04 allways hungs on installation... finally I've get an FC19 alpha really-slowly release with kernel 3.9.0-0, I've compiled the xf86-video-intel-2.21.3 driver and copy to /usr/lib/xorg/modules/drivers/. 

The same results when connect VGA monitor, open terminal & xrandr

> # xrandr
> Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 4096 x 4096
> LVDS1 disconnected primary 1280x1024+0+0 (normal left inverted right x axis y > axis) 0mm x 0mm
> VGA1 connected (normal left inverted right x axis y axis)
>    1366x768       59.8 +
>    1280x1024      75.0     60.0  
>    1280x960       60.0  
>    1280x800       59.8  
>    1152x864       75.0  
>    1280x720       60.0  
>    1024x768       75.1     70.1     60.0  
>    832x624        74.6  
>    800x600        72.2     75.0     60.3     56.2  
>    640x480        72.8     75.0     66.7     60.0  
>    720x400        70.1  
>   1280x1024 (0x44)  108.0MHz
>         h: width  1280 start 1328 end 1440 total 1688 skew    0 clock   64.0KHz
>         v: height 1024 start 1025 end 1028 total 1072           clock   59.7Hz

dmesg with debug is attached.

Hope it could help
Comment 10 Daniel Vetter 2013-04-11 15:40:52 UTC
Oh, an sdvo lvds output. That explains a lot (dmesg with debug output was key, Xorg.log is pretty irrelevant here). I'm looking into a fix.
Comment 11 Jani Nikula 2013-05-06 13:44:43 UTC
(In reply to comment #10)
> Oh, an sdvo lvds output. That explains a lot (dmesg with debug output was
> key, Xorg.log is pretty irrelevant here). I'm looking into a fix.

Daniel, ping for the fix. ;D
Comment 12 Daniel Vetter 2013-05-06 15:37:22 UTC
Oh, I've looked a bit harder and noticed that thing are pretty neatly screwed up in sdvo land. So not something I can fix in 1-2 easy patches. And since sdvo isn't a high prio thing for us I've postponed this for now.

If you can code and want to fix this yourself I could point you into the right direction. Just ping me on irc on #intel-gfx (I'm danvet there).
Comment 13 Daniel Vetter 2013-11-18 17:48:18 UTC
Meh, haven't gotten around to tackle this yet, so let's keep this bug around for a bit more ...
Comment 14 Chris Wilson 2014-03-05 09:04:47 UTC
Created attachment 95147 [details] [review]
drm/i915/sdvo: Fix LVDS connector status detection
Comment 15 Jani Nikula 2014-08-14 13:43:11 UTC
(In reply to comment #14)
> Created attachment 95147 [details] [review] [review]
> drm/i915/sdvo: Fix LVDS connector status detection

Aitor, please try Chris' patch on top of a recent kernel and report back.
Comment 16 Jesse Barnes 2014-12-05 20:22:29 UTC
Timing out.  Aitor, if you get around to testing Chris's patch, please re-open.


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.