FORUMS
Remove All Ads from XDA

[KERNEL][GPL] Vengeance [1.38][3/5]

1,000 posts
Thanks Meter: 3,488
 
By rachitrawat, Inactive Recognized Developer on 13th January 2013, 10:32 AM
Post Reply Email Thread
8th March 2013, 07:59 AM |#471  
gu5t3r's Avatar
Senior Member
Thanks Meter: 1,523
 
More
Lightbulb
Latest UHD has init.d scripts:

98tweaks
Code:
#!/system/bin/sh
sleep 10;

#Tweak SD readahead values
echo 1024 > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
echo 1024 > /sys/devices/virtual/bdi/default/read_ahead_kb;

#File system tweaks
busybox rm -rf /data/tombstones/*;

#Tweak various memory settings
sysctl -w vm.dirty_ratio=20;
sysctl -w vm.dirty_background_ratio=5;
sysctl -w vm.vfs_cache_pressure=300;
sysctl -w vm.oom_kill_allocating_task=0;
sysctl -w vm.min_free_kbytes=2048;
sysctl -w vm.dirty_expire_centisecs=200;
sysctl -w vm.dirty_writeback_centisecs=500;
sysctl -w vm.panic_on_oom=0;
sysctl -w vm.overcommit_memory=1;
sysctl -w vm.overcommit_ratio=50;
sysctl -w vm.swappiness=0;

sysctl -w kernel.panic_on_oops=1;
sysctl -w kernel.panic=10;
and

99hd
Code:
#!/system/bin/sh

sleep 40;
hd;
which is 40+10=50 seconds of unnecessary waiting at boot logo...

BUT if you modify scripts like this:

98tweaks
Code:
#!/system/bin/sh
exec > /dev/null 2>&1
if [ "$1" != "BG" ]; then $0 BG & exit 0; fi

sleep 10;

#Tweak SD readahead values
echo 1024 > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
echo 1024 > /sys/devices/virtual/bdi/default/read_ahead_kb;

#File system tweaks
busybox rm -rf /data/tombstones/*;

#Tweak various memory settings
sysctl -w vm.dirty_ratio=20;
sysctl -w vm.dirty_background_ratio=5;
sysctl -w vm.vfs_cache_pressure=300;
sysctl -w vm.oom_kill_allocating_task=0;
sysctl -w vm.min_free_kbytes=2048;
sysctl -w vm.dirty_expire_centisecs=200;
sysctl -w vm.dirty_writeback_centisecs=500;
sysctl -w vm.panic_on_oom=0;
sysctl -w vm.overcommit_memory=1;
sysctl -w vm.overcommit_ratio=50;
sysctl -w vm.swappiness=0;

sysctl -w kernel.panic_on_oops=1;
sysctl -w kernel.panic=10;
99hd
Code:
#!/system/bin/sh
exec > /dev/null 2>&1
if [ "$1" != "BG" ]; then $0 BG & exit 0; fi

sleep 40;
/system/xbin/hd;
You will not have to wait this 50 seconds at boot logo...
The Following 25 Users Say Thank You to gu5t3r For This Useful Post: [ View ] Gift gu5t3r Ad-Free
 
 
8th March 2013, 11:17 AM |#472  
wahsauce's Avatar
Member
Flag New Plymouth
Thanks Meter: 12
 
More
Thumbs up Thanks
Whoa, boot time is now like 10-15 seconds instead of 1 minute.

Awesome work bro

This gives me precious seconds back in my day, so I can do things like taking pictures of cats
The Following User Says Thank You to wahsauce For This Useful Post: [ View ] Gift wahsauce Ad-Free
8th March 2013, 11:51 AM |#473  
Senior Member
Thanks Meter: 94
 
More
Re: [KERNEL][ICS] Vengeance [ARC/S/PRO][1.32][18/02/13]
This would be to avoid waiting for some time at the Sony logo right? If that's the case, just replased the 98tweaks and the 99hd with what you said and in my mk16 it continues to take the same time.

I've supercharged the services.jar but haven't applied V6 Supercharger yet so I have no idea on what might be failing.
8th March 2013, 02:33 PM |#474  
Senior Member
Thanks Meter: 32
 
More
Quote:
Originally Posted by gu5t3r

Latest UHD has init.d scripts:

98tweaks

Code:
#!/system/bin/sh
sleep 10;

#Tweak SD readahead values
echo 1024 > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
echo 1024 > /sys/devices/virtual/bdi/default/read_ahead_kb;

#File system tweaks
busybox rm -rf /data/tombstones/*;

#Tweak various memory settings
sysctl -w vm.dirty_ratio=20;
sysctl -w vm.dirty_background_ratio=5;
sysctl -w vm.vfs_cache_pressure=300;
sysctl -w vm.oom_kill_allocating_task=0;
sysctl -w vm.min_free_kbytes=2048;
sysctl -w vm.dirty_expire_centisecs=200;
sysctl -w vm.dirty_writeback_centisecs=500;
sysctl -w vm.panic_on_oom=0;
sysctl -w vm.overcommit_memory=1;
sysctl -w vm.overcommit_ratio=50;
sysctl -w vm.swappiness=0;

sysctl -w kernel.panic_on_oops=1;
sysctl -w kernel.panic=10;
and

99hd
Code:
#!/system/bin/sh

sleep 40;
hd;
which is 40+10=50 seconds of unnecessary waiting at boot logo...

BUT if you modify scripts like this:

98tweaks
Code:
#!/system/bin/sh

if [ "$1" != "BG" ]; then $0 BG & exit 0; fi

sleep 10;

#Tweak SD readahead values
echo 1024 > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
echo 1024 > /sys/devices/virtual/bdi/default/read_ahead_kb;

#File system tweaks
busybox rm -rf /data/tombstones/*;

#Tweak various memory settings
sysctl -w vm.dirty_ratio=20;
sysctl -w vm.dirty_background_ratio=5;
sysctl -w vm.vfs_cache_pressure=300;
sysctl -w vm.oom_kill_allocating_task=0;
sysctl -w vm.min_free_kbytes=2048;
sysctl -w vm.dirty_expire_centisecs=200;
sysctl -w vm.dirty_writeback_centisecs=500;
sysctl -w vm.panic_on_oom=0;
sysctl -w vm.overcommit_memory=1;
sysctl -w vm.overcommit_ratio=50;
sysctl -w vm.swappiness=0;

sysctl -w kernel.panic_on_oops=1;
sysctl -w kernel.panic=10;
99hd
Code:
#!/system/bin/sh

if [ "$1" != "BG" ]; then $0 BG & exit 0; fi

sleep 40;
hd;
You will not have to wait this 50 seconds at boot logo...

should it install busybox?
8th March 2013, 02:48 PM |#475  
TopperBG's Avatar
Senior Member
Flag Bulgaria
Thanks Meter: 481
 
Donate to Me
More
Quote:
Originally Posted by knightthgink

should it install busybox?

Not need to (but there is already inside)
8th March 2013, 03:08 PM |#476  
gu5t3r's Avatar
Senior Member
Thanks Meter: 1,523
 
More
Lightbulb
Quote:
Originally Posted by kbraiza

This would be to avoid waiting for some time at the Sony logo right? If that's the case, just replased the 98tweaks and the 99hd with what you said and in my mk16 it continues to take the same time.

I've supercharged the services.jar but haven't applied V6 Supercharger yet so I have no idea on what might be failing.

Yes, Vengeance kernel has Sony logo. Maybe you didn't add IF line right, did you try reopening the file to see if changes are saved? That can be problem on some file managers...And every space is important in:
Code:
if [ "$1" != "BG" ]; then $0 BG & exit 0; fi
...if its not entered correctly shell will just skip it as error and it would be as it is not there...what I suspect is happening to you...


On my Arc S, init.d scripts start executing when Sony logo becomes brighter, and with SuperCharger and KAK it only takes 2-3 seconds...After I turned sd-ext file system check on boot in Mounts2SD it takes me 5-6 seconds to boot now...

And this method works for sure, because I have script for setting cpu governor that waits for property sys.boot_completed to be set before setting governor, and if I remove IF line script does not get relaunched in background, and Phone is waiting for script to finish and script is waiting for Phone to boot which never happens and phone gets stuck at boot logo... With IF line script gets relaunched in background, phone continues booting, when phone is booted (property is set) script sets cpu governor and governor options...

---------- Post added at 04:08 PM ---------- Previous post was at 03:48 PM ----------

This should have same effect but works in slightly different way:
Code:
if [ "0$BG" -eq 0 ]; then export BG=1; $0 & exit 0; else unset BG; fi
jorobg
8th March 2013, 03:10 PM |#477  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by gu5t3r

Yes, Vengeance kernel has Sony logo. Maybe you didn't add IF line right, did you try reopening the file to see if changes are saved? That can be problem on some file managers...And every space is important in:

Code:
if [ "$1" != "BG" ]; then $0 BG & exit 0; fi
...if its not entered correctly shell will just skip it as error and it would be as it is not there...what I suspect is happening to you...


On my Arc S, init.d scripts start executing when Sony logo becomes brighter, and with SuperCharger and KAK it only takes 2-3 seconds...After I turned sd-ext file system check on boot in Mounts2SD it takes me 5-6 seconds to boot now...

And this method works for sure, because I have script for setting cpu governor that waits for property sys.boot_completed to be set before setting governor, and if I remove IF line script does not get relaunched in background, and Phone is waiting for script to finish and script is waiting for Phone to boot which never happens and phone gets stuck at boot logo... With IF line script gets relaunched in background, phone continues booting, when phone is booted (property is set) script sets cpu governor and governor options...

Quote:

Originally Posted by knightthgink
should it install busybox?

Quote:

Not need to (but there is already inside)

mr. gu5t3r

Can you gonna give us step for step explain how to run Supercharger V6?
Or the last one, or the best one for us devices on this kernel and UHD rom?

many thanks

For you is easy, get money bay new device?
- samsung galaxy III or waiting for IV or the new sony with 4X1.5
But for someone like my, it is impossible.

In the Europe there is not more devices with HW KEYBOARD!
8th March 2013, 03:18 PM |#478  
gu5t3r's Avatar
Senior Member
Thanks Meter: 1,523
 
More
Quote:
Originally Posted by knightthgink

should it install busybox?

I don't understand your question, custom kernels like Vengeance and LuPuS already have busybox embedded, they need it to work properly...

---------- Post added at 04:17 PM ---------- Previous post was at 04:11 PM ----------

Quote:
Originally Posted by jorobg

mr. gu5t3r

Can you gonna give us step for step explain how to run Supercharger V6?
Or the last one, or the best one for us devices on this kernel and UHD rom?

many thanks

This is latest V6_SuperCharger-U9_FAST tease. Just copy script to sdcard, remove .pdf extension and run it with SManager (Script Manager)...Script will ask you what you want to enable and what you don't.
For 100% supercharging read SuperCharger thread.

---------- Post added at 04:18 PM ---------- Previous post was at 04:17 PM ----------

Quote:
Originally Posted by jorobg

mr. gu5t3r
For you is easy, get money bay new device?
- samsung galaxy III or waiting for IV or the new sony with 4X1.5
But for someone like my, it is impossible.

In the Europe there is not more devices with HW KEYBOARD!

I don't get the point as I have LT18i (Arc S)...
8th March 2013, 03:49 PM |#479  
Madaditya's Avatar
Senior Member
Flag Pune
Thanks Meter: 1,100
 
Donate to Me
More
Re: [KERNEL][ICS] Vengeance [ARC/S/PRO][1.32][18/02/13]
Quote:
Originally Posted by jorobg

mr. gu5t3r

Can you gonna give us step for step explain how to run Supercharger V6?
Or the last one, or the best one for us devices on this kernel and UHD rom?

many thanks

For you is easy, get money bay new device?
- samsung galaxy III or waiting for IV or the new sony with 4X1.5
But for someone like my, it is impossible.

In the Europe there is not more devices with HW KEYBOARD!

Check this link...a bit outdated....coz Zep(supercharger script's OP!) updates his scripts like hell
http://forum.xda-developers.com/show....php?t=1334834
But will help you atleast understand...
Read op of superchager and this..you'll get it..
For rest of the script,the script itself tells you what it is doing and how that will affect...as you run it...

And there's too much 'Supercharger' discussion in vengeance thread..so the discussion should now be carried at the right place...mayb general chat?
Never an offence!
.
You might wanna hit thanx
Typed from my Iyokan!

And...Be the smart Geek!
8th March 2013, 04:26 PM |#480  
Senior Member
Thanks Meter: 94
 
More
Re: [KERNEL][ICS] Vengeance [ARC/S/PRO][1.32][18/02/13]
Quote:
Originally Posted by gu5t3r

This should have same effect but works in slightly different way:

Code:
if [ "0$BG" -eq 0 ]; then export BG=1; $0 & exit 0; else unset BG; fi

I copied directly from the post before and replaced into the corresponding file. The files got properly saved and this is how they look in Root Explorer.

Click image for larger version

Name:	uploadfromtaptalk1362759937915.jpg
Views:	200
Size:	71.1 KB
ID:	1789461

Click image for larger version

Name:	uploadfromtaptalk1362759951008.jpg
Views:	182
Size:	22.5 KB
ID:	1789465

Just tried the other code you shared but also didn't work.

Xperia Pro mk16 @ Tapatalk
8th March 2013, 05:32 PM |#481  
gu5t3r's Avatar
Senior Member
Thanks Meter: 1,523
 
More
Re: [KERNEL][ICS] Vengeance [ARC/S/PRO][1.32][18/02/13]
That is weird, do you have any other scripts in init.d?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes