SetResolution icon indicating copy to clipboard operation
SetResolution copied to clipboard

Refresh Rate not set to 165

Open getBoolean opened this issue 1 year ago • 10 comments

I've created these two profiles below. When I switch to ipad, the refresh rate is switched to 60, but when I switch to default, the refresh rate stays at 60 instead of switching to 165. Any idea what I am doing wrong?

default:  3440 x 1440, 32, 165
ipad:  2882 x 2160, 32, 60

Device Details:

  • Windows 11
  • AMD Radeon RX 7900 XT GPU

getBoolean avatar Mar 02 '24 21:03 getBoolean

The same as you are. My profile is 3440x1440,144 and 2880x1920,120. Every time I switch to this 3440x1440 it will be 120hz but not 144hz.

HopleViorn avatar Mar 04 '24 09:03 HopleViorn

Can you switch to these resolutions and refresh rates with the UI?

What about explicitly running from the command line?

RickStrahl avatar Apr 03 '24 00:04 RickStrahl

@RickStrahl do you mean from Windows settings? yes, I can change resolution and refresh rate to these values manually

using the sr command-line tool? see issue description

I'm no longer using SR, I found an alternative solution for my use case that doesn't require switching resolution.

getBoolean avatar Apr 03 '24 01:04 getBoolean

Yes - I was asking because the original issue talks about using a profile configuration (which should work the same, but better to make sure). I was looking for the actual message that is returned if there is one.

I'm not sure why it wouldn't work with certain refresh rates. On my machine I'm able to set to any of the supported refresh rates, but my rates are very low (ie. standard 60hz). Whatever resolution is chose has to match one of the listed modes exactly.

To list all available modes (including orientations if non-default):

setresolution list -la

RickStrahl avatar Apr 03 '24 02:04 RickStrahl

It's even worse in my case. I want to switch to 720x576@50 Hz and your tool switches to 1920x1080@120 Hz instead. That's not even close ;)

I think it has some problems with screens that can display at multiple different refresh rates. TV's for example

Unix0815 avatar Apr 13 '24 07:04 Unix0815

Just to add to this, the -f switch is broken. For reference, when using this on a 240hz screen to set it to 60hz the command completes successfully with correct output:

image

However it clearly does not switch the framerate:

image

TopCheddar27 avatar May 08 '24 04:05 TopCheddar27

I'm also having trouble changing the refresh rate. I can change it manually through the Windows 11 UI, but not through your script from the command line. It changes the resolution just fine.

image image

It reports that it was able to change the refresh rate, but it stays at 60hz.

KyleMizell avatar Jun 04 '24 04:06 KyleMizell

It appears that if you use a profile such as 4K or 1080p, the -f argument will be overwritten by the default frequency defined in the SetResolution.xml file.

For now, you can use the -w and -h arguments as an alternative to specify the resolution and avoid this issue.

Additionally, you can modify the SetResolution.xml file to specify the desired frequency.

This bug is located in SetResolutionProcessor.cs at line 50. I will attempt to fix it if possible.

JYShaw avatar Feb 07 '25 16:02 JYShaw

I think I'm seeing this issue. I upgraded from a 1080p to 1440p monitor and now when switching to higher Nvidia DSR resolutions, the refresh rate will switch from 240 to 120 as it is the max supported by these higher resolutions, but upon returning to native via "set -w 2560 -h 1440 -f 240", the refresh rate stays at 120 and does not return to 240, needing to be manually changed in NVCP or windows settings.

tofu-dreg avatar Mar 16 '25 01:03 tofu-dreg