+ ret = XNVCTRLQueryTargetCount(display, NV_CTRL_TARGET_TYPE_VCSC, &n);
+ if (ret == True) {
+ log_debug("NVIDIA: number of VCSC: %d", n);
+ for (i = 0; i < n; i++) {
+ ret = XNVCTRLQueryTargetStringAttribute
+ (display,
+ NV_CTRL_TARGET_TYPE_VCSC,
+ i,
+ 0,
+ NV_CTRL_STRING_VCSC_FAN_STATUS, &str);
+ if (ret == True)
+ log_debug("NVIDIA: vcsc fan %d %s", i, str);
+ else
+ log_err(_("NVIDIA: "
+ "failed to retrieve vcsc fan info %d"),
+ i);
+
+ add(&ss, i, SENSOR_TYPE_FAN, values_len);
+ }
+ }
+