RickStrahl / SetResolution

Quickly set Windows Display Resolution via Command Line
Other
124 stars 5 forks source link

Refresh Rate not set to 165 #8

Open getBoolean opened 6 months ago

getBoolean commented 6 months ago

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:

HopleViorn commented 6 months ago

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.

RickStrahl commented 5 months ago

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

What about explicitly running from the command line?

getBoolean commented 5 months ago

@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.

RickStrahl commented 5 months ago

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
Unix0815 commented 5 months ago

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

TopCheddar27 commented 4 months ago

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

KyleMizell commented 3 months ago

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.