Take the 2-minute tour ×

I'm looking for Xlib function or macro that will give me actual screen's refresh rate. Thanks.

share|improve this question

closed as not a real question by Wooble, WhozCraig, Linger, mah, Mef Nov 13 '12 at 16:26


So what have you tried so far? –  Mike Nov 13 '12 at 12:43
currently I use glXGetMscRateOML function from GLX_OML_sync_control extension but NVIDIA driver doesn't support GLX_OML_sync_control extension so I need to fallback to more general mechanism. Do you have any problem with it, Mike? –  mzet Nov 13 '12 at 13:43

1 Answer 1

up vote 2 down vote accepted

Doing a quick search tells me it's not possible directly with xlib. However it seems possible using the XRandR extension, with the function XRRConfigRates.

share|improve this answer
