Power Tweaks for SnapDragon 810 Devices

casual_kikoo

Senior Member
Nov 25, 2014
1,037
1,090
113
Paris, France
The only problem with these tweaks is that it will not stick after a reboot but there are only 4 files to edit and most of them are from the same folder, thus it is not much of a hassle to do that after every reboot.
Just found a way to enable those tweaks at startup without Tasker or other apps (thanks to @flar2 here : http://forum.xda-developers.com/showpost.php?p=58887725&postcount=230 for the idea about startup script).
How to?
Code:
adb shell
su
mount -o remount,rw /system
cd /system
mkdir su.d
Then simply put in "su.d" folder the joined file, change the extension from .txt to .sh (don't know why, XDA doesn't want to upload .sh files..) and chmod 755 on it, and voila.
 

Attachments

rascal0pl

Senior Member
Dec 20, 2008
665
145
0
Just found a way to enable those tweaks at startup without Tasker or other apps (thanks to @flar2 here : http://forum.xda-developers.com/showpost.php?p=58887725&postcount=230 for the idea about startup script).
How to?
Code:
adb shell
su
mount -o remount,rw /system
cd /system
mkdir su.d
Then simply put in "su.d" folder the joined file, change the extension from .txt to .sh (don't know why, XDA doesn't want to upload .sh files..) and chmod 755 on it, and voila.
It works like charm, thanks!
 

F3niX

Senior Member
Jul 9, 2010
736
325
0
Hyderabad
Looks like tasker has no permission to write to system files.
I modified the task a little bit. It now uses shell commands (as root, similar to the chmod actions in the beginning) to set the values.
Instead of using the tasker "write" action, I am using :
Code:
echo x > /path/to/file
with root permissions

Tried it before and it works.

Download Tasker Project
Thanks. This worked for me in Tasker
 

Naman Bhalla

Senior Member
Jan 1, 2014
1,166
3,051
0
22
what this does is basically activate debugging (for some reason, dont know what that should improve) and setting max cpu freq only at 99% Load and stops setting the max freq when it gets under 55% load, right?
Wouldnt something like 95%/70% be better than? (95% for performance or keep 99% for battery :) , just so it still has a chance reaching its max clock somehow in games for example, cause on my phone at least it almost never hits 99% cpu load in games.)

Or does "vf_adjust_low_threshold" mean that until then it is in lowest clock?
Then 95%/40% could be even better :)

Isnt that basically changing the Kernel Governor Settings?

I would be happy to see someone release a new Governor or even a modded boeffla or elementalx kenrel based on these changes :)
So you dont have to apply it everytime on boot or use it as a task.

Or did i understand something wrong?

Thanks for feedback! :)
Actually the tweaks here are just a very small part of what is going to come... There is a lot more to tweak and I am tweaking it as I post. I will be updating on Github in the test branch. You can test them. And no, not related to kernel.

Sent from my ONE A2003 using Tapatalk
 

Kapiljhajhria

Senior Member
May 3, 2011
1,379
1,098
0
gurgaon
I made a script which will do the required changes automatically at every boot. Just need to test it with stock kernel as well. Works with boeffla kernel. Will test with stock kernel tomorrow and share it afterwards.
 
  • Like
Reactions: mdaamir1989

Kapiljhajhria

