You are not logged in.

#1 2024-08-09 03:48:35

afrocoder
Member
Registered: 2024-08-09
Posts: 9

Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

I'm not sure where to start asking about this or if this is a bug in the DRI with AMDGPU the error suggests that there isn't enough ram, I don't have a way to confirm if it's actually a memory issue, I have allocated 4GB of VRAM for the AMDGPU

I have a Lenovo laptop `82K2 IdeaPad Gaming 3 15ACH6`, I spoke to lenovo support and they also confirmed that this laptop does support 2560x1440@165hz, I'm not sure how to be exactly sure of this. But the PSREF does say that a resolution higher than this is supported


Supports up to 2 independent displays (native display and 1 external monitor via HDMI®)

• HDMI® supports up to 3840x2162@60Hz


I've tried most of the things I came across.

And also tried adding a newmode in xrandr

"2560x1440_165.00_rb2"  679.10  2560 2568 2600 2640  1440 1545 1553 1559 +hsync -vsync

The EDID seems to also not show the correct information

Section "Monitor"

    Identifier "R27q-30"
    
    ModelName "R27q-30"
    
    VendorName "LEN"
    
    # Monitor Manufactured week 18 of 2024
    
    # EDID version 1.3
    
    # Digital Display
    
    DisplaySize 600 340
    
    Gamma 2.20
    
    Option "DPMS" "true"
    
    Horizsync 30-220
    
    VertRefresh 48-165
    
    # Maximum pixel clock is 590MHz
    
    #Not giving standard mode: 1280x1024, 60Hz
    
    #Not giving standard mode: 1280x1024, 70Hz
    
    #Not giving standard mode: 1440x900, 60Hz
    
    #Not giving standard mode: 1600x900, 60Hz
    
    #Not giving standard mode: 1680x1050, 60Hz
    
    #Not giving standard mode: 1680x1050, 70Hz
    
    #Not giving standard mode: 1920x1080, 60Hz
    
    #Not giving standard mode: 1920x1080, 120Hz
    
    
    
    #Extension block found. Parsing...

# WARNING: I may have missed a mode (CEA mode 76)

# WARNING: I may have missed a mode (CEA mode 63)

# WARNING: I may have missed a mode (CEA mode 96)

# WARNING: I may have missed a mode (CEA mode 97)

    Modeline 	"Mode 11" +hsync -vsync
    
    Modeline 	"Mode 0" +hsync +vsync
    
    Modeline 	"Mode 1" 25.200 640 656 752 800 480 490 492 525 -hsync -vsync
    
    Modeline 	"Mode 2" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
    
    Modeline 	"Mode 3" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
    
    Modeline 	"Mode 4" 74.250 1280 1390 1420 1650 720 725 730 750 +hsync +vsync
    
    Modeline 	"Mode 5" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
    
    Modeline 	"Mode 6" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
    
    Modeline 	"Mode 7" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
    
    Modeline 	"Mode 8" 74.250 1280 1720 1760 1980 720 725 730 750 +hsync +vsync
    
    Modeline 	"Mode 9" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
    
    Modeline 	"Mode 10" 148.500 1280 1390 1430 1650 720 725 730 750 +hsync +vsync
    
    Modeline 	"Mode 12" +hsync +vsync
    
    Modeline 	"Mode 13" +hsync -vsync
    
    Option "PreferredMode" "Mode 11"

EndSection
Clock speed

cat /sys/class/drm/card\*/device/pp\_dpm\_mclk

2: 400Mhz

3: 1600Mhz \*

I'm out of ideas as to why this shows up in the xrandr logs, I have both amd and nvidia, the AMD ram is set to 4GB in the Laptop Bios. The maxium I can get working is 2560x1440@144hz

[  1306.592] (--) AMDGPU(0): HDMI max TMDS frequency 340000KHz
[  1307.265] (EE) AMDGPU(0): failed to set mode: Cannot allocate memory
[  1307.292] (EE) AMDGPU(0): drmmode_do_crtc_dpms cannot get last vblank counter
[  1345.603] (EE) AMDGPU(0): failed to set mode: Cannot allocate memory
[  1345.631] (EE) AMDGPU(0): drmmode_do_crtc_dpms cannot get last vblank counter

The weird part is I'm able to get 165Hz on the Linux boot Console, I've not done any additional configuration for this. I believe that just uses framebuffers.


Xorg logs
https://pastebin.com/DGW41wQw

Offline

#2 2024-08-09 08:36:21

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

    Display Product Serial Number: 'U533H6FG'                                                                                                                                                         
    Display Range Limits:                                                                                                                                                                             
      Monitor ranges (GTF): 48-165 Hz V, 30-220 kHz H, max dotclock 590 MHz                                                                                                                           
    Display Product Name: 'R27q-30'
…
  Detailed Timing Descriptors:
    DTD 2:  2560x1440  119.997589 Hz  16:9    182.996 kHz    497.750000 MHz (field sequential L/R, 597 mm x 336 mm)
                 Hfront   48 Hsync  32 Hback   80 Hpol P
                 Vfront    3 Vsync   5 Vback   77 Vpol N
    DTD 3:  2560x1440  143.994791 Hz  16:9    214.552 kHz    575.000000 MHz (597 mm x 336 mm)
                 Hfront   16 Hsync  64 Hback   40 Hpol P
                 Vfront    3 Vsync   5 Vback   42 Vpol P
    DTD 4:  1920x1080  164.917418 Hz  16:9    192.788 kHz    401.000000 MHz (597 mm x 336 mm)
                 Hfront   48 Hsync  32 Hback   80 Hpol P
                 Vfront    3 Vsync   5 Vback   81 Vpol N

2560x1440_165 isn't even advertised by the EDID and teh maximum dotclock is 590 MHz

[    12.177] (II) AMDGPU(0): Modeline "2560x1440"x144.0  575.00  2560 2576 2640 2680  1440 1443 1448 1490 +hsync +vsync (214.6 kHz e)

sems available?

Ftr

[    12.107] (--) PCI: (1@0:0:0) 10de:25a0:17aa:3a5d rev 161, Mem @ 0xd0000000/16777216, 0xfb00000000/4294967296, 0xfc00000000/33554432, I/O @ 0x00004000/128
[    12.107] (--) PCI:*(5@0:0:0) 1002:1638:17aa:3a5d rev 197, Mem @ 0xfc10000000/268435456, 0xfc20000000/2097152, 0xd1400000/524288, I/O @ 0x00001000/256
…
[   115.986] (EE) AMDGPU(0): drmmode_do_crtc_dpms cannot get last vblank counter
[   115.988] (II) AMDGPU(0): Allocate new frame buffer 3640x1920
[   115.988] (II) AMDGPU(0):  => pitch 14848 bytes
[   116.330] (EE) AMDGPU(0): drmmode_do_crtc_dpms cannot get last vblank counter
[   116.350] randr: falling back to unsynchronized pixmap sharing

Dual GPU system two outputs attached to the AMD one to the nvidia GPU, former on xf86-video-amdgpu, latter on modesetting (and likely nouveau?) and that condition causes the drmmode_do_crtc_dpms issues, resulting in unsynced pixmap sharing

Offline

#3 2024-08-09 12:10:30

afrocoder
Member
Registered: 2024-08-09
Posts: 9

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

Yea, I have another machine, it's a work machine I can sanitize and send the data from there too, that's a single AMD GPU and with 4GB vram I still see the same issue.  The error is the same with the memory. Also this is being served by a KVM switch which can do 4K@60 and I've tried directly connecting it to the monitor too same results.

For the Nvidia stuff, it's using nvidia drivers, my screen runs of the integrated driver, nouveau etc is  blacklisted, I was using optimus manager but I added a displaylink device and that doesn't play well with optimus so I had to switch to prime-run for running the programs.

resulting in unsynced pixmap sharing

This would cause the memory issues too?

Offline

#4 2024-08-09 13:45:00

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

it's using nvidia drivers

Your xorg log disagrees.

and with 4GB vram … This would cause the memory issues too?

There're no memory issues, you cannot set the mode, but the reason for that is that the mode isn't supported by your monitor tbw.
Does the monitor manual (or box) actually suggest that it can run 2560x1440 @ 165Hz?
Because this looks more like 2560x1440!!! 165Hz!!!* (* at 1920x1080) - there's no way in hell to get 2560x1440 @ 165Hz down to 590MHz except for an interlaced mode.

Offline

#5 2024-08-10 04:56:26

afrocoder
Member
Registered: 2024-08-09
Posts: 9

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

I'm guessing stuff isn't being reported correctly the clock speed I mean.

Not sure about the nvidia thing
Atleast in this Xorg log I see no reference to the nvidia driver

https://pastebin.com/CvmVVxGg


nvidia-smi
Sat Aug 10 10:18:29 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.52.04              Driver Version: 555.52.04      CUDA Version: 12.5     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3050 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   59C    P0             11W /   60W |       1MiB /   4096MiB |     12%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+
inxi -G
Graphics:  Device-1: NVIDIA GA107M [GeForce RTX 3050 Ti Mobile] driver: nvidia v: 555.52.04
           Device-2: AMD Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] driver: amdgpu v: kernel
           Device-3: Logitech C922 Pro Stream Webcam type: USB driver: snd-usb-audio,uvcvideo
           Device-4: IMC Networks Integrated Camera type: USB driver: uvcvideo
           Display: x11 server: X.Org 21.1.13 driver: loaded: amdgpu,modesetting resolution: 1: 2560x1440 2: 1080x1920~75Hz
           OpenGL: renderer: AMD Radeon Graphics (radeonsi renoir LLVM 18.1.8 DRM 3.57 6.10.1-arch1-1)
           v: 4.6 Mesa 24.1.4-arch1.2

This is the monitor I have https://psref.lenovo.com/syspool/Sys/PD … 183895a777 (Lenovo Support also confirmed it)

I am a bit out of my depth with this issue since it's been a while since I've played with the amd/nvidia setup it was all working fine on optimus(This current issue was still there)

Offline

#6 2024-08-10 08:47:57

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

Enable https://wiki.archlinux.org/title/NVIDIA … de_setting - use the "nvidia_drm.modeset=1" kernel parameter (modprobe.conf won't do!) to enable KMS for the nvifdia GPU, remove the simpledrm device and restore the original card order and otherwise post

pacman -Qs 'nvidia|kernel'

and your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

The pamphlet doesn't say anything about 2560x1440@165Hz but

2560x1440!!!
165Hz!!!

It however also suggests https://wiki.archlinux.org/title/Variable_refresh_rate support and a certain degree of configurability "overclocking"

For all of these tests and when sharing any data make sure the KVM isn't in the way, since it could easily limit the signal to 600MHz

Offline

#7 2024-08-13 05:29:20

afrocoder
Member
Registered: 2024-08-09
Posts: 9

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

I've added that to my kernel parameters

http://0x0.st/XWDL.txt

I've to modify my xorg config for the screens to enable these options

Offline

#8 2024-08-13 06:16:32

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

Neither nvidia nor nouveau are loaded and nvidia-smi should™ no longer respond.
Did you check the EDID w/o the KVM?

Offline

#9 2024-09-03 06:19:34

afrocoder
Member
Registered: 2024-08-09
Posts: 9

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

Sorry was travelling

I'm testing this again with my work laptop which is mentioned here, so no nvidia

cat /sys/class/drm/card1-HDMI-A-1/edid | parse-edid
Checksum Correct

