To be confirmed with more test but I think I found the culprit number 1 regarding battery consumption.
All the cpu governor are set to 'performance' by default instead of 'interactive' on android.
The following code fixes the problem (need to be run as root at every reboot)
Code:
for i in `seq 0 3`; do echo interactive > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor; done
And now the phone hasn't lost a single percent of battery in the last 15min \o/
I also install powertop from the repo. It advises to run 2 commands. The first one was
Code:
iw dev wlan0 set power_save on
and I forgot the 2nd one
For those who want to test, first install powertop (every line of code must be run as root)
and then run it
Go to the 'Tunables' tab by pressing 'Tab'. There, you will see a list of 'tunables' with either 'Good' or 'Bad' written in front of them. Just press 'Enter' on those with 'Bad'. That's it.
Edit:
The second command that powertop advises to run is:
Code:
echo '1' > '/sys/devices/system/cpu/sched_mc_power_savings';
And instead of running powertop and then 'Tab', etc...
You can just run as root
Code:
powertop --auto-tune
Click to expand...