This is what works for me:
1. Install Cleanslate kernel version 1.8.1 from this post and reboot. (Version 1.8.1 is the latest working version for charging control).
2. Go into magisk manager and uninstall the ACC module, but keep the ACC app installed. Reboot.
3. Plug in your phone charger and...