0

When using xrandr on my device to select a resolution I kept getting an error stating " configure crtc 0 failed: "(using Ubuntu 16.04)

(shortened) xrandr output after selecting display and running$ xrandr

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DP1 disconnected (normal left inverted right x axis y axis)
DP2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 1439mm x 809mm
   1920x1080     60.00*+  50.00    59.94    30.00    24.00    29.97    23.98  
   4096x2160     24.00    23.98  
   3840x2160     30.00    25.00    24.00    29.97    23.98  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88   
   1280x720      60.00    50.00    30.00    59.94    29.97    24.00    23.98  
   1024x768      60.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
HDMI1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)  

Code I used to select a new resolution

$ xrandr --output DP2 --mode 3840x2160

when that gave me the error I also added the frame rate by trying both

$ xrandr  --output DP2 --mode 3840x2160 30

AND

$ xrandr --output DP2 --mode 3840x2160_30

(because I wasnt sure of the proper format to add it) Both gave me the error " configure crtc 0 failed: "

This was done on the device itself. For ergonomical reasons I went back to my desk and used SSH to access the device.

I then used a custom resolution (that was the same as above) and tried to use that instead.

steps I used for custom resolution (minus long outputs)

$ cvt 3840x2160

$ xrandr --newmode "3840x2160 30.00" 338.75 3840 4080 4488 5136 2160 2163 2168 2200 -hsync +vsync

$ xrandr --addmode DP2 3840x2160_30.00

$ xrandr --output DP2 --mode 3840x2160_30.00

That seemed to work on my device. When my device restarts I need to repeat the process again though (reverts to 1080p when I need it 4k). I stuck $ xrandr --output DP2 --mode 3840x2160_30.00 into a .sh file and now if I run it from my laptop (using SSH) it changes my screens resolution BUT if I try and run the .sh file from my device itself I get the " configure crtc 0 failed: " error

3
  • Does the graphics card on your device support this resolution? Aug 23, 2017 at 17:12
  • Yes it does. it will adjust to the resolution if I ssh into the application and do it, but not if I do it on the computer running the application. Aug 23, 2017 at 17:51
  • I have the answer to my question. Ill update it with a solution once I solve it. Aug 24, 2017 at 14:21

1 Answer 1

0

"crtc 0 failed" error is happening when I run my xrandr command (on ubuntu server) because the server terminal does not connect to a display. BUT when I ssh (using ubuntu 16) into it I am using a graphical interface there for it connects to a display.

To solve this you must write a .conf file in your /usr/share/X11/xorg.conf.d Directory

Here is an example of mine. I also set my resolution to 4k

Section "Monitor"
   Identifier "Monitor0"
   Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
   Modeline "3840x2160_30.0" 297.00 3840 4016 4104 4400 2160 2168 2178 2250 +hsync +vsync
   Modeline "4096x2160_24.0" 297.00 4096 5116 5204 5500 2160 2168 2178 2250 +hsync +vsync
EndSection
Section "Device"
   Identifier "Device0"
   Driver "intel"
EndSection
Section "Screen"
   Identifier "Screen0"
   Device "Device0"
   Monitor "Monitor0"
   DefaultDepth 24
   SubSection "Display"
      Depth 24
      Modes "3840x2160" "1920x1080"
   EndSubSection
EndSection

Here is where I found my information on how to create it https://wiki.gentoo.org/wiki/Xorg/Multiple_monitors

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .