Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
amdgpu 120Hz?
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
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2084
Location: San Jose, CA

PostPosted: Sun Dec 08, 2024 2:05 am    Post subject: amdgpu 120Hz? Reply with quote

I jut got a new monitor that does 120 Hz.

But the amd gpu driver indicates it only goes to 60 Hz in the kde display settings dialog.

I've been googling, but so far I haven't found the voodoo.

Anyone have any ideas?

Update: RX6650XT is hdmi 2.1 compliant, so it should work.

I found a thread where people were using DisplayPort to HDMI 2.1 converters to run 120 hz...
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Ralphred
l33t
l33t


Joined: 31 Dec 2013
Posts: 664

PostPosted: Sun Dec 08, 2024 3:19 am    Post subject: Reply with quote

Is a 120Hz modeline mentioned in xorg.log?
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2084
Location: San Jose, CA

PostPosted: Sun Dec 08, 2024 7:05 am    Post subject: Reply with quote

Ralphred wrote:
Is a 120Hz modeline mentioned in xorg.log?


xrandr does not report 120Hz as an option.

EDID doesn't not report 120Hz as an option.

But someone who has a similar Samsung TV did get it to work with an Nvidia card.

I have found a huge thread that stared three years ago and was active last month that states that HDMI will not license version 2.1 for open source software.

Most got around it by using a DisplayPort 1.4 to HDMI 2.1 cable, so I ordered one.

I did find a website that generates modelines and I tried all four that it generated for 4K@120Hz and each time xrandr reported "Configure crtc 0 failed"

This is similar to the problem when I switched to 4K almost eight years ago. I was running 4K 30Hz interlaced because the monitor required yuv420 to do 60 Hz at 4K.

I'll get it eventually.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
sebas86
Guru
Guru


Joined: 01 May 2005
Posts: 570
Location: Szczecinek / Szczecin

PostPosted: Sun Dec 08, 2024 3:00 pm    Post subject: Reply with quote

I saw an article about the license issue, it's a problem with HDMI Alliance – AMD cannot provide support for all features in the open source drivers… You can try closed source drivers to solve this issue.

https://www.phoronix.com/news/HDMI-2.1-OSS-Rejected
_________________
Nieważne jaka dystrybucja, ważne, że Linux!
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2084
Location: San Jose, CA

PostPosted: Tue Dec 10, 2024 8:06 pm    Post subject: Reply with quote

I bought a Display Port to HDMI 2.1 converter and that still won't run 120 Hz.

EDID doesn't even list 60Hz as an option and it runs at 30 Hz by default.

I did get 60 Hz to work by using xrandr to add a new display mode, but I can't get 120Hz to work the same way.

I found out the display does 144 Hz as well, so I'll try that tonight.

I'd love to hear from someone who got it to work.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
wanne32
n00b
n00b


Joined: 11 Nov 2023
Posts: 71

PostPosted: Wed Dec 11, 2024 4:15 pm    Post subject: Reply with quote

HDMI beyond 60Hz is a tricky thing. So is HDMI with its 100 optional features that have to be supported by Screen, PC and Cable in general. I would highly recommend going to DP. (Full not only with an adapter.)
The other thing that many monitor producers tend to do is going around the 60Hz limit on HDMI 1.2-2.0 by using G-Sync/Adaptive-Sync/FreeSync. So you won't get higher refresh rates until you turn it on (In the settings of your screen. You do not need to enable it on your PC.) – Even if you are using HDMI 2.1 or DP cables.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2084
Location: San Jose, CA

PostPosted: Wed Dec 11, 2024 5:18 pm    Post subject: Reply with quote

wanne32 wrote:
HDMI beyond 60Hz is a tricky thing. So is HDMI with its 100 optional features that have to be supported by Screen, PC and Cable in general. I would highly recommend going to DP. (Full not only with an adapter.)
The other thing that many monitor producers tend to do is going around the 60Hz limit on HDMI 1.2-2.0 by using G-Sync/Adaptive-Sync/FreeSync. So you won't get higher refresh rates until you turn it on (In the settings of your screen. You do not need to enable it on your PC.) – Even if you are using HDMI 2.1 or DP cables.


The TV only supports HDMI 2.1. There is no DP port on it.

The DP to HDMI 2.1 adapter I bought top review talks about it working with 4K 120 Hz TVs in linux.

I will get this to work, it's just a matter of time.

Thanks for the freesync hint. I'll see what I have to do to get AMDGPU to activate freesync.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


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

PostPosted: Wed Dec 11, 2024 5:29 pm    Post subject: Reply with quote

Your first post is misleading because you say monitor not tv, they are different, and the answers you get will be different.

On my smart tv, I have 4 hdmi, 2 of which are for 60hz and the others will handle 120-144hz, look at the manual for the tv connections.
_________________
UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2084
Location: San Jose, CA

PostPosted: Wed Dec 11, 2024 6:12 pm    Post subject: Reply with quote

Anon-E-moose wrote:
Your first post is misleading because you say monitor not tv, they are different, and the answers you get will be different.

On my smart tv, I have 4 hdmi, 2 of which are for 60hz and the others will handle 120-144hz, look at the manual for the tv connections.


Thanks. You are right I should have specified TV.

I checked and all HDMI inputs support up to 144 Hz. The panel itself is 120 Hz at 4K.

I'll keep plugging away at it.

Thanks for taking the time to reply.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
wanne32
n00b
n00b


Joined: 11 Nov 2023
Posts: 71

PostPosted: Wed Dec 11, 2024 6:49 pm    Post subject: Reply with quote

Uh a TV. There is also a lot of misleading advertisement with this things. While things got better in many regions there is still a lot of advertisement that counts inserted black or calculated intermediate frames wich – together with loads of picture enhancement methods – contributes to the much higher response times of TVs. It is not as bad as it used to be since most TVs have now "Game Mode" that removes most of these "features". But don't get fooled by the nice numbers. The way lag is calculate is still very strange usually giving you the best case time when the pixel starts to change color.

So since my good old CRTs is fading out slowly and therefore changing color instantaneously after they are lit up, it has a response of 0ms and a infinite refresh rate?

While a little bit US-centric https://www.rtings.com has a lot of good information about that stuff.
So look if your TV is able to handle these input frequencies at all and isn't doing only some marketing bullshit and for the sake of a reasonable good picture if game mode is enabled.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2084
Location: San Jose, CA

PostPosted: Wed Dec 11, 2024 7:30 pm    Post subject: Reply with quote

wanne32 wrote:
Uh a TV. There is also a lot of misleading advertisement with this things. While things got better in many regions there is still a lot of advertisement that counts inserted black or calculated intermediate frames wich – together with loads of picture enhancement methods – contributes to the much higher response times of TVs. It is not as bad as it used to be since most TVs have now "Game Mode" that removes most of these "features". But don't get fooled by the nice numbers. The way lag is calculate is still very strange usually giving you the best case time when the pixel starts to change color.

So since my good old CRTs is fading out slowly and therefore changing color instantaneously after they are lit up, it has a response of 0ms and a infinite refresh rate?

While a little bit US-centric https://www.rtings.com has a lot of good information about that stuff.
So look if your TV is able to handle these input frequencies at all and isn't doing only some marketing bullshit and for the sake of a reasonable good picture if game mode is enabled.


The Samsung manual has the timing listed for 4K 120 Hz. I found the same horizontal rate and pixel clock here: https://tomverbeure.github.io/video_timings_calculator

I think I got it working while I was sitting here playing with it.

I'm working on it remotely (from work via X2GO) and xrandr just exited without error. So it might be running 120 Hz now, I'll have to check at home later.

Here's the final xrandr commands:

Code:
xrandr --newmode "3840x2160_120" 1188 3840 4016 4104 4400 2160 2168 2178 2250 +hsync +vsync
xrandr --addmode DisplayPort-0 3840x2160_120
xrandr --output DisplayPort-0 --mode 3840x2160_120


The trick to trying different timings is you have to remove the old mode before you set the new one with the same name, like this:

Code:
xrandr --delmode DisplayPort-0 '3840x2160_120'
xrandr --rmmode '3840x2160_120'


Here's the evidence that it's working:

Code:
@server ~ $ xrandr
Screen 0: minimum 320 x 200, current 3840 x 2160, maximum 16384 x 16384
DisplayPort-0 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 1872mm x 1053mm
   3840x2160     30.00 +  25.00    24.00    29.97    23.98 
   4096x2160     30.00    24.00    29.97    23.98 
   2560x1440     59.95 
   1920x1200     30.00 
   1920x1080    120.00   100.00   119.88    60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98 
   1600x1200     30.00 
   1680x1050     59.95 
   1600x900      60.00 
   1280x1024     75.02    60.02 
   1440x900      59.89 
   1280x800      59.81 
   1152x864      75.00 
   1280x720      60.00    50.00    59.94 
   1024x768      75.03    70.07    60.00 
   832x624       74.55 
   800x600       72.19    75.00    60.32 
   720x576       50.00 
   720x480       60.00    59.94 
   640x480       75.00    72.81    66.67    60.00    59.94 
   720x400       70.08 
   3840x2160_60  60.00 
   3840x2160_120 120.00*



I also want to warn everyone that xrandr has problems with hyphens(-) and underscores(_). When I attempted to use a hyphen, the mode actually worked, but when I tried to select the mode with underscore in it, it stayed on the mode with the hyphen. The * didn't move.

To solve this problem, I had to change to mode 3840x2160_60, then delete the 3840x2160-120 from displayport-0 and then remove it from xrandr completely. Then I could select the 3840x2160_120 mode.

Assuming it's actually working, now I have to attack Dolby Surround 5.1 which works on the front three speakers, but not the rear two speakers.

If it is working, its purely that the TV is not reporting all it's modes on EDID that prevents it from working. Samsung's fault.

I'll post an update tonight.

Thanks everyone!
_________________
Some day there will only be free software.
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