You are not logged in.

#1 2022-03-19 14:11:23

fabricio7p
Member
Registered: 2020-12-27
Posts: 7

[SOLVED] xrandr: Configure crtc 0 failed when setting refresh rate

I have a Alienware m15 R6 with RTX 3070. The builtin monitor is a 1080p 165hz panel.

The native refresh rate is not detected what so ever. Not from GNOME Settings, neither from xrandr output

xrandr --verbose

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080     60.01*+  60.01    59.97    59.96    59.93  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
   1920x1080_165.00 164.83  
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 disconnected (normal left inverted right x axis y axis)

Went through the steps of manually adding a modeline as you can see on the last modeline showed above.

When trying to set it:

alien-laptop% xrandr --output eDP-1 --mode 1920x1080_165.00 --verbose
crtc 0: 1920x1080_165.00 164.83 +0+0 "eDP-1"
xrandr: Configure crtc 0 failed
crtc 0: disable
crtc 1: disable
crtc 2: disable
crtc 3: disable
crtc 4: disable
crtc 5: disable
crtc 6: disable
crtc 7: disable
screen 0: revert
crtc 0: revert
crtc 1: revert
crtc 2: revert
crtc 3: revert
crtc 4: revert
crtc 5: revert
crtc 6: revert
crtc 7: revert

Relevant `journalctl -xe` output

Mar 19 11:07:36 alien-laptop /usr/lib/gdm-x-session[1038]: (EE) modeset(0): failed to set mode: No such file or directory
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (II) modeset(0): EDID vendor "LGD", prod id 1662
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (II) modeset(0): Using hsync ranges from config file
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (II) modeset(0): Using vrefresh ranges from config file
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (II) modeset(0): Printing DDC gathered Modelines:
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (II) modeset(0): Modeline "1920x1080"x0.0  145.92  1920 1968 2000 2080  1080 1083 1088 1169 +hsync -vsync (70.2 kHz eP)
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (II) modeset(0): EDID vendor "LGD", prod id 1662
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (II) modeset(0): Using hsync ranges from config file
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (II) modeset(0): Using vrefresh ranges from config file
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (II) modeset(0): Printing DDC gathered Modelines:
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (II) modeset(0): Modeline "1920x1080"x0.0  145.92  1920 1968 2000 2080  1080 1083 1088 1169 +hsync -vsync (70.2 kHz eP)
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-0: disconnected
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-0: 2670.0 MHz maximum pixel clock
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0):
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-1: disconnected
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0):
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-2: disconnected
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-2: 2670.0 MHz maximum pixel clock
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0):
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-3: disconnected
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0):
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-4: disconnected
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-4: Internal TMDS
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
Mar 19 11:07:37 alien-laptop /usr/lib/gdm-x-session[1038]: (--) NVIDIA(GPU-0):
Mar 19 11:07:37 alien-laptop gnome-shell[1139]: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed >
                                                  _loadFile@resource:///org/gnome/shell/ui/background.js:488:20
                                                  _load@resource:///org/gnome/shell/ui/background.js:518:14
                                                  _init@resource:///org/gnome/shell/ui/background.js:278:14
                                                  Background@resource:///org/gnome/shell/ui/background.js:234:4
                                                  getBackground@resource:///org/gnome/shell/ui/background.js:609:30
                                                  _createBackgroundActor@resource:///org/gnome/shell/ui/background.js:780:49
                                                  BackgroundManager@resource:///org/gnome/shell/ui/background.js:706:37
                                                  _createBackgroundManager@resource:///org/gnome/shell/ui/layout.js:461:27
                                                  _updateBackgrounds@resource:///org/gnome/shell/ui/layout.js:507:34
                                                  _monitorsChanged@resource:///org/gnome/shell/ui/layout.js:571:14

Output of `xrandr --props | edid-decode`

alien-laptop% xrandr --props | edid-decode
edid-decode (hex):

00 ff ff ff ff ff ff 00 30 e4 7e 06 00 00 00 00
00 1e 01 04 a5 22 13 78 07 a8 95 a6 54 4b 9b 26
0f 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 00 39 80 a0 70 38 59 40 30 20
35 00 58 c2 10 00 00 1a 00 00 00 fd 00 3c a5 c1
c1 29 01 0a 20 20 20 20 20 20 00 00 00 fe 00 54
59 39 30 56 81 31 35 36 57 46 47 0a 00 00 00 00
00 02 41 3f 9e 00 11 00 00 0f 01 0a 20 20 01 34

70 13 79 00 00 03 01 14 b8 9c 00 84 7f 07 9f 00
2f 80 1f 00 37 04 58 00 02 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 f8 90

