Skip to content

Commit cf81dbf

Browse files
committed
More examples
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 18ab45c commit cf81dbf

File tree

1 file changed

+48
-16
lines changed

1 file changed

+48
-16
lines changed

EXAMPLES.md

+48-16
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,6 @@ LED Matrix
9393
ALS: 76 Lux
9494
```
9595

96-
## Check power (AC and battery) status
97-
98-
```
99-
> sudo ./target/debug/framework_tool --power
100-
AC is: not connected
101-
Battery is: connected
102-
Battery LFCC: 3949 mAh (Last Full Charge Capacity)
103-
Battery Capacity: 2770 mAh
104-
44.729 Wh
105-
Charge level: 70%
106-
Battery discharging
107-
```
108-
10996
## Set custom fan duty/RPM
11097

11198
```
@@ -171,10 +158,48 @@ Battery Status
171158
Battery discharging
172159
```
173160
161+
Get more information
162+
163+
```
164+
> sudo framework_tool --power -vv
165+
Charger Status
166+
AC is: not connected
167+
Charger Voltage: 14824mV
168+
Charger Current: 0mA
169+
Chg Input Current:384mA
170+
Battery SoC: 33%
171+
Battery Status
172+
AC is: not connected
173+
Battery is: connected
174+
Battery LFCC: 4021 mAh (Last Full Charge Capacity)
175+
Battery Capacity: 1300 mAh
176+
19.267 Wh
177+
Charge level: 32%
178+
Manufacturer: NVT
179+
Model Number: FRANGWA
180+
Serial Number: 038F
181+
Battery Type: LION
182+
Present Voltage: 14.821 V
183+
Present Rate: 943 mA
184+
Design Capacity: 3915 mAh
185+
60.604 Wh
186+
Design Voltage: 15.480 V
187+
Cycle Count: 64
188+
Battery discharging
189+
```
190+
174191
### Setting a custom charger current limit
175192
176193
```
177-
# Set limit to 2A
194+
# 1C = normal charging rate
195+
# This means charging from 0 to 100% takes 1 hour
196+
# Set charging rate to 0.8C
197+
> sudo framework_tool --charge-rate-limit 0.8
198+
199+
# Limit charge current to the battery to to 2A
200+
# In the output of `framework_tool --power -vv` above you can se "Design Capacity"
201+
# Dividing that by 1h gives you the maximum charging current (1C)
202+
# For example Design Capacity: 3915 mAh => 3915mA
178203
> sudo framework_tool --charge-current-limit 2000
179204
180205
# And then plug in a power adapter
@@ -183,6 +208,7 @@ Charger Status
183208
AC is: connected
184209
Charger Voltage: 17800mV
185210
Charger Current: 2000mA
211+
0.51C
186212
Chg Input Current:3084mA
187213
Battery SoC: 87%
188214
Battery Status
@@ -194,14 +220,16 @@ Battery Status
194220
Charge level: 86%
195221
Battery charging
196222

197-
# Remove limit (highest USB-PD current is 5A)
198-
> sudo framework_tool --charge-current-limit 5000
223+
# Remove limit (set rate to 1C)
224+
> sudo framework_tool --charge-rate-limit 1
199225
226+
# Back to normal
200227
> sudo framework_tool --power
201228
Charger Status
202229
AC is: connected
203230
Charger Voltage: 17800mV
204231
Charger Current: 2740mA
232+
0.70C
205233
Chg Input Current:3084mA
206234
Battery SoC: 92%
207235
Battery Status
@@ -212,4 +240,8 @@ Battery Status
212240
60.146 Wh
213241
Charge level: 91%
214242
Battery charging
243+
244+
# Set charge rate/current limit only if battery is >80% charged
245+
> sudo framework_tool --charge-rate-limit 80 0.8
246+
> sudo framework_tool --charge-current-limit 80 2000
215247
```

0 commit comments

Comments
 (0)