2

I had Windows 10 and Ubuntu 19.10 dual boot on my Asus laptop.

There is a Windows application for this Asus laptop which one can use to change some settings so that the battery does not charge over 60% when the charger is plugged in (ASUS Battery Health Charging).

I had found a way to make these settings work in Ubuntu as well:
First I booted into Windows and ran the Asus software. Then I restarted the laptop and booted into Ubuntu 19.10. The settings that I applied it on my Windows also worked on Ubuntu and didn't allow the battery to charge more than 60%.

But when I upgraded my Ubuntu to version 20.04, that doesn't happen anymore.

Is it because of the new version of GRUB that overrides the Asus app setting set in Windows?

How can I solve this problem?

pomsky
  • 68,507

1 Answers1

3

Put this in your /etc/crontab:

@reboot root echo 60 > /sys/class/power_supply/BAT0/charge_control_end_threshold

This works perfectly for me.

Kulfy
  • 17,696