You are not logged in.
Pages: 1
Here is a patch:
diff -urN xfce4-battery-plugin-0.5.0/panel-plugin/libacpi.c xfce4-battery-plugin
-0.5.0-new/panel-plugin/libacpi.c
--- xfce4-battery-plugin-0.5.0/panel-plugin/libacpi.c 2007-01-17 18:56:51.0000
00000 +0100
+++ xfce4-battery-plugin-0.5.0-new/panel-plugin/libacpi.c 2007-07-25 12:03
:41.000000000 +0200
@@ -190,10 +190,12 @@
#ifdef __linux__
FILE *acpi;
- if (!(acpi = fopen ("/proc/acpi/info", "r")))
+ if (!(acpi = fopen ("/proc/acpi/info", "r")) &&
+ !(acpi = fopen ("/sys/module/acpi/parameters/acpica_version", "r")))
{
#ifdef DEBUG
- printf("DBG:no acpi: /proc/acpi/info not found!\n");
+ printf("DBG:no acpi: /proc/acpi/info or "
+ "/sys/module/acpi/parameters/acpica_version not found!\n
");
#endif
return 1;
}
Offline
Pages: 1
[ Generated in 0.008 seconds, 8 queries executed - Memory usage: 516.05 KiB (Peak: 517.33 KiB) ]