summaryrefslogtreecommitdiff
blob: e1626d85d9d72e1fd545415f18f2390800904adc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -Naur xfce4-battery-plugin-0.3.0.orig/panel-plugin/libacpi.c xfce4-battery-plugin-0.3.0/panel-plugin/libacpi.c
--- xfce4-battery-plugin-0.3.0.orig/panel-plugin/libacpi.c	2003-09-09 09:49:16.000000000 -0400
+++ xfce4-battery-plugin-0.3.0/panel-plugin/libacpi.c	2006-04-09 13:37:21.000000000 -0400
@@ -277,7 +277,10 @@
     if (!(acpi = fopen ("/proc/acpi/ac_adapter/ACAD/state", "r")))
       if (!(acpi = fopen ("/proc/acpi/ac_adapter/AC/state", "r")))
         if (!(acpi = fopen ("/proc/acpi/ac_adapter/ADP1/state", "r")))
-	        return -1;
+          if (!(acpi = fopen ("/proc/acpi/ac_adapter/AC0/state", "r")))
+        if (!(acpi = fopen ("/proc/acpi/ac_adapter/ADP0/state", "r")))
+          if (!(acpi = fopen ("/proc/acpi/ac_adapter/C11B/state", "r")))
+            return -1;
 
   fread (buf, 512, 1, acpi);
   fclose (acpi);