I have a portable USB charger/external battery pack. The exact model is this one. My raspberry pi is running ArchLinux Arm.

I am trying to view the battery status and other relevant information. However, the directory /sys/class/power_supply/ is empty. Why is it empty and how can I make ArchLinux Arm show the battery under that folder?


Unfortunately, this particular USB external battery pack does not provide such information at all. This is so called "dumb power supply".

If you need a "smart one", then you are looking into something different. It's usually something called UPS (Uninterruptible Power Supply) with USB interface. This way you can install NUT (Network UPS Tools) and be able to monitor your UPS from command line using upsc command. You can check the current battery status, power, remaining time, etc.

However, please note that not every UPS device supported by NUT. Make sure you are getting a compatible one if you decide to go UPS way.

Also, there are some UPS devices specifically targeted to work with Raspberry Pi. They may be able to provide the information you need and possibly are more compact than usual UPS devices.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.