Sunday, April 10, 2011

How Many Volt Consumed by Ubuntu Laptop?

Now we will observe how many watt consumed by Ubuntu laptop. Similar with how to check current (in ampere) consumed, we will only replace the grep command.

# Goto /proc/acpi/battery directory and go to directory name based on your battery type (i.e. C1AC)
cd /proc/acpi/battery/C1AC
# Cat the content of state file and grep only the voltage
cat state | grep "present voltage"
# We will get output like this:
present voltage:         16410 mV

The voltage consumed is shown in mV. Enjoy!

No comments: