That depends on what's not working, if the plugin doesn't crash when you add it to the panel, but doesn't show the right information, you can check if the /proc/acpi/battery/ directory exists (and if it contains the right data). Nick