Check battery status in Linux