From c7dea747519f99584002084df3dce546f37df8b5 Mon Sep 17 00:00:00 2001 From: Emeric Planet Date: Thu, 13 Apr 2017 21:46:21 +0200 Subject: Add battery capacity parsing (#216) The Linux power supply class defines three entries to provide battery status. One of them wasn't used: POWER_SUPPLY_CAPACITY. https://www.kernel.org/doc/Documentation/power/power_supply_class.txt--- testcases/015-battery-capacity/uevent | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 testcases/015-battery-capacity/uevent (limited to 'testcases/015-battery-capacity/uevent') diff --git a/testcases/015-battery-capacity/uevent b/testcases/015-battery-capacity/uevent new file mode 100644 index 0000000..ac74624 --- /dev/null +++ b/testcases/015-battery-capacity/uevent @@ -0,0 +1,10 @@ +POWER_SUPPLY_CAPACITY=100 +POWER_SUPPLY_CURRENT_NOW=1107000 +POWER_SUPPLY_CHARGE_FULL_DESIGN=7800000 +POWER_SUPPLY_CHARGE_NOW=2390000 +POWER_SUPPLY_NAME=hid-70:cd:60:f7:a0:5c-battery +POWER_SUPPLY_PRESENT=1 +POWER_SUPPLY_ONLINE=1 +POWER_SUPPLY_MODEL_NAME=applemagictrackpad +POWER_SUPPLY_STATUS=Discharging +POWER_SUPPLY_SCOPE=Device -- cgit v1.2.3