summaryrefslogtreecommitdiff
path: root/testcases/014-battery-capacity/uevent
diff options
context:
space:
mode:
authorEmeric Planet <emeric.planet@gmail.com>2017-04-13 21:46:21 +0200
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2017-04-13 21:46:21 +0200
commitc7dea747519f99584002084df3dce546f37df8b5 (patch)
tree4315dd2be5fde515a6c590c903b43efd557a1de8 /testcases/014-battery-capacity/uevent
parent94651257cea4ff419f9cf2143d93193d5a5ccb96 (diff)
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
Diffstat (limited to 'testcases/014-battery-capacity/uevent')
-rw-r--r--testcases/014-battery-capacity/uevent7
1 files changed, 7 insertions, 0 deletions
diff --git a/testcases/014-battery-capacity/uevent b/testcases/014-battery-capacity/uevent
new file mode 100644
index 0000000..5f06cc9
--- /dev/null
+++ b/testcases/014-battery-capacity/uevent
@@ -0,0 +1,7 @@
+POWER_SUPPLY_NAME=hid-70:cd:60:f7:a0:5c-battery
+POWER_SUPPLY_PRESENT=1
+POWER_SUPPLY_ONLINE=1
+POWER_SUPPLY_CAPACITY=100
+POWER_SUPPLY_MODEL_NAME=applemagictrackpad
+POWER_SUPPLY_STATUS=Discharging
+POWER_SUPPLY_SCOPE=Device