Bug 10487 - intel: VGA detected as connected when actually disconnected
Summary: intel: VGA detected as connected when actually disconnected
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Eric Anholt
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-31 08:54 UTC by Khashayar Naderehvandi
Modified: 2007-05-21 10:05 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg log file (67.02 KB, text/x-log)
2007-03-31 08:54 UTC, Khashayar Naderehvandi
no flags Details
Xorg configuration file (3.33 KB, application/octet-stream)
2007-03-31 08:55 UTC, Khashayar Naderehvandi
no flags Details
Log file from when resolution was not working properly (67.44 KB, text/plain)
2007-04-06 03:39 UTC, Khashayar Naderehvandi
no flags Details
Log file from when resolution was working properly (64.21 KB, text/plain)
2007-04-06 03:41 UTC, Khashayar Naderehvandi
no flags Details
Andrew's xorg.conf (4.11 KB, text/plain)
2007-05-20 18:49 UTC, Andrew Moise
no flags Details
Andrew's log - failure (37.45 KB, text/plain)
2007-05-20 18:56 UTC, Andrew Moise
no flags Details
Andrew's log - success (42.87 KB, text/plain)
2007-05-20 18:56 UTC, Andrew Moise
no flags Details

Description Khashayar Naderehvandi 2007-03-31 08:54:29 UTC
My latop's native resolution is 1280x768, which the new intel driver sets properly. However, when starting a gnome-session, it seems to behave as if I had a 1024x768 resolution. This is the output of xrandr when run twice in succession:

khashayar@dionysos ~/bugs $ xrandr
Screen 0: minimum 320 x 200, current 1280 x 768, maximum 1280 x 1280
VGA connected 1024x768+0+0 (normal left inverted right) 0mm x 0mm
   1024x768       60.0* 
   800x600        60.3  
   640x480        59.9  
LVDS connected 1280x768+0+0 (normal left inverted right) 0mm x 0mm
   1280x768       59.2*+
   1152x768       54.8  
   1024x768       85.0     75.0     70.1     60.0  
   832x624        74.6  
   800x600        85.1     72.2     75.0     60.3     56.2  
   640x480        85.0     72.8     75.0     59.9  
   720x400        85.0  
   640x400        85.1  
   640x350        85.1  
TMDS disconnected (normal left inverted right)
khashayar@dionysos ~/bugs $ xrandr
Screen 0: minimum 320 x 200, current 1280 x 768, maximum 1280 x 1280
VGA disconnected 1024x768+0+0 (normal left inverted right) 0mm x 0mm
LVDS connected 1280x768+0+0 (normal left inverted right) 0mm x 0mm
   1280x768       59.2*+
   1152x768       54.8  
   1024x768       85.0     75.0     70.1     60.0  
   832x624        74.6  
   800x600        85.1     72.2     75.0     60.3     56.2  
   640x480        85.0     72.8     75.0     59.9  
   720x400        85.0  
   640x400        85.1  
   640x350        85.1  
TMDS disconnected (normal left inverted right)

I'm running xf86-video-intel from git and xserver 1.2.99.903. 
I'll attach xorg.conf, log file and a couple of descriptive screenshots.
Comment 1 Khashayar Naderehvandi 2007-03-31 08:54:54 UTC
Created attachment 9398 [details]
Xorg log file
Comment 2 Khashayar Naderehvandi 2007-03-31 08:55:16 UTC
Created attachment 9399 [details]
Xorg configuration file
Comment 3 Khashayar Naderehvandi 2007-03-31 09:01:21 UTC
Screenshot 1: http://www.naderehvandi.net/backup/panel-problem.png
Screenshot 2: http://www.naderehvandi.net/backup/panel-problem2.png


Note the size of gnome-panel in the first screenshot. It stretches 1024 points instead of 1280.

