Deleted - X Play General

Old thread.

You're the best, mate

minimale_ldz said:
You're the best, mate
Click to expand...
Click to collapse
Much appreciated and hope you all find it usefull to use. Just saw soniCron released a new script called "hawktail" based on a total different technique using an extreme low timer_rate. Shall try to translate that also next week and if it works ill add this in the thread.

Make a donation link. We love you.

Hi guys! And thanks for your work, @Sickaxis79!
A noob question here. Could these scripts be applied to another governor? Precisely, impulse which is supposed to be similar to interactive?
Sent from my XT1562 using Tapatalk

stazz83 said:
Hi guys! And thanks for your work, @Sickaxis79!
A noob question here. Could these scripts be applied to another governor? Precisely, impulse which is supposed to be similar to interactive?
Sent from my XT1562 using Tapatalk
Click to expand...
Click to collapse
Im afraid that ain't possible. Impulse governor use some different tunables, but you can for example use one interactive script for the big or small cpu and use impulse governor for the other cpu.

Applied the two profiles with latest squids kernel and cm13. Working Great so Far. I guess i have to manually disable touchboost everytime?

Leni_YO said:
Applied the two profiles with latest squids kernel and cm13. Working Great so Far. I guess i have to manually disable touchboost everytime?
Click to expand...
Click to collapse
Yes, its best to disable touchboost. Touchboost is a kernel/rom extra feature. Im also using latest squid kernel with stock rom and dont have this feature and forgot to disable it by default. I will check if i can update the script so its also disables touchboost. Im used to create and edit init.d scripts, but json files k.a. uses are a total different language, but ill try.

Master Mike, how are these scripsts working with optimized init.qcom.post_boot.sh you posted once. Should it be restored to default/stock one or can it all work together? Thanks

minimale_ldz said:
Master Mike, how are these scripsts working with optimized init.qcom.post_boot.sh you posted once. Should it be restored to default/stock one or can it all work together? Thanks
Click to expand...
Click to collapse
No problem. Post_boot script contains the stock settings and applies them first when the phone startup.

Sickaxis79 said:
No problem. Post_boot script contains the stock settings and applies them first when the phone startup.
Click to expand...
Click to collapse
Is KA changing them after boot anyway if it's got some scripts applied?

minimale_ldz said:
Is KA changing them after boot anyway if it's got some scripts applied?
Click to expand...
Click to collapse
Reboot reverts all stock settings unless you enable the checkbox "on boot". It will always first launch your normal stock settings and after the phone finished starting up it will launch the k.a. scripts.In the settings menu you can set the timer how many seconds after boot the scripts will launch.
You can always launch them manually when you dont want to apply them on boot. Just tap on the 2 scripts you imported and it will ask to launch them and finished.
Edit: K.a. overwrites the normal stock settings after youre phone booted temporarily.

Sickaxis79 said:
Reboot reverts all stock settings unless you enable the checkbox "on boot". It will always first launch your normal stock settings and after the phone finished starting up it will launch the k.a. scripts.In the settings menu you can set the timer how many seconds after boot the scripts will launch.
You can always launch them manually when you dont want to apply them on boot. Just tap on the 2 scripts you imported and it will ask to launch them and finished.
Edit: K.a. overwrites the normal stock settings after youre phone booted temporarily.
Click to expand...
Click to collapse
Got it, thanks

Can't import ghostpepper profiles, k.a. says the file is malformed. Great work btw, keep it up.

too bad i have the free version ...

thanks for your work, the script works very well in resurrection rom and optimus kernel, can someone upload the stopperfd script? the KA doesnt work for me creating the script

I've reached over 7hrs SOT on the first run after applying the profiles with 75% Charge left. Good job!

zenez said:
thanks for your work, the script works very well in resurrection rom and optimus kernel, can someone upload the stopperfd script? the KA doesnt work for me creating the script
Click to expand...
Click to collapse
You can also do this using a terminal emulator
Type: "su" (root permission) and "stop perfd".

