init.d problems - Nexus 7 Q&A, Help & Troubleshooting

hi,
i flashed paranoid android 1.992 and
[KERNEL][GPL][Linaro][OC 1.6GHz][UV][GPU+][ZRAM][SIO+V(R)] 2012-08-10 motley 1.1.1
and i wanted to run init.d scripts like the butter script that disables fsync and i used system tuner to set sd card cache to 1024... but that doesnt work .
the script from system tuner is there... in etc/init.d but when i look into settings in system tuner cache is set back to 2048
when i run the script from init.d folder with script manager and then look into system tuner again 1024 is finally set...
so init.d support is not there
does anyone know what the problem could be ?
thx

Dude, if you use the pre-made scripts and put into the proper place. I don't think you need system tuner to do anything. I don't even have it installed on mine. From what I read from the thread, system tuner was originally used to generate some of the scripts but since someone already did it, you don't need to use system tuner. I might be oblivious to whats going on since I'm still a noob but after using the scripts my quadrant score skyrocketed and my N7 just feels way way way snappier.

Related

Overclocking Daemon with or without RAM optimizations

This is a tweak of this thread to work with the nexus. I claim no credit what so ever. All the work was done by Smokin1337, Rmk40, Juwe11, Sybregunne, and -viperboy-, I just tweaked it a bit to work with the nexus.
I am using this at the moment with the latest MIUI.us rom (1.8.26) and it is working for me. I am unsure about other roms but I imagine that it will work with CM because it supports init.d.
Install this from recovery and make sure to make a backup before because I guarantee nothing. Make sure to remove any overclocking apps otherwise the daemon wont work. A lowmemorykiller app such as autokiller will change the values set by the RAM script therefore you might want to remove that too.
More info on the overclock daemon here. http://forum.xda-developers.com/showpost.php?p=14529333&postcount=5
More info on the RAM optimization. http://forum.xda-developers.com/showpost.php?p=14446249&postcount=1
A nice graphical tool that allows users to change Virtuous_OC frequencies and governors. http://forum.xda-developers.com/showpost.php?p=16726715&postcount=2
edit:
updated zips because i messed up the update-script on the original ones.
flashed zip and installed apk but cant get the gui to work the apply button doesnt allow it to apply, 1.8.26 miui
which gui version are you using? I used 2.11 and it works for me.
2.11 hangs on the loading screen for me...i get further with 1.21 but not by much
probably hanging because the install didnt work. Using adb shell, terminal emulator, or root explorer verify that the virtuous_oc folder got installed to /system/etc and has the 6 adjustable files inside of it. I will do a clean wipe on my phone and give it a try again with the files from the OP.
OK so I messed up on the update-script, I am still new to this. The OP will have the updated zips.
to tell if its working go to adb shell or a terminal emulator and type
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
it should change when you wake and sleep the phone
edit:
lol just thought about this. Will be kinda hard to check to see if it is working from a terminal emulator.
Working now thanks
Sent from my Nexus One using XDA App

[CWM][Flashable]Init.d Support and Tweaks for Aurora ICS

