`acpi -p -a` fails to report power state if `/proc/acpi/ac_a
Brought to you by:
meskes
`acpi` bases the attribute name on the file name. When using the older `/proc`, the attribute that is used to report the AC adapter state (connectd = on-line; disconnected = off-line) is either `state` or `status`.
However, acpi.c:432 does a case-sensitive comparison to Status. That will never match since the files `state` and `status` are always lowercase (at least, those lowercase files are queried). The patch is really simple, it modifies `Status` to `status`.
Original bug report https://bugs.launchpad.net/acpi/+bug/818184
Change Status to status