|
|
#1 | |
|
Registered User
Join Date: Jul 2012
Posts: 2
|
I find that in the 304 series drivers querying the refresh via XRRGetScreenInfo - XRRConfigCurrentRate always returns 50hz. Example code (working in 302 and earlier) attached.
the xrandr command line returns the correct result. Code:
#include <stdio.h>
#include <X11/extensions/Xrandr.h>
int
main(void)
{
int RefreshRate;
XRRScreenConfiguration *CurrInfo;
Display* m_Dpy;
m_Dpy = XOpenDisplay(NULL);
CurrInfo = XRRGetScreenInfo(m_Dpy, DefaultRootWindow(m_Dpy));
RefreshRate = XRRConfigCurrentRate(CurrInfo);
XRRFreeScreenConfigInfo(CurrInfo);
fprintf(stdout, "RefreshRate: %d\n", RefreshRate);
}
Quote:
|
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Jul 2007
Posts: 38
|
Probably DynamicTwinView.
|
|
|
|
|
|
|
#3 | |
|
Registered User
Join Date: Jul 2012
Posts: 2
|
Quote:
Same code on <= 302 series returns corect rate. |
|
|
|
|
![]() |
| Thread Tools | |
|
|