[GT-S7562] [CM11] Soft Reboot Fix Script

RJinxed

Senior Member
Jun 9, 2015
201
126
0
Are there still people who's experiencing soft reboots even though you've already set the frequency to 1008mhz? If so, here's a fix provided by me.

klinkone suspects zram
so I tried to pressure the zram with full swap
(so it can be full real quick)
and surprise surprise, within 30 minutes SOFT REBOOT occurs.

apparently, when the zram is full, it triggers the panic
so we simply need to reduce the swappiness so it wouldnt be full so easy.

Code:
 echo 10 > /proc/sys/vm/swappiness
Installation
• Download the script (44swappiness.txt)
• Just delete the extension (.txt)
• Inject the script (44swappiness) to init.d folder
• Set the permission to 0755
• Reboot to take effect

screenshot of uptime, for 16 hours not a single soft reboot was experienced

Please hit the thanks button if it helped
 

Attachments

Last edited:

Ritik99

Senior Member
Feb 24, 2016
470
114
53
21
Greater Noida
Are there still people who's experiencing soft reboots even though you've already set the frequency to 1008mhz? If so, here's a fix provided by me.

klinkone suspects zram
so I tried to pressure the zram with full swap
(so it can be full real quick)
and surprise surprise, within 30 minutes SOFT REBOOT occurs.

apparently, when the zram is full, it triggers the panic
so we simply need to reduce the swappiness so it wouldnt be full so easy.



Installation
• Download the script (44swappiness.txt)
• Just delete the extension (.txt)
• Inject the script (44swappiness) to init.d folder
• Set the permission to 0755
• Reboot to take effect

screenshot of uptime, for 16 hours not a single soft reboot was experienced

Please hit the thanks button if it helped
I think permission is 0750 instead of 0755.:cowboy:
 

Attachments

Ritik99

Senior Member
Feb 24, 2016
470
114
53
21
Greater Noida
What permission are you talking about and how to set it(sorry for asking I'm new here)
I use solid explorer, and u can set permission by this way.
1. Select the item
2. Touch on 3 dots at top right and select properties
3. You will see permission tab there, set permission (for 0755 you will have to make a tick and make an inverted U )
4. Select apply

Done.
 
  • Like
Reactions: Safder Hashmi

Safder Hashmi

Member
Dec 4, 2016
11
0
0
for noob here is flashable;)
no need to set permission:fingers-crossed:
thanks for share:good:
need a custom recovery:)

also check
auto swap in all devices
Already done with solid explorer.i was using es file explorer.in permission tab there was no numbers like0755.so just confused.thanks for flashable