Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to measure the electric current or power of the whole computer or its components using software? Voltage can be measured, and I am wondering why not with the current/power.

share|improve this question
Is it a standard PC or something like a Raspberry Pi? – Alex Chamberlain Jun 12 '12 at 7:05
@AlexChamberlain Standard IBM or Intel compatible computer. – sawa Jun 12 '12 at 7:06
The only way to do this is with additional hardware. If you're lucky, you might be able to find a power supply with a current feedback. – Alex Chamberlain Jun 12 '12 at 7:40
up vote 3 down vote accepted

Voltage can only be measured because most modern machines have hardware built-in that can do so; the software simply talks to the hardware over e.g. I2C and reads the values from it. No equivalent hardware for measuring current is in modern computers.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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