Section "Monitor"
	Identifier "R27q-30"
	ModelName "R27q-30"
	VendorName "LEN"
	# Monitor Manufactured week 18 of 2024
	# EDID version 1.3
	# Digital Display
	DisplaySize 600 340
	Gamma 2.20
	Option "DPMS" "true"
	Horizsync 30-220
	VertRefresh 48-165
	# Maximum pixel clock is 590MHz
	#Not giving standard mode: 1280x1024, 60Hz
	#Not giving standard mode: 1280x1024, 70Hz
	#Not giving standard mode: 1440x900, 60Hz
	#Not giving standard mode: 1600x900, 60Hz
	#Not giving standard mode: 1680x1050, 60Hz
	#Not giving standard mode: 1680x1050, 70Hz
	#Not giving standard mode: 1920x1080, 60Hz
	#Not giving standard mode: 1920x1080, 120Hz

	#Extension block found. Parsing...
#WARNING: I may have missed a mode (CEA mode 76)
#WARNING: I may have missed a mode (CEA mode 63)
#WARNING: I may have missed a mode (CEA mode 96)
#WARNING: I may have missed a mode (CEA mode 97)
	Modeline 	"Mode 11" +hsync -vsync
	Modeline 	"Mode 0" +hsync +vsync
	Modeline 	"Mode 1" 25.200 640 656 752 800 480 490 492 525 -hsync -vsync
	Modeline 	"Mode 2" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
	Modeline 	"Mode 3" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
	Modeline 	"Mode 4" 74.250 1280 1390 1420 1650 720 725 730 750 +hsync +vsync
	Modeline 	"Mode 5" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
	Modeline 	"Mode 6" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
	Modeline 	"Mode 7" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
	Modeline 	"Mode 8" 74.250 1280 1720 1760 1980 720 725 730 750 +hsync +vsync
	Modeline 	"Mode 9" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
	Modeline 	"Mode 10" 148.500 1280 1390 1430 1650 720 725 730 750 +hsync +vsync
	Modeline 	"Mode 12" +hsync +vsync
	Modeline 	"Mode 13" +hsync -vsync
	Option "PreferredMode" "Mode 11"
EndSection

Offline

#10 2024-09-03 07:00:55

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

for OUT in /sys/class/drm/card*; do echo $OUT; edid-decode $OUT/edid; echo "================="; done

You'll need https://aur.archlinux.org/packages/edid-decode-git

I'm testing this again with my work laptop which is mentioned here, so no nvidia

And what kind of GPU is that now?
However, if you cannot get the EDID to show the desired mode or get above 590MHz, the monitor simply does not support that mode.

Offline

#11 2024-09-03 07:18:38

afrocoder
Member
Registered: 2024-08-09
Posts: 9

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

Yea seems like it doesn't go above 590MHz. Need to read how this works tbh, lenovo support told me it's my laptop

https://0x0.st/XwbZ.txt

Offline

#12 2024-09-03 13:02:21

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

But you've tried connecting it to various GPUs and it didn't advertise the desired mode against any of them, right?
Adapter? Cable?

Offline

#13 2024-09-03 13:57:12

afrocoder
Member
Registered: 2024-08-09
Posts: 9

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

Yeah I've got 4K cables too, no KVM in between just HDMI, I'll try testing it on my laptop with a dual GPU later. I don't have a PC.

The one thing I'm confused about is the vconsole that boots up goes to 165Hz I wonder if that's on 1080p resolution need to see if I can figure that out

Offline

#14 2024-09-03 14:40:10

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

How do you determine the refresh rate?
The most reliable information is from the monitors OSD, otherwise see https://man.archlinux.org/man/extra/fbset/fbset.8.en

Offline

#15 2024-09-03 15:20:50

afrocoder
Member
Registered: 2024-08-09
Posts: 9

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

There is an option in the OSD to display the refresh rate on the screen, so I've enabled that. I can click a photo on restart and send it here.

Offline

#16 2024-09-03 15:26:04

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

"But not the resolution?"
Edit: no need to post a photo that says "165"

Last edited by seth (2024-09-03 15:26:23)

Offline

#17 2024-09-04 06:29:12

afrocoder
Member
Registered: 2024-08-09
Posts: 9

Re: Xrandr with amdgpu unable to use 2560x1440@165hz refresh rate

Oh it seems that the menu shows resolution and refresh rate, I can check that on boot!

Offline

Board footer

Powered by FluxBB