I've played around with libXNVCtrl a bit and it seems that it just doesn't work on my card. Could you please try the attached program and see if you get the same failure that I do (XNVCTRLQueryAttribute assertion failed)?
-- Sam Morris http://robots.org.uk/ PGP key id 1024D/5EA01078 3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078
LDFLAGS := -lX11 -lXext -lXNVCtrl all: nvtest nvtest: nvtest.o gcc -o $@ $^ $(LDFLAGS)
#include <assert.h> #include <stdio.h> #include <X11/Xlib.h> #include <NVCtrl/NVCtrl.h> #include <NVCtrl/NVCtrlLib.h> int main (int argc, char *argv[]) { Display *dpy; dpy = XOpenDisplay(NULL); assert (dpy); int event_base, error_base; int core, amb; assert (XNVCTRLQueryExtension (dpy, &event_base, &error_base)); assert (XNVCTRLQueryAttribute (dpy, 0, 0, NV_CTRL_GPU_CORE_TEMPERATURE, &core)); assert (XNVCTRLQueryAttribute (dpy, 0, 0, NV_CTRL_AMBIENT_TEMPERATURE, &amb)); printf ("core: %d\nambient: %d\n", core, amb); return 0; }
signature.asc
Description: This is a digitally signed message part