As you surmised in your comment the limitation is not with the software but with your battery not reporting correctly.
To clarify these software tools below will only measure power consumption on laptops when running on battery. For desktop or server machines the only current solution is an electronic watt-meter that plugs into the mains socket.
#Power Statistics
In Ubuntu Precise 12.04 there is a new power statistics history window. This can be accessed by clicking the battery item in the application indicator menu then selecting Latop Battery tab.
#Powertop
As mentioned by the OP this program provides information on per process/device power usage.
#Powerstat
Another alternative that measures process/device power usage is powerstat that was written for Ubuntu by Colin King. There is a detailed review of its features on hecticgeek.com.
It can be installed from the PPA: ppa:colin-king/powermanagement

As you surmised in your comment the limitation is not with the software but with your battery not reporting correctly.
To clarify these software tools below will only measure power consumption on laptops when running on battery. For desktop or server machines the only current solution is an electronic watt-meter that plugs into the mains socket.
#Power Statistics
In Ubuntu Precise 12.04 there is a new power statistics history window. This can be accessed by clicking the battery item in the application indicator menu then selecting Latop Battery tab.
#Powertop
As mentioned by the OP this program provides information on per process/device power usage.
#Powerstat
Another alternative that measures process/device power usage is powerstat that was written for Ubuntu by Colin King. There is a detailed review of its features on hecticgeek.com.
It can be installed from the PPA: ppa:colin-king/powermanagement

Have a look at s-tui: https://amanusk.github.io/s-tui/. Runs in the terminal, shows you the parameters pertinent to the CPU.
linux - How to find power draw in watts? - Unix & Linux Stack Exchange
How do you monitor power consumption?
Which option I have to measure power consumption in Linux?
Hardware power consumption
Videos
If your computer actually keeps track of power (e.g. notebook), than on kernel 3.8.11 you can use the command below. It returns power measured in microwatts.
cat /sys/class/power_supply/BAT0/power_now
This works on kernel 3.8.11 (Ubuntu Quantal mainline generic).
Another KISS solution, completing Adam's suggestion. This is for people who don't have a power_now file. (Arch)
echo - | awk "{printf \"%.1f\", \
(cat /sys/class/power_supply/BAT1/current_now) * \
$(cat /sys/class/power_supply/BAT1/voltage_now) \
)) / 1000000000000 }" ; echo " W "
Reports the actual power draw in Watts with one decimal place.
Since power usage (at least cpu-wise) is fairly easy to monitor in windows (hwinfo). Is there is a cli equivalent for linux?
I know that powerstart let you know the power consumption of a laptop, but this software is not useful with a desktop computer.
Anyone knows a software to mesure the software consumption in a desktop and laptop computers?
Thks in advance