You are not logged in.

#1 2021-12-04 23:04:20

Overloader
Member
Registered: 2021-12-04
Posts: 10

xrandr: Configure crtc 0 failed [Solved]

So, I got a new install of vanilla arch, I installed the nouveau drivers, xorg and gnome. essentially it works... But ony on a resolution of 1024x768. I know my laptop display is 1920x1080 (my previous ubuntu installation ran on that) so I wanted to use xrandr to ad that resolution

ArcHP% cvt 1280 720
# 1280x720 59.86 Hz (CVT 0.92M9) hsync: 44.77 kHz; pclk: 74.50 MHz
Modeline "1280x720_60.00"   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync
ArcHP% xrandr --newmode "1280x720_60.00"   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync
xrandr: Failed to get size of gamma for output default
ArcHP% xrandr --addmode default "1280x720_60.00"
xrandr: Failed to get size of gamma for output default
ArcHP% xrandr --output default --mode 1280x720_60.00
xrandr: Failed to get size of gamma for output default
xrandr: Configure crtc 0 failed

So I've looked up the "crtc 0 failed" thing apparantly im supposed to run

 xrandr --verbose 

to get my crtc number. Heres my

output.xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 1024 x 768, maximum 1920 x 1080
default connected primary 1024x768+0+0 (0x523) normal (normal) 0mm x 0mm
	Identifier: 0x522
	Timestamp:  1945218
	Subpixel:   unknown
	Clones:    
	CRTC:       0
	CRTCs:      0
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	_MUTTER_PRESENTATION_OUTPUT: 0 
	non-desktop: 0 
		supported: 0, 1
  1024x768 (0x523)  0.000MHz *current
        h: width  1024 start    0 end    0 total 1024 skew    0 clock   0.00KHz
        v: height  768 start    0 end    0 total  768           clock   0.00Hz
  800x600 (0x524)  0.000MHz
        h: width   800 start    0 end    0 total  800 skew    0 clock   0.00KHz
        v: height  600 start    0 end    0 total  600           clock   0.00Hz
  640x480 (0x525)  0.000MHz
        h: width   640 start    0 end    0 total  640 skew    0 clock   0.00KHz
        v: height  480 start    0 end    0 total  480           clock   0.00Hz
  1280x720_60.00 (0x52c) 74.500MHz -HSync +VSync
        h: width  1280 start 1344 end 1472 total 1664 skew    0 clock  44.77KHz
        v: height  720 start  723 end  728 total  748           clock  59.86Hz
  1920x1080 (0x530) 173.000MHz -HSync +VSync
        h: width  1920 start 2048 end 2248 total 2576 skew    0 clock  67.16KHz
        v: height 1080 start 1083 end 1088 total 1120           clock  59.96Hz

The 1280x720 and the 1920x1080 are modes i tried to add
So from what I can see my crtc number is 0. Next thing that was suggested was to do

 xrandr --output CRT1 --crtc CRT1 --brightness 0.7 

Well, I still get the same error

 ArcHP% xrandr --output default --crtc 0 --brightness 0.7 
xrandr: Gamma size is 0.
ArcHP% xrandr --output default --mode 1920x1080  
xrandr: Failed to get size of gamma for output default
xrandr: Configure crtc 0 failed

I honestly have no idea what the problem could be, thats wy im here, cause im still a noob... anyways, heres the Xorg log http://ix.io/3H22

Last edited by Overloader (2021-12-06 08:34:32)

Offline

#2 2021-12-04 23:16:26

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: xrandr: Configure crtc 0 failed [Solved]

Overloader wrote:

heres the Xorg log

That shows the VESA drivers are being used. Have you installed the linux-firmware package?

Offline

#3 2021-12-04 23:27:05

Overloader
Member
Registered: 2021-12-04
Posts: 10

Re: xrandr: Configure crtc 0 failed [Solved]

I've installed linux-firmware with pacstrap like its shown in the installation guide

Offline

#4 2021-12-04 23:33:09

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: xrandr: Configure crtc 0 failed [Solved]

What is your graphics hardware? Are you sure it's supported by the nouveau drivers?

Have you tried an early KMS start?

Offline

#5 2021-12-04 23:39:00

Overloader
Member
Registered: 2021-12-04
Posts: 10

Re: xrandr: Configure crtc 0 failed [Solved]

Head_on_a_Stick wrote:

What is your graphics hardware?

NVIDIA Quadro K610M according to neofetch

Head_on_a_Stick wrote:

Are you sure it's supported by the nouveau drivers?

Not entirely sure, but I know its supported by the proprietary drivers (since it worked with those on my ubuntu install I had before) but when I tried those on this install i got the same error

Head_on_a_Stick wrote:

Have you tried an early KMS start?

Nope, will try if that helps

Offline

#6 2021-12-04 23:47:46

Overloader
Member
Registered: 2021-12-04
Posts: 10

Re: xrandr: Configure crtc 0 failed [Solved]

Overloader wrote:

Nope, will try if that helps

It didnt. Still get the same error. But something was diferent this time: at the addmode command the screen flashed

Offline

#7 2021-12-04 23:50:40

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: xrandr: Configure crtc 0 failed [Solved]

Overloader wrote:

according to neofetch

No disrespect intended to Dylan but I think we can do better than that:

lspci -knn | grep -iA3 'vga\|3d\|display'

Offline

#8 2021-12-04 23:54:54

Overloader
Member
Registered: 2021-12-04
Posts: 10

Re: xrandr: Configure crtc 0 failed [Solved]

Head_on_a_Stick wrote:
Overloader wrote:

according to neofetch

No disrespect intended to Dylan but I think we can do better than that:

lspci -knn | grep -iA3 'vga\|3d\|display'
ArcHP% lspci -knn | grep -iA3 'vga\|3d\|display'
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208GLM [Quadro K610M] [10de:12b9] (rev a1)
	DeviceName: 0
	Subsystem: Hewlett-Packard Company Device [103c:2254]
	Kernel modules: nouveau
--
3d:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev 6b)
	Subsystem: Intel Corporation Dual Band Wireless-N 7260 [8086:c060]
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi

Offline

#9 2021-12-05 00:04:18

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: xrandr: Configure crtc 0 failed [Solved]

So the nouveau kernel module isn't loaded. See https://wiki.archlinux.org/title/Nouveau#Loading for the requirements (and also check the feature matrix linked earlier on that page).

Offline

#10 2021-12-05 07:50:03

seth
Member
Registered: 2012-09-03
Posts: 51,299

Re: xrandr: Configure crtc 0 failed [Solved]

pacman -Qs nvidia

https://www.nvidia.com/Download/index.aspx?lang=en-us lists 415xx and 418xx as latest drivers supporting that chip - if any newer driver is installed, it won't load but blacklist the nouveau module.

Offline

#11 2021-12-05 10:28:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,743

Re: xrandr: Configure crtc 0 failed [Solved]

This feels like a weird version to stop at, would not be the first time the website had a bug here, I'd assume this is a Kepler and try 470xx in the AUR.

Offline

#12 2021-12-06 07:55:53

Overloader
Member
Registered: 2021-12-04
Posts: 10

Re: xrandr: Configure crtc 0 failed [Solved]

Sorry, was busy yesterday

Head_on_a_Stick wrote:

So the nouveau kernel module isn't loaded. See https://wiki.archlinux.org/title/Nouveau#Loading for the requirements (and also check the feature matrix linked earlier on that page).

The requirements are met. I'll look into the feature matrix

seth wrote:
pacman -Qs nvidia
 ArcHP% pacman -Qs nvidia
local/egl-wayland 2:1.1.9+r3+g582b2d3-1
    EGLStream-based Wayland external platform
