Skip to content

Instantly share code, notes, and snippets.

@arunkumr
Last active January 6, 2021 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arunkumr/2b006cf61a09de2f9d34ff0a0794f833 to your computer and use it in GitHub Desktop.
Save arunkumr/2b006cf61a09de2f9d34ff0a0794f833 to your computer and use it in GitHub Desktop.
My-Linux-Commands
#From https://askubuntu.com/a/1230442/1168126
echo 60 | sudo tee /sys/class/power_supply/BAT0/charge_control_end_threshold
#Add to /etc/crontab using sudo gedit /etc/crontab
@reboot root echo 60 > /sys/class/power_supply/BAT0/charge_control_end_threshold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment