Try getting percentages out of upower for Linux and show the average.