local/libvdpau 1.4-1
    Nvidia VDPAU library
local/nvidia-utils 495.44-6
    NVIDIA drivers utilities
local/xf86-video-nouveau 1.0.17-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards
V1del wrote:

I'd assume this is a Kepler and try 470xx in the AUR.

So I should install that one?

Offline

#13 2021-12-06 08:01:14

seth
Member
Registered: 2012-09-03
Posts: 51,299

Re: xrandr: Configure crtc 0 failed [Solved]

You can try. You'll also have to replace nvidia-utils w/ the matching version.
If you want to run on nouveau, remove nvidia-utils altogether.

Offline

#14 2021-12-06 08:12:52

Overloader
Member
Registered: 2021-12-04
Posts: 10

Re: xrandr: Configure crtc 0 failed [Solved]

seth wrote:

You can try. You'll also have to replace nvidia-utils w/ the matching version.
If you want to run on nouveau, remove nvidia-utils altogether.

I get some errors about missing kernal headers

ArcHP% paru -S nvidia-470xx-dkms   
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

Repo (2) eglexternalplatform-1.1-2  egl-wayland-2:1.1.9+r3+g582b2d3-1
Aur (1) nvidia-470xx-utils-470.86-3 (nvidia-470xx-utils nvidia-470xx-dkms)

:: Proceed to review? [Y/n]: 

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
 nothing new to review
resolving dependencies...
looking for conflicting packages...

Packages (2) egl-wayland-2:1.1.9+r3+g582b2d3-1  eglexternalplatform-1.1-2

Total Installed Size:  0.10 MiB

