Bug in the battery plugin
Matthias Eller <[email protected]>
| Newsgroups | gmane.comp.desktop.xfce.goodies.devel |
|---|---|
| Message-ID | <[email protected]> |
hi,
if you start the plugin with no battery attached the percentage of
remaining battery capacity is not shown if you later plug in the battery.
This is because the plug in could not load the last full capacity
(because no battery was present).
A possible solution is to add
stat = *(ptr + 25);
if (stat == 'y')
{
+ if (acpiinfo->present == 0)
+ {
+ read_acpi_info(battery);
+ }
if ((ptr = strstr (buf, "charging state:")) || (ptr = strstr (buf,
"State:")))
{
to line 529 to get the necessary data.
greetings
Matthias Eller