You are not logged in.

#1 2015-08-03 11:36:24

Coriolis
Member
From: Russian Federation
Registered: 2015-07-26
Posts: 27

Check realtime power discharge rate

I'm trying to monitor realtime discharge rate in watts. I have a laptop, can I check it without installing any additional packages?

Offline

#2 2015-08-03 11:54:33

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: Check realtime power discharge rate

Look into

/sys/class/power_supply/BAT0

  there should be something 'power_now' where your current power usage of the battery is stored.
This is handled by acpi


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#3 2015-08-03 12:02:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Check realtime power discharge rate

On my systems it's in that directory under the file 'energy_now'.  Take multiple readings at known time intervals and you can calculate watts.

EDIT: although I don't know the units on the energy meaures - my numbers seem far to high to be joules, it seems of the right order to be mJ, but that's just a guess.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB