Bug 16777 - [945GM] VGA output mode set incorrectly ("out of range") when DVI output on docking station also in use
Summary: [945GM] VGA output mode set incorrectly ("out of range") when DVI output on ...
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Carl Worth
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-18 12:14 UTC by Hugh Eaves
Modified: 2011-03-08 07:42 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
xorg.conf configuration file (1.87 KB, text/plain)
2008-07-18 12:15 UTC, Hugh Eaves
no flags Details
Output from xrandr --verbose (5.50 KB, text/plain)
2008-07-18 12:16 UTC, Hugh Eaves
no flags Details
xorg log file (299.45 KB, text/plain)
2008-07-18 12:17 UTC, Hugh Eaves
no flags Details
dmesg output (37.70 KB, text/plain)
2008-07-18 12:31 UTC, Hugh Eaves
no flags Details
xorg log file running latest git master (2.4.99) (227.95 KB, text/plain)
2008-07-22 08:06 UTC, Hugh Eaves
no flags Details
Xorg log file with only 1905FP connected on VGA port (107.74 KB, text/plain)
2008-07-31 06:20 UTC, Hugh Eaves
no flags Details
Register dump with both monitors attached and working (booted system with DVI disconncted) (6.94 KB, text/plain)
2008-12-01 07:08 UTC, Hugh Eaves
no flags Details
Register dump with both monitors attached, but VGA out of range / not working (booted with DVI connected) (6.94 KB, text/plain)
2008-12-01 07:08 UTC, Hugh Eaves
no flags Details
VBIOS rom dump (64.00 KB, application/octet-stream)
2008-12-03 04:56 UTC, Hugh Eaves
no flags Details
rom dump (64.00 KB, application/octet-stream)
2008-12-09 09:44 UTC, Vincenzo Ciancia
no flags Details
Register dump with both monitors attached, TMDS-1 turned off, VGA set auto but not working (6.96 KB, text/plain)
2009-01-12 13:23 UTC, Hugh Eaves
no flags Details

Description Hugh Eaves 2008-07-18 12:14:07 UTC
I'm running Ubuntu 8.04.1 on a Toshiba M400 laptop. The laptop is connected to a docking station that provides both DVI and VGA outputs. I am attempting to run a dual monitor setup using these outputs. This works fine using the Intel drivers under Windows Vista (i.e. there doesn't appear to be anything wrong with the hardware)

After booting Ubuntu, the DVI output works fine, but when I enable the VGA output using xrandr, I get an undisplayable "out of range" mode on the VGA output, even though the mode appears to be set correctly, and the DDC seems to detect the available modes from the monitor. The analog monitor I am attempting to use is a Dell 1905FP.

The xrandr command I am using, for example, is:

xrandr --verbose --output VGA --auto
OR
xrandr --verbose --output VGA --mode 1024x768 --rate 60

What is strange about this, is that if I boot my system without the DVI monitor connected, I can use the VGA output (and internal LVDS output) without any problems. It appears to be the combination of having the DVI and VGA monitor connected at the same time that produces invalid output on the VGA connector. Hotplugging the monitors while the system is in use appears to make no difference. It is only removing the DVI monitor before bootup that alleviates the problem.
Comment 1 Hugh Eaves 2008-07-18 12:15:33 UTC
Created attachment 17754 [details]
xorg.conf configuration file
Comment 2 Hugh Eaves 2008-07-18 12:16:32 UTC
Created attachment 17755 [details]
Output from xrandr --verbose
Comment 3 Hugh Eaves 2008-07-18 12:17:33 UTC
Created attachment 17756 [details]
xorg log file
Comment 4 Hugh Eaves 2008-07-18 12:31:17 UTC
Kernel version: 2.6.24-19-generic


Comment 5 Hugh Eaves 2008-07-18 12:31:48 UTC
Created attachment 17757 [details]
dmesg output
Comment 6 Wang Zhenyu 2008-07-22 00:36:35 UTC
Could you first try xf86-video-intel 2.3.2 or current git master?
Comment 7 Hugh Eaves 2008-07-22 08:03:27 UTC
I have tried both 2.3.2 and the current git master (2.4.99). Both exhibit the same behavior as the Ubuntu 2.2.1 version.
Comment 8 Hugh Eaves 2008-07-22 08:06:54 UTC
Created attachment 17822 [details]
xorg log file running latest git master (2.4.99)
Comment 9 Michael Fu 2008-07-30 23:56:25 UTC
Hugh, please attach a xorg.log with only the 1905FP connected on VGA port, for our reference. thanks.
Comment 10 Hugh Eaves 2008-07-31 06:20:23 UTC
Created attachment 18030 [details]
Xorg log file with only 1905FP connected on VGA port

