M
M
Mikhail Smykov2018-03-15 18:27:46
linux
Mikhail Smykov, 2018-03-15 18:27:46

How to find out the amount of mAh in the battery through the console, preferably without utilities?

Hello. I think the essence of the question is clear from the title, just explain.
I want to have xxxx / xxxx mAh output.
That is, how many mAh are now and how many mAh are the capacity.
Searching the directories, I found /sys/class/power_supply/battery/, but did not find the capacity.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
latush, 2018-03-15
@latush

cat /sys/class/power_supply/BAT0/charge_now
cat /sys/class/power_supply/BAT0/charge_full

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question