----------------

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.4
  Vendor & Product Identification:
    Manufacturer: LGD
    Model: 1662
    Made in: 2020
  Basic Display Parameters & Features:
    Digital display
    Bits per primary color channel: 8
    DisplayPort interface
    Maximum image size: 34 cm x 19 cm
    Gamma: 2.20
    Supported color formats: RGB 4:4:4
    Default (sRGB) color space is primary color space
    First detailed timing includes the native pixel format and preferred refresh rate
    Display is continuous frequency
  Color Characteristics:
    Red  : 0.6503, 0.3300
    Green: 0.2949, 0.6054
    Blue : 0.1503, 0.0595
    White: 0.3134, 0.3291
  Established Timings I & II: none
  Standard Timings: none
  Detailed Timing Descriptors:
    DTD 1:  1920x1080   60.011844 Hz  16:9     70.154 kHz    145.920000 MHz (344 mm x 194 mm)
                 Hfront   48 Hsync  32 Hback   80 Hpol P
                 Vfront    3 Vsync   5 Vback   81 Vpol N
    Display Range Limits:
      Monitor ranges (Bare Limits): 60-165 Hz V, 193-193 kHz H, max dotclock 410 MHz
    Alphanumeric Data String: 'TY90V'
    Manufacturer-Specified Display Descriptor (0x00): 00 00 00 02 41 3f 9e 00 11 00 00 0f 01 0a 20 20 '....A?........  '
  Extension blocks: 1
Checksum: 0x34

----------------

Block 1, DisplayID Extension Block:
  Version: 1.3
  Extension Count: 0
  Display Product Type: Extension Section
  Video Timing Modes Type 1 - Detailed Timings Data Block:
    DTD:  1920x1080  165.003784 Hz  16:9    192.889 kHz    401.210000 MHz (aspect 16:9, no 3D stereo, preferred)
               Hfront   48 Hsync  32 Hback   80 Hpol P
               Vfront    3 Vsync   5 Vback   81 Vpol N
  Checksum: 0xf8
Checksum: 0x90

Last edited by fabricio7p (2022-03-20 13:47:09)

Offline

#2 2022-03-19 14:21:53

seth
Member
Registered: 2012-09-03
Posts: 58,859

Re: [SOLVED] xrandr: Configure crtc 0 failed when setting refresh rate

This recently shows up a lot, so I'm not sure this will help but since the naive 1080p/165Hz  is at 525.00 MHz and the EDID offers a modeline at 401.21 MHz you could try

cvt12 1920 1080 165 -b
# 1920x1080 @ 165.000 Hz Reduced Blank (CVT) field rate 165.000 Hz; hsync: 192.885 kHz; pclk: 385.77 MHz
Modeline "1920x1080_165.00_rb2"  385.77  1920 1928 1960 2000  1080 1155 1163 1169 +hsync -vsync

which is well below the advertised pclk and matches hsync and polarity.

Offline

#3 2022-03-19 15:08:16

fabricio7p
Member
Registered: 2020-12-27
Posts: 7

Re: [SOLVED] xrandr: Configure crtc 0 failed when setting refresh rate

Unfortunately same problem.
I found a Arch Wiki page about my device that states "no workaround"

https://wiki.archlinux.org/title/Alienware_M15_R6

Is that something that will eventually be fixed in the kernel? Whose fault is this?

Offline

#4 2022-03-19 15:16:44

seth
Member
Registered: 2012-09-03
Posts: 58,859

Re: [SOLVED] xrandr: Configure crtc 0 failed when setting refresh rate

nvidia or alienware (driver bug resp. modified GPU requiring specific driver for the device - which alienware will only provide for windows)
Do you have a 160Hz mode by default?

https://wiki.archlinux.org/title/Alienw … resh_Rates seems different? The output configured at 165Hz but glxgears capped on 60fps on gnome is/was a gnome thing, https://gitlab.gnome.org/GNOME/mutter/-/issues/1430

Offline

#5 2022-03-19 17:18:16

fabricio7p
Member
Registered: 2020-12-27
Posts: 7

Re: [SOLVED] xrandr: Configure crtc 0 failed when setting refresh rate

I posted the output for `xrandr --verbose` above. Apparently no default 165hz mode, only 1080p 60hz.
My output is indeed different from the Wiki article.

Its a fresh install of Arch with GNOME, nvidia, linux-firmware and linux-headers packages installed

Last edited by fabricio7p (2022-03-19 17:19:25)

Offline

#6 2022-03-19 21:55:06

seth
Member
Registered: 2012-09-03
Posts: 58,859

Re: [SOLVED] xrandr: Configure crtc 0 failed when setting refresh rate

And actually seems an optimus system - so nvidia should be off the hook…
Can you please post the entire Xorg log, https://wiki.archlinux.org/title/Xorg#General

You could also try the xf86-video-intel driver - or alternatively, if possible, disable the intel chip in the BIOS.

Offline

#7 2022-03-20 12:57:45

fabricio7p
Member
Registered: 2020-12-27
Posts: 7

Re: [SOLVED] xrandr: Configure crtc 0 failed when setting refresh rate

Hey it actually worked! I entered the BIOS and disabled switchable graphics in the BIOS video settings, which means disabling Intel UHD.
Logged in to Linux and the 165hz mode was fully detected, just went to GNOME settings and switched.

Offline

#8 2022-03-20 13:36:36

seth
Member
Registered: 2012-09-03
Posts: 58,859

Re: [SOLVED] xrandr: Configure crtc 0 failed when setting refresh rate

So the blame is with intel ;-)
I'm not sure though whether the IGP is actually capable of producing that signal (equivalent to 5280x2970 @60Hz)

Check an old journal or the notebooks manual for the actual IGP chip.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB