Bug 12536

Summary: xrandr problems on intel 855GME
Product: xorg Reporter: Francois-Rene Rideau <fahree>
Component: Driver/intelAssignee: Eric Anholt <eric>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: fahree, keithp
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 13027    
Attachments:
Description Flags
output of xrandr none

Description Francois-Rene Rideau 2007-09-23 15:28:54 UTC
I have a Libretto U105 with an Intel 855GME builtin display.
The CRT seems to be on Pipe A, Monitor VGA.
The LFP seems to be on Pipe B, Monitor LVDS.
The LFP is connected to a 1280x768 builtin LCD display, but it is broken (and repair is as expensive as a new device).
The CRT allegedly can reach 1600x1200, and so it can under Windows.

Because my LCD is broken, I am trying to use the machine as a desktop with an external display. However, I am failing to configure it for more than 1280x768. I am using driver intel 2.0.0, and even though I try to disable the LVDS, the VGA seems to cap its resolution at 1280x768.

I tried to enable both the LVDS and the VGA and then use xrandr, but xrandr seems to have no effect whatsoever after startup.

When I have option "disabled" "true" in Section Monitor Identifier "LVDS", it correctly turns off the LCD, but the VGA is still capped, and xrandr becomes confused, complaining that "xrandr: Output LVDS is not disconnected but has no modes" whenever I try to run it.

Is there a way to connect to an external monitor with resolution 1600x1200? Can xrandr have better error messages as to why it fails? Can it be made to support setups where one output is disabled?

xdpyinfo is utterly confused in the new xrandr world. What is the correct command to use to get resolution information? xrandr? It ought to be fixed then.

Thanks a lot for your code. And thanks for any feedback.
Comment 1 Francois-Rene Rideau 2007-09-23 16:37:44 UTC
Apparently, I can't pick the resolution dynamically with xrandr, but using Option "PreferredMonde" "1600x1200" in Section Monitor Identifier "VGA" will do the Right Thing statically.

The inability of dynamic resolution resizing means that full-screen gl2 is too slow to play videos whereas xv is unavailable -- but I can survive with another X server on another vt with a smaller resolution to play DVDs.

Changing the name of the bug to explain that the (remaining) issue is with dynamic xrandr, not static configuration.

NB: xwininfo on a full-screen window was the quickest way I found to get the approximate screen resolution, though I'm sure there's better.

Thanks a lot for your code!
Comment 2 Gordon Jin 2007-09-23 18:47:20 UTC
>> I can't pick the resolution dynamically with xrandr
Could you post your xrandr output? If it contains 1600x1200, then what's the output when you set to that mode?
Comment 3 Francois-Rene Rideau 2007-09-23 22:12:29 UTC
Created attachment 11705 [details]
output of xrandr

When disabling the LVDS Monitor, the full output of xranr, whatever the arguments save --help or --version is:

xrandr: Output LVDS is not disconnected but has no modes


When enabling the LVDS Monitor, xrandr has the attached output, which looks perfectly fine. However, xrandr --output vga --mode 1400x1050 or similar has no effect.
Comment 4 Eric Anholt 2007-10-18 17:19:20 UTC
The xrandr command you're probably looking for is "xrandr --output LVDS --off --auto".  Does that do what you're looking for?

You can also statically configure what you want using the Option "Ignore" in a monitor section for your LVDS.  Option "Disable" just says "turn it off at startup", not "pretend this doesn't exist".  Default policy is to size the modes of all outputs as close as possible.
Comment 5 Jesse Barnes 2007-10-31 15:25:22 UTC
Francois, does the "ignore" option work better for you?  If so, please close this bug.
Comment 6 Francois-Rene Rideau 2007-11-01 20:49:22 UTC
OK  so if I start with the LVDS monitor enabled  then your command works  and I can turn off the ugly broken LCD and size my VGA at will. Yay  Now if I can convince KDE to do that at startup...    xrandr --output LVDS --off    xrandr --output VGA --mode 1600x1200    On the other hand  if I start with the LVDS monitor disabled with Option "Disable" "true"  then I cannot do anything useful with xrandr  as it just tells me    xrandr  Output LVDS is not disconnected but has no modes  It looks like this option does not play well with xrandr.    I tried to use Option "PreferredMode" "off" instead of in the Monitor LVDS section  to no avail. I don t remember how Option "Enable" "false" failed but it wasn t helpful.    Finally  I tried the Option "Ignore" "true" as suggested above  and it worked for me. Thanks a whole lot   

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.