Sickaxis79 said:
No problem. Post_boot script contains the stock settings and applies them first when the phone startup.
Click to expand...
Click to collapse
Thanks for answering for me.

ViperX85 said:
Can't import ghostpepper profiles, k.a. says the file is malformed. Great work btw, keep it up.
Click to expand...
Click to collapse
BUMP

Related

[App BETA][Updated 10.17.11]viperMOD Voltage Control (post only if you are a tester!)

This is going to be the thread for everyone to post in when they are testing the app, regardless of device. Please only post in this thread if you are a tester to minimize on clutter.
Ok guys, I have a test version of the app ready and I need some testers! This app was put together by Smurph82 (Ben), me (Derek), and another friend of mine (Will) with Ben doing the majority of the coding. If Smurph82 asks you anything, ANSWER HIM! He is the guy who will get this fixed! Please bear with us as we get the bugs worked out and get this to be the best voltage control app out there!
Some things don't work and I need help figuring out what else isn't working. I'm looking for 2-3 testers for devices I don't officially support right now. (check the list in my sig of officially supported devices and make sure you're applying to beta test for a device not listed there) All testers will get the paid version of the app when done, assuming you provide me with feedback of this app. Here are a few rules...
0.) You must be on a HAVS/SVS kernel (exceptions Nexus S/NS4G with mathkid or Netarchy kernel). If you don't know what this means, please do not send me a request to beta test. You must also be on a ROM that supports init.d (99% of ROMs)
1.) If you are selected to be a tester, you WILL NOT send this app to anyone else and you will use it only on your personal devices.
2.) If you are not selected to be a tester, please don't blow up my PMs or thread complaining about it.
3.) You will provide me with some feedback about the app, what works and what doesn't, what should be implemented and/or taken out. I don't think this is an unreasonable request.
4.) To be an official beta tester, your submissions will BY PM ONLY. This information needs to be sent to me or I will ignore your PM. I don't have time to respond and ask for the information that I need. Please don't post in this thread for wanting to test, this thread is for the testers to post their results and collaborate with one another. Please include this with your beta testing submission:
Device:
ROM:
Kernel:
Please also keep replying with our whole conversation so I can reference it.
5.) I may be going to bed soon so if you get nothing from me tonight, I will hit you up tomorrow.
Thanks guys, I look forward to working with all of my beta testers!!
Known Issues:
[*]Landscape in 2nd tab doesn't scroll
Some voltages presets need to be implemented
Links are too small
[*]Netarchy kernel detection shows UNKNOWN
Shouldn't show init.d button if one doesn't exist
[*]App looks in the wrong place for SVS kernel voltages
Cannot save init.d file
Alright, I've run into one problem right off the bat but I think it will be easy to solve.
It says:
"File at /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs was not found
My frequency tables are at:
/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
I know it will work, I've been using the vipermod terminal script to change my voltages, it just can't find my frequency tables it seems.
EDIT: i messed up the file path for my tables (left out the /cp0) fixed now.
I am also getting the same issue of:
File at /system/etc/init.d/74havsvoltages was not found.
DEVICE: HTC EVO 4G
KERNEL: TIAMAT 3.3.7
Im getting file at /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels)havs was not found
Also I cant adjust voltages up or down as I keep getting a pop up saying "This is not a HAVS kernel"
MIUI 1.8.12 DEXT
HTC DESIRE
SVS stock kernel [email protected] 2.6.37
Dont like the contacts font colour either imho difficult to read
File at /system/etc/init.d/74havsvoltages was not found.
DEVICE: NEXUS ONE
KERNEL: IR 2.6.38.8_AVS-CM7_CFS_20110813_1517
Already off to a fantastic start lol
OK, so issues with SVS detection. On the main page, does it detect that you are running an SVS kernel? It should say "This is an SVS kernel" right?
Do you already have an init.d file there from the viperMOD script when you try to read it? If so, can you back it up, delete it, and try to generate a new voltage file from the app?
Thanks guys!
yes it detects that I have an SVS kernel. Tried deleting the 99voltages file in my init.d and still no dice.
-viperboy- said:
Already off to a fantastic start lol
OK, so issues with SVS detection. On the main page, does it detect that you are running an SVS kernel? It should say "This is an SVS kernel" right?
Do you already have an init.d file there from the viperMOD script when you try to read it? If so, can you back it up, delete it, and try to generate a new voltage file from the app?
Thanks guys!
Click to expand...
Click to collapse
device : nexus s
rom : oxygen 2.2.1
kernel : tried both matr1x 5.5 and netarchy 1.4.0
i am having the same issue. the main page does not detect SVS kernel. it says this is a UNKNOWN kernel. (and i thought netarchy and matr1x are the only kernel compatible to this.
gotta go to sleep now, i will check again tomorrow ..
ok viperboy, first off thanks! i have several initial observations. the app assumes you have the voltage script installed in order to work. i think this should be the opposite. if not detected on app install the app should install one for the user, otherwise you would still need to use the vipermod te script in order to use the app by saving changes on default settings to create the init.d script. second, at a hi density view of 200, the lettering in your about section is a bit too small and your links are barely viewable. this needs to be adjusted. and finally, if you make a voltage selection too low for your phone to handle and need to do a battery pull because your phone locks up, i LOVE how it automatically resets itself to kernel defaults negating the need for having to flash a reset zip, bravo!! however, it changes your customized cpu settings as well. in my case it changed my cpu levels from 128/499 smartass to 245/998 interactive.
evo 4g/decks 1.3b2/sz 2.2.1 cfs
Thanks bud
ropodope
499mhz is the new 998mhz.
Jake33108 said:
yes it detects that I have an SVS kernel. Tried deleting the 99voltages file in my init.d and still no dice.
Click to expand...
Click to collapse
Please explain a little bit further. It sees its an SVS kernel, then what happens? Can't create the voltages?
saryu said:
device : nexus s
rom : oxygen 2.2.1
kernel : tried both matr1x 5.5 and netarchy 1.4.0
i am having the same issue. the main page does not detect SVS kernel. it says this is a UNKNOWN kernel. (and i thought netarchy and matr1x are the only kernel compatible to this.
gotta go to sleep now, i will check again tomorrow ..
Click to expand...
Click to collapse
OK, no Netarchy/mathkid kernels show up as unknown. Thanks for the info.
ropodope said:
ok viperboy, first off thanks! i have several initial observations. the app assumes you have the voltage script installed in order to work. i think this should be the opposite. if not detected on app install the app should install one for the user, otherwise you would still need to use the vipermod te script in order to use the app by saving changes on default settings to create the init.d script. second, at a hi density view of 200, the lettering in your about section is a bit too small and your links are barely viewable. this needs to be adjusted. and finally, if you make a voltage selection too low for your phone to handle and need to do a battery pull because your phone locks up, i LOVE how it automatically resets itself to kernel defaults negating the need for having to flash a reset zip, bravo!! however, it changes your customized cpu settings as well. in my case it changed my cpu levels from 128/499 smartass to 245/998 interactive.
evo 4g/decks 1.3b2/sz 2.2.1 cfs
Thanks bud
ropodope
499mhz is the new 998mhz.
Click to expand...
Click to collapse
Well, it shouldn't install one for the user, it should just error. We don't want to set a bad voltage that is too low for your phone or anything!
The links are an easy fix, thanks for the input.
And as far as setting too low of a voltage, that's because it doesn't write the init.d file yet. You could still end up with the same problem as the script if you set a voltage too low and saved it. And it shouldn't have changed anything like that at all. Could you explain how it changed your CPU settings??
Quick update, it reads my init.d 74havsvoltages file that the script made now. But it still won't let me lower or raise anything.
When I hit the "Adjust Voltages" tab it says "A havs or svs file cannot be found. Are you sure your kernel supports this?"
I believe this is because its looking for my files under:
/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
and
/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_svs
when my voltages are really at:
/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
Just out of curiosity does this require root privileges maybe? Because I never got a SU request for it.
Jake33108 said:
Quick update, it reads my init.d 74havsvoltages file that the script made now. But it still won't let me lower or raise anything.
When I hit the "Adjust Voltages" tab it says "A havs or svs file cannot be found. Are you sure your kernel supports this?"
I believe this is because its looking for my files under:
/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
and
/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_svs
when my voltages are really at:
/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
Click to expand...
Click to collapse
Ok, small oversight on that. Thanks much!
naf007 said:
Im getting file at /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels)havs was not found
Also I cant adjust voltages up or down as I keep getting a pop up saying "This is not a HAVS kernel"
MIUI 1.8.12 DEXT
HTC DESIRE
SVS stock kernel [email protected] 2.6.37
Dont like the contacts font colour either imho difficult to read
Click to expand...
Click to collapse
If the app does not detect the HAVS file correctly it will not allow you to update as it would be have not files.
I know that viperBoy requested your specs for being a beta tester
but please provide me with your phone, ROM, and Kernel in your post so I can
better understand your problem. This was built on an Evo 4g, CM7, Tiamat 4.0.*. Thanks.
/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs is the path that I knew development on my platform. I am working on this.
Already off to a fantastic start lol
OK, so issues with SVS detection. On the main page, does it detect that you are running an SVS kernel? It should say "This is an SVS kernel" right?
Do you already have an init.d file there from the viperMOD script when you try to read it? If so, can you back it up, delete it, and try to generate a new voltage file from the app?
Click to expand...
Click to collapse
It does detect that its a SVS on the main page
I deleted my file that I created with the script and tried to generate a new one but no change
HTC DESIRE
MIUI 1.8.12 DEXT XPART
Stock Kernel SVS [email protected] 2.6.37
I don't have an example of the /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
can someone please post me one thanks. Sorry the svs had not been implentment due to the fact that I only have one phone.
I'm restoring a backup right now, I'll post mine in just a second.
sure. i set the voltages too low on purpose in order to cause my phone to lock so that i would have to do a battery pull because i was curious to see if my kernel voltage defaults would be restored on reboot....and they were. i think that is great. i then reset them using the app to where i knew my phone would handle them. after doing so i took a look at my custom cpu settings which i have set to retain on reboot. when i did they were completely changed from 128/499 smartass to 245/998 (stock settings) along with the governor being changed to interactive. i just thought that was weird.
also the tapatalk app is not allowing me to reply to this thread. it keeps saying "failed to connect to forum. please check with the forum administrator if this problem persists". i have to reply from my laptop.
ropodope
499mhz is the new 998mhz.
Here's my file. All of my build info is in my sig.
Jake33108 said:
Here's my file. All of my build info is in my sig.
Click to expand...
Click to collapse
Thanks I will be working on this.

[Q] VomerTweaks , What it does ?

@zephiK , I installed the VomerTweaks on top of Mahdi rom and Franco kernel from your signature. I flashed it via TWRP , but dont know if its installed or is successfull etc. Can you let me know what exactly this tweak does and any way of finding if its active / installed ? Is there a option which appears in settings ? Thanks !
You didn't have to make a new thread for this.
To verify that the settings indeed have loaded, you need to use a kernel tweaker app (e.g. FKU, Trickster)... if you see that the maximum (fixed) CPU frequency is 1.2GHz then its loaded. A lot of the questions you asked are answered https://192.227.135.147/get/vomertweaks.txt (ignore the warning)
# What is it?
VomerTweaks is a tried and tested set of custom settings and power modes for your device!
The aim is to enable your device to have insane battery life without losing performance (all of us love da juice!)
We develop and test multiple configurations (for different "user types") & share them with the community.
Click to expand...
Click to collapse
Sorry but it's not showing that min. Cpu frequency on my device in fku but the file was installed correctly via twrp and I just checked it is in the correct location. Any other parameters I could check if it's working correctly somehow?
shapethelola said:
Sorry but it's not showing that min. Cpu frequency on my device in fku but the file was installed correctly via twrp and I just checked it is in the correct location. Any other parameters I could check if it's working correctly somehow?
Click to expand...
Click to collapse
Errr whoops, I messed that up. I meant to say Maximium CPU frequency.
zephiK said:
Errr whoops, I messed that up. I meant to say Maximium CPU frequency.
Click to expand...
Click to collapse
LOL. I too was about to post the same question Thanks !! by the way , do i need to flash it everytime OTA arrives ?
You need to reinstall Franco if it's supported yet that's all
dayanandgp said:
LOL. I too was about to post the same question Thanks !! by the way , do i need to flash it everytime OTA arrives ?
Click to expand...
Click to collapse
If you're on a custom ROM, it is not needed since a backup script is included.
If you're on CM11S, then you will need to reflash it on a OTA (Or even remove the script before being able to accept the OTA) since addon.d is not supported in CM11S.
You need to reinstall Franco if it's supported yet that's all
Click to expand...
Click to collapse
No, flashing a newer/older version of Franco does not touch this script at all.
zephiK said:
If you're on a custom ROM, it is not needed since a backup script is included.
If you're on CM11S, then you will need to reflash it on a OTA (Or even remove the script before being able to accept the OTA) since addon.d is not supported in CM11S.
No, flashing a newer/older version of Franco does not touch this script at all.
Click to expand...
Click to collapse
Okay, youre the boss. I just thought installing an ota update from cm11s will overwrite francos kernel and without francos kernel this vomer tweak wont work. What I basically was saying was you need to have a kernel of franco running after you updated your cm11s again.
shapethelola said:
Okay, youre the boss. I just thought installing an ota update from cm11s will overwrite francos kernel and without francos kernel this vomer tweak wont work. What I basically was saying was you need to have a kernel of franco running after you updated your cm11s again.
Click to expand...
Click to collapse
As I said before, CM11S does not support addon.d scripts so therefore it cannot back up the script. Even if the script was allowed to be backed up, the OTA will most likely not work due to changes being made to /system/ unless using a modified upgrade script to the OTA package.
If the user flashed the script without Franco Kernel, then it will simply just not be able to change certain parts since the path is invalid. And I think its pretty obvious that the user needs Franco Kernel for the script to work. The whole point of the script was to be revolved around Franco Kernel and not any other kernel, its not there to discriminate other kernels but kernel developers have their own paths to certain parameters. Its not uniform throughout the phone.
zephiK said:
As I said before, CM11S does not support addon.d scripts so therefore it cannot back up the script. Even if the script was allowed to be backed up, the OTA will most likely not work due to changes being made to /system/ unless using a modified upgrade script to the OTA package.
If the user flashed the script without Franco Kernel, then it will simply just not be able to change certain parts since the path is invalid. And I think its pretty obvious that the user needs Franco Kernel for the script to work. The whole point of the script was to be revolved around Franco Kernel and not any other kernel, its not there to discriminate other kernels but kernel developers have their own paths to certain parameters. Its not uniform throughout the phone.
Click to expand...
Click to collapse
@zephiK i cant find the link to Vomertweaks anymore in your signature. Is somthing wrong ? Did you delete it ?
I wanted to find out how to disable/delete for future , as it is surviving mahdi OTA's
Check this post for download links:
http://forum.xda-developers.com/showthread.php?p=55150676
Sent from the One
dayanandgp said:
@zephiK i cant find the link to Vomertweaks anymore in your signature. Is somthing wrong ? Did you delete it ?
I wanted to find out how to disable/delete for future , as it is surviving mahdi OTA's
Click to expand...
Click to collapse
I removed it since the links were just all over the place. Refer to nikzDHD's link above ^^.
To uninstall, just flash vt_uninstaller.zip
@zephiK sorry to ask this here, but is it possible for someone to build chroma rom for oneplus one? would be great right?

CTT mod improve performance eliminate lag updated 7/6

I've converted my CTT mod for the lg g3 to work with the nexus 7 this is now the official version as I've just been using it on a stock ROM with elementalx kernel and no problems so far so good should work with most ROMs.
Instructions,- Make a backup of your ROM and move your thermal files to a safe place. Then delete the originals Then boot into recovery flash mod and wipe caches reboot and enjoy
Right now these have only been tested on stock based ROMs but should work with any ROM
thermal mod 75 for stock kernel-
https://www.androidfilehost.com/?fid=24052804347769758
thermal mod 75 for elementalx kernel OC'd to 1.62 -
https://www.androidfilehost.com/?fid=24052804347769759
thermal mod 75 for elementalx kernel OC'd to 1.94 -
https://www.androidfilehost.com/?fid=24052804347769760
Please let me know what you think the more feedback the more improvement I can make
Thank Rob
Also here's the link to the original mod for the lg g3 to read up on what it does
http://forum.xda-developers.com/lg-g3/development/thermal-mod-t2907363?nocache=1
I want to try this with the new clean rom when it's released. I use your 75 mod on my g3. Can't wait.
What does the one for elementalX does?
I have elementalx's kernel but I just OC one step
Also, thanks for this mod, I have a G3 and have been following your mod since almost the start, and its been awsome, and also the fps unlock mod.
So glad your working on N7 too
Papote3 said:
What does the one for elementalX does?
I have elementalx's kernel but I just OC one step
Also, thanks for this mod, I have a G3 and have been following your mod since almost the start, and its been awsome, and also the fps unlock mod.
So glad your working on N7 too
Click to expand...
Click to collapse
there you go I made one for elemental x oc'd to 1.62 which should suit you in the op
Robshr said:
there you go I made one for elemental x oc'd to 1.62 which should suit you in the op
Click to expand...
Click to collapse
Thanks, will try and let you know
Robshr said:
there you go I made one for elemental x oc'd to 1.62 which should suit you in the op
Click to expand...
Click to collapse
Working great so far... What app do you use for displaying cpu frequency and temp on status bar?
Papote3 said:
Working great so far... What app do you use for displaying cpu frequency and temp on status bar?
Click to expand...
Click to collapse
I just use CPU temperature it has an overlay to display CPU in the status bar but only that I think I just open the app to see both the cpu temps and frequency as well as the battery temps
Is it necessary to clear Dalvik Cache after flashing this mode? It takes ages to complete that process, so I tend to avoid it as much as possible.
Also, isn't copy & pasting your modified thermal.conf file (after deleting the stock file) & then rebooting the device would be just fine?
Diljinder said:
Is it necessary to clear Dalvik Cache after flashing this mode? It takes ages to complete that process, so I tend to avoid it as much as possible.
Also, isn't copy & pasting your modified thermal.conf file (after deleting the stock file) & then rebooting the device would be just fine?
Click to expand...
Click to collapse
No it's not necessary and yes copying and pasting then rebooting would work
I just like to clear everything for good measure just to make sure there's nothing hanging around that would cause the mod not to work properly
Is it possible to unlock fps in this device?
I'm facing some weird unexpected issues with this mod.
I, first, copied & pasted the modified thermal file manually & rebooted the device. The device booted up normally but i experienced severe lag while using it. Normal operation like swiping through home screens etc seemed like at 5fps.
Thankfully, I had backed up before, so I restored it after proper clean up. Device worked normally. But I thought of giving it another chance, this time by following proper guide.
So I flashed the zip file, wiped Dalvik Cache/cache. But I experienced same issue as before. The device just got bogged down to crawl.
What exactly is causing this behaviour? Just to let you know, I use xposed on this device. Device is running Stock ROM with Stock Kernel & I used zip for Stock Kernel.
Just checked out the thermals in marshmallow and they have changed them to almost the same as my mod
Robshr said:
Just checked out the thermals in marshmallow and they have changed them to almost the same as my mod
Click to expand...
Click to collapse
Wow...if it was me, I wouldn't know if I'd be pleased or pissed off.........?

[Q] init.d support

does our idol 3 support init.d and can we use init.d tweeks?
It does after you install Universal init.d
https://play.google.com/store/apps/details?id=com.androguide.universal.init.d&hl=en
ok, thank you famewolf, i just wanted to be sure
To me says kernel not supported..
Sent from hell
mine is working perfectly, i just switched it on and rebooted
Nikola Jovanovic said:
To it says kernel not supported..
Sent from hell
Click to expand...
Click to collapse
Been using it since around the 5th day after getting root...it sets my selinux settings to "permissive" on every boot via a script in /etc/init.d
I know you've been pointing me on it but the app writes a bad story for me.. Don't know why..
Sent from hell
Nikola Jovanovic said:
I know you've been pointing me on it but the app writes a bad story for me.. Don't know why..
Sent from hell
Click to expand...
Click to collapse
Hmm perhaps they did something strange with the 6045K kernel. Lets check what you've done so far...you enabled it and did the reboot then went back into it and it still said it's not compatible? If so, you might check "similar apps" that give init.d support to see if another works for you..there are literally dozens of ways to enable init.d so one of them will work for you I'm sure....as a last ditch alternative Rom Toolbox Lite has a scripter which can run scripts and you can tell it to run them at boot...it gives you similar abilities but it runs much later in the boot process than init.d...still better than nothing.
For sure. I'll try to find out later what might be a cause to a problem.
The only thing that got me in need for kernel set on permissive is viper4android, but found some script that works just by flashing it through custom recovery forcing viper to run on enforcing kernel.
Sent from hell

[MAGISK][mido]White Torch Light with Dual Flash for Camera and More

This is my personal MAGISK mod that I use. It's quite versatile as one can change it depending on what one needs. It's just a matter of uncommenting/commenting out the related lines, beginning with 'write /sys/....'
You'll find them in the common folder in services.sh and post-fs-data.sh.
Currently it has been set up to change the yellow torch light in custom ROMs to white while retaining the camera's dual flash.
You do not need to change anything if you just need the above functionality, just download and load the mod in Magisk.
However, if you wish to try out the other tweaks included then you'll need to unzip it, change the wanted values and zip them again to be able to flash it in Magisk; I use ZArchiver.
All these tweaks were cherry picked from the sample.sh script so generously provided by @DarthJabba9 in his thread.
If your looking for more cool tweaks and tweaks for devices without Magisk, you should check out his thread.
Tweaks available in this MOD:
-white flash light and/or torch (depending on what you change)
-limit max CPU scaling frequency (for more battery life)
-set idle GPU to 133 Mhz (for more battery life)
-correct screen retention for Tianma displays
-change the read ahead value for external storage
Read the codes in the services.sh and post-fs-data.sh to find out more.
This has been tested on Oreo but should work for Nougats as well
Enjoy!!
Download
CREDITS:
@DarthJabba9
WORD OF CAUTION:
Apart from using the values provided in the scripts by un-commenting them, do not try to change the values or lines on your own if you're not aware of what it does/will do. It can seriously damage your device and anyone including me shall not be held responsible for it.
'''Update:'''
'''07/10/2018'''
using only
write /sys/class/leds/led:torch_1/max_brightness 0
Thanks man.. ??
Will this work in lineageOS 15.1 (build 2018-06-18) on mido?
Will i have to unpack and repack it if i just want white light from notifications panel or just installing from magisk will be sufficient?
Sorry , I am a noob.
Yes
Yes, just use as is
OP updated for more clarity, thanks
This module of your magisk could have bad effect in custom kernel sir?
jhun3xx said:
This module of your magisk could have bad effect in custom kernel sir?
Click to expand...
Click to collapse
In which way?
thapaavijeet said:
In which way?
Click to expand...
Click to collapse
In speed and batt life sir.. Im using overclock kernel
jhun3xx said:
In speed and batt life sir.. Im using overclock kernel
Click to expand...
Click to collapse
If your just using the mod as is, without changing anything in it, then it does not do anything else other than change the torch light colour.
jhun3xx said:
In speed and batt life sir.. Im using overclock kernel
Click to expand...
Click to collapse
If your just using the mod as is, without changing anything in it, then it does not do anything else other than change the torch light colour.
Noob here!
I want this tweak:correct screen retention for Tianma display.
What to do in service.sh?Should i remove the"#"sign from that line or what?
Sent from my Redmi Note 4 using XDA Labs
arvarobert said:
Noob here!
I want this tweak:correct screen retention for Tianma display.
What to do in service.sh?Should i remove the"#"sign from that line or what?
Click to expand...
Click to collapse
Yeah, remove, zip and then load in Magisk.
However, I'm not sure that it will work coz I guess it has got something to do with the kernel too.
You may try and let me know, would be great!
thapaavijeet said:
Yeah, remove, zip and then load in Magisk.
However, I'm not sure that it will work coz I guess it has got something to do with the kernel too.
You may try and let me know, would be great!
Click to expand...
Click to collapse
Ok i will inform you, but how to know if it's working?
Sent from my Redmi Note 4 using XDA Labs
arvarobert said:
Ok i will inform you, but how to know if it's working?
Click to expand...
Click to collapse
I was trying this for sometime now and it appears that this only works with kernels that have support for KCal control.
However, I might be completely wrong considering that I'm a bigger noob than what you yourself claim to be....
I was trying to take screenshots of screen retention... :laugh: :silly:
thapaavijeet said:
Yeah, remove, zip and then load in Magisk.
However, I'm not sure that it will work coz I guess it has got something to do with the kernel too.
You may try and let me know, would be great!
Click to expand...
Click to collapse
Hey man, this module does not seem to work in RR unofficial by endless. This rom has XiaomiParts included in it wherein you can adjust the white/yellow led brightness. I only want white led in torch but dual led in camera flash.
Sorry for quoting this. Just needed to get your attention
chickentuna said:
Hey man, this module does not seem to work in RR unofficial by endless. This rom has XiaomiParts included in it wherein you can adjust the white/yellow led brightness. I only want white led in torch but dual led in camera flash.
Sorry for quoting this. Just needed to get your attention
Click to expand...
Click to collapse
could you get the output of these three commands from a terminal emulator or adb. You would require root privileges to run them
Code:
cat /sys/class/leds/led:flash_1/max_brightness
cat /sys/class/leds/led:torch_1/max_brightness
cat /sys/class/leds/torch-light1/max_brightness
thapaavijeet said:
could you get the output of these three commands from a terminal emulator or adb. You would require root privileges to run them
Click to expand...
Click to collapse
All done using default led settings
Edit: This is with the magisk module enabled
chickentuna said:
All done using default led settings
Click to expand...
Click to collapse
unpack the mod zip and remove the comment in the below line in service.sh
Code:
#write /sys/devices/soc/qpnp-flash-led-25/leds/led:torch_1/max_brightness 0
to
Code:
write /sys/devices/soc/qpnp-flash-led-25/leds/led:torch_1/max_brightness 0
zip all the files again and load it in Magisk.
Check if that works
So currently I'm running on these settings and this gives me super bright while torch along with dual flash as long as I focus and click.
Can someone out there please guide us on what the appropriate values should be before one of us ends up blowing our leds.
I could only figure out that one of them should be always set to zero for the white torch
Code:
write /sys/devices/soc/qpnp-flash-led-25/leds/led:torch_1/max_brightness 2000
write /sys/class/leds/led:flash_1/max_brightness 1000
write /sys/class/leds/led:torch_1/max_brightness 0
write /sys/class/leds/torch-light1/max_brightness 1000
changed the values again in hopes for moderation
thapaavijeet said:
unpack the mod zip and remove the comment in the below line in service.sh
to
zip all the files again and load it in Magisk.
Check if that works
Click to expand...
Click to collapse
Tried. Didn't work

Categories

Resources