Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can not set monitor refresh rate
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Sun Aug 14, 2022 1:23 pm    Post subject: Can not set monitor refresh rate Reply with quote

Good morning, I am trying to change my monitor's refresh rate to the proper refresh rate. I have a UHD monitor that supports a 120 hz refresh rate connected via a HDMI cable.

Following the Gentoo-wiki Xrandr guide it says that I need to run the cvt command (x11-libs/libxcvt) with the following parameters
Code:
# cvt 3840 2160 120.00
# 3840x2160 119.98 Hz (CVT) hsync: 277.87 kHz; pclk: 1498.25 MHz
Modeline "3840x2160_120.00"  1498.25  3840 4192 4616 5392  2160 2163 2168 2316 -hsync +vsync
the wiki says to add everything after "Modeline" to xrandr

I need to specify the output since this is on a laptop and I have multiple monitors I need to also specify the output so I include the "--output HDMI-1-0" parameter.
but when I do I get the following error:

Code:
# xrandr --output HDMI-1-0 --newmode "3840x2160_120.00"  1498.25  3840 4192 4616 5392  2160 2163 2168 2316 -hsync +vsync
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  139 (RANDR)
  Minor opcode of failed request:  16 (RRCreateMode)
  Serial number of failed request:  56
  Current serial number in output stream:  56


Can someone please help me to set the refresh rate?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54254
Location: 56N 3W

PostPosted: Sun Aug 14, 2022 1:57 pm    Post subject: Reply with quote

<3,

Please post your Xorg.0.log.

That should show what your monitor reports its capabilities as.
You may get different answers over DP and HDMI.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Sun Aug 14, 2022 3:13 pm    Post subject: Reply with quote

Xorg.0.log
http://dpaste.com/ECNAP3JCC

xrandr output
http://dpaste.com/C36ME9PFR
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54254
Location: 56N 3W

PostPosted: Sun Aug 14, 2022 3:31 pm    Post subject: Reply with quote

<3,

Your display does not advertise any 4k 120Hz modes. That's a problem.
The nVidia GPU can do it but its not connected to the display, so the Intel GPU needs to support that refresh rate too.

What is the make and model of the display?

We need to read the fine print in the specification. Often, 4k 120Hz modes are only supported on DP inputs and you said you were using HDMI.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Sun Aug 14, 2022 4:06 pm    Post subject: Reply with quote

that's weird because in windows I can set 3840x2160 at 120hz over hdmi no problem. I have the Dough/Eve Spectrum 4k monitor.
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1441
Location: Earth

PostPosted: Sun Aug 14, 2022 4:20 pm    Post subject: Reply with quote

is the firmware current of your (monster) monitor?
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54254
Location: 56N 3W

PostPosted: Sun Aug 14, 2022 4:25 pm    Post subject: Reply with quote

<3,

That's confirms the hardware capability ... end to end.
The display is HDMI 2.1, so that's OK but we really knew that from your Windows test.

In Windows, what display timings are used?

We had a topic like this a few weeks ago.

-- edid --

Alderlake integrated graphics doesn't output 4k@120Hz
I'm not sure that its the same problem.[/topic]
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Sun Aug 14, 2022 5:32 pm    Post subject: Reply with quote

CooSee wrote:
is the firmware current of your (monster) monitor?


107
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Sun Aug 14, 2022 5:55 pm    Post subject: Reply with quote

