File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
Documentation/ABI/testing Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,21 @@ Description:
74
74
Access: Read, Write
75
75
Valid values: 0 - 100 (percent)
76
76
77
+ What: /sys/class/power_supply/<supply_name>/capacity_error_margin
78
+ Date: April 2019
79
+
80
+ Description:
81
+ Battery capacity measurement becomes unreliable without
82
+ recalibration. This values provides the maximum error
83
+ margin expected to exist by the fuel gauge in percent.
84
+ Values close to 0% will be returned after (re-)calibration
85
+ has happened. Over time the error margin will increase.
86
+ 100% means, that the capacity related values are basically
87
+ completely useless.
88
+
89
+ Access: Read
90
+ Valid values: 0 - 100 (percent)
91
+
77
92
What: /sys/class/power_supply/<supply_name>/capacity_level
78
93
Date: June 2009
79
94
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ static struct power_supply_attr power_supply_attrs[] = {
178
178
POWER_SUPPLY_ATTR (CAPACITY ),
179
179
POWER_SUPPLY_ATTR (CAPACITY_ALERT_MIN ),
180
180
POWER_SUPPLY_ATTR (CAPACITY_ALERT_MAX ),
181
+ POWER_SUPPLY_ATTR (CAPACITY_ERROR_MARGIN ),
181
182
POWER_SUPPLY_ENUM_ATTR (CAPACITY_LEVEL ),
182
183
POWER_SUPPLY_ATTR (TEMP ),
183
184
POWER_SUPPLY_ATTR (TEMP_MAX ),
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ enum power_supply_property {
139
139
POWER_SUPPLY_PROP_CAPACITY , /* in percents! */
140
140
POWER_SUPPLY_PROP_CAPACITY_ALERT_MIN , /* in percents! */
141
141
POWER_SUPPLY_PROP_CAPACITY_ALERT_MAX , /* in percents! */
142
+ POWER_SUPPLY_PROP_CAPACITY_ERROR_MARGIN , /* in percents! */
142
143
POWER_SUPPLY_PROP_CAPACITY_LEVEL ,
143
144
POWER_SUPPLY_PROP_TEMP ,
144
145
POWER_SUPPLY_PROP_TEMP_MAX ,
You can’t perform that action at this time.
0 commit comments