[ltp] where in /sys is the power meter for my whole computer located?

Yves-Alexis Perez linux-thinkpad@linux-thinkpad.org
Mon, 18 Jan 2010 23:17:44 +0100


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigD3D0E1998E2D1B7A3A986912
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 18/01/2010 22:48, jidanni@jidanni.org wrote:
> I do
> # iwconfig wlan0 txpower [0-20]
> How can I see if this is really using less or more power than before?
> I could check /sys/class/power_supply/BAT0/uevent but I am not on
> battery power today. Where in /sys is "the power meter for my whole
> house" located? I use Debian linux-image-2.6.32. I could check with
> iwconfig but it just reports what I typed in.

In /sys/class/power_supply you'll find everything need.

cat /sys/class/power_supply/BAT0/uevent
POWER_SUPPLY_NAME=3DBAT0
POWER_SUPPLY_TYPE=3DBattery
POWER_SUPPLY_STATUS=3DUnknown
POWER_SUPPLY_PRESENT=3D1
POWER_SUPPLY_TECHNOLOGY=3DLi-ion
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=3D10800000
POWER_SUPPLY_VOLTAGE_NOW=3D12483000
POWER_SUPPLY_CURRENT_NOW=3D0
POWER_SUPPLY_POWER_NOW=3D0
POWER_SUPPLY_ENERGY_FULL_DESIGN=3D56160000
POWER_SUPPLY_ENERGY_FULL=3D49790000
POWER_SUPPLY_ENERGY_NOW=3D48490000
POWER_SUPPLY_MODEL_NAME=3DCOMPATIBLE
POWER_SUPPLY_MANUFACTURER=3DPSPSP
POWER_SUPPLY_SERIAL_NUMBER=3D   38

Oh, by the way, I guess you didn't have the idea to look at the
documentation?

Cheers,
--=20
Yves-Alexis


--------------enigD3D0E1998E2D1B7A3A986912
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCgAGBQJLVN4IAAoJEDBVD3hx7wuo7fsQAMd5Kmo1GApOS1zOCU/VHVDk
PgRlE96+2XJZiMFe0pdANXnwu9ipBHZAZBeZWa4IFrFbn6T5N4kTQxK2vGelzh3O
xgYL7WkqAzEnXvkwo452XcWpWvxnw7S1+fARRyTw9pE7tOeePQz8PFiymzXNPYJk
7phhJl+qP3yPeREktiEZEyCHBxf7GbvHYN5xhHb+36JNrQMIHb+Va++R+0HRtaRz
G3q4pgcUDe7bBXGQyVxSUDMq4pZ6WPQEJYg7kscWVAZVxwB8SDwBMCmFNPxN0DIZ
JABFAEEWHqQ1+QjsAmzSSU2YmUkZq3wgsofgMA68RiHUUJs4YCOSzdl69iEShcin
f87beab7Rg2399BwdeBimZfEZOhBsHyrQFFn9oSt58YRWOeWc6sPDQmE/G3pvbT/
ydOJuq5S7nJTRMxga54u9KtFe5xCTr4s+hcEeGjGWAuE9DABngyGAEBjpkE8dMmd
dZ/eMfqsA+Vmpr9DR4waMzyb1CQfFOeoaX3R/ZujgNQjHiYL8iMHuLDjNywxupwz
x8n2xJD0ghiJAUeYU80hS36sWE+KXjwFHMS4c2rp/t384/9Oy0CZIdZXMh6jkOjj
MREf7AXwDQu8TXhTmXBaI5iGsTqKupfvqD1gi1Ht69ieI7m2xJZUKj0HOxh4bGtj
eFXRqM67BSFvminYUqPo
=oyzz
-----END PGP SIGNATURE-----

--------------enigD3D0E1998E2D1B7A3A986912--