Here's the log with only the VGA output connected.
Comment 11 Michael Fu 2008-11-16 20:44:31 UTC
what if you boot up with VGA ( which should works fine as you said ),then try to enable DVI using xrandr?

bug# 16702 may be relevant, just put a note here...
Comment 12 Hugh Eaves 2008-11-17 14:56:44 UTC
Using Ubuntu 8.10, I am able to get both outputs working simultaneously if I boot the system with TMDS-1 disconnected, and then reconnect it after boot. (though I do have to restart X to get it to work) I believe this same procedure did not work at all with Ubuntu 8.04, so that is some improvement.

However, even though the VGA output "works", there appears to be a display issue with the right hand side of the display. The last 100 pixel columns on the display (columns 1180-1280) do not display properly at 1280x1024 resolution. Instead, they appear display a replicate of what is in column 1179. (it looks like the column "bleeds" over into the right hand side of the display)

Let me know if I can provide any more assistance or diagnostic information to help fix this bug. Thanks!
Comment 13 Michael Fu 2008-11-27 00:28:26 UTC
Hi, are you able to get the reg_dumper tool? It's in the upstream source package, I'm not sure if your distro has it... it'll be helpful for us to compare the register diff before ( VGA doesn't work) and after ( VGA works , even though with issues)...
Comment 14 Julien Cristau 2008-11-27 06:45:07 UTC
> --- Comment #13 from Michael Fu <michael.fu@intel.com>  2008-11-27 00:28:26 PST ---
> Hi, are you able to get the reg_dumper tool? It's in the upstream source
> package, I'm not sure if your distro has it...

Debian (and i believe Ubuntu as well) install it as 'intel_reg_dumper'
in the xserver-xorg-video-intel-dbg package.
Comment 15 Hugh Eaves 2008-12-01 07:08:20 UTC
Created attachment 20713 [details]
Register dump with both monitors attached and working (booted system with DVI disconncted)
Comment 16 Hugh Eaves 2008-12-01 07:08:58 UTC
Created attachment 20714 [details]
Register dump with both monitors attached, but VGA out of range / not working (booted with DVI connected)
Comment 17 Hugh Eaves 2008-12-01 07:11:16 UTC
I've attached the register dumps from a working and non-working configuration. Unfortunately, they are identical. I ran the test twice just to make sure I wasn't missing anything, but there is definitely no difference in the register dumps between the working and non-working configuration.
Comment 18 Hugh Eaves 2008-12-01 07:40:55 UTC
For what it's worth, I just ran the 2.5.0 version of the register dumper which seems to dump a few more registers than the 2.4.0 version of the tool included with Ubuntu. However, the dumps were still identical.
Comment 19 Michael Fu 2008-12-03 01:34:03 UTC
Hugh, would you please help to attach the vbios bin as well? you can get it via;

# cd /sys/devices/pci0000\:00/0000\:00\:02.0/
# echo 1 > rom
# cat rom > /tmp/rom.bin
# echo 0 > rom

please attach the rom.bin to here.

BTW, bug# 16702 comment# 28 mentioned a "problem" that if using VGA, the integrated LVDS will be disabled automatically.. Do you have this issue?
Comment 20 Hugh Eaves 2008-12-03 04:56:10 UTC
Created attachment 20760 [details]
VBIOS rom dump
Comment 21 Hugh Eaves 2008-12-03 05:06:30 UTC
In regards to  bug# 16702 comment# 28, I don't have the non-working LVDS problem with the 2.4.x driver (my current default). However, it looks like it worked for him also with 2.4.x until he upgraded to the 2.5.x driver series. (bug# 16702 comment# 16) I do have the same dim backlight issue using 2.4.x that he has.





Comment 22 Vincenzo Ciancia 2008-12-09 09:44:58 UTC
Created attachment 20958 [details]
rom dump
Comment 23 Vincenzo Ciancia 2008-12-09 09:46:16 UTC
Where should I put ModeDebug? And in particular if my xorg.conf file is completely empty as newer xorg (I am testing ubuntu jaunty) are suppsed to autodetect everything?

Attaching my rom dump.
Comment 24 Julien Cristau 2009-01-03 03:49:35 UTC
> --- Comment #23 from Vincenzo Ciancia <vincenzo_ml@yahoo.it>  2008-12-09 09:46:16 PST ---
> Where should I put ModeDebug?

Section "Device"
        Identifier "my device"
        Option  "ModeDebug"
EndSection

should work.
Comment 25 Vincenzo Ciancia 2009-01-03 06:58:23 UTC
Sorry I didn't notice I was following up on two different bug reports! I created some attachments using modedebug on this one:

http://bugs.freedesktop.org/show_bug.cgi?id=16702

If you need additional information just let me know.

Comment 26 MaLing 2009-01-03 19:48:44 UTC
hi Hugh 

Could you use the latest version Xorg and intel driver from git master tree? 
Because I use HP laptop connected with HDMI and VGA display, they can't simultaneously work as you know, but the reason is like from transfer between both displays. After "command xrandr --output HDMI-1 --auto", it always shows xrandr: cannot find crtc for output HDMI-1(VGA).

Thanks
Ma Ling
Comment 27 MaLing 2009-01-03 22:14:59 UTC
hi Hugh

Could you try the below command on your machine to check the problem ?
xrandr  --output HDMI-1 --off
xrandr  --output VGA --auto
I'm not sure our problem is the same,
at least that on my HP laptop disappear.

thanks
Ma Ling
Comment 28 MaLing 2009-01-05 00:39:11 UTC
(In reply to comment #27)
> hi Hugh
> Could you try the below command on your machine to check the problem ?
> xrandr  --output HDMI-1 --off
> xrandr  --output VGA --auto
> I'm not sure our problem is the same,
> at least that on my HP laptop disappear.
> thanks
> Ma Ling

hi Hugh,

sorry please do as follow.

$ xrandr  --output TMDS-1 --off
$ xrandr  --output VGA --auto

thanks
Ma Ling
Comment 29 Hugh Eaves 2009-01-05 07:15:16 UTC
Ma Ling, 

Using xrandr to turn on the VGA output and turn off TMDS-1 works fine, but only if the TMDS-1 output was disconnected at boot time.
Comment 30 MaLing 2009-01-07 00:27:16 UTC
hi Hugh
Could you tell me how you chieve dump register file on comment #15?

I think it is like that:

boot sysetem only with VGA, then plug DVI, at last start Xorg and dump the register file , it is right ?

Thanks
Ma Ling
Comment 31 Hugh Eaves 2009-01-07 13:30:58 UTC
Ma Ling, that is correct.  I had to manually enable the output using xrandr after stating Xorg.
Comment 32 MaLing 2009-01-08 07:33:38 UTC
hi Hugh,
under comment #16 environment( boot with both monitors attached),please try the following command. 
1 $xrandr --output LVDS --off
2 $xrandr --output VGA --off
3 $xrandr --output VGA --auto
then paste the dump register file.

Thanks
Ma Ling

Comment 33 MaLing 2009-01-11 18:28:29 UTC
Ping Hugh ~
Comment 34 Hugh Eaves 2009-01-12 13:23:13 UTC
Created attachment 21906 [details]
Register dump with both monitors attached, TMDS-1 turned off, VGA set  auto but not working
Comment 35 Hugh Eaves 2009-01-12 13:25:16 UTC
I've attached the registry dump. Instead of:

1 $xrandr --output LVDS --off
2 $xrandr --output VGA --off
3 $xrandr --output VGA --auto

I did:

1 $xrandr --output TMDS-1 --off
2 $xrandr --output VGA --off
3 $xrandr --output VGA --auto

As my LVDS display was not active (crtc for LVDS not found when executing command)

As mentioned, because I booted with both monitors attached, my VGA output was out of range when I did xrandr --output VGA --auto.
Comment 36 Hugh Eaves 2009-06-18 12:30:14 UTC
Looks like it's getting close to the one year anniversary of this bug. :)

Just wanted to make a comment that I'm now testing with Ubuntu 9.10 alpha 2, 64bit and am still seeing this bug with the 2.7.99 driver on the same hardware from the original bug.
Comment 37 Jesse Barnes 2010-07-15 10:34:57 UTC
Sorry about the neglect, Yakui isn't working on these bugs anymore.  Does this issue still exist?
Comment 38 Chris Wilson 2010-07-18 06:20:30 UTC
Hmm, both pipes programmed to exactly the same mode (with one disabled). Doesn't sound right for VGA/LVDS.

Hugh, if the problem does persist can you upload a fresh intel_reg_dumper along with the xrandr output. Thanks.
Comment 39 Chris Wilson 2010-07-24 03:36:51 UTC
And a dmesg with drm.debug=0x4 would be useful (thinking about potential FIFO underruns)
Comment 40 Chris Wilson 2011-03-08 07:42:48 UTC
I think the underlying cause might have been a shared DDC line and the selection of the wrong mode based on using the wrong EDID. If that is the case, this bug has been fixed.

However, the bug has gone stale, so I can just assume it now works.


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.