Skip to content

Commit

Permalink
adds battery charge thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed Sep 1, 2020
1 parent 612c1ff commit f817043
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cheats/sysctl.cheat
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
% sysctl, power

# Set Battery START Charge Threshold
echo <THRESHOLD> | sudo tee /sys/class/power_supply/<BATTERY>/charge_start_threshold

# Set Battery STOP Charge Threshold
echo <THRESHOLD> | sudo tee /sys/class/power_supply/<BATTERY>/charge_stop_threshold

$ THRESHOLD: seq 0 5 100
$ BATTERY: ls /sys/class/power_supply/ | grep -oe 'BAT[0-9]' | sort | uniq

% sysctl, security

# Block ICMP pings
Expand Down

0 comments on commit f817043

Please sign in to comment.