sriharshaarangi / BatteryChargeLimit

GNU General Public License v3.0
382 stars 104 forks source link

How to prevent background processes from being killed #155

Closed zixijian closed 5 years ago

zixijian commented 5 years ago

as title,

hmarceau commented 5 years ago

I have a Pixel 1. The program does work with me. But the battery continues to charge overnight. I also believe that the background process is being killed after some time. Battery optimization is not enabled for this app. Would you have a workaround? Thanks!

zixijian commented 5 years ago

turnoff lowmemorykiller is helpful,

echo 0,0,0,0,0,0 > /sys/module/lowmemorykiller/parameters/minfree