The aurora_4.1+-init.d-addon zip is compatible with Aurora v4.1+.
The OOM-Priority-Charger-v1.4-Aurora-4.1a zip is compatible ONLY with Aurora v4.1a.
You can visit android.mimic.ca to upload and automatically patch your newer services.jar in an updated Aurora version.
Hello everyone,
I have created an update package that enables init.d support and also has some premade scripts to tweak various settings by the user e.g.
- Synaptics Touchscreen Sensitivity
- Apply FPS Novatek Fix to raise FPS to 53fps
- Set CPU Frequency and Governor
- Disable Atmel Haptic Feedback
- Turn VSync OFF
- Raise SDCard Read Ahead Value
All the above settings are at their defaults meaning that you must change the Settings in the Scripts and reboot to apply them, otherwise all values are the defaults in Aurora after flashing the Package.
It also includes and by default enables Androcharger (V6 SuperCharger tweaked by blk_jack for Desire Z, it is the same as V6's option 5), KickAssKernelizer by zeppelinrox and Loopy Smoothness tweak.
For a full "Supercharge" you must also tweak services.jar via android.mimic.ca (See the V6 Supercharger link for info). I have attached the CWM flashable zip for Aurora 4.1a (OOM-Priority-Charger-v1.4-Aurora-4.1a.zip).
Disclaimer
I am not responsible for any damage to your Device.
Notes:
This will make your boot slower as all these scripts have to be executed at startup. Especially the Loopy Smoothness Tweak will add at least 3 seconds at boot.
To apply Changes you have to Reboot
Changelog:
v1: Initial Release
v2: Resolve Bootloops for Atmel Users
Links:
V6 SuperCharger by zeppelinrox
AndroCharger by blk_jack
Thanks to dzo for his excellent ROM and the U8800 xda community for many of the tweaks.
And of course thanks to zeppelinrox, blk_jack, the EVO 4G developers.
Tweaking Values of Scripts
To tweak the Scripts you must use a File Explorer to navigate to /systemd/etc/init.d/ and open the files with your Favourite Text Editor.
There are instructions in each script.
In detail:
- 11synaptics_sens
Tweak Synaptics Touchsreen sensitivity, values 1 to 8, default=4 to accomodate your fingers and remove "jittering"
Simply replace 4 with your desired value.
- 12fpsfix
This enables the FPS fix that raises the panel's Frame Rate to ~53 from ~46.
This may not work for all phones but it is customizable, to enable it just uncomment (remove the starting #) from the echo line.
- 13cpu
Set your Desired Min/Max CPU Frequency and Governor. You may use copy and paste and finding values by opening:
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
For Example to use SmartassV2 replace "echo ondemand > /sys/...." with "echo smartassV2 > /sys/...." in line 9.
If you use SmartassV2 There are extra tweaks for Performance and a highly suggested tweak for Sleep Ideal Frequency.
- 14atmel_haptic_disable
Disable Atmel Haptic Feedback (i.e. Vibration on Touch) by uncommenting the echo line. If you want to enable replace 0 with 1.
(I believe the default is ON here, some atmel user input is appreciated)
- 69vsync_off
This file disables VSync. This will increase FPS, performance and benchmark scores but it will introduce Tearing (try e.g. SpeedX with and without VSync to see jarred lines) and it will probably drain battery faster.
Simply uncomment (remove starting #) from line 8 (echo '0' > /sys/kernel/debug/msm_fb/0/vsync_enable)
- 71sdcard_read_ahead
This file raises the read ahead value for your SDCard meaning faster throughput.
----------
The files 96AndroCharger,97loopy_smoothness_tweak,98KickAssKernel should not be edited.
If you wish to use V6 SuperCharger please remove 96AndroCharger first.
Thank you man this is really usefull, gona try ASAP
BTW "For a full "Supercharge" you must also tweak settings.jar via android.mimic.ca", maybe you wanted to say "services.jar" ?
What is inside the flashable ZIP
The ZIP contains a modified boot.img(its initrd image and specifically init.rc not the Kernel), init.d scripts and an executable file: /system/bin/sysinit that in turn executes all init.d scripts.
The source can be modified to support init.d by applying the attached patch to init.rc in platform/system/core repository of CAF. The init.rc is located in rootdir directory.
The patch is a simple two line patch to run sysinit. I will test, and it will of course be preferable to embed sysinit contents directly in init.rc.
Otherwise the initrd.img in the final bootimage can be unpacked,modified and repacked.
I also modified the update script to set permissions on the init.d directory to 755 and owned by root:shell.
Finally, init.qcom.post_boot.sh has been modded so as not to overwrite CPU settings and exec again 13cpu. I may try to modify it so as to source 13cpu instead.
kaza said:
Thank you man this is really usefull, gona try ASAP
BTW "For a full "Supercharge" you must also tweak settings.jar via android.mimic.ca", maybe you wanted to say "services.jar" ?
Click to expand...
Click to collapse
Yes, thank you kaza.
Please let me know if this works fine for you and if you notice any RAM management improvements.
zephyr1988 said:
Yes, thank you kaza.
Please let me know if this works fine for you and if you notice any RAM management improvements.
Click to expand...
Click to collapse
First impressions after first reboot "wow, this thing is really smoother ^^"
Secound impressions after turn on "12fpsfix" "OMG I have a new mobile phone xD"
Boot its slower, but not that much.
Right after boot i have 173 MB free ram, dont really know how much i had before, what i know is that launcher is not redrawing thats really cool
Until now i can only say this, amazing improvement for Aurora, thank you zephyr1988, I will keep in touch with further testing
EDIT: Aps are opening and closing faster too
Thank you so much for this zephyr.
like kaza said, this impoves smoothess a lot.
And being able to use sd-ext again is really good
Thanks again for this!
Yes, improves everything a lot!
Sent from my U8800
kaza said:
First impressions after first reboot "wow, this thing is really smoother ^^"
Secound impressions after turn on "12fpsfix" "OMG I have a new mobile phone xD"
Boot its slower, but not that much.
Right after boot i have 173 MB free ram, dont really know how much i had before, what i know is that launcher is not redrawing thats really cool
Until now i can only say this, amazing improvement for Aurora, thank you zephyr1988, I will keep in touch with further testing
EDIT: Aps are opening and closing faster too
Click to expand...
Click to collapse
Thanks for testing kaza I'm glad it is useful for you
Thank zeppelinrox for his supercharger and the EVO 4G devs for these two things.
I was simply lucky to find them
@Loureiro,fjsferreira
Glad it works for you guys and thanks for testing
A quick question...
"If you use SmartassV2 There are extra tweaks for Performance and a highly suggested tweak for Sleep Ideal Frequency."
If I change to SmartassV2 with No-frills CPU Control will I benefit from that extra tweaks or only if I change it in 13cpu?
EDIT: Nevermind I saw that its needed to uncoment some lines
kaza said:
A quick question...
"If you use SmartassV2 There are extra tweaks for Performance and a highly suggested tweak for Sleep Ideal Frequency."
If I change to SmartassV2 with No-frills CPU Control will I benefit from that extra tweaks or only if I change it in 13cpu?
Click to expand...
Click to collapse
No Frills will overwrite 13cpu's settings in all cases but if you use smartassv2 in 13cpu and enable the tweaks they should stick, I believe.
In two words, use smartassV2 in both No Frills and 13cpu.
Try enabling the sleep ideal freq tweak and then open with a file manager the file:
/sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq
(or in a terminal:
cat /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq)
and see if the value is 368640. If it is it works.
Don't know why, but I installed Aurora 4.0, installed all my apps and then rebooted into Recovery to flash the two Zip files attached to the first post and the phone now is bootlooping :\
trocLas said:
Don't know why, but I installed Aurora 4.0, installed all my apps and then rebooted into Recovery to flash the two Zip files attached to the first post and the phone now is bootlooping :\
Click to expand...
Click to collapse
Are you sure this is because of this mod?
Have you installed other mods too?
Before trying a fresh install, try deleting the three files 96Androcharger, 98KickAsskernel and 97loopy_smoothness_tweak via Pink Screen and PC. Then it is exactly the same as normal aurora and your problem is elsewhere.
Then you should try doing a fresh install of Aurora 4.0, then flash this zip and see if you get bootloops before installing other mods or apps.
wow, I know this will sound strange but at least for me it really happens, i had some slow downloads with Aurora just like most of the guys were reporting, I am using 12fpsfix, 13cpu with 368 min, 1.4 max, smartassV2 with teawks and 71sdcard_read_ahead, and now my downloads are really faster, downloading Asphalt 6 cache now was really fast, maybe its because my read and write speeds of sdcard were increased, dont know, but this is the best tweak so far for Aurora in my opinion lol
kaza said:
wow, I know this will sound strange but at least for me it really happens, i had some slow downloads with Aurora just like most of the guys were reporting, I am using 12fpsfix, 13cpu with 368 min, 1.4 max, smartassV2 with teawks and 71sdcard_read_ahead, and now my downloads are really faster, downloading Asphalt 6 cache now was really fast, maybe its because my read and write speeds of sdcard were increased, dont know, but this is the best tweak so far for Aurora in my opinion lol
Click to expand...
Click to collapse
Yes, I have noticed this too, and also Internet browsing is a little speedier for me.
KickAssKernelizer and SuperCharger(i.e. the modified Androcharger script) apply kernel and tcp stack optimizations
zephyr1988 said:
Are you sure this is because of this mod?
Have you installed other mods too?
Before trying a fresh install, try deleting the three files 96Androcharger, 98KickAsskernel and 97loopy_smoothness_tweak via Pink Screen and PC. Then it is exactly the same as normal aurora and your problem is elsewhere.
Then you should try doing a fresh install of Aurora 4.0, then flash this zip and see if you get bootloops before installing other mods or apps.
Click to expand...
Click to collapse
I tried it with ICS 4.0.4 Toucwiz 5 theme and resulted a bootloop. I will re-install ICS4.0.4 and then your scripts to see if they are working.
zephyr1988 said:
Are you sure this is because of this mod?
Have you installed other mods too?
Before trying a fresh install, try deleting the three files 96Androcharger, 98KickAsskernel and 97loopy_smoothness_tweak via Pink Screen and PC. Then it is exactly the same as normal aurora and your problem is elsewhere.
Then you should try doing a fresh install of Aurora 4.0, then flash this zip and see if you get bootloops before installing other mods or apps.
Click to expand...
Click to collapse
I haven't installed any other mods. I'm going to do a fresh install and then install the two zip files and report what happened!
------------ EDIT ------------
Made a fresh install of Aurora 4.0 and flashed the two zip files from the first post, rebooted the phone, and it entered in bootloop again. Would you upload the files to another host (maybe the files I downloaded are corrupted?).
Don't know why this happens :|
trocLas said:
I haven't installed any other mods. I'm going to do a fresh install and then install the two zip files and report what happened!
Click to expand...
Click to collapse
Did a fresh install but same result(bootloop). Does it make any diffrence which file you install from CWM first?
right after flashing those files, go to Advanced->Report Error. Then mounts and storage -> mount USB storage. You will find inside clockworkmod dir a .log file with debug lines. If something went wrong (mounting or unmounting partitions), it's all there.
Btw which CWM are you using? 5.0.2.7 or 5.5.0.4?
trocLas said:
Don't know why, but I installed Aurora 4.0, installed all my apps and then rebooted into Recovery to flash the two Zip files attached to the first post and the phone now is bootlooping :\
Click to expand...
Click to collapse
same here
Sent from my U8800 using XDA

[MOD]init.d & swap

Here I've made a script witch will enable init.d and swap
What is init.d
-----------------
Init.d scripts execute commands as if they were entered into a terminal. These commands modify the value of parameters that control your device's behaviour. Scripts are much more flexible than cpu apps and give end users more power to tweak and optimize their device as they see fit. Scripts are very small, fast, clean, and bug free if written properly.
What is Swap
----------------
Swap is, in short, virtual RAM so when you run out of real ram android writes to the
swap file saved on cache witch mean less closed applications
Swap will be made on cache and is 600mb in size
Download the zip file move to sdcard backup ROM with custom recovery then flash
rickwyatt said:
Here I've made a script witch will enable init.d and swap
What is init.d
-----------------
Init.d scripts execute commands as if they were entered into a terminal. These commands modify the value of parameters that control your device's behaviour. Scripts are much more flexible than cpu apps and give end users more power to tweak and optimize their device as they see fit. Scripts are very small, fast, clean, and bug free if written properly.
What is Swap
----------------
Swap is, in short, virtual RAM so when you run out of real ram android writes to the
swap file saved on cache witch mean less closed applications
Swap will be made on cache and is 600mb in size
Download the zip file move to sdcard backup ROM with custom recovery then flash
Click to expand...
Click to collapse
Nice.
Do you think we will get some benefits from this MOD?

[AROMA] [SWAP Partition,SWAP File+ZRAM+] Memory Manager V 2.5.9

Hi
Was searching for Linux SWAP Enabling Scripts many times, Linux SWAP Partition or SWAP File, was using Ram Expander for mount my Linux SWAP Partition, and didn't found nothing apart tutorials how to make it…
So I decided to make my own Linux SWAP mounting script.
It's not the first version, so many bugs are already fixed, also included some Low Memory TaskKiller Tweaks.
And because I'm using SdCard EXT4 Partition for secondary Roms I added Script to mount it like other storage on data/media/0, so it's also accessible via PC Connection
Tested on my Xperia Z1 Running Stock Android 5.1.1, but must work
on all Xperia Z Line Models…
Also made some simple Application With TASKER App Factory for change Ram Profiles when Android is booted
To Completely Remove it Simply don't change Aroma Installer Options, press next 4 times, and all of my Stuff's will be Completely Removed
Here is tutorial, how to correctly create Linux SWAP or EXT4 Partition, or both
It's highly recommended to use Class 8 or higher Micro SD-CARD, otherwise it will slowdown your system…
If you don't want to lose your data on SDCARD simply choose move/resize option, make primary partition smaller, then create other partition, or partitions on free space.
⇧⇧⇧Only works with Windows method ⇧⇧⇧
And if somebody don't want to make any changes, hi can use SWAP File, my Installer will create 512Mb, 1Gb or 2Gb SWAP Files on SDCARD or on DATA Partition
My Script and Application don't require SWAP, so you can use it only for RAM PROFILES or EXT4 PARTITION MOUNTING , everything can be selected apart
Now init.d support also don't required, my app repeating all actions, but atleast one option must be selected, because my app and script use flags to know what to make and if no option is selected my script and app have nothing to do…
Requirements : Latest BusyBox Version is Required (Can be Installed by the Same Installer ) .
WARNING : Using of Linux SWAP Partition or SWAP File can reduce your memory life, because of many rewrites!..
⇩⇩⇩Download folder, will upload my script there ⇩⇩⇩
⇝Download Link⇜
Changelog :
V 1.1.1 Initial Public Release .
V 1.2.2 Update :
1)Some bugs fixed;
2)SdCard1 and Linux SWAP Partitions Dual SWAP Added;
3)Added SdCard1 SWAP Files;
4)Cleaning Script Added to Installer.
V 1.3.3 Update :
1)Some small bugs fixed;
2)Memory Manager Application Added;
3)Memory Manager Application Logs Added.
V 1.3.4 Update :
1)Script Code Improved;
2)Memory Manager Application Improved;
3)Added Script for App Installation on
ALL Android Versions;
4)Some Small Aroma Installer Improvements.
5)⇩⇩⇩Performance Control App Added to Installer⇩⇩⇩.
Extracted From RockZ1L ROM Credits to Venkat Kamesh.
V 1.3.5 Update :
1)Some Script Code Improvements;
2)Application Improved;
3)Small Bugs Fixes.
V 1.3.6 Update :
1)Application Improved;
2)Application Logs System Improved;
3)Small Script Improvements.
V 1.4.7 Update :
1)ZRAM and ALL Combinations Added;
2)TRIPLE SWAP SYSTEM Added;
3)Some bugs fixed;
4)Small Improvements.
V 2.5.8 Update :
1)Latest ARM BUSYBOX V1.24.1-Stericson Added to Installer;
2)Aroma Installer Improved;
3)Added RAM MEMORY Status Before and After Script Execution;
4)Application Improved;
5)Some Small Code Improvements.
V 2.5.9 Update :
1)Application Improved;
2)Application Instlling Script Improved;
3)Normal Application Installers Added;
Planned :
1)More Improvements and Stuffs...
Click to expand...
Click to collapse
Thanks to /Credits :
Venkat Kamesh for Butifull Animated Aroma Splash and Performance Control Application, thank you
Amarullz for Great Aroma Installer, thank you very much
[NUT] for applications installing script (I used his script for apps installation, to not complicate my life ), thanks for good script .
Enjoy
Searching for Ideas
Thanks for Everyone ho thanked me
But , sorry, was waiting for any suggestions…
If someone want me to add something New, please let me know
Now planned to add Lcd Density changing script and maybe something more, if I can, so still waiting for suggestions, or simply ideas, to make it Really Good
Edition :
If someone have problems with my Stuff's, please provide me Aroma Installer Log and All XZRAMCONTROL SDCARD1 Folder content
My App and Script have inbuilt logs system…
This way I can investigate what is wrong, maybe I made the error, Only One that don't making nothing never made errors
Operation successful
Finally I changed internal battery of my Z1
So I believe it will work two years more
And now I have many many ideas…
Thinking to make D_Vovan_238 Pack, with all stuff's and editions that I use…
But it will take time and will work only on Z1
Also updated my rom to latest .216 Sony build by MXNice And latest v16 Advanced Kernel by Sharonliu, so will work with those stuff's
P.S. everything what I made, I made with my Xperia Z1 (C6903)…
Work this on z1 compact d5503 too?
Sent from my D5503 using XDA Free mobile app
Giesama said:
Work this on z1 compact d5503 too?
Sent from my D5503 using XDA Free mobile app
Click to expand...
Click to collapse
Not tested, but must work
Try it and if it's not work, simply remove it with the same installer
Just launch installer and don't change any Aroma options and it will be completely removed
Update
Now uploaded new version of Memory Manager
Application Improved, some small bugs fixed in Installer and Script and the Thread also updated
Enjoy
D_Vovan_238 said:
Hi
Was searching for Linux SWAP Enabling Scripts many times, Linux SWAP Partition or SWAP File, was using Ram Expander for mount my Linux SWAP Partition, and didn't found nothing apart tutorials how to make it…
So I decided to make my own Linux SWAP mounting script.
Enjoy
Click to expand...
Click to collapse
Thanks , work on my z1 , :good: what the best recommended selection on aroma installer? its so many selection there
iedafarha said:
Thanks , work on my z1 , :good: what the best recommended selection on aroma installer? its so many selection there
Click to expand...
Click to collapse
There is no best Aroma settings, everything depends of what you want.
I'm using 1.4 Gb LINUX SWAP PARTITION MMCBLK1P2 and 8G EXT4 STORAGE MMCBLK1P3 for external Roms.
But if somebody want more performance, hi can use Dual SWAP, LINUX SWAP PARTITION and SDCARD OR DATA SWAP FILE.
But recently discovered that Dual SWAP, Linux SWAP Partition and SDCARD SWAP FILE don't work good on all roms
Also mostly use MultiTasking RAM Profile and ofcourse using my Apps
New Version Available
Just finished update of the Memory Manager
Application Logs System Improved, added separated log for application, which will provide more detailed information about Ram Memory, and app script log…
Enjoy
New Version !!! Big Update
Just added new version of Memory Manager
ZRAM added to installer, Triple SWAP finally added...
Check ChangeLog inside Aroma Installer
Planned
Because now its turning more itresting, I am thinking about to add Latest BusyBox ONLY for Memory Manager...
And when I will made it, I will create DEVDB Progect
But want to ask this stuff users:"Should i post it on Cross DEVICE or ONLY In XPERIA Z1 Android Development Departament?!."?..
If I will get no respond, I will create DEVDB Project ON Xperia Z1 Android Development...
Old Thread will be like Q&A Thread, or unmantained …
how can this improve battery life ?
draligus said:
how can this improve battery life ?
Click to expand...
Click to collapse
This is not for battery, its for more multitasking , better performance and sd-ext4 partition mount(like bonus).
Is it possible to swap internal and external sd? I mean my 128gig sdcard will be recognized as sdcard0 so all the high-end games will be installed on external sdcard
Odoslané z D6603 pomocou Tapatalku
NetSkill said:
Is it possible to swap internal and external sd? I mean my 128gig sdcard will be recognized as sdcard0 so all the high-end games will be installed on external sdcard
Odoslané z D6603 pomocou Tapatalku
Click to expand...
Click to collapse
The point of this stuff is Virtual Ram Memory
But if you want to move some heavy game files from internal memory to external sdcard, I suggest you to use obb on sd xposed module, if you have active Xposed Framework ofcourse, this way you can move all, or almost all, sdcard/android/obb and sdcard/android/data to sdcard1/android folder
It will free up a lot of memory on internal storage
how come this is an exact copy of this : http://forum.xda-developers.com/showthread.php?t=2145133 ?
mayank22 said:
how come this is an exact copy of this : http://forum.xda-developers.com/showthread.php?t=2145133 ?
Click to expand...
Click to collapse
No it's not a copy, I didn't found this thread when was searching for Linux SWAP Scripts, other thing I didn't see Xperia Z1 in supported devices and third I didn't see option of dual swap and triple swap and ext4 mounting option.
I made my script on my own, you can find the history in RockZ1L kernel thread
Will take a look inside this installer, I believe it's very different from my…
My installer using only one big script with flags to determine what to make…
Edition :
Was looking inside the Turbo Boost Mod, it's very very different from my script and it's working different way…
My Installer create SWAP File, not the script, like the other.
I think it's a bad idea to create SWAP File on boot, some users can take this slowdown like bootloop...
And there are many many different things, if you have basic android programming knowledge, take a look your self, I think you will found more then 10 different things
And if you will try to flash Turbo mod on Xperia Z1, you will be surprised, the installer will exit without making something, because Z1 is unsupported model
And I know why, some values are not good for our Z1
Edition 2 :
Was reading aroma.config file from Turbo Boost Mod Installer and now I see that it also can install dual and triple swap, but it not using Linux SWAP Partition, only SWAP Files…
It's also very good work, like I think…
Almost made new Update
But must fix bugs related with changes that I made, I think in one day, maybe two, we will have new stable version.
It will be awesome
Which app you use on your picture? If the app? If the app should be installed with, it does not happen with me.
Sent from my D5503 using XDA Free mobile app
Giesama said:
Which app you use on your picture? If the app? If the app should be installed with, it does not happen with me.
Sent from my D5503 using XDA Free mobile app
Click to expand...
Click to collapse
I used my application, maid by Tasker App Factory, for screenshots.
Are you using KK or LP Android?
And did you changed Android version in build.prop file?
Theoretically App installation script looking I to build.prop file to know how to install apps…
Be sure to select option to install apps in aroma installer, if not selected no apps will be installed

