PDA

View Full Version : [ubuntu] xrandr: Configure crtc 0 failed



zmeeDB
January 19th, 2009, 05:22 AM
Hello -

I have been having troubles getting Ubuntu to recognize my screen resolutions. I have reviewed the X/Config/Resolution Guide (https://wiki.ubuntu.com/X/Config/Resolution) to no avail. Specifically, I know that my monitor can support quite a bit (per the vendor's setup guide), but, I can only get 640x480 and 320x240. The native resolution is 1680x1050 and at this setting, the setup guide indicates that the HSync should be 66.29 (kHz), VSync at 59.954 (Hz), Pixel Clock at 146.250 (MHz), and a H/V Sync Polarity of -/+. Now following the X/Config/Resolution Guide (https://wiki.ubuntu.com/X/Config/Resolution), here is what I get:


zmee@zmyyne-antec:~$ cat ~/.config/monitors.xml
<monitors version="1">
<configuration>
<clone>no</clone>
<output name="default">
<vendor>???</vendor>
<product>0x0000</product>
<serial>0x00000000</serial>
<width>1680</width>
<height>1050</height>
<rate>60</rate>
<x>0</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
</output>
</configuration>
</monitors>
zmee@zmyyne-antec:~$ rm ~/.config/monitors.xml
zmee@zmyyne-antec:~$ xrandr
Screen 0: minimum 320 x 240, current 640 x 480, maximum 640 x 480
default connected 640x480+0+0 0mm x 0mm
640x480 50.0*
320x240 51.0
zmee@zmyyne-antec:~$ gtf 1680 1050 59.954

# 1680x1050 @ 59.95 Hz (GTF) hsync: 65.17 kHz; pclk: 147.02 MHz
Modeline "1680x1050_59.95" 147.02 1680 1784 1968 2256 1050 1051 1054 1087 -HSync +Vsync

zmee@zmyyne-antec:~$ gtf 1680 1050 60

# 1680x1050 @ 60.00 Hz (GTF) hsync: 65.22 kHz; pclk: 147.14 MHz
Modeline "1680x1050_60.00" 147.14 1680 1784 1968 2256 1050 1051 1054 1087 -HSync +Vsync

zmee@zmyyne-antec:~$ cvt 1680 1050 59.954
# 1680x1050 59.85 Hz (CVT) hsync: 65.18 kHz; pclk: 146.00 MHz
Modeline "1680x1050_59.95" 146.00 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
zmee@zmyyne-antec:~$ cvt 1680 1050 60
# 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz
Modeline "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
zmee@zmyyne-antec:~$ xrandr --newmode "1680x1050_gtf" 147.02 1680 1784 1968 2256 1050 1051 1054 1087 -HSync +Vsync
zmee@zmyyne-antec:~$ xrandr --newmode "1680x1050_gtf60" 147.14 1680 1784 1968 2256 1050 1051 1054 1087 -HSync +Vsync
zmee@zmyyne-antec:~$ xrandr --newmode "1680x1050_cvt" 146.00 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
zmee@zmyyne-antec:~$ xrandr --newmode "1680x1050_cvt60" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
zmee@zmyyne-antec:~$ xrandr --addmode default "1680x1050_gtf"
zmee@zmyyne-antec:~$ xrandr --addmode default "1680x1050_gtf60"
zmee@zmyyne-antec:~$ xrandr --addmode default "1680x1050_cvt"
zmee@zmyyne-antec:~$ xrandr --addmode default "1680x1050_cvt60"
zmee@zmyyne-antec:~$ xrandr
Screen 0: minimum 320 x 240, current 640 x 480, maximum 1680 x 1050
default connected 640x480+0+0 0mm x 0mm
640x480 50.0*
320x240 51.0
1680x1050_gtf 60.0
1680x1050_gtf60 60.0
1680x1050_cvt 59.9
1680x1050_cvt60 60.0
zmee@zmyyne-antec:~$ xrandr --output default --mode "1680x1050_gtf"
xrandr: Configure crtc 0 failed
zmee@zmyyne-antec:~$ xrandr --output default --mode "1680x1050_gtf60"
xrandr: Configure crtc 0 failed
zmee@zmyyne-antec:~$ xrandr --output default --mode "1680x1050_cvt"
xrandr: Configure crtc 0 failed
zmee@zmyyne-antec:~$ xrandr --output default --mode "1680x1050_cvt60"
xrandr: Configure crtc 0 failed
zmee@zmyyne-antec:~$


Note that the cvt output @ 60 Hz matches nearly perfectly to the vendor supplied frequency ranges. So, how do I get around that crtc error?

For reference, I am running Ubuntu 8.10 for AMT64 (fresh install), I have an NVidia 9800 GTX card using the NVidia 180.22 drivers, and the monitor is a Chimei CMV 221D. My xorg.conf is as follows:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder62) Tue Jan 6 09:43:54 PST 2009

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection


On a related note, I was running 1680x1050 just fine until about a 2 weeks ago on 8.06 (same driver version). This, combined with some hard-drive issues, prompted me to perform a fresh install on a new hard-drive. Note that the issues started after an update (don't remember which one) on 8.06.

freelock
January 19th, 2009, 11:24 PM
Hi,

I'm trying to fix my wife's machine to do almost exactly the same thing. However, I'm not getting any errors, just the display telling us that that resolution is not supported.

For your issue, try substituting the display name for "default" in your --addmode lines...

I needed to add them like this:

xrandr --addmode VGA-0 1680x1050_gtf
xrandr --output VGA-0 --mode 1680x1050_gtf

We're using the open source ATI driver, with a Radeon M9000 chipset. This used to work just fine under 8.04, but it's broken in 8.10. My computer finds the right resolution on this same monitor with no manual intervention (a Radeon M9500 chipset) so it appears to be something related to the video driver not able to detect the right mode with her older card?

I tried all the modelines you listed below, as well as the ones that work from an Intel video card. I did get it working perfectly early on, but lost the actual modeline I used, and haven't been able to get it working since.

Any suggestions?

zmeeDB
January 20th, 2009, 02:14 AM
freelook -

Thanks for the idea, however, following is the output I get when I try that:


zmee@zmyyne-antec:~$ xrandr
Screen 0: minimum 320 x 240, current 640 x 480, maximum 640 x 480
default connected 640x480+0+0 0mm x 0mm
640x480 50.0*
320x240 51.0
zmee@zmyyne-antec:~$ cvt 1680 1050 60
# 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz
Modeline "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
zmee@zmyyne-antec:~$ xrandr --newmode 1680x1050 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
zmee@zmyyne-antec:~$ xrandr --addmode DVI-0 1680x1050
xrandr: cannot find output "DVI-0"
zmee@zmyyne-antec:~$ xrandr --addmode VGA-0 1680x1050
xrandr: cannot find output "VGA-0"
zmee@zmyyne-antec:~$ xrandr --addmode DVI-1 1680x1050
xrandr: cannot find output "DVI-1"
zmee@zmyyne-antec:~$ xrandr --addmode VGA-1 1680x1050
xrandr: cannot find output "VGA-1"
zmee@zmyyne-antec:~$


As a result, I am presuming that DEAFAULT is the correct output device. I did have another idea, however. When I had looked over the xorg.config file prior to posting, it was quite a bit smaller. Now that there is more there, I am going to try messing around with that; specifically the HorizSync & VertRefresh keys within the Monitor section. I will post back if I get anything...

zmeeDB
January 20th, 2009, 02:35 AM
OK - no joy. I started by initially commenting out the frequency lines and the option line. Following is the revised monitor section:


Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
# HorizSync 28.0 - 33.0
# VertRefresh 43.0 - 72.0
# Option "DPMS"
EndSection

From there, here is the new xrandr output:


zmee@zmyyne-antec:~$ xrandr
Screen 0: minimum 320 x 240, current 640 x 480, maximum 640 x 480
default connected 640x480+0+0 0mm x 0mm
640x480 50.0*
576x432 51.0
512x384 52.0
400x300 53.0 54.0 55.0
320x240 56.0
zmee@zmyyne-antec:~$ cvt 1680 1050 60
# 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz
Modeline "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
zmee@zmyyne-antec:~$ xrandr --newmode 1680x1050 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
zmee@zmyyne-antec:~$ xrandr --addmode default 1680x1050
zmee@zmyyne-antec:~$ xrandr --output default --mode 1680x1050
xrandr: Configure crtc 0 failed


However, I think I may be on the right track given that there are more modes available. As a result, I am also trying it with the following:


Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 25.0 - 85.0
VertRefresh 55.0 - 80.0
# Option "DPMS"
EndSection

And trying again:


zmee@zmyyne-antec:~$ xrandr
Screen 0: minimum 320 x 240, current 640 x 480, maximum 640 x 480
default connected 640x480+0+0 0mm x 0mm
640x480 50.0* 51.0 52.0 53.0
576x432 54.0 55.0 56.0 57.0
512x384 58.0 59.0 60.0
416x312 61.0
400x300 62.0 63.0 64.0 65.0
320x240 66.0 67.0 68.0
zmee@zmyyne-antec:~$ cvt 1680 1050 60
# 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz
Modeline "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
zmee@zmyyne-antec:~$ xrandr --newmode 1680x1050 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
zmee@zmyyne-antec:~$ xrandr --addmode default 1680x1050
zmee@zmyyne-antec:~$ xrandr --output default --mode 1680x1050
xrandr: Configure crtc 0 failed

Grrr - still the "xrandr: Configure crtc 0 failed" error (though many more frequency modes).

zmeeDB
January 20th, 2009, 03:47 AM
OK - I tried one last thing: additional updates to the xorg.conf file. Specifically, I updated the Monitor section as follows:

Section "Monitor"
Identifier "Monitor0"
VendorName "Chimei"
ModelName "CMV 221D"
# HorizSync 25.0 - 85.0
# VertRefresh 55.0 - 80.0
# Option "DPMS"
Modeline "1680x1050" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
Option "PreferredMode" "1680x1050"
EndSection

As that was not enough, I also updated the Screen section (specifically the Display subsection) as follows:

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1680x1050"
EndSubSection
EndSection

There was no change to the available resolutions as a result of these updates. Any other ideas?