View Single Post
Old 06-20-10, 12:13 PM   #10
NVIDIA Corporation
AaronP's Avatar
Join Date: Mar 2005
Posts: 2,487
Default Re: Xrandr reports wrong refresh rate

Originally Posted by jusst View Post
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`.
AaronP is offline   Reply With Quote