Code:
[     8.454] (--) NVIDIA(GPU-0): EVE ES07D03 (DFP-0): connected
[     8.454] (--) NVIDIA(GPU-0): EVE ES07D03 (DFP-0): Internal TMDS
[     8.454] (--) NVIDIA(GPU-0): EVE ES07D03 (DFP-0): 600.0 MHz maximum pixel clock
[     8.454] (--) NVIDIA(GPU-0):
[     8.454] (--) NVIDIA(GPU-0): EVE ES07D03 (DFP-1): connected
[     8.454] (--) NVIDIA(GPU-0): EVE ES07D03 (DFP-1): Internal DisplayPort
[     8.454] (--) NVIDIA(GPU-0): EVE ES07D03 (DFP-1): 2660.0 MHz maximum pixel clock
[     8.454] (--) NVIDIA(GPU-0):
[     8.457] (--) NVIDIA(GPU-0): DFP-2: disconnected
[     8.457] (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
[     8.457] (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
[     8.457] (--) NVIDIA(GPU-0):
[     8.545] (II) NVIDIA(G0): Validated MetaModes:
[     8.545] (II) NVIDIA(G0):     "NULL"
[     8.545] (II) NVIDIA(G0): Virtual screen size determined to be 640 x 480
[     8.605] (WW) NVIDIA(G0): Cannot find size of first mode for EVE ES07D03 (DFP-0); cannot
[     8.605] (WW) NVIDIA(G0):     compute DPI from EVE ES07D03 (DFP-0)'s EDID.
[     8.605] (==) NVIDIA(G0): DPI set to (75, 75); computed from built-in default


Code:
[     8.711] (II) NVIDIA(G0): ACPI: failed to connect to the ACPI event daemon; the daemon
[     8.711] (II) NVIDIA(G0):     may not be running or the "AcpidSocketPath" X
[     8.711] (II) NVIDIA(G0):     configuration option may not be set correctly.  When the
[     8.711] (II) NVIDIA(G0):     ACPI event daemon is available, the NVIDIA X driver will
[     8.711] (II) NVIDIA(G0):     try to use it to receive ACPI event notifications.  For
[     8.711] (II) NVIDIA(G0):     details, please see the "ConnectToAcpid" and
[     8.711] (II) NVIDIA(G0):     "AcpidSocketPath" X configuration options in Appendix B: X
[     8.711] (II) NVIDIA(G0):     Config Options in the README.
[     8.727] (II) NVIDIA(G0): Setting mode "NULL"

_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54254
Location: 56N 3W

PostPosted: Sun Aug 14, 2022 8:37 pm    Post subject: Reply with quote

Anon-E-moose,

Yeah, its Optimus.
Code:
[     8.545] (II) NVIDIA(G0): Virtual screen size determined to be 640 x 480
That's a feature.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Sun Aug 14, 2022 9:32 pm    Post subject: Reply with quote

I am unsure of what that all means, can you please ELI5?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54254
Location: 56N 3W

PostPosted: Sun Aug 14, 2022 9:54 pm    Post subject: Reply with quote

<3,

You have an Optimus graphics system. Its one and a half graphics cards.
The nVidia chipset is not connected to the display.

The Intel GPU is complete and shares its pixel buffer with the nVidia GPU.
For low power/performance use, only the Intel GPU is used.
For better performance at the cost of more power (shorter battery life) the nVidia GPU draws into the pixel buffer and the Inter GPU does the screen refresh.

Any attempt to use the nVidia GPU on its own will result in a black screen as its snot connected to any displays.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Sun Aug 14, 2022 10:30 pm    Post subject: Reply with quote

I'm not sure about all of what's going on, as I've never owned an optimus rig

but

DFP-0 limit is 600MHz (not sure what TDMS is) limit is just past 4k@60
DPF-1 limit is 2660 Mhz (internal displayport)

and it's looking at DFP-0 for the edid setting.

Just not sure how to make it properly use the right connetors in gentoo (windows is lots easier, it's true P'n'P.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Thu Aug 18, 2022 6:49 am    Post subject: Reply with quote

NeddySeagoon wrote:
<3,

You have an Optimus graphics system. Its one and a half graphics cards.
The nVidia chipset is not connected to the display.

The Intel GPU is complete and shares its pixel buffer with the nVidia GPU.
For low power/performance use, only the Intel GPU is used.
For better performance at the cost of more power (shorter battery life) the nVidia GPU draws into the pixel buffer and the Inter GPU does the screen refresh.

Any attempt to use the nVidia GPU on its own will result in a black screen as its snot connected to any displays.


thanks for that explaination, I understand this. What I don't understand is why I have no trouble setting this monitor to 120hz in windows yet not in Gentoo.


Last edited by <3 on Sun Aug 21, 2022 2:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54254
Location: 56N 3W

PostPosted: Thu Aug 18, 2022 7:33 am    Post subject: Reply with quote

<3,

As part of its startup, Xorg asks the display for its capabilities.
The display returns a list of modelines that appear in Xorg.0.log as a fragment of mine, I get
Code:
[    58.983] (II) AMDGPU(0): Printing probed modes for output DisplayPort-2
[    58.983] (II) AMDGPU(0): Modeline "3840x2160"x60.0  533.25  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync (133.3 kHz eP)
[    58.983] (II) AMDGPU(0): Modeline "3840x2160"x30.0  262.75  3840 3888 3920 4000  2160 2163 2168 2191 +hsync +vsync (65.7 kHz e)
[    58.983] (II) AMDGPU(0): Modeline "3840x2160"x24.0  209.75  3840 3888 3920 4000  2160 2163 2168 2185 +hsync -vsync (52.4 kHz e)
[    58.983] (II) AMDGPU(0): Modeline "2560x1440"x60.0  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync -vsync (88.8 kHz e)
...

By default, Xorg picks the first one.

There are a number of problems with that.
First, your 120Hz mode may not be first. It should still appear in xrandrs list though.
Second, your 120Hz modes may not be listed at all. In that case, you need to supply the modeline.
Windows can do this as it has its own list of displays and modelines.

You can extract the modeline from Windows and tell Xorg all about it. Then you may be able to use it in Gentoo.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Sun Aug 21, 2022 2:26 pm    Post subject: Reply with quote

Thanks NeddySeagoon, what is also confusing is that this is a fairly new Gentoo re-install. In my previous install I was able to get 120hz working fairly easily. No Xorg configuration neccissary, I just set the refresh rate in KDE/plasma system settings and it worked. Now I can't seem to do it without figuring out xorg config files.
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 168

PostPosted: Mon Mar 04, 2024 8:09 pm    Post subject: I'm having the same issue Reply with quote

my gpu is radeon rx7800xt connected to LG OLED42C2PSA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum