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);