From d8c289e0ccdbaa48bbda2c348d8f5a6a9117f5d0 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 17 Sep 2017 13:50:58 +0200 Subject: [PATCH] More battery data --- test/2battery-gijsbers/AC0/online | 1 + test/2battery-gijsbers/AC0/power/async | 1 + test/2battery-gijsbers/AC0/power/control | 1 + .../AC0/power/runtime_active_kids | 1 + .../AC0/power/runtime_active_time | 1 + .../AC0/power/runtime_enabled | 1 + .../AC0/power/runtime_status | 1 + .../AC0/power/runtime_suspended_time | 1 + .../2battery-gijsbers/AC0/power/runtime_usage | 1 + test/2battery-gijsbers/AC0/power/wakeup | 1 + .../AC0/power/wakeup_abort_count | 1 + .../2battery-gijsbers/AC0/power/wakeup_active | 1 + .../AC0/power/wakeup_active_count | 1 + test/2battery-gijsbers/AC0/power/wakeup_count | 1 + .../AC0/power/wakeup_expire_count | 1 + .../AC0/power/wakeup_last_time_ms | 1 + .../AC0/power/wakeup_max_time_ms | 1 + .../AC0/power/wakeup_prevent_sleep_time_ms | 1 + .../AC0/power/wakeup_total_time_ms | 1 + test/2battery-gijsbers/AC0/type | 1 + test/2battery-gijsbers/AC0/uevent | 1 + test/2battery-gijsbers/BAT0/capacity | 1 + test/2battery-gijsbers/BAT0/capacity_level | 1 + test/2battery-gijsbers/BAT0/charge_full | 1 + .../2battery-gijsbers/BAT0/charge_full_design | 1 + test/2battery-gijsbers/BAT0/charge_now | 1 + test/2battery-gijsbers/BAT0/charge_type | 1 + test/2battery-gijsbers/BAT0/health | 1 + test/2battery-gijsbers/BAT0/manufacturer | 1 + test/2battery-gijsbers/BAT0/model_name | 1 + test/2battery-gijsbers/BAT0/power/async | 1 + test/2battery-gijsbers/BAT0/power/control | 1 + .../BAT0/power/runtime_active_kids | 1 + .../BAT0/power/runtime_active_time | 1 + .../BAT0/power/runtime_enabled | 1 + .../BAT0/power/runtime_status | 1 + .../BAT0/power/runtime_suspended_time | 1 + .../BAT0/power/runtime_usage | 1 + test/2battery-gijsbers/BAT0/power/wakeup | 1 + .../BAT0/power/wakeup_abort_count | 1 + .../BAT0/power/wakeup_active | 1 + .../BAT0/power/wakeup_active_count | 1 + .../2battery-gijsbers/BAT0/power/wakeup_count | 1 + .../BAT0/power/wakeup_expire_count | 1 + .../BAT0/power/wakeup_last_time_ms | 1 + .../BAT0/power/wakeup_max_time_ms | 1 + .../BAT0/power/wakeup_prevent_sleep_time_ms | 1 + .../BAT0/power/wakeup_total_time_ms | 1 + test/2battery-gijsbers/BAT0/present | 1 + test/2battery-gijsbers/BAT0/serial_number | 1 + test/2battery-gijsbers/BAT0/status | 1 + test/2battery-gijsbers/BAT0/technology | 1 + test/2battery-gijsbers/BAT0/temp | 1 + test/2battery-gijsbers/BAT0/time_to_empty_avg | 1 + test/2battery-gijsbers/BAT0/time_to_full_now | 1 + test/2battery-gijsbers/BAT0/type | 1 + test/2battery-gijsbers/BAT0/uevent | 1 + test/2battery-gijsbers/BAT0/voltage_now | 1 + test/2battery-gijsbers/BAT1/capacity | 1 + test/2battery-gijsbers/BAT1/capacity_level | 1 + test/2battery-gijsbers/BAT1/charge_full | 1 + .../2battery-gijsbers/BAT1/charge_full_design | 1 + test/2battery-gijsbers/BAT1/charge_now | 1 + test/2battery-gijsbers/BAT1/charge_type | 1 + test/2battery-gijsbers/BAT1/health | 1 + test/2battery-gijsbers/BAT1/manufacturer | 1 + test/2battery-gijsbers/BAT1/model_name | 1 + test/2battery-gijsbers/BAT1/power/async | 1 + test/2battery-gijsbers/BAT1/power/control | 1 + .../BAT1/power/runtime_active_kids | 1 + .../BAT1/power/runtime_active_time | 1 + .../BAT1/power/runtime_enabled | 1 + .../BAT1/power/runtime_status | 1 + .../BAT1/power/runtime_suspended_time | 1 + .../BAT1/power/runtime_usage | 1 + test/2battery-gijsbers/BAT1/power/wakeup | 1 + .../BAT1/power/wakeup_abort_count | 1 + .../BAT1/power/wakeup_active | 1 + .../BAT1/power/wakeup_active_count | 1 + .../2battery-gijsbers/BAT1/power/wakeup_count | 1 + .../BAT1/power/wakeup_expire_count | 1 + .../BAT1/power/wakeup_last_time_ms | 1 + .../BAT1/power/wakeup_max_time_ms | 1 + .../BAT1/power/wakeup_prevent_sleep_time_ms | 1 + .../BAT1/power/wakeup_total_time_ms | 1 + test/2battery-gijsbers/BAT1/present | 1 + test/2battery-gijsbers/BAT1/serial_number | 1 + test/2battery-gijsbers/BAT1/status | 1 + test/2battery-gijsbers/BAT1/technology | 1 + test/2battery-gijsbers/BAT1/temp | 1 + test/2battery-gijsbers/BAT1/time_to_empty_avg | 1 + test/2battery-gijsbers/BAT1/time_to_full_now | 1 + test/2battery-gijsbers/BAT1/type | 1 + test/2battery-gijsbers/BAT1/uevent | 1 + test/2battery-gijsbers/BAT1/voltage_now | 1 + test/2battery-gijsbers/bat.txt | 130 ++++++++++++++++++ test/expand2.py | 34 +++++ 97 files changed, 259 insertions(+) create mode 100644 test/2battery-gijsbers/AC0/online create mode 100644 test/2battery-gijsbers/AC0/power/async create mode 100644 test/2battery-gijsbers/AC0/power/control create mode 100644 test/2battery-gijsbers/AC0/power/runtime_active_kids create mode 100644 test/2battery-gijsbers/AC0/power/runtime_active_time create mode 100644 test/2battery-gijsbers/AC0/power/runtime_enabled create mode 100644 test/2battery-gijsbers/AC0/power/runtime_status create mode 100644 test/2battery-gijsbers/AC0/power/runtime_suspended_time create mode 100644 test/2battery-gijsbers/AC0/power/runtime_usage create mode 100644 test/2battery-gijsbers/AC0/power/wakeup create mode 100644 test/2battery-gijsbers/AC0/power/wakeup_abort_count create mode 100644 test/2battery-gijsbers/AC0/power/wakeup_active create mode 100644 test/2battery-gijsbers/AC0/power/wakeup_active_count create mode 100644 test/2battery-gijsbers/AC0/power/wakeup_count create mode 100644 test/2battery-gijsbers/AC0/power/wakeup_expire_count create mode 100644 test/2battery-gijsbers/AC0/power/wakeup_last_time_ms create mode 100644 test/2battery-gijsbers/AC0/power/wakeup_max_time_ms create mode 100644 test/2battery-gijsbers/AC0/power/wakeup_prevent_sleep_time_ms create mode 100644 test/2battery-gijsbers/AC0/power/wakeup_total_time_ms create mode 100644 test/2battery-gijsbers/AC0/type create mode 100644 test/2battery-gijsbers/AC0/uevent create mode 100644 test/2battery-gijsbers/BAT0/capacity create mode 100644 test/2battery-gijsbers/BAT0/capacity_level create mode 100644 test/2battery-gijsbers/BAT0/charge_full create mode 100644 test/2battery-gijsbers/BAT0/charge_full_design create mode 100644 test/2battery-gijsbers/BAT0/charge_now create mode 100644 test/2battery-gijsbers/BAT0/charge_type create mode 100644 test/2battery-gijsbers/BAT0/health create mode 100644 test/2battery-gijsbers/BAT0/manufacturer create mode 100644 test/2battery-gijsbers/BAT0/model_name create mode 100644 test/2battery-gijsbers/BAT0/power/async create mode 100644 test/2battery-gijsbers/BAT0/power/control create mode 100644 test/2battery-gijsbers/BAT0/power/runtime_active_kids create mode 100644 test/2battery-gijsbers/BAT0/power/runtime_active_time create mode 100644 test/2battery-gijsbers/BAT0/power/runtime_enabled create mode 100644 test/2battery-gijsbers/BAT0/power/runtime_status create mode 100644 test/2battery-gijsbers/BAT0/power/runtime_suspended_time create mode 100644 test/2battery-gijsbers/BAT0/power/runtime_usage create mode 100644 test/2battery-gijsbers/BAT0/power/wakeup create mode 100644 test/2battery-gijsbers/BAT0/power/wakeup_abort_count create mode 100644 test/2battery-gijsbers/BAT0/power/wakeup_active create mode 100644 test/2battery-gijsbers/BAT0/power/wakeup_active_count create mode 100644 test/2battery-gijsbers/BAT0/power/wakeup_count create mode 100644 test/2battery-gijsbers/BAT0/power/wakeup_expire_count create mode 100644 test/2battery-gijsbers/BAT0/power/wakeup_last_time_ms create mode 100644 test/2battery-gijsbers/BAT0/power/wakeup_max_time_ms create mode 100644 test/2battery-gijsbers/BAT0/power/wakeup_prevent_sleep_time_ms create mode 100644 test/2battery-gijsbers/BAT0/power/wakeup_total_time_ms create mode 100644 test/2battery-gijsbers/BAT0/present create mode 100644 test/2battery-gijsbers/BAT0/serial_number create mode 100644 test/2battery-gijsbers/BAT0/status create mode 100644 test/2battery-gijsbers/BAT0/technology create mode 100644 test/2battery-gijsbers/BAT0/temp create mode 100644 test/2battery-gijsbers/BAT0/time_to_empty_avg create mode 100644 test/2battery-gijsbers/BAT0/time_to_full_now create mode 100644 test/2battery-gijsbers/BAT0/type create mode 100644 test/2battery-gijsbers/BAT0/uevent create mode 100644 test/2battery-gijsbers/BAT0/voltage_now create mode 100644 test/2battery-gijsbers/BAT1/capacity create mode 100644 test/2battery-gijsbers/BAT1/capacity_level create mode 100644 test/2battery-gijsbers/BAT1/charge_full create mode 100644 test/2battery-gijsbers/BAT1/charge_full_design create mode 100644 test/2battery-gijsbers/BAT1/charge_now create mode 100644 test/2battery-gijsbers/BAT1/charge_type create mode 100644 test/2battery-gijsbers/BAT1/health create mode 100644 test/2battery-gijsbers/BAT1/manufacturer create mode 100644 test/2battery-gijsbers/BAT1/model_name create mode 100644 test/2battery-gijsbers/BAT1/power/async create mode 100644 test/2battery-gijsbers/BAT1/power/control create mode 100644 test/2battery-gijsbers/BAT1/power/runtime_active_kids create mode 100644 test/2battery-gijsbers/BAT1/power/runtime_active_time create mode 100644 test/2battery-gijsbers/BAT1/power/runtime_enabled create mode 100644 test/2battery-gijsbers/BAT1/power/runtime_status create mode 100644 test/2battery-gijsbers/BAT1/power/runtime_suspended_time create mode 100644 test/2battery-gijsbers/BAT1/power/runtime_usage create mode 100644 test/2battery-gijsbers/BAT1/power/wakeup create mode 100644 test/2battery-gijsbers/BAT1/power/wakeup_abort_count create mode 100644 test/2battery-gijsbers/BAT1/power/wakeup_active create mode 100644 test/2battery-gijsbers/BAT1/power/wakeup_active_count create mode 100644 test/2battery-gijsbers/BAT1/power/wakeup_count create mode 100644 test/2battery-gijsbers/BAT1/power/wakeup_expire_count create mode 100644 test/2battery-gijsbers/BAT1/power/wakeup_last_time_ms create mode 100644 test/2battery-gijsbers/BAT1/power/wakeup_max_time_ms create mode 100644 test/2battery-gijsbers/BAT1/power/wakeup_prevent_sleep_time_ms create mode 100644 test/2battery-gijsbers/BAT1/power/wakeup_total_time_ms create mode 100644 test/2battery-gijsbers/BAT1/present create mode 100644 test/2battery-gijsbers/BAT1/serial_number create mode 100644 test/2battery-gijsbers/BAT1/status create mode 100644 test/2battery-gijsbers/BAT1/technology create mode 100644 test/2battery-gijsbers/BAT1/temp create mode 100644 test/2battery-gijsbers/BAT1/time_to_empty_avg create mode 100644 test/2battery-gijsbers/BAT1/time_to_full_now create mode 100644 test/2battery-gijsbers/BAT1/type create mode 100644 test/2battery-gijsbers/BAT1/uevent create mode 100644 test/2battery-gijsbers/BAT1/voltage_now create mode 100644 test/2battery-gijsbers/bat.txt create mode 100755 test/expand2.py diff --git a/test/2battery-gijsbers/AC0/online b/test/2battery-gijsbers/AC0/online new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/test/2battery-gijsbers/AC0/online @@ -0,0 +1 @@ +1 diff --git a/test/2battery-gijsbers/AC0/power/async b/test/2battery-gijsbers/AC0/power/async new file mode 100644 index 0000000..7a68b11 --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/async @@ -0,0 +1 @@ +disabled diff --git a/test/2battery-gijsbers/AC0/power/control b/test/2battery-gijsbers/AC0/power/control new file mode 100644 index 0000000..865faf1 --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/control @@ -0,0 +1 @@ +auto diff --git a/test/2battery-gijsbers/AC0/power/runtime_active_kids b/test/2battery-gijsbers/AC0/power/runtime_active_kids new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/runtime_active_kids @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/AC0/power/runtime_active_time b/test/2battery-gijsbers/AC0/power/runtime_active_time new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/runtime_active_time @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/AC0/power/runtime_enabled b/test/2battery-gijsbers/AC0/power/runtime_enabled new file mode 100644 index 0000000..7a68b11 --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/runtime_enabled @@ -0,0 +1 @@ +disabled diff --git a/test/2battery-gijsbers/AC0/power/runtime_status b/test/2battery-gijsbers/AC0/power/runtime_status new file mode 100644 index 0000000..ad7ccf7 --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/runtime_status @@ -0,0 +1 @@ +unsupported diff --git a/test/2battery-gijsbers/AC0/power/runtime_suspended_time b/test/2battery-gijsbers/AC0/power/runtime_suspended_time new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/runtime_suspended_time @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/AC0/power/runtime_usage b/test/2battery-gijsbers/AC0/power/runtime_usage new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/runtime_usage @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/AC0/power/wakeup b/test/2battery-gijsbers/AC0/power/wakeup new file mode 100644 index 0000000..86981e6 --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/wakeup @@ -0,0 +1 @@ +enabled diff --git a/test/2battery-gijsbers/AC0/power/wakeup_abort_count b/test/2battery-gijsbers/AC0/power/wakeup_abort_count new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/wakeup_abort_count @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/AC0/power/wakeup_active b/test/2battery-gijsbers/AC0/power/wakeup_active new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/wakeup_active @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/AC0/power/wakeup_active_count b/test/2battery-gijsbers/AC0/power/wakeup_active_count new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/wakeup_active_count @@ -0,0 +1 @@ +4 diff --git a/test/2battery-gijsbers/AC0/power/wakeup_count b/test/2battery-gijsbers/AC0/power/wakeup_count new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/wakeup_count @@ -0,0 +1 @@ +4 diff --git a/test/2battery-gijsbers/AC0/power/wakeup_expire_count b/test/2battery-gijsbers/AC0/power/wakeup_expire_count new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/wakeup_expire_count @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/AC0/power/wakeup_last_time_ms b/test/2battery-gijsbers/AC0/power/wakeup_last_time_ms new file mode 100644 index 0000000..9959326 --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/wakeup_last_time_ms @@ -0,0 +1 @@ +18773802 diff --git a/test/2battery-gijsbers/AC0/power/wakeup_max_time_ms b/test/2battery-gijsbers/AC0/power/wakeup_max_time_ms new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/wakeup_max_time_ms @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/AC0/power/wakeup_prevent_sleep_time_ms b/test/2battery-gijsbers/AC0/power/wakeup_prevent_sleep_time_ms new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/wakeup_prevent_sleep_time_ms @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/AC0/power/wakeup_total_time_ms b/test/2battery-gijsbers/AC0/power/wakeup_total_time_ms new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/AC0/power/wakeup_total_time_ms @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/AC0/type b/test/2battery-gijsbers/AC0/type new file mode 100644 index 0000000..9aaee2d --- /dev/null +++ b/test/2battery-gijsbers/AC0/type @@ -0,0 +1 @@ +Mains diff --git a/test/2battery-gijsbers/AC0/uevent b/test/2battery-gijsbers/AC0/uevent new file mode 100644 index 0000000..420cba5 --- /dev/null +++ b/test/2battery-gijsbers/AC0/uevent @@ -0,0 +1 @@ +POWER_SUPPLY_ONLINE=1 diff --git a/test/2battery-gijsbers/BAT0/capacity b/test/2battery-gijsbers/BAT0/capacity new file mode 100644 index 0000000..98d9bcb --- /dev/null +++ b/test/2battery-gijsbers/BAT0/capacity @@ -0,0 +1 @@ +17 diff --git a/test/2battery-gijsbers/BAT0/capacity_level b/test/2battery-gijsbers/BAT0/capacity_level new file mode 100644 index 0000000..11d19b2 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/capacity_level @@ -0,0 +1 @@ +Critical diff --git a/test/2battery-gijsbers/BAT0/charge_full b/test/2battery-gijsbers/BAT0/charge_full new file mode 100644 index 0000000..29d6383 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/charge_full @@ -0,0 +1 @@ +100 diff --git a/test/2battery-gijsbers/BAT0/charge_full_design b/test/2battery-gijsbers/BAT0/charge_full_design new file mode 100644 index 0000000..29d6383 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/charge_full_design @@ -0,0 +1 @@ +100 diff --git a/test/2battery-gijsbers/BAT0/charge_now b/test/2battery-gijsbers/BAT0/charge_now new file mode 100644 index 0000000..98d9bcb --- /dev/null +++ b/test/2battery-gijsbers/BAT0/charge_now @@ -0,0 +1 @@ +17 diff --git a/test/2battery-gijsbers/BAT0/charge_type b/test/2battery-gijsbers/BAT0/charge_type new file mode 100644 index 0000000..5220ffe --- /dev/null +++ b/test/2battery-gijsbers/BAT0/charge_type @@ -0,0 +1 @@ +Fast diff --git a/test/2battery-gijsbers/BAT0/health b/test/2battery-gijsbers/BAT0/health new file mode 100644 index 0000000..cd9dd73 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/health @@ -0,0 +1 @@ +Good diff --git a/test/2battery-gijsbers/BAT0/manufacturer b/test/2battery-gijsbers/BAT0/manufacturer new file mode 100644 index 0000000..9b07567 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/manufacturer @@ -0,0 +1 @@ +Linux diff --git a/test/2battery-gijsbers/BAT0/model_name b/test/2battery-gijsbers/BAT0/model_name new file mode 100644 index 0000000..2d484b0 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/model_name @@ -0,0 +1 @@ +Fake battery 1 diff --git a/test/2battery-gijsbers/BAT0/power/async b/test/2battery-gijsbers/BAT0/power/async new file mode 100644 index 0000000..7a68b11 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/async @@ -0,0 +1 @@ +disabled diff --git a/test/2battery-gijsbers/BAT0/power/control b/test/2battery-gijsbers/BAT0/power/control new file mode 100644 index 0000000..865faf1 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/control @@ -0,0 +1 @@ +auto diff --git a/test/2battery-gijsbers/BAT0/power/runtime_active_kids b/test/2battery-gijsbers/BAT0/power/runtime_active_kids new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/runtime_active_kids @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT0/power/runtime_active_time b/test/2battery-gijsbers/BAT0/power/runtime_active_time new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/runtime_active_time @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT0/power/runtime_enabled b/test/2battery-gijsbers/BAT0/power/runtime_enabled new file mode 100644 index 0000000..7a68b11 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/runtime_enabled @@ -0,0 +1 @@ +disabled diff --git a/test/2battery-gijsbers/BAT0/power/runtime_status b/test/2battery-gijsbers/BAT0/power/runtime_status new file mode 100644 index 0000000..ad7ccf7 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/runtime_status @@ -0,0 +1 @@ +unsupported diff --git a/test/2battery-gijsbers/BAT0/power/runtime_suspended_time b/test/2battery-gijsbers/BAT0/power/runtime_suspended_time new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/runtime_suspended_time @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT0/power/runtime_usage b/test/2battery-gijsbers/BAT0/power/runtime_usage new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/runtime_usage @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT0/power/wakeup b/test/2battery-gijsbers/BAT0/power/wakeup new file mode 100644 index 0000000..86981e6 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/wakeup @@ -0,0 +1 @@ +enabled diff --git a/test/2battery-gijsbers/BAT0/power/wakeup_abort_count b/test/2battery-gijsbers/BAT0/power/wakeup_abort_count new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/wakeup_abort_count @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT0/power/wakeup_active b/test/2battery-gijsbers/BAT0/power/wakeup_active new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/wakeup_active @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT0/power/wakeup_active_count b/test/2battery-gijsbers/BAT0/power/wakeup_active_count new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/wakeup_active_count @@ -0,0 +1 @@ +4 diff --git a/test/2battery-gijsbers/BAT0/power/wakeup_count b/test/2battery-gijsbers/BAT0/power/wakeup_count new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/wakeup_count @@ -0,0 +1 @@ +4 diff --git a/test/2battery-gijsbers/BAT0/power/wakeup_expire_count b/test/2battery-gijsbers/BAT0/power/wakeup_expire_count new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/wakeup_expire_count @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT0/power/wakeup_last_time_ms b/test/2battery-gijsbers/BAT0/power/wakeup_last_time_ms new file mode 100644 index 0000000..9959326 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/wakeup_last_time_ms @@ -0,0 +1 @@ +18773802 diff --git a/test/2battery-gijsbers/BAT0/power/wakeup_max_time_ms b/test/2battery-gijsbers/BAT0/power/wakeup_max_time_ms new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/wakeup_max_time_ms @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT0/power/wakeup_prevent_sleep_time_ms b/test/2battery-gijsbers/BAT0/power/wakeup_prevent_sleep_time_ms new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/wakeup_prevent_sleep_time_ms @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT0/power/wakeup_total_time_ms b/test/2battery-gijsbers/BAT0/power/wakeup_total_time_ms new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT0/power/wakeup_total_time_ms @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT0/present b/test/2battery-gijsbers/BAT0/present new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/test/2battery-gijsbers/BAT0/present @@ -0,0 +1 @@ +1 diff --git a/test/2battery-gijsbers/BAT0/serial_number b/test/2battery-gijsbers/BAT0/serial_number new file mode 100644 index 0000000..97b5955 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/serial_number @@ -0,0 +1 @@ +12345678 diff --git a/test/2battery-gijsbers/BAT0/status b/test/2battery-gijsbers/BAT0/status new file mode 100644 index 0000000..a71a143 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/status @@ -0,0 +1 @@ +Charging diff --git a/test/2battery-gijsbers/BAT0/technology b/test/2battery-gijsbers/BAT0/technology new file mode 100644 index 0000000..2c679ca --- /dev/null +++ b/test/2battery-gijsbers/BAT0/technology @@ -0,0 +1 @@ +Li-ion diff --git a/test/2battery-gijsbers/BAT0/temp b/test/2battery-gijsbers/BAT0/temp new file mode 100644 index 0000000..6f4247a --- /dev/null +++ b/test/2battery-gijsbers/BAT0/temp @@ -0,0 +1 @@ +26 diff --git a/test/2battery-gijsbers/BAT0/time_to_empty_avg b/test/2battery-gijsbers/BAT0/time_to_empty_avg new file mode 100644 index 0000000..282d208 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/time_to_empty_avg @@ -0,0 +1 @@ +612 diff --git a/test/2battery-gijsbers/BAT0/time_to_full_now b/test/2battery-gijsbers/BAT0/time_to_full_now new file mode 100644 index 0000000..282d208 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/time_to_full_now @@ -0,0 +1 @@ +612 diff --git a/test/2battery-gijsbers/BAT0/type b/test/2battery-gijsbers/BAT0/type new file mode 100644 index 0000000..6784dd3 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/type @@ -0,0 +1 @@ +Battery diff --git a/test/2battery-gijsbers/BAT0/uevent b/test/2battery-gijsbers/BAT0/uevent new file mode 100644 index 0000000..81cd36f --- /dev/null +++ b/test/2battery-gijsbers/BAT0/uevent @@ -0,0 +1 @@ +POWER_SUPPLY_VOLTAGE_NOW=3300 diff --git a/test/2battery-gijsbers/BAT0/voltage_now b/test/2battery-gijsbers/BAT0/voltage_now new file mode 100644 index 0000000..7038a21 --- /dev/null +++ b/test/2battery-gijsbers/BAT0/voltage_now @@ -0,0 +1 @@ +3300 diff --git a/test/2battery-gijsbers/BAT1/capacity b/test/2battery-gijsbers/BAT1/capacity new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/capacity @@ -0,0 +1 @@ +7 diff --git a/test/2battery-gijsbers/BAT1/capacity_level b/test/2battery-gijsbers/BAT1/capacity_level new file mode 100644 index 0000000..5c6755b --- /dev/null +++ b/test/2battery-gijsbers/BAT1/capacity_level @@ -0,0 +1 @@ +Low diff --git a/test/2battery-gijsbers/BAT1/charge_full b/test/2battery-gijsbers/BAT1/charge_full new file mode 100644 index 0000000..29d6383 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/charge_full @@ -0,0 +1 @@ +100 diff --git a/test/2battery-gijsbers/BAT1/charge_full_design b/test/2battery-gijsbers/BAT1/charge_full_design new file mode 100644 index 0000000..29d6383 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/charge_full_design @@ -0,0 +1 @@ +100 diff --git a/test/2battery-gijsbers/BAT1/charge_now b/test/2battery-gijsbers/BAT1/charge_now new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/charge_now @@ -0,0 +1 @@ +7 diff --git a/test/2battery-gijsbers/BAT1/charge_type b/test/2battery-gijsbers/BAT1/charge_type new file mode 100644 index 0000000..5220ffe --- /dev/null +++ b/test/2battery-gijsbers/BAT1/charge_type @@ -0,0 +1 @@ +Fast diff --git a/test/2battery-gijsbers/BAT1/health b/test/2battery-gijsbers/BAT1/health new file mode 100644 index 0000000..cd9dd73 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/health @@ -0,0 +1 @@ +Good diff --git a/test/2battery-gijsbers/BAT1/manufacturer b/test/2battery-gijsbers/BAT1/manufacturer new file mode 100644 index 0000000..9b07567 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/manufacturer @@ -0,0 +1 @@ +Linux diff --git a/test/2battery-gijsbers/BAT1/model_name b/test/2battery-gijsbers/BAT1/model_name new file mode 100644 index 0000000..b260a42 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/model_name @@ -0,0 +1 @@ +Fake battery 2 diff --git a/test/2battery-gijsbers/BAT1/power/async b/test/2battery-gijsbers/BAT1/power/async new file mode 100644 index 0000000..7a68b11 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/async @@ -0,0 +1 @@ +disabled diff --git a/test/2battery-gijsbers/BAT1/power/control b/test/2battery-gijsbers/BAT1/power/control new file mode 100644 index 0000000..865faf1 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/control @@ -0,0 +1 @@ +auto diff --git a/test/2battery-gijsbers/BAT1/power/runtime_active_kids b/test/2battery-gijsbers/BAT1/power/runtime_active_kids new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/runtime_active_kids @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT1/power/runtime_active_time b/test/2battery-gijsbers/BAT1/power/runtime_active_time new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/runtime_active_time @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT1/power/runtime_enabled b/test/2battery-gijsbers/BAT1/power/runtime_enabled new file mode 100644 index 0000000..7a68b11 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/runtime_enabled @@ -0,0 +1 @@ +disabled diff --git a/test/2battery-gijsbers/BAT1/power/runtime_status b/test/2battery-gijsbers/BAT1/power/runtime_status new file mode 100644 index 0000000..ad7ccf7 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/runtime_status @@ -0,0 +1 @@ +unsupported diff --git a/test/2battery-gijsbers/BAT1/power/runtime_suspended_time b/test/2battery-gijsbers/BAT1/power/runtime_suspended_time new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/runtime_suspended_time @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT1/power/runtime_usage b/test/2battery-gijsbers/BAT1/power/runtime_usage new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/runtime_usage @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT1/power/wakeup b/test/2battery-gijsbers/BAT1/power/wakeup new file mode 100644 index 0000000..86981e6 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/wakeup @@ -0,0 +1 @@ +enabled diff --git a/test/2battery-gijsbers/BAT1/power/wakeup_abort_count b/test/2battery-gijsbers/BAT1/power/wakeup_abort_count new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/wakeup_abort_count @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT1/power/wakeup_active b/test/2battery-gijsbers/BAT1/power/wakeup_active new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/wakeup_active @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT1/power/wakeup_active_count b/test/2battery-gijsbers/BAT1/power/wakeup_active_count new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/wakeup_active_count @@ -0,0 +1 @@ +4 diff --git a/test/2battery-gijsbers/BAT1/power/wakeup_count b/test/2battery-gijsbers/BAT1/power/wakeup_count new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/wakeup_count @@ -0,0 +1 @@ +4 diff --git a/test/2battery-gijsbers/BAT1/power/wakeup_expire_count b/test/2battery-gijsbers/BAT1/power/wakeup_expire_count new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/wakeup_expire_count @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT1/power/wakeup_last_time_ms b/test/2battery-gijsbers/BAT1/power/wakeup_last_time_ms new file mode 100644 index 0000000..9959326 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/wakeup_last_time_ms @@ -0,0 +1 @@ +18773802 diff --git a/test/2battery-gijsbers/BAT1/power/wakeup_max_time_ms b/test/2battery-gijsbers/BAT1/power/wakeup_max_time_ms new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/wakeup_max_time_ms @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT1/power/wakeup_prevent_sleep_time_ms b/test/2battery-gijsbers/BAT1/power/wakeup_prevent_sleep_time_ms new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/wakeup_prevent_sleep_time_ms @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT1/power/wakeup_total_time_ms b/test/2battery-gijsbers/BAT1/power/wakeup_total_time_ms new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/2battery-gijsbers/BAT1/power/wakeup_total_time_ms @@ -0,0 +1 @@ +0 diff --git a/test/2battery-gijsbers/BAT1/present b/test/2battery-gijsbers/BAT1/present new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/test/2battery-gijsbers/BAT1/present @@ -0,0 +1 @@ +1 diff --git a/test/2battery-gijsbers/BAT1/serial_number b/test/2battery-gijsbers/BAT1/serial_number new file mode 100644 index 0000000..97b5955 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/serial_number @@ -0,0 +1 @@ +12345678 diff --git a/test/2battery-gijsbers/BAT1/status b/test/2battery-gijsbers/BAT1/status new file mode 100644 index 0000000..a71a143 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/status @@ -0,0 +1 @@ +Charging diff --git a/test/2battery-gijsbers/BAT1/technology b/test/2battery-gijsbers/BAT1/technology new file mode 100644 index 0000000..2c679ca --- /dev/null +++ b/test/2battery-gijsbers/BAT1/technology @@ -0,0 +1 @@ +Li-ion diff --git a/test/2battery-gijsbers/BAT1/temp b/test/2battery-gijsbers/BAT1/temp new file mode 100644 index 0000000..6f4247a --- /dev/null +++ b/test/2battery-gijsbers/BAT1/temp @@ -0,0 +1 @@ +26 diff --git a/test/2battery-gijsbers/BAT1/time_to_empty_avg b/test/2battery-gijsbers/BAT1/time_to_empty_avg new file mode 100644 index 0000000..2197544 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/time_to_empty_avg @@ -0,0 +1 @@ +252 diff --git a/test/2battery-gijsbers/BAT1/time_to_full_now b/test/2battery-gijsbers/BAT1/time_to_full_now new file mode 100644 index 0000000..2197544 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/time_to_full_now @@ -0,0 +1 @@ +252 diff --git a/test/2battery-gijsbers/BAT1/type b/test/2battery-gijsbers/BAT1/type new file mode 100644 index 0000000..6784dd3 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/type @@ -0,0 +1 @@ +Battery diff --git a/test/2battery-gijsbers/BAT1/uevent b/test/2battery-gijsbers/BAT1/uevent new file mode 100644 index 0000000..81cd36f --- /dev/null +++ b/test/2battery-gijsbers/BAT1/uevent @@ -0,0 +1 @@ +POWER_SUPPLY_VOLTAGE_NOW=3300 diff --git a/test/2battery-gijsbers/BAT1/voltage_now b/test/2battery-gijsbers/BAT1/voltage_now new file mode 100644 index 0000000..7038a21 --- /dev/null +++ b/test/2battery-gijsbers/BAT1/voltage_now @@ -0,0 +1 @@ +3300 diff --git a/test/2battery-gijsbers/bat.txt b/test/2battery-gijsbers/bat.txt new file mode 100644 index 0000000..5ec3628 --- /dev/null +++ b/test/2battery-gijsbers/bat.txt @@ -0,0 +1,130 @@ +AC0/type:Mains +AC0/power/control:auto +AC0/power/wakeup_prevent_sleep_time_ms:0 +AC0/power/async:disabled +AC0/power/wakeup_abort_count:0 +AC0/power/wakeup_active:0 +AC0/power/wakeup_total_time_ms:0 +AC0/power/wakeup_active_count:4 +AC0/power/runtime_enabled:disabled +AC0/power/runtime_active_kids:0 +AC0/power/runtime_active_time:0 +AC0/power/wakeup_max_time_ms:0 +AC0/power/wakeup_count:4 +AC0/power/wakeup_last_time_ms:18773802 +AC0/power/wakeup:enabled +AC0/power/runtime_status:unsupported +AC0/power/runtime_usage:0 +AC0/power/wakeup_expire_count:0 +AC0/power/runtime_suspended_time:0 +AC0/online:1 +AC0/uevent:POWER_SUPPLY_NAME=AC0 +AC0/uevent:POWER_SUPPLY_ONLINE=1 +BAT0/temp:26 +BAT0/type:Battery +BAT0/power/control:auto +BAT0/power/wakeup_prevent_sleep_time_ms:0 +BAT0/power/async:disabled +BAT0/power/wakeup_abort_count:0 +BAT0/power/wakeup_active:0 +BAT0/power/wakeup_total_time_ms:0 +BAT0/power/wakeup_active_count:4 +BAT0/power/runtime_enabled:disabled +BAT0/power/runtime_active_kids:0 +BAT0/power/runtime_active_time:0 +BAT0/power/wakeup_max_time_ms:0 +BAT0/power/wakeup_count:4 +BAT0/power/wakeup_last_time_ms:18773802 +BAT0/power/wakeup:enabled +BAT0/power/runtime_status:unsupported +BAT0/power/runtime_usage:0 +BAT0/power/wakeup_expire_count:0 +BAT0/power/runtime_suspended_time:0 +BAT0/charge_full_design:100 +BAT0/charge_now:17 +BAT0/charge_full:100 +BAT0/charge_type:Fast +BAT0/capacity:17 +BAT0/health:Good +BAT0/capacity_level:Critical +BAT0/status:Charging +BAT0/voltage_now:3300 +BAT0/uevent:POWER_SUPPLY_NAME=BAT0 +BAT0/uevent:POWER_SUPPLY_STATUS=Charging +BAT0/uevent:POWER_SUPPLY_CHARGE_TYPE=Fast +BAT0/uevent:POWER_SUPPLY_HEALTH=Good +BAT0/uevent:POWER_SUPPLY_PRESENT=1 +BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion +BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=100 +BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=100 +BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=17 +BAT0/uevent:POWER_SUPPLY_CAPACITY=17 +BAT0/uevent:POWER_SUPPLY_CAPACITY_LEVEL=Critical +BAT0/uevent:POWER_SUPPLY_TIME_TO_EMPTY_AVG=612 +BAT0/uevent:POWER_SUPPLY_TIME_TO_FULL_NOW=612 +BAT0/uevent:POWER_SUPPLY_MODEL_NAME=Fake battery 1 +BAT0/uevent:POWER_SUPPLY_MANUFACTURER=Linux +BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=12345678 +BAT0/uevent:POWER_SUPPLY_TEMP=26 +BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=3300 +BAT0/model_name:Fake battery 1 +BAT0/manufacturer:Linux +BAT0/technology:Li-ion +BAT0/time_to_full_now:612 +BAT0/time_to_empty_avg:612 +BAT0/serial_number:12345678 +BAT0/present:1 +BAT1/temp:26 +BAT1/type:Battery +BAT1/power/control:auto +BAT1/power/wakeup_prevent_sleep_time_ms:0 +BAT1/power/async:disabled +BAT1/power/wakeup_abort_count:0 +BAT1/power/wakeup_active:0 +BAT1/power/wakeup_total_time_ms:0 +BAT1/power/wakeup_active_count:4 +BAT1/power/runtime_enabled:disabled +BAT1/power/runtime_active_kids:0 +BAT1/power/runtime_active_time:0 +BAT1/power/wakeup_max_time_ms:0 +BAT1/power/wakeup_count:4 +BAT1/power/wakeup_last_time_ms:18773802 +BAT1/power/wakeup:enabled +BAT1/power/runtime_status:unsupported +BAT1/power/runtime_usage:0 +BAT1/power/wakeup_expire_count:0 +BAT1/power/runtime_suspended_time:0 +BAT1/charge_full_design:100 +BAT1/charge_now:7 +BAT1/charge_full:100 +BAT1/charge_type:Fast +BAT1/capacity:7 +BAT1/health:Good +BAT1/capacity_level:Low +BAT1/status:Charging +BAT1/voltage_now:3300 +BAT1/uevent:POWER_SUPPLY_NAME=BAT1 +BAT1/uevent:POWER_SUPPLY_STATUS=Charging +BAT1/uevent:POWER_SUPPLY_CHARGE_TYPE=Fast +BAT1/uevent:POWER_SUPPLY_HEALTH=Good +BAT1/uevent:POWER_SUPPLY_PRESENT=1 +BAT1/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion +BAT1/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=100 +BAT1/uevent:POWER_SUPPLY_CHARGE_FULL=100 +BAT1/uevent:POWER_SUPPLY_CHARGE_NOW=7 +BAT1/uevent:POWER_SUPPLY_CAPACITY=7 +BAT1/uevent:POWER_SUPPLY_CAPACITY_LEVEL=Low +BAT1/uevent:POWER_SUPPLY_TIME_TO_EMPTY_AVG=252 +BAT1/uevent:POWER_SUPPLY_TIME_TO_FULL_NOW=252 +BAT1/uevent:POWER_SUPPLY_MODEL_NAME=Fake battery 2 +BAT1/uevent:POWER_SUPPLY_MANUFACTURER=Linux +BAT1/uevent:POWER_SUPPLY_SERIAL_NUMBER=12345678 +BAT1/uevent:POWER_SUPPLY_TEMP=26 +BAT1/uevent:POWER_SUPPLY_VOLTAGE_NOW=3300 +BAT1/model_name:Fake battery 2 +BAT1/manufacturer:Linux +BAT1/technology:Li-ion +BAT1/time_to_full_now:252 +BAT1/time_to_empty_avg:252 +BAT1/serial_number:12345678 +BAT1/present:1 diff --git a/test/expand2.py b/test/expand2.py new file mode 100755 index 0000000..443522e --- /dev/null +++ b/test/expand2.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python2 + +# Creates directory tree printed by: +# bash -c "for d in /sys/class/power_supply/* ; do find $d/ -exec sh -c 'echo {} ; cat {} ' ';' ; done" 2>&1 | tee out.txt + +import os +import sys + + +def flush(path, content): + if not path or "/" not in path: + return + path = "./" + path + dir_path, fname = path.rsplit("/", 1) + try: + os.makedirs("./" + dir_path) + except: + pass + with open("./" + path, "w") as f: + f.write(content) + + +with open(sys.argv[1], "r") as f: + path = None + content = "" + for line in f: + if "/" in line and ":" in line: + flush(path, content) + content = "" + path, content = line.split(":", 1) + else: + content += line + if content: + flush(path, content)