mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
54 lines
1.7 KiB
Diff
54 lines
1.7 KiB
Diff
--- sensors-applet-2.2.1.orig/plugins/nvidia/nvidia-plugin.c
|
|
+++ sensors-applet-2.2.1/plugins/nvidia/nvidia-plugin.c
|
|
@@ -81,7 +81,7 @@
|
|
/* create the connection to the X server */
|
|
if (!(nvidia_sensors_dpy = XOpenDisplay(NULL))) {
|
|
/* no connection to the X server avaible */
|
|
- return;
|
|
+ return sensors;
|
|
}
|
|
|
|
/* check if the NV-CONTROL extension is available on this X
|
|
only in patch2:
|
|
unchanged:
|
|
--- sensors-applet-2.2.1.orig/plugins/libsensors/libsensors-plugin.c
|
|
+++ sensors-applet-2.2.1/plugins/libsensors/libsensors-plugin.c
|
|
@@ -258,7 +258,8 @@
|
|
* file - if neither succeed, exit */
|
|
if ((file = fopen (LIBSENSORS_CONFIG_FILE, "r")) == NULL) {
|
|
if ((file = fopen (LIBSENSORS_ALTERNATIVE_CONFIG_FILE, "r")) == NULL) {
|
|
- return;
|
|
+ g_debug("%s: error opening libsensors config file... ", __FUNCTION__);
|
|
+ return sensors;
|
|
}
|
|
}
|
|
|
|
@@ -266,7 +267,8 @@
|
|
* valid, close file and return */
|
|
if (sensors_init(file) != 0) {
|
|
fclose(file);
|
|
- return;
|
|
+ g_debug("%s: error initing libsensors from config file...", __FUNCTION__);
|
|
+ return sensors;
|
|
}
|
|
fclose(file);
|
|
|
|
@@ -293,7 +295,8 @@
|
|
|
|
int nr = 0;
|
|
if (sensors_init(NULL) != 0) {
|
|
- return;
|
|
+ g_debug("%s: error initing libsensors", __FUNCTION__);
|
|
+ return sensors;
|
|
}
|
|
i = 0;
|
|
while ((chip_name = sensors_get_detected_chips(NULL, &nr)))
|
|
@@ -502,7 +505,7 @@
|
|
if (regcomp(&uri_re, "^sensor://([a-z0-9-]+)/([0-9]+)$",
|
|
REG_EXTENDED | REG_ICASE) != 0) {
|
|
g_debug("Error compiling regexp...not initing libsensors sensors interface");
|
|
- return;
|
|
+ return NULL;
|
|
}
|
|
|
|
return libsensors_plugin_get_sensors();
|