yeap. 90userinit is from superuserHi @kessaras, thanks for your work!
I have a quick question: my AOSP-based rom already has a script called "90userinit" in the init.d folder, is it still ok to use your scripts?
yeap. 90userinit is from superuserHi @kessaras, thanks for your work!
I have a quick question: my AOSP-based rom already has a script called "90userinit" in the init.d folder, is it still ok to use your scripts?
thanks!yeap. 90userinit is from superuser
Clean flash.thanks!
I have tried using your 90balanced tweak but after boot it doesn't do anything, kernel remains at its stock values
I have tried doing the commands in terminal but it says "mount: '/system' not in /proc/mounts" and fails.
So i tried using my file manager and i did the following: copy 90balanced into init.d, set 755 permissions and root:shell but after reboot nothing happens. Could you please help me?
it says that /system not found.mount -o rw remount /system
Install busybox and use the same command with busybox in front. Busybox mount -o....I have 90userinit and 00banner in my initD folder. Is it ok? Put 90less in init.d folder and reboot. Don't know for sure if the script was installed. Also, was unable to
it says that /system not found.
other commands executed just fine
cat /proc/sys/net/ipv4/tcp_congestion_control
cubic
cat /proc/sys/vm/swappiness
60
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
alucard
cat /proc/sys/net/ipv4/tcp_congestion_control
westwood
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
alucard
cat /proc/sys/vm/swappiness
0
h815:/system/etc/init.d # ./90less
./90less
./90less[46]: can't create /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor: No such file or directory
./90less[48]: can't create /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq: No such file or directory
mount: mounting /mnt/media_rw/28C6-E3F8 on /mnt/runtime/write/28C6-E3F8 failed: Invalid argument
init.d executes scripts as root. the changes are done on boot.Hi, I'm having some troubles on latest Lineage weekly and latest Llama kernel with busybox installed and root set to adb only:
After I put the 90less script in init.d folder it seems to properly execute only some lines. I guess that scrpit can change /sys/* values, but cant change /proc/sys/* values as demonstrated by example from adb shell:
When I run the script from root adb shell manually, the /proc/sys/* values get changed:
But also some errors pops up (28C6-E3F8 is my sdcard):Code:cat /proc/sys/net/ipv4/tcp_congestion_control westwood cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor alucard cat /proc/sys/vm/swappiness 0
Code:h815:/system/etc/init.d # ./90less ./90less ./90less[46]: can't create /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor: No such file or directory ./90less[48]: can't create /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq: No such file or directory mount: mounting /mnt/media_rw/28C6-E3F8 on /mnt/runtime/write/28C6-E3F8 failed: Invalid argument
Thank you for the fix. I can see that the cpu core error on my second (manual) script execution was caused by them being offline after the first run.init.d executes scripts as root. the changes are done on boot.
the last one i don't get it. you have disabled the big cores ? ill just add a command to enable the big cores before it sets those parameters. it wont affect the hotplug.
you will see the update tomorrow.
EDIT:
update is there. see changelog.
As for the mount commands for media, it won't work on all devices and sd cards. The remount with those flags will only work on stock formats. Internal partitions must be EXT4, F2FS cannot get those flags and external sdcard must be a specific format VFAT.
I will not change the defaults formats with my script, that will cause problems. The format must remain the same as it was on boot.
That helps. I'll check it tomorrow that I have time . Wait for update on SundayI couldn't find the log for init.d scripts so I've enhanced the script a bit in order to be able to view it in logcat. Found out that about half of commads are failing...
Both scripts and results are here https://gist.github.com/jirrick/62365c4ac8ee5c0b51245c06d2f2ef5e hope it helps you because this is the point where my knowledge ends...
EDIT: I've added the output of script when run from root adb shell into the gist. The execution log is very different. It seems like the structure isn't initialized at boot time...
It executes almost flawlessly when run manually after completing boot from adb shell (as seen in output2), but what about the first automatic execution from master init procedure (the first output) which is just failing?That helps. I'll check it tomorrow that I have time . Wait for update on Sunday
EDIT:
i don't see any problem there. Only nr_requests didn't get set. Now they will.
its not rom ernel combination. its clearly kernel.It executes almost flawlessly when run manually after completing boot from adb shell (as seen in output2), but what about the first automatic execution from master init procedure (the first output) which is just failing?
I understand that this can be dependent on ROM+kernel version combination. Have you tried put my version of the script in your init.d folder and then use the logcat command to get result of your execution?
I feel like we don't understand each other. The script itself in init.d folder gets executed properly, no issues there. The permissions and ownership doesnt really matter as long as root have execute permissions, tried succesfully both with 755 (-rwxr-xr-x) and 700 (-rwx------). If the permissions were wrong I wouldn't have any log from that script, right?its not rom ernel combination. its clearly kernel.
llama has init.d support. the only thing you have to do is follow the op and set the right permissions and owner:group.
if those are not correct , it won't execute .
the only thing that maybe interfere with init.d but rarely is the systemless su from chainfire not magisk.
did you double check that you have 755 permissions to the init.d folder and scripts ?
root:root on init.d folder and root:shell on the script ?
If everything is correct there is just no way to not execute.
for file in /proc/sys/net/ipv6/conf/*/disable_ipv6; do echo 1 > $file; done
ERROR: echo 1 > /proc/sys/net/ipv6/conf/*/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/dummy0/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/lo/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/r_rmnet_data0/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/r_rmnet_data1/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/r_rmnet_data2/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/r_rmnet_data3/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/r_rmnet_data4/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/r_rmnet_data5/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/r_rmnet_data6/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/r_rmnet_data7/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/r_rmnet_data8/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/rmnet_data0/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/rmnet_data1/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/rmnet_data2/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/rmnet_data3/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/rmnet_data4/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/rmnet_data5/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/rmnet_data6/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/rmnet_data7/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/rmnet_ipa0/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/sit0/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/teql0/disable_ipv6
PASSED: echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6
it does matter. its the same as su.d. su.d needs 700 or it won't execute. Same goes for init.d.I feel like we don't understand each other. The script itself in init.d folder gets executed properly, no issues there. The permissions and ownership doesnt really matter as long as root have execute permissions, tried succesfully both with 755 (-rwxr-xr-x) and 700 (-rwx------). If the permissions were wrong I wouldn't have any log from that script, right?
. ./system/etc/init.d/<script name>
i have latest magisk. stock baseed. so this zip in 2nd post shopuld work on stock based and any kernel.?Added instructions in the op too.
Llama Sweet Kernel (lineage based only. for stock i haven't test it yet)
- Those that use supersu root method, they can use alternative path to /su/su.d/ to execute their scripts. Set permissions to 700 and ownership to root:root for both the folder and file.
- Those of you that use magisk as a root method, you can also use alternative /magisk/.core/service.d or /magisk/.core/post-fs-data.d. The difference is in the execution time. Service.d will execute a little bit later during boot, but the result is the same. My scripts execution times are best for service.d, in post-fs-data.d it will execute too soon and the kernel will later set the default values so you won't tweak anything.
Lastly in a few days ill make one good script for both stock lineage kernel and stock based LG kernel. Using magisk or supersu is now possible to do everything init.d does without the need of init.d support.
Yeah script from the 2nd post is 100% working on stock and on any stock based and even on lineage stock.i have latest magisk. stock baseed. so this zip in 2nd post shopuld work on stock based and any kernel.?
question is theres no magisk path you mention.? what create it.?
does this disables cores or just changes frequencies.? thanks