:: Proceed with installation? [Y/n] 
(2/2) checking keys in keyring                     [######################] 100%
(2/2) checking package integrity                   [######################] 100%
(2/2) loading package files                        [######################] 100%
(2/2) checking for file conflicts                  [######################] 100%
(2/2) checking available disk space                [######################] 100%
:: Processing package changes...
(1/2) installing eglexternalplatform               [######################] 100%
(2/2) installing egl-wayland                       [######################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
fetching devel info...
==> Making package: nvidia-470xx-utils 470.86-3 (Mon 06 Dec 2021 09:06:32 AM CET)
==> Retrieving sources...
  -> Found nvidia-drm-outputclass.conf
  -> Found nvidia-470xx-utils.sysusers
  -> Found nvidia-470xx.rules
  -> Found NVIDIA-Linux-x86_64-470.86.run
==> Validating source files with sha512sums...
    nvidia-drm-outputclass.conf ... Passed
    nvidia-470xx-utils.sysusers ... Passed
    nvidia-470xx.rules ... Passed
    NVIDIA-Linux-x86_64-470.86.run ... Passed
==> Making package: nvidia-470xx-utils 470.86-3 (Mon 06 Dec 2021 09:06:34 AM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found nvidia-drm-outputclass.conf
  -> Found nvidia-470xx-utils.sysusers
  -> Found nvidia-470xx.rules
  -> Found NVIDIA-Linux-x86_64-470.86.run
==> Validating source files with sha512sums...
    nvidia-drm-outputclass.conf ... Passed
    nvidia-470xx-utils.sysusers ... Passed
    nvidia-470xx.rules ... Passed
    NVIDIA-Linux-x86_64-470.86.run ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
Creating directory NVIDIA-Linux-x86_64-470.86
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 470.86..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
==> Sources are ready.
nvidia-470xx-utils-470.86-3 (nvidia-470xx-utils nvidia-470xx-dkms): parsing pkg list...
:: nvidia-470xx-utils-470.86-3 is up to date -- skipping build
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (2) nvidia-470xx-dkms-470.86-3  nvidia-470xx-utils-470.86-3

Total Installed Size:  468.97 MiB

:: Proceed with installation? [Y/n] 
(2/2) checking keys in keyring                     [######################] 100%
(2/2) checking package integrity                   [######################] 100%
(2/2) loading package files                        [######################] 100%
(2/2) checking for file conflicts                  [######################] 100%
(2/2) checking available disk space                [######################] 100%
:: Processing package changes...
(1/2) installing nvidia-470xx-utils                [######################] 100%
If you run into trouble with CUDA not being available, run nvidia-modprobe first.
Optional dependencies for nvidia-470xx-utils
    nvidia-470xx-settings: configuration tool
    xorg-server-devel: nvidia-xconfig [installed]
    opencl-nvidia-470xx: OpenCL support
(2/2) installing nvidia-470xx-dkms                 [######################] 100%
:: Running post-transaction hooks...
(1/5) Creating system user accounts...
(2/5) Reloading system manager configuration...
(3/5) Reloading device manager configuration...
(4/5) Arming ConditionNeedsUpdate...
(5/5) Install DKMS modules
==> ERROR: Missing lib64 kernel headers for module nvidia/470.86.
==> ERROR: Missing var kernel headers for module nvidia/470.86.
==> ERROR: Missing sbin kernel headers for module nvidia/470.86.
==> ERROR: Missing home kernel headers for module nvidia/470.86.
==> ERROR: Missing srv kernel headers for module nvidia/470.86.
==> ERROR: Missing usr kernel headers for module nvidia/470.86.
==> ERROR: Missing run kernel headers for module nvidia/470.86.
==> ERROR: Missing tmp kernel headers for module nvidia/470.86.
==> ERROR: Missing lost+found kernel headers for module nvidia/470.86.
==> ERROR: Missing sys kernel headers for module nvidia/470.86.
==> ERROR: Missing dev kernel headers for module nvidia/470.86.
==> ERROR: Missing proc kernel headers for module nvidia/470.86.
==> ERROR: Missing etc kernel headers for module nvidia/470.86.
==> ERROR: Missing opt kernel headers for module nvidia/470.86.
==> ERROR: Missing boot kernel headers for module nvidia/470.86.
==> ERROR: Missing bin kernel headers for module nvidia/470.86.
==> ERROR: Missing mnt kernel headers for module nvidia/470.86.
==> ERROR: Missing root kernel headers for module nvidia/470.86.
==> ERROR: Missing lib kernel headers for module nvidia/470.86.

Offline

#15 2021-12-06 08:14:02

seth
Member
Registered: 2012-09-03
Posts: 51,299

Offline

#16 2021-12-06 08:34:08

Overloader
Member
Registered: 2021-12-04
Posts: 10

Re: xrandr: Configure crtc 0 failed [Solved]

Nice, that driver worked! on reboot it was automatically in 1920x1080!

Offline

#17 2021-12-12 20:38:53

daxofdeath
Member
Registered: 2014-03-22
Posts: 11

Re: xrandr: Configure crtc 0 failed [Solved]

Overloader wrote:

Nice, that driver worked! on reboot it was automatically in 1920x1080!

Can you outline what you did to get it working? I'm having the same problem after running a system update. Never had a problem before so I'm a little confused why I suddenly had to start using nvidia packages from the AUR when I never did that before.

I'm at the point where you were when you get all the messages "ERROR: Missing * kernel headers for module nvidia/470.86"

Offline

#18 2021-12-12 20:41:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,743

Re: xrandr: Configure crtc 0 failed [Solved]

You need to install the header package for the kernel you are using linux-headers for the normal linux package, linux-zen-headers for zen, linux-lts-headers for LTS...

Offline

#19 2021-12-13 06:05:36

Overloader
Member
Registered: 2021-12-04
Posts: 10

Re: xrandr: Configure crtc 0 failed [Solved]

daxofdeath wrote:

Can you outline what you did to get it working?

From what I remember I uninstalled the original driver, installed the one from the aur and installed the header package like videl is saying

Offline

Board footer

Powered by FluxBB