Originally Posted by jusst
Is there actually a way to get a list of "virtual refresh rate" -> real refresh rate relations?
So that one would know which of the xrandr-listed modes is which real mode?
This would help to allow video playback applications selecting the best mode automatically.
Yes, you can do this through the NV-CONTROL extension. The ID number for each metamode is the RandR 1.1 "refresh rate".
There's an example of how to do it in the nvidia-settings source code 'samples' directory. Build the samples, then run `./nv-control-dpy --print-metamodes`. You can extract the modes from each metamode. Also try `./nv-control-dpy --print-used-modelines`.