mardi 3 février 2015

[APK]DEEP-SLEEP Fix for CM12 topic






Hi all!

I don't have a lot of free time, but i just fell in love with CM12, and i wanted to use it daily.(and i want to help for those who wants to use it daily aswell)

We all met with the deepsleep problem, it only happens when screen is off, and cpu governor is not powersave.
As in ALL the google API talks about powersaving mode when phone is in sleep mode etc... i think there is a major problem with CM12 framework, that android not going to powersaver mode.(as it should)

So what i have done is just coded a "couple of minute sollution". It is an apk, and it is only uses one service, and one broadcastreceiver to be able to SET CPU to powersave mode when screen is off.(And ofcourse back to interactive when screen is on, to avoid lag)

HOW TO USE: (ROOT NEEDED!!!)
1) Download apk from here(attached down)
2) Install it
3) Start the application from menu
4) Wait until SuperSU(or any root) asks for permission, allow it!
5) Reboot phone.

After the first start of the application, the icon will be removed from menu not to disturb the user :)
So when you open it, take care for wait SuperSU to ask permission, and when you give it, then reboot.

If you messed up something, just delete app from settings menu, and do steps from 2).

If you want to be sure that it works use adb shell command to check governor:
After reboot turn the screen off and type in adb:

Code:


adb shell
su
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor


it will show powersave, and when you turn the screen on it will show interactive!


One more thing! To avoid SuperSU make toasts of granting permission, you can turn it off in SuperSU settings!
Peaceful life with lollipop btw!














Attached Files





File Type: apk CpuSet.apk -
[Click for QR Code]
(77.6 KB)










Aucun commentaire:

Enregistrer un commentaire