Senior Member
May 3, 2011
1,379
1,098
0
gurgaon
Just found a way to enable those tweaks at startup without Tasker or other apps (thanks to @flar2 here : http://forum.xda-developers.com/showpost.php?p=58887725&postcount=230 for the idea about startup script).
How to?
Code:
adb shell
su
mount -o remount,rw /system
cd /system
mkdir su.d
Then simply put in "su.d" folder the joined file, change the extension from .txt to .sh (don't know why, XDA doesn't want to upload .sh files..) and chmod 755 on it, and voila.
You beat me by just few minutes. I used init.d folder. Same stuff just different approach. [emoji3]
 
  • Like
Reactions: wai10691

Mehul.S

Senior Member
May 5, 2014
510
140
0
Melbourne
Just found a way to enable those tweaks at startup without Tasker or other apps (thanks to @flar2 here : http://forum.xda-developers.com/showpost.php?p=58887725&postcount=230 for the idea about startup script).
How to?
Code:
adb shell
su
mount -o remount,rw /system
cd /system
mkdir su.d
Then simply put in "su.d" folder the joined file, change the extension from .txt to .sh (don't know why, XDA doesn't want to upload .sh files..) and chmod 755 on it, and voila.
Is that a terminal command or cmd? New to commands..
 

Laggalot

Senior Member
Jan 8, 2012
976
305
0
Styria
Would like to try this but Im kinda busy. Is there an easier way? like. Someone could write an app that pastes the script in the init.d folder and updates it too? just read the last 5 pages and I dont feel like messing with tasker right now.

sent from my OPT
 

casual_kikoo

Senior Member
Nov 25, 2014
1,037
1,090
113
Paris, France
Would like to try this but Im kinda busy. Is there an easier way? like. Someone could write an app that pastes the script in the init.d folder and updates it too? just read the last 5 pages and I dont feel like messing with tasker right now.

sent from my OPT
Well, here you go, I've just create a simple batch file for windows. Double-click on "run.bat" and you're good to go (Please give feedback as I doesn't test it, but don't be afraid, I've just managed to put all commands I described before into a batch file, no risk to brick, just ADB commands).
There is also a .sh file into the folder if you're on Linux base, simply run:
Code:
chmod +x run.sh
./run.sh
Be sure to have ADB install!
 

Attachments

Last edited:

PetritH

Senior Member
Mar 3, 2011
4,173
2,556
113
Somewhere
Well, here you go, I've just create a simple batch file for windows. Double-click on "run.bat" and you're good to go (Please give feedback as I doesn't test it, but don't be afraid, I've just managed to put all commands I described before into a batch file, no risk to brick, just ADB commands).
There is also a .sh file into the folder, simply:
Code:
chmod +x run.sh
./run.sh
Be sure to have ADB install!
will this stick on boot? Thanks mate

Sent from my OnePlus 2 using Tapatalk
 

casual_kikoo

Senior Member
Nov 25, 2014
1,037
1,090
113
Paris, France
Why dont you put it in init.d? :eek:
Also in the last line there is a typo: adb shell su -c "chmod 755 /system/su.d/power_tweaks.bat" should be tweaks.sh, right?:eek:
Apparently init.d needs more ressourcest at boot compare to su.d..
And.... Damn, yes, you right. Let me 5 mins.

---------- Post added 04-12-2015 at 00:03 ---------- Previous post was 03-12-2015 at 23:56 ----------

Apparently init.d needs more ressourcest at boot compare to su.d..
And.... Damn, yes, you right. Let me 5 mins.
New zip upload. Thanks mate for reporting the error!
 

Kapiljhajhria

Senior Member
May 3, 2011
1,379
1,098
0
gurgaon
So here are some methods which can make this process automatic.

Method 1
1. Download and install this app https://play.google.com/store/apps/details?id=com.ryosoftware.initd
2. create one folder on internal memory and put the power_tweaks file in it. (no need to worry about permissions)
3. open the app and grant root access and select the folder which you created. app is pretty easy to understand so just select the folder(which you created) and check the option which says "run scripts at boot time"
4. Done


Method 2 Thanks to @casual_kikoo. check his original post here

1. Use any root explorer and create folder su.d under /system
2. copy and paste power_tweaks.sh file in that folder
3. set permission of both folder and file as shown in the attached pic
4. done


Method 3 (same stuff as method 2 only using computer)
thanks to @casual_kikoo (his original post here
1. attach your device to a computer using USB.
2. make sure you have adb drivers installed and working.
3. download the files mentioned in his post (don't forget to hit thanks)
4. double click "run.bat" file
5. done


Note : For any new tweaks just edit the power_twekas file
Attached file is in zip format so you will have to extract the power_tweaks file from it.
 

Attachments

Last edited: