So many of us think that start and stop of a charging is impossible to control in any Operating system.
But now we can control the start and stop of charging a battery in Ubuntu. Let us see how to do it.
Run these commands in your terminal to install tp-smapi in your OS.
sudo apt-get install tp-smapi-dkms sudo modprobe tp_smapi
Then write your desired charging thresholds( your own values) to the virtual files in /sys/devices/platform/smapi`:
echo 10 | sudo tee /sys/devices/platform/smapi/BAT0/start_charge_thresh
echo 100 | sudo tee /sys/devices/platform/smapi/BAT0/stop_charge_thresh
In the above commands you can change the values 10 and 100 to any value. The first one will help you to choose at what level charging must start and the second value will let you choose at what level charging must stop.
In this way we can control the charging up of a battery.
GOOD LUCK!
But now we can control the start and stop of charging a battery in Ubuntu. Let us see how to do it.
Run these commands in your terminal to install tp-smapi in your OS.
sudo apt-get install tp-smapi-dkms sudo modprobe tp_smapi
Then write your desired charging thresholds( your own values) to the virtual files in /sys/devices/platform/smapi`:
echo 10 | sudo tee /sys/devices/platform/smapi/BAT0/start_charge_thresh
echo 100 | sudo tee /sys/devices/platform/smapi/BAT0/stop_charge_thresh
In the above commands you can change the values 10 and 100 to any value. The first one will help you to choose at what level charging must start and the second value will let you choose at what level charging must stop.
In this way we can control the charging up of a battery.
GOOD LUCK!
No comments:
Post a Comment