More battery data
This commit is contained in:
parent
5a17bb2fda
commit
d8c289e0cc
97 changed files with 259 additions and 0 deletions
1
test/2battery-gijsbers/AC0/online
Normal file
1
test/2battery-gijsbers/AC0/online
Normal file
|
@ -0,0 +1 @@
|
|||
1
|
1
test/2battery-gijsbers/AC0/power/async
Normal file
1
test/2battery-gijsbers/AC0/power/async
Normal file
|
@ -0,0 +1 @@
|
|||
disabled
|
1
test/2battery-gijsbers/AC0/power/control
Normal file
1
test/2battery-gijsbers/AC0/power/control
Normal file
|
@ -0,0 +1 @@
|
|||
auto
|
1
test/2battery-gijsbers/AC0/power/runtime_active_kids
Normal file
1
test/2battery-gijsbers/AC0/power/runtime_active_kids
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/AC0/power/runtime_active_time
Normal file
1
test/2battery-gijsbers/AC0/power/runtime_active_time
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/AC0/power/runtime_enabled
Normal file
1
test/2battery-gijsbers/AC0/power/runtime_enabled
Normal file
|
@ -0,0 +1 @@
|
|||
disabled
|
1
test/2battery-gijsbers/AC0/power/runtime_status
Normal file
1
test/2battery-gijsbers/AC0/power/runtime_status
Normal file
|
@ -0,0 +1 @@
|
|||
unsupported
|
1
test/2battery-gijsbers/AC0/power/runtime_suspended_time
Normal file
1
test/2battery-gijsbers/AC0/power/runtime_suspended_time
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/AC0/power/runtime_usage
Normal file
1
test/2battery-gijsbers/AC0/power/runtime_usage
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/AC0/power/wakeup
Normal file
1
test/2battery-gijsbers/AC0/power/wakeup
Normal file
|
@ -0,0 +1 @@
|
|||
enabled
|
1
test/2battery-gijsbers/AC0/power/wakeup_abort_count
Normal file
1
test/2battery-gijsbers/AC0/power/wakeup_abort_count
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/AC0/power/wakeup_active
Normal file
1
test/2battery-gijsbers/AC0/power/wakeup_active
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/AC0/power/wakeup_active_count
Normal file
1
test/2battery-gijsbers/AC0/power/wakeup_active_count
Normal file
|
@ -0,0 +1 @@
|
|||
4
|
1
test/2battery-gijsbers/AC0/power/wakeup_count
Normal file
1
test/2battery-gijsbers/AC0/power/wakeup_count
Normal file
|
@ -0,0 +1 @@
|
|||
4
|
1
test/2battery-gijsbers/AC0/power/wakeup_expire_count
Normal file
1
test/2battery-gijsbers/AC0/power/wakeup_expire_count
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/AC0/power/wakeup_last_time_ms
Normal file
1
test/2battery-gijsbers/AC0/power/wakeup_last_time_ms
Normal file
|
@ -0,0 +1 @@
|
|||
18773802
|
1
test/2battery-gijsbers/AC0/power/wakeup_max_time_ms
Normal file
1
test/2battery-gijsbers/AC0/power/wakeup_max_time_ms
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/AC0/power/wakeup_total_time_ms
Normal file
1
test/2battery-gijsbers/AC0/power/wakeup_total_time_ms
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/AC0/type
Normal file
1
test/2battery-gijsbers/AC0/type
Normal file
|
@ -0,0 +1 @@
|
|||
Mains
|
1
test/2battery-gijsbers/AC0/uevent
Normal file
1
test/2battery-gijsbers/AC0/uevent
Normal file
|
@ -0,0 +1 @@
|
|||
POWER_SUPPLY_ONLINE=1
|
1
test/2battery-gijsbers/BAT0/capacity
Normal file
1
test/2battery-gijsbers/BAT0/capacity
Normal file
|
@ -0,0 +1 @@
|
|||
17
|
1
test/2battery-gijsbers/BAT0/capacity_level
Normal file
1
test/2battery-gijsbers/BAT0/capacity_level
Normal file
|
@ -0,0 +1 @@
|
|||
Critical
|
1
test/2battery-gijsbers/BAT0/charge_full
Normal file
1
test/2battery-gijsbers/BAT0/charge_full
Normal file
|
@ -0,0 +1 @@
|
|||
100
|
1
test/2battery-gijsbers/BAT0/charge_full_design
Normal file
1
test/2battery-gijsbers/BAT0/charge_full_design
Normal file
|
@ -0,0 +1 @@
|
|||
100
|
1
test/2battery-gijsbers/BAT0/charge_now
Normal file
1
test/2battery-gijsbers/BAT0/charge_now
Normal file
|
@ -0,0 +1 @@
|
|||
17
|
1
test/2battery-gijsbers/BAT0/charge_type
Normal file
1
test/2battery-gijsbers/BAT0/charge_type
Normal file
|
@ -0,0 +1 @@
|
|||
Fast
|
1
test/2battery-gijsbers/BAT0/health
Normal file
1
test/2battery-gijsbers/BAT0/health
Normal file
|
@ -0,0 +1 @@
|
|||
Good
|
1
test/2battery-gijsbers/BAT0/manufacturer
Normal file
1
test/2battery-gijsbers/BAT0/manufacturer
Normal file
|
@ -0,0 +1 @@
|
|||
Linux
|
1
test/2battery-gijsbers/BAT0/model_name
Normal file
1
test/2battery-gijsbers/BAT0/model_name
Normal file
|
@ -0,0 +1 @@
|
|||
Fake battery 1
|
1
test/2battery-gijsbers/BAT0/power/async
Normal file
1
test/2battery-gijsbers/BAT0/power/async
Normal file
|
@ -0,0 +1 @@
|
|||
disabled
|
1
test/2battery-gijsbers/BAT0/power/control
Normal file
1
test/2battery-gijsbers/BAT0/power/control
Normal file
|
@ -0,0 +1 @@
|
|||
auto
|
1
test/2battery-gijsbers/BAT0/power/runtime_active_kids
Normal file
1
test/2battery-gijsbers/BAT0/power/runtime_active_kids
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT0/power/runtime_active_time
Normal file
1
test/2battery-gijsbers/BAT0/power/runtime_active_time
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT0/power/runtime_enabled
Normal file
1
test/2battery-gijsbers/BAT0/power/runtime_enabled
Normal file
|
@ -0,0 +1 @@
|
|||
disabled
|
1
test/2battery-gijsbers/BAT0/power/runtime_status
Normal file
1
test/2battery-gijsbers/BAT0/power/runtime_status
Normal file
|
@ -0,0 +1 @@
|
|||
unsupported
|
1
test/2battery-gijsbers/BAT0/power/runtime_suspended_time
Normal file
1
test/2battery-gijsbers/BAT0/power/runtime_suspended_time
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT0/power/runtime_usage
Normal file
1
test/2battery-gijsbers/BAT0/power/runtime_usage
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT0/power/wakeup
Normal file
1
test/2battery-gijsbers/BAT0/power/wakeup
Normal file
|
@ -0,0 +1 @@
|
|||
enabled
|
1
test/2battery-gijsbers/BAT0/power/wakeup_abort_count
Normal file
1
test/2battery-gijsbers/BAT0/power/wakeup_abort_count
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT0/power/wakeup_active
Normal file
1
test/2battery-gijsbers/BAT0/power/wakeup_active
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT0/power/wakeup_active_count
Normal file
1
test/2battery-gijsbers/BAT0/power/wakeup_active_count
Normal file
|
@ -0,0 +1 @@
|
|||
4
|
1
test/2battery-gijsbers/BAT0/power/wakeup_count
Normal file
1
test/2battery-gijsbers/BAT0/power/wakeup_count
Normal file
|
@ -0,0 +1 @@
|
|||
4
|
1
test/2battery-gijsbers/BAT0/power/wakeup_expire_count
Normal file
1
test/2battery-gijsbers/BAT0/power/wakeup_expire_count
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT0/power/wakeup_last_time_ms
Normal file
1
test/2battery-gijsbers/BAT0/power/wakeup_last_time_ms
Normal file
|
@ -0,0 +1 @@
|
|||
18773802
|
1
test/2battery-gijsbers/BAT0/power/wakeup_max_time_ms
Normal file
1
test/2battery-gijsbers/BAT0/power/wakeup_max_time_ms
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT0/power/wakeup_total_time_ms
Normal file
1
test/2battery-gijsbers/BAT0/power/wakeup_total_time_ms
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT0/present
Normal file
1
test/2battery-gijsbers/BAT0/present
Normal file
|
@ -0,0 +1 @@
|
|||
1
|
1
test/2battery-gijsbers/BAT0/serial_number
Normal file
1
test/2battery-gijsbers/BAT0/serial_number
Normal file
|
@ -0,0 +1 @@
|
|||
12345678
|
1
test/2battery-gijsbers/BAT0/status
Normal file
1
test/2battery-gijsbers/BAT0/status
Normal file
|
@ -0,0 +1 @@
|
|||
Charging
|
1
test/2battery-gijsbers/BAT0/technology
Normal file
1
test/2battery-gijsbers/BAT0/technology
Normal file
|
@ -0,0 +1 @@
|
|||
Li-ion
|
1
test/2battery-gijsbers/BAT0/temp
Normal file
1
test/2battery-gijsbers/BAT0/temp
Normal file
|
@ -0,0 +1 @@
|
|||
26
|
1
test/2battery-gijsbers/BAT0/time_to_empty_avg
Normal file
1
test/2battery-gijsbers/BAT0/time_to_empty_avg
Normal file
|
@ -0,0 +1 @@
|
|||
612
|
1
test/2battery-gijsbers/BAT0/time_to_full_now
Normal file
1
test/2battery-gijsbers/BAT0/time_to_full_now
Normal file
|
@ -0,0 +1 @@
|
|||
612
|
1
test/2battery-gijsbers/BAT0/type
Normal file
1
test/2battery-gijsbers/BAT0/type
Normal file
|
@ -0,0 +1 @@
|
|||
Battery
|
1
test/2battery-gijsbers/BAT0/uevent
Normal file
1
test/2battery-gijsbers/BAT0/uevent
Normal file
|
@ -0,0 +1 @@
|
|||
POWER_SUPPLY_VOLTAGE_NOW=3300
|
1
test/2battery-gijsbers/BAT0/voltage_now
Normal file
1
test/2battery-gijsbers/BAT0/voltage_now
Normal file
|
@ -0,0 +1 @@
|
|||
3300
|
1
test/2battery-gijsbers/BAT1/capacity
Normal file
1
test/2battery-gijsbers/BAT1/capacity
Normal file
|
@ -0,0 +1 @@
|
|||
7
|
1
test/2battery-gijsbers/BAT1/capacity_level
Normal file
1
test/2battery-gijsbers/BAT1/capacity_level
Normal file
|
@ -0,0 +1 @@
|
|||
Low
|
1
test/2battery-gijsbers/BAT1/charge_full
Normal file
1
test/2battery-gijsbers/BAT1/charge_full
Normal file
|
@ -0,0 +1 @@
|
|||
100
|
1
test/2battery-gijsbers/BAT1/charge_full_design
Normal file
1
test/2battery-gijsbers/BAT1/charge_full_design
Normal file
|
@ -0,0 +1 @@
|
|||
100
|
1
test/2battery-gijsbers/BAT1/charge_now
Normal file
1
test/2battery-gijsbers/BAT1/charge_now
Normal file
|
@ -0,0 +1 @@
|
|||
7
|
1
test/2battery-gijsbers/BAT1/charge_type
Normal file
1
test/2battery-gijsbers/BAT1/charge_type
Normal file
|
@ -0,0 +1 @@
|
|||
Fast
|
1
test/2battery-gijsbers/BAT1/health
Normal file
1
test/2battery-gijsbers/BAT1/health
Normal file
|
@ -0,0 +1 @@
|
|||
Good
|
1
test/2battery-gijsbers/BAT1/manufacturer
Normal file
1
test/2battery-gijsbers/BAT1/manufacturer
Normal file
|
@ -0,0 +1 @@
|
|||
Linux
|
1
test/2battery-gijsbers/BAT1/model_name
Normal file
1
test/2battery-gijsbers/BAT1/model_name
Normal file
|
@ -0,0 +1 @@
|
|||
Fake battery 2
|
1
test/2battery-gijsbers/BAT1/power/async
Normal file
1
test/2battery-gijsbers/BAT1/power/async
Normal file
|
@ -0,0 +1 @@
|
|||
disabled
|
1
test/2battery-gijsbers/BAT1/power/control
Normal file
1
test/2battery-gijsbers/BAT1/power/control
Normal file
|
@ -0,0 +1 @@
|
|||
auto
|
1
test/2battery-gijsbers/BAT1/power/runtime_active_kids
Normal file
1
test/2battery-gijsbers/BAT1/power/runtime_active_kids
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT1/power/runtime_active_time
Normal file
1
test/2battery-gijsbers/BAT1/power/runtime_active_time
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT1/power/runtime_enabled
Normal file
1
test/2battery-gijsbers/BAT1/power/runtime_enabled
Normal file
|
@ -0,0 +1 @@
|
|||
disabled
|
1
test/2battery-gijsbers/BAT1/power/runtime_status
Normal file
1
test/2battery-gijsbers/BAT1/power/runtime_status
Normal file
|
@ -0,0 +1 @@
|
|||
unsupported
|
1
test/2battery-gijsbers/BAT1/power/runtime_suspended_time
Normal file
1
test/2battery-gijsbers/BAT1/power/runtime_suspended_time
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT1/power/runtime_usage
Normal file
1
test/2battery-gijsbers/BAT1/power/runtime_usage
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT1/power/wakeup
Normal file
1
test/2battery-gijsbers/BAT1/power/wakeup
Normal file
|
@ -0,0 +1 @@
|
|||
enabled
|
1
test/2battery-gijsbers/BAT1/power/wakeup_abort_count
Normal file
1
test/2battery-gijsbers/BAT1/power/wakeup_abort_count
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT1/power/wakeup_active
Normal file
1
test/2battery-gijsbers/BAT1/power/wakeup_active
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT1/power/wakeup_active_count
Normal file
1
test/2battery-gijsbers/BAT1/power/wakeup_active_count
Normal file
|
@ -0,0 +1 @@
|
|||
4
|
1
test/2battery-gijsbers/BAT1/power/wakeup_count
Normal file
1
test/2battery-gijsbers/BAT1/power/wakeup_count
Normal file
|
@ -0,0 +1 @@
|
|||
4
|
1
test/2battery-gijsbers/BAT1/power/wakeup_expire_count
Normal file
1
test/2battery-gijsbers/BAT1/power/wakeup_expire_count
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT1/power/wakeup_last_time_ms
Normal file
1
test/2battery-gijsbers/BAT1/power/wakeup_last_time_ms
Normal file
|
@ -0,0 +1 @@
|
|||
18773802
|
1
test/2battery-gijsbers/BAT1/power/wakeup_max_time_ms
Normal file
1
test/2battery-gijsbers/BAT1/power/wakeup_max_time_ms
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT1/power/wakeup_total_time_ms
Normal file
1
test/2battery-gijsbers/BAT1/power/wakeup_total_time_ms
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
test/2battery-gijsbers/BAT1/present
Normal file
1
test/2battery-gijsbers/BAT1/present
Normal file
|
@ -0,0 +1 @@
|
|||
1
|
1
test/2battery-gijsbers/BAT1/serial_number
Normal file
1
test/2battery-gijsbers/BAT1/serial_number
Normal file
|
@ -0,0 +1 @@
|
|||
12345678
|
1
test/2battery-gijsbers/BAT1/status
Normal file
1
test/2battery-gijsbers/BAT1/status
Normal file
|
@ -0,0 +1 @@
|
|||
Charging
|
1
test/2battery-gijsbers/BAT1/technology
Normal file
1
test/2battery-gijsbers/BAT1/technology
Normal file
|
@ -0,0 +1 @@
|
|||
Li-ion
|
1
test/2battery-gijsbers/BAT1/temp
Normal file
1
test/2battery-gijsbers/BAT1/temp
Normal file
|
@ -0,0 +1 @@
|
|||
26
|
1
test/2battery-gijsbers/BAT1/time_to_empty_avg
Normal file
1
test/2battery-gijsbers/BAT1/time_to_empty_avg
Normal file
|
@ -0,0 +1 @@
|
|||
252
|
1
test/2battery-gijsbers/BAT1/time_to_full_now
Normal file
1
test/2battery-gijsbers/BAT1/time_to_full_now
Normal file
|
@ -0,0 +1 @@
|
|||
252
|
1
test/2battery-gijsbers/BAT1/type
Normal file
1
test/2battery-gijsbers/BAT1/type
Normal file
|
@ -0,0 +1 @@
|
|||
Battery
|
1
test/2battery-gijsbers/BAT1/uevent
Normal file
1
test/2battery-gijsbers/BAT1/uevent
Normal file
|
@ -0,0 +1 @@
|
|||
POWER_SUPPLY_VOLTAGE_NOW=3300
|
1
test/2battery-gijsbers/BAT1/voltage_now
Normal file
1
test/2battery-gijsbers/BAT1/voltage_now
Normal file
|
@ -0,0 +1 @@
|
|||
3300
|
130
test/2battery-gijsbers/bat.txt
Normal file
130
test/2battery-gijsbers/bat.txt
Normal file
|
@ -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
|
34
test/expand2.py
Executable file
34
test/expand2.py
Executable file
|
@ -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)
|
Loading…
Reference in a new issue