Update AC status even if idlesleep is disabled
Fix uevent parser.
Use last full charge, not design full charge.
Detect devices by type, not by name.
Overflow check.
Fix AC detection with UPower.