[KERNEL MODULE] For ICS .587 Stock Kernel with Locked Bootloader [SMARTASSV2/SIO]

Kir3

Senior Member
Aug 5, 2012
1,383
379
113
MK
untested flashable zip. if it does flash then change VALUE in /system/etc/init.d/33smartass manually.

do tell if it work, ill make for sio too.
It's working but change the name to 33smartassv2 because there is other governor too :)
Thanks very much :good:
 

mdfzhi

Senior Member
Jun 15, 2011
4,148
3,853
0
cool. i thought my script writing skills became dull already :p
added the flashable zip to op, and added sio flashable zip too.
 
Last edited:

mdfzhi

Senior Member
Jun 15, 2011
4,148
3,853
0
btw im not really sure if the smartassv2 VALUE is different phone by phone or just the same on all phone because xperia 2011 uses the same kernel source. if everyone with stock kernel could posted their VALUE and confirmed its the same across all phone, i could recompile with VALUE hardcoded in the module so no need to define it manually in script.
 

XpeRiAdikTo

Member
Nov 2, 2010
39
12
28
btw im not really sure if the smartassv2 VALUE is different phone by phone or just the same on all phone because xperia 2011 uses the same kernel source. if everyone with stock kernel could posted their VALUE and confirmed its the same across all phone, i could recompile with VALUE hardcoded in the module so no need to define it manually in script.
I have stock kernel, and the value is same

Sorry for my bad english

And thanks!

Enviado desde mi WT19i usando Tapatalk 2
 

mdfzhi

Senior Member
Jun 15, 2011
4,148
3,853
0
This is my value. I was able to apply both zip and use SManager but I only have sio but smartassv2 is not available
duh. seems like its different phone by phone afterall.
for smartassv2 u need to modify /system/etc/init.d/33smartass with your own value or else module wont be loaded.
 

amnher

Senior Member
Sep 23, 2011
3,074
585
253
33
Taguig
duh. seems like its different phone by phone afterall.
for smartassv2 u need to modify /system/etc/init.d/33smartass with your own value or else module wont be loaded.
The value is already modified.
I think it is now working. Maybe there is just a delay. After the firmware loads, I instantly go to nofrills CPU and saw there is only SIO and the governor has no smartassv2 but if I wait for about 30 seconds or so, the smartassv2 be automatically selected. Is that ok? is it normal that SIO loads faster than smartassv2?

I also notice that tooltip that comes out (maybe from nofrills or SManager) after reboot

"Error: Did you allow superuser permission?"
sometimes it says

"Success!
Governor: ondemand
Scheduler: SIO"
I have root access and I'm using SuperSU
 
Last edited:

mdfzhi

Senior Member
Jun 15, 2011
4,148
3,853
0
u dont even need smanger to load the script, the init.d script will load the module automatically when u boot, and u also can modify it to set smartassv2 as default governor too.
modify the 33smartass into this
Code:
#!/system/bin/sh

if busybox [ -e /system/lib/modules/cpufreq_smartass2.ko ];
then
	chown root.root /system/lib/modules/cpufreq_smartass2.ko
	chmod 0755 /system/lib/modules/cpufreq_smartass2.ko
	insmod /system/lib/modules/cpufreq_smartass2.ko lookup_address=0xVALUE
	echo smartassV2 > /sys/device/system/cpu/cpu0/cpufreq/scaling_governor
else
	return 0
fi;
or this if above didnt work
Code:
#!/system/bin/sh

if busybox [ -e /system/lib/modules/cpufreq_smartass2.ko ];
then
	chown root.root /system/lib/modules/cpufreq_smartass2.ko
	chmod 0755 /system/lib/modules/cpufreq_smartass2.ko
	insmod /system/lib/modules/cpufreq_smartass2.ko lookup_address=0xVALUE
	echo "smartassV2" >> /sys/device/system/cpu/cpu0/cpufreq/scaling_governor
else
	return 0
fi;
or even this
Code:
#!/system/bin/sh

if busybox [ -e /system/lib/modules/cpufreq_smartass2.ko ];
then
	chown root.root /system/lib/modules/cpufreq_smartass2.ko
	chmod 0755 /system/lib/modules/cpufreq_smartass2.ko
	insmod /system/lib/modules/cpufreq_smartass2.ko lookup_address=0xVALUE
	echo "smartassV2" > /sys/device/system/cpu/cpu0/cpufreq/scaling_governor
else
	return 0
fi;
 

mdfzhi

Senior Member
Jun 15, 2011
4,148
3,853
0
the init.d script will load if your rom support init.d sysinit correctly.
if module doesnt load then theres something wrong with your roms init.d.
 

mdfzhi

Senior Member
Jun 15, 2011
4,148
3,853
0
no wonder. u need to have init.d sysinit for stock rom installed to have the script loads automatically on boot.
but if u want to use smanager then stay with it, both init.d sysinit and manually loading with smanager works either way.
 

amnher

Senior Member
Sep 23, 2011
3,074
585
253
33
Taguig
no wonder. u need to have init.d sysinit for stock rom installed to have the script loads automatically on boot.
but if u want to use smanager then stay with it, both init.d sysinit and manually loading with smanager works either way.
I have now enabled the init.d in my rom using ini.d toggler from market and now I can see smartassv2 and SIO on nofrills, how about making SIO as default? is there also a modified script?
 

mdfzhi

Senior Member
Jun 15, 2011
4,148
3,853
0
yes. search around xda and u will find the script. saw it long ago but didnt remember which thread.

btw i got frandom number generator module compiled too but got no one to test it. pm me if u interested to test it
 

rumat

Member
Jun 11, 2012
17
4
0
www.accountkiller.com
My phone hangs and reboots after installing smartass.

Here's what i did:
Flashed SIO in cwm, rebooted and all went fine. It appears in No frills and works like a charm.

With Smartass i did the same, after flashing i change VALUE in to my one. After rebooting phone starts normally, but after a few seconds it just hangs and reboots.
I then have to go to cwm and reflash Smartass default zip (with no VALUE) and the phone works fine.


Any ideas of what I'm doing wrong?

I'm on a LWW .587 with Locked Bootloader.

Thanks.