The second screenshot is maximized view of the first screenshot.
Comment 4 Khashayar Naderehvandi 2007-04-03 04:10:47 UTC
The problem still persists after the release of RC4.
Comment 5 Khashayar Naderehvandi 2007-04-06 03:37:12 UTC
I did some more trying and this is what I have now, maybe it can be of some help. This is what I did

1) Started the xserver with the old driver (resolution working fine with 915resolution hack)
2) quit the xserver and installed the latest intel driver from git
3) started the xserver (resolution was fine)
4) restarted xserver (resolution was messed up as described in this report).

I will now attach the two log files, one from when the resolution was picked up fine, and one from when it wasn't.
Comment 6 Khashayar Naderehvandi 2007-04-06 03:39:21 UTC
Created attachment 9495 [details]
Log file from when resolution was not working properly
Comment 7 Khashayar Naderehvandi 2007-04-06 03:41:52 UTC
Created attachment 9496 [details]
Log file from when resolution was working properly
Comment 8 Erik Andren 2007-04-06 08:39:47 UTC
Shouldn't the bug summary be: 1280x768 resolution set, but behaviour is as if resolution was >>>1024x768<<<?
Comment 9 Khashayar Naderehvandi 2007-04-06 09:36:58 UTC
(In reply to comment #8)
> Shouldn't the bug summary be: 1280x768 resolution set, but behaviour is as if
> resolution was >>>1024x768<<<?
> 

Woops. My wrong. Fixed now...
Comment 10 Michel Dänzer 2007-04-07 04:45:48 UTC
I think the problem is that the GNOME panel restricts itself to the primary/smaller Xinerama screen, the VGA output in your case. Is an external display connected to it?
Comment 11 Khashayar Naderehvandi 2007-04-07 05:17:35 UTC
(In reply to comment #10)
> I think the problem is that the GNOME panel restricts itself to the
> primary/smaller Xinerama screen, the VGA output in your case. Is an external
> display connected to it?
> 

Sorry for not stating this clearer before. No, there is no external screen involved here at all.
Comment 12 Brice Goglin 2007-04-21 10:12:33 UTC
The same behavior has been reported in Debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420292
(especially http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420292;msg=45).

The bug report was initially about gnome-screensaver, but it looks like it is actually the intel driver wrongly reporting 2 monitors and gnome-screensaver not supporting this well.

Interestingly, both the Debian bug submitter and Khashayar Naderehvandi have a 82852/855GM. And I know another person seeing this behavior on the same chipset.
Comment 13 Andrew Moise 2007-05-20 18:44:15 UTC
I see a variant of what may be this bug.  My chipset randomly does or does not detect the VGA connector as connected, even though a monitor is consistently connected to it.  Since I'm using the VGA display as my only display, this means my display doesn't work half the time.  I've also seen one total system crash while repeatedly starting the X server to investigate this behavior; I can file a separate bug for that if you think it deserves one.

I'm using the Intel driver from Debian sid, version 2.0.0-1.  My chipset is an "Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)" (I believe it's an 855GME, though my memory is hazy).  This actually isn't a laptop; it's a small-form-factor PC that apparently uses a mobile display chipset.  This bug was the first time I had heard anything about it having an LVDS output :-).  I don't know whether there's any truth to that as far as the hardware goes, but if there is any LVDS capability in this computer it's not accessible to me.

I'll attach my configuration and logs from a successful start (one where the VGA display is detected as connected) and an unsuccessful one (one where it isn't).  Let me know if you want any more information.  Cheers.
Comment 14 Andrew Moise 2007-05-20 18:49:11 UTC
Created attachment 10042 [details]
Andrew's xorg.conf
Comment 15 Andrew Moise 2007-05-20 18:56:35 UTC
Created attachment 10043 [details]
Andrew's log - failure
Comment 16 Andrew Moise 2007-05-20 18:56:55 UTC
Created attachment 10044 [details]
Andrew's log - success
Comment 17 Eric Anholt 2007-05-21 10:05:57 UTC
Should be fixed with b31bef1a8effa9acb6de7edd206b9d8c48d88144, committed last week.


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.