Llama Sweet Kernel Tweaks

Feature list​
- sets hostname to LG-G4 something that was missing at first from lineage/aosp 7.1.1 (maybe i will remove that)
- Better mount point flags
- Internal storage:
nomerges
nr_requests
lower safe read_ahead_kb
cfq scheduler
cfq scheduler tweaks
remove add_random (if its enabled in the kernel by default)
rq_affinity
- external storage:
nomerges
nr_requests
lower safe read_ahead_kb
cfq scheduler
cfq scheduler tweaks
remove add_random (if its enabled in the kernel by default)
rq_affinity
- Net and virtual memory:
tcp_congestion_control
disable_ipv6
dirty_writeback_centisecs
dirty_expire_centisecs
dirty_background_ratio
dirty_ratio
drop_caches
kernel.panic
min_free_kbytes
overcommit_ratio
panic_on_oom
swappiness 0 #llama doesn't have zram feature, it's useless on Lg G4
vfs_cache_pressure
- CPU customisations ~depends on your choice of script~
balanced ~doesn't make any cpu changes~
less ~for less battery drain, cpu rests more~
more-less ~for a lot less battery drain, but with a big lag (will soon try fix stability and smoothness)~
performance ~for full cpu power, but rest when the screen is off~
- Kernel customisations
msm_thermal ~off on battery save / on and set a safe temp. for performance~
lowmemorykiller
read_wakeup_threshold
write_wakeup_threshold
hotplug customisation
- Only the safe internet customisations
tcp_timestamps
tcp_tw_reuse
tcp_sack
tcp_tw_recycle
tcp_window_scaling
tcp_keepalive_probes
tcp_keepalive_intvl
tcp_fin_timeout
For stock based roms follow the guide in post #2
How to "install" it ? Simple
1.unzip
2.place it in /system/etc/init.d
Code:
adb root
adb remount
adb push <your tweak> system/etc/init.d/
3.change its permissions to 755
4.lastly change owner:group to root:shell
Code:
adb shell
su
mount -o remount rw /system
chmod 755 /system/etc/init.d/<your tweak>
chown root:shell /system/etc/init.d/<your tweak>
If you don't have a pc, type in a terminal inside your g4
Code:
su
mount -o rw remount /system
chmod 755 /system/etc/init.d/<your tweak>
chown root:shell /system/etc/init.d/<your tweak>
Those of you that use the new systemless root method of chainfire you can put the script in /system/su.d or in /su/su.d with permissions 700 (same permissions at folder and script) and set owner:group to root:root
Those of you that use the new magisk root method you can put the script in /magisk/.core/service.d/ with the same permissions and ownership as in init.d
Those coming using search bar and don't have this phone and this kernel, don't try it, unless you know what to edit to "fit" your own kernel.
These tweaks aren't just for faster easy setting up our phone, they are more useful for those that don't want to have root access ON, for various personal reasons. They can apply those settings on boot and setup their phone without the need of root and an app asking for root.
Easy removal: delete the script and reboot. And never use more than one of these scripts inside init.d
Careful, some stock based roms have preinstalled some scripts inside init.d by default.
Those must be removed after flashing Llama Sweet Kernel. They are not compatible and they cause instability !
BIG Thanks to this genius
@genesixxbf3
for his kernel to our lg g4.
XDA:DevDB Information
[Tweaks][MM/N][H815][H811]Kernel Tweaks[CM/STOCK/AOSP], Tool/Utility for the LG G4
Contributors
kessaras, genesixxbf3
Version Information
Status: Stable
Created 2016-12-09
Last Updated 2017-04-25
Reserved
This is a guide for ALL stock based roms and all kernels.
My script will only add tweaks that apply to all kernels.
For those that are rooted with SuperSu, they must first fully remove it.
Nub guide to change SuperSu for Magisk root:​
Step 1.
SuperSu must be removed.
Go into supersu -> settings -> fully remove root access.
###Or download and flash in recovery mode the UnSu script from osm0sis thread.###
Step 2.
Use hardware key combination to boot to TWRP.
###If you used the UnSu script, no need to reboot to recovery, skip step 2 and go to next one.###
Step 3.
Flash latest magisk flashable zip for users that are not rooted yet.
It sais: "If you're not rooted, or something went wrong and you need a clean start"
Download that .zip file and flash it.
Now you are rooted again. Reboot to your rom.
Step 4.
Download Magisk Manager from play store. In that app you can even enable systemless root to hide root from the apps, or do many things that you like.
Questions further go to magisk thread not here. And don't forget to re-enable usb debugging. After you removed root, that was toggled, ###Unless you used the UnSu script again. That means that before reboot you were already rooted.###
Now it's time to install your script.
Download the compressed tweak from this post , uncompress it and follow the next guide.
The steps are the same with the lineage based roms and it works for ALL lineage based roms too
If you use a root file manager then you can skip the guide and just cut - paste the script in /magisk/.core/service.d/
set permissions to 755, ownership to root:shell and reboot.
INSTALLATION​Step 1.
place it in /magisk/.core/service.d/
Code:
adb push /<path to the script>/90balanced /sdcard/
adb shell
su
mv /sdcard/90balanced /magisk/.core/service.d/
Step 2.change its permissions to 755 if it's not already set to 755 by default
Code:
chmod 755 /magisk/.core/service.d/90balanced
If you don't have a pc, type the same commands in g4 terminal but of course without the adb command. Script is supposed to be in path /sdcard/
not in /sdcard/download/ or whatever path. Otherwise edit the command "mv ..." to match the script path.
That's it. Reboot to apply your tweaks.
~I will add Llama Sweet kernel tweaks for stock based ROMS when Genesixxbf3 fixes the bluetooth issue.
Until then all use this one that applies to all kernels including Llama.
Special thanks to:
@topjohnwu for developing Magisk
and to
@osm0sis for his UnSU script
My scripts are not meant for use with kernel adiutor.
Changelog
31/01/2017
- fixed stability for "90less"
- changed to "westwood" tcp congestion control
01/02/2017
- changed to Fiops scheduler only for the 90less and 90more-less
- fixed stability for 90more-less
12/02/2017
- when screen is on, 3 cores always online not 1.
- fixed stability for 90less , 90more-less
- 90balance, interactive governor stable and at the same time conserving some battery
- big cores governor is same with small cores
15/02/2017 and 20/02/2017
- changed back to cfq scheduler
- added cfq scheduler tweaks
- fixed path to disable ipv6
09/03/2017
- fixed a bug for those that big cores were found disabled on boot
Although this is something caused from dirty flashing and can only be fixed with a clean flash
18/03/2017
- Added better mount point flags for Lineage/Aosp based roms, for f2fs, for those that prefer using f2fs partitions format
- i changed the way the mount points get set, now you don't need busybox if you don't want to.
- bigger timer rate for interactive governor for the balanced tweak, balanced can conserve battery now too.
25/04/2017
- Less-more is not lagging anymore but of course it still loads slow since cpu runs at a lower frequency
- interactive governor in balanced script saves more battery than before
- All scripts now give a small cpu frequency amount on input to reduce lag
- At less and less-more the hotplug sets the cores online at a lower frequency. Before, with those scripts you could rarely see the other cores online
kessaras said:
You can request any setting for kernel and cpu you want. I can add them for you.
Screenshots of battery with 90less.
~Haven't done anything special. Brightness is at normal with "auto" ON, gapps stock, usage: Normal, chat, xda, phone Calls/Messages, GPS ON.
Many factors determine the battery drain, such as 3rd party apps, ads from apps, services and more, don't blame my settings. Those settings are absolute and tested and i only do this to help everyone.
Click to expand...
Click to collapse
Thanks for you work, I am using H818p without BL unlock. Currently, I can modify /etc/init/qcom.post_boot.sh from this thread (http://forum.xda-developers.com/tmo...-msm-8992-cpu-io-ram-interactive-gov-t3351478).
The question is, can I port some tweaks from this thread to the stock kernel using qcom.post_boot ? I am not familiar with the seqence of boot, any idea ?
Thanks,
jskasia said:
Thanks for you work, I am using H818p without BL unlock. Currently, I can modify /etc/init/qcom.post_boot.sh from this thread (http://forum.xda-developers.com/tmo...sm-8992-cpu-io-ram-interactive-gov-t3351478).
The question is, can I port some tweaks from this thread to the stock kernel using qcom.post_boot ? I am not familiar with the seqence of boot, any idea ?
Thanks,
Click to expand...
Click to collapse
Scripts are only for Llama kernel. So,
it depends if the stock kernel has same file "trees". Worst case scenario is to not be able to boot. If you can enter recovery you can fix it by doing :
Code:
rm /system/etc/init.d/<name of the script>
Or use the recovery file manager to delete it,
reboot and you are fine.
Don't use 90less as it is or for sure you won't boot. Less is using alucard governor which doesn't exist in stock. Open script and edit those lines, change alucard to interactive.
"kernel tweaks" delete them. the stock kernel doesn't have same hotplugs and heat protection.
EDIT:
a part of the scripts does work for stock without llama kernel. it's not dangerous because the stock lg rom doesn't have init.d support on boot and the script only can be applied inside kernel adiutor by enabling init.d emulator.
you can use it then. you will just not get the 100% out of it.
in the 90less you wont get the alucard governor and the hotplug to let the cpu rest.
the only alternative available is to make you one that edits the interactive governor to work almost the same as alucard and conserve a bit more battery than the stock interactive does.
@matgesiarz
follow the op
kessaras said:
Scripts are only for Llama kernel. So,
it depends if the stock kernel has same file "trees". Worst case scenario is to not be able to boot. If you can enter recovery you can fix it by doing :
Code:
rm /system/etc/init.d/<name of the script>
Or use the recovery file manager to delete it,
reboot and you are fine.
Don't use 90less as it is or for sure you won't boot. Less is using alucard governor which doesn't exist in stock. Open script and edit those lines, change alucard to interactive.
"kernel tweaks" delete them. the stock kernel doesn't have same hotplugs and heat protection.
Click to expand...
Click to collapse
Okay, I successfully put the tweaks (balance) on to init.qcom.post_boot.sh. My phone boot without any problem. After few days we will see the result.
Thanks
we just need to push scripts or I need also to clean the init.d folder first from other scripts? I am on ChyperOS 3.1.4
If I understand right, if I put this tweak I don't need to setup any kernel modification in apps like EX Kernel manager, isn't?
Vipery said:
we just need to push scripts or I need also to clean the init.d folder first from other scripts? I am on ChyperOS 3.1.4
Click to expand...
Click to collapse
no you don't clean the init.d folder. if you do that you will lose important script that needs the rom to boot. you only use one of those scripts in init.d, if you put 2 of those in, delete the one.
Oletros said:
If I understand right, if I put this tweak I don't need to setup any kernel modification in apps like EX Kernel manager, isn't?
Click to expand...
Click to collapse
exactly and if you need any change and you don't know how to edit the script, you can ask me to add it for you
kessaras said:
no you don't clean the init.d folder. if you do that you will lose important script that needs the rom to boot. you only use one of those scripts in init.d, if you put 2 of those in, delete the one.
Click to expand...
Click to collapse
Thank you. Another thing, I need to set owner and group to shell or just group? The other scripts are set root/shell and not shell/shell.
Vipery said:
Thank you. Another thing, I need to set owner and group to shell or just group? The other scripts are set root/shell and not shell/shell.
Click to expand...
Click to collapse
only what the op sais. only group owner. its already set from me, but you have to at least check if its set, if not, set it. group owner shell
Thanks for the tweaks!
Sorry for this perhaps silly question, but which is supposed to be more battery friendly between balanced and less?
joaste said:
Thanks for the tweaks!
Sorry for this perhaps silly question, but which is supposed to be more battery friendly between balanced and less?
Click to expand...
Click to collapse
less refers to less battery consuption and its only by a little cause we don't want to have lags. Of course we can do it even more battery friendly but we will have a very slow phone.
kessaras said:
less refers to less battery consuption and its only by a little cause we don't want to have lags. Of course we can do it even more battery friendly but we will have a very slow phone.
Click to expand...
Click to collapse
Thanks for the clarification!
kessaras said:
exactly and if you need any change and you don't know how to edit the script, you can ask me to add it for you
Click to expand...
Click to collapse
Thanks
Ok,I applied your 90less tweaks and here's what I've got after reboot:
The big cores governor-interactive,max.freq.-1248
The little cores governor-alucard,max.freq.-1440
MSM Hotplug-OFF
MSM MPDecision Hotplug-ON
Is that ok or...?
welder73 said:
Ok,I applied your 90less tweaks and here's what I've got after reboot:
The big cores governor-interactive,max.freq.-1248
The little cores governor-alucard,max.freq.-1440
MSM Hotplug-OFF
MSM MPDecision Hotplug-ON
Is that ok or...?
Click to expand...
Click to collapse
nothing applied on boot.
in less,
max for the big is set to 1536
and hotplug is off to not get load for nothing since the temp wont go higher than 60 even under the hot summer sun.
kessaras said:
nothing applied on boot.
in less,
max for the big is set to 1536
and hotplug is off to not get load for nothing since the temp wont go higher than 60 even under the hot summer sun.
Click to expand...
Click to collapse
So I should change the max for the little cores to 1536 and everything else is ok?
Vipery said:
Thank you. Another thing, I need to set owner and group to shell or just group? The other scripts are set root/shell and not shell/shell.
Click to expand...
Click to collapse
...

Categories

Resources