jakehilborn / displayplacer

macOS command line utility to configure multi-display resolutions and arrangements. Essentially XRandR for macOS.
MIT License
3.74k stars 134 forks source link

`displayplacer list` does not show which mode has variable refresh rate. #132

Open Valachio opened 9 months ago

Valachio commented 9 months ago

My external monitor is a 165hz monitor with adaptive sync capability. This means it is given the "Variable (48-165 Hertz)" as a potential refresh rate.

When I run displayplacer list. At each resolution, it will list two 165hz modes. See picture:

Screenshot 2023-12-22 at 11 33 17 AM

At first I was confused as to why there are two 165hz modes, with no differences. Then I realized it's likely because one of the 165hz modes is actually the "Variable (48-165 Hertz)" option, whereas the other is the non-variable 165hz option.

However, since it doesn't show any additional information, I don't know which mode is the variable and which is the non-variable refresh rate option.

Would it be possible to add additional data which will let you know if a mode is a variable refresh rate option?

jakehilborn commented 9 months ago

I'm not sure off the top of my head which API would display this info. For your own use case though, use the mode for your displayplacer command instead of the res/hz/scaling combo.

Birowsky commented 6 months ago

@jakehilborn thank you for pointing out mode, as it solved a problem for me where my existing displayplacer command started selecting a variable refresh rate out of nowhere. Turns out the variable refresh rate options are a recent addition that did not show before. With mode, I was able to find the exact fixed refresh rate option that I needed.