[Q-Solved] I loose modules (OC/UV etc..) on each reboot - XPERIA X8 Q&A, Help & Troubleshooting

Hello guys..
I m loosing the modules on each reboot on an Xperia X10-Mini Pro.
I know this isnt x10mp forum, but the modules am using are modified x8 modules..
Its the OC, OV and smartass Governor in Dev Section.
They DO work properly when i run these commands:
Undervolt:
insmod /system/lib/modules/x8uv.ko
Overclock:
insmod /system/lib/modules/x8oc.ko
Governor:
insmod /system/lib/modules/ax8_smartass.ko
echo "smartass" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
I can set the governor, and the max and min frequency in setCPU...
But on each reboot i lose them..
Should i add these 4 lines into hw_config.sh ??
Please help!

Paschalis said:
Hello guys..
I m loosing the modules on each reboot on an Xperia X10-Mini Pro.
I know this isnt x10mp forum, but the modules am using are modified x8 modules..
Its the OC, OV and smartass Governor in Dev Section.
They DO work properly when i run these commands:
Undervolt:
insmod /system/lib/modules/x8uv.ko
Overclock:
insmod /system/lib/modules/x8oc.ko
Governor:
insmod /system/lib/modules/ax8_smartass.ko
echo "smartass" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
I can set the governor, and the max and min frequency in setCPU...
But on each reboot i lose them..
Should i add these 4 lines into hw_config.sh ??
Please help!
Click to expand...
Click to collapse
Do you read the instrutions? I think that the answer is yes, you have to add that insmod's to hw_config.sh
but i will give a fast look and i give you the correct answer in just some seconds.

RockitOut11 said:
Do you read the instrutions? I think that the answer is yes, you have to add that insmod's to hw_config.sh
but i will give a fast look and i give you the correct answer in just some seconds.
Click to expand...
Click to collapse
Yes.. i read those threads the instructions..
And search post also..
I didnt saw anything..
only just typing that.. and i guessed in a "su" adb shell..
Anyway, then, i found out the mddi module..
And in it i realised that in the command prompt we type these commands, just to test them.. Because if they dont work, we can get a boot loop..
If they do work, then we add them at top to hw_config.sh
Thanks for replying!

doixanh said:
- Edit /system/etc/hw_config.sh, add one line at the beginning
Code:
insmod /system/lib/modules/x8oc.ko # x8 overclock
doixanh said:
- Edit /system/etc/hw_config.sh, add one line at the beginning
Code:
insmod /system/lib/modules/x8uv.ko # x8 undervolt
Click to expand...
Click to collapse
so, yes, simply insert what you have to your hw_config.sh
( i don't know about the smartass governor, because in the instructions he doesn't say to put in the hw_config but maybe you have to put )
Click to expand...
Click to collapse
Click to expand...
Click to collapse

Paschalis said:
Yes.. i read those threads the instructions..
And search post also..
I didnt saw anything..
only just typing that.. and i guessed in a "su" adb shell..
Anyway, then, i found out the mddi module..
And in it i realised that in the command prompt we type these commands, just to test them.. Because if they dont work, we can get a boot loop..
If they do work, then we add them at top to hw_config.sh
Thanks for replying!
Click to expand...
Click to collapse
oh yes, i didn't know about that because i didn't ready that post xD but yes, that is really true
And you're welcome
Any more question just PM or say it in the forum

Related

[KernelModule] Overclock

**** Do Not Repost! Link back to this thread! ****
*** Update: This works on Thrill/Optimus 3D. There are seperate kernel modules for Froyo/GingerBread/CyanogenMod kernels***
Here ya go... I prefer this method rather than hard coding changes in the kernel. Assuming you have both kernel modules extracted to /sdcard
Switch to root
Code:
$ su
Copy files from sdcard to /system/lib/modules directory - You only do this once
Code:
# cp /sdcard/symsearch.ko /system/lib/modules/symsearch.ko
# cp /sdcard/opperator.ko /system/lib/modules/opperator.ko
Load modules, always do symsearch.ko first - You do this every time you reboot
Code:
# insmod /system/lib/modules/symsearch.ko
# insmod /system/lib/modules/opperator.ko
Set Frequency - You do this when you want to change frequency - in hz, that's 6 additions Zero's to make Mhz
Code:
# echo 1188000000 > /proc/opperator
This uses SYMSEARCH by Skrilax_CZ
https://github.com/SkrilaxCZ
Inspired by Milestone Overclock by Tiago Sousa, but totally rewritten for omap kernel 2.6.35-7 and above.
http://code.google.com/p/milestone-overclock/
This is a stripped down version. I'm working on a fully featured version, that will allow you to play with voltage as well. There are some hurdles to overcome before that is ready for prime time... In the mean time, lets see what stock voltage can do... 1188 is my sweet spot on stock voltage, what is yours? I get up to 1235 without reboots, or real noticeable lags but the linkpacks are all over the place, where it stays in the 80's at 1188. And remember, the number is in hz a.k.a. cycles per second, so to get Mhz, you must add 'Six Zeroes' to the end of your desired Mhz.
* Note2Devs: Feel free to put this in your ROM, but please do credit me for the Overclock in your release, and link back to this thread. You can also post a link to your ROM here as a way to make myself and other aware of it. Thanks...
* Echts shows us how he integrate's the module into his own ROM. TY, Echts...
http://forum.xda-developers.com/showpost.php?p=19542521&postcount=52
* Thanks to greenbats for helping figure out the O3D gingerbread kernel issue!
** And don't ask to put it in an app. I won't be happy about that. I'm serious! **
Here go some of my Recording Engineer work...
http://www.youtube.com/watch?v=Je8K_hCej3s
http://www.youtube.com/watch?v=yfBfcdSL1pc
http://www.youtube.com/watch?v=iIU8DO4rdKI
http://www.youtube.com/watch?v=msavF7LIdvY
Essentially, hardware wise, the Thrill has exactly the same specs as the Optimus 3D ? I mean, CPU wise.
It's the same hardware
omgomg said:
Essentially, hardware wise, the Thrill has exactly the same specs as the Optimus 3D ? I mean, CPU wise.
Click to expand...
Click to collapse
Yes, give this a go on the O3D, the module is actually compiled against the cyanogenmod cosmo kernel, which is really for the O3D. Should work.
for test \
How do I install this on the optimus 3D?
greenbat said:
How do I install this on the optimus 3D?
Click to expand...
Click to collapse
No real installing... It's just the modules... You can throw them in /system/lib/modules, and then use an init script to load them up, then set the frequency, but don't do that until you know what works *STABLE* for you.
If you have a favorite ROM, let the dev know about this, and maybe they'll integrate it.
I'm not sure if custom kernels like acurateam's might be too different to work properly at this point. But it won't hurt to try. Just don't start loading it at boot right away.
tekahuna said:
No real installing... It's just the modules... You can throw them in /system/lib/modules, and then use an init script to load them up, then set the frequency, but don't do that until you know what works *STABLE* for you.
If you have a favorite ROM, let the dev know about this, and maybe they'll integrate it.
I'm not sure if custom kernels like acurateam's might be too different to work properly at this point. But it won't hurt to try. Just don't start loading it at boot right away.
Click to expand...
Click to collapse
Thanx for your advice and Great find!!!
I have send your xda link to acura. Hopefully he can integrate it.
greenbat said:
Thanx for your advice and Great find!!!
I have send your xda link to acura. Hopefully he can integrate it.
Click to expand...
Click to collapse
I didn't find this. I made it! First OC'd OMAP4 period! Unless you count RAZR's... hah
Great invention
tekahuna said:
I didn't find this. I made it! First OC'd OMAP4 period! Unless you count RAZR's... hah
Click to expand...
Click to collapse
Great invention and congratulations!
Great job.... we use to use this type of script in motorola defy and moto bravo. It was easier with those because of the 2nd init recovery booting.
Sent from my LG-P925 using XDA App
tekahuna said:
**** Do Not Repost! Link back to this thread! ****
Here ya go... I prefer this method rather than hard coding changes in the kernel. Assuming you have both kernel modules extracted to /sdcard
Switch to root
Code:
$ su
Copy files from sdcard to /system/lib/modules directory - You only do this once
Code:
# cp /sdcard/symsearch.ko /system/lib/modules/symsearch.ko
# cp /sdcard/opperator.ko /system/lib/modules/opperator.ko
Load modules, always do symsearch.ko first - You do this every time you reboot
Code:
# insmod /system/lib/modules/symsearch.ko
# insmod /system/lib/modules/opperator.ko
Set Frequency - You do this when you want to change frequency - in hz, that's 6 additions Zero's to make Mhz
Code:
# echo 1188000000 > /proc/opperator
Is it possible for you to change this into a scriptmanager file?
Click to expand...
Click to collapse
Type this in scriptmanager shell.
greenbat said:
tekahuna said:
**** Do Not Repost! Link back to this thread! ****
Here ya go... I prefer this method rather than hard coding changes in the kernel. Assuming you have both kernel modules extracted to /sdcard
Switch to root
Code:
$ su
Copy files from sdcard to /system/lib/modules directory - You only do this once
Code:
# cp /sdcard/symsearch.ko /system/lib/modules/symsearch.ko
# cp /sdcard/opperator.ko /system/lib/modules/opperator.ko
Load modules, always do symsearch.ko first - You do this every time you reboot
Code:
# insmod /system/lib/modules/symsearch.ko
# insmod /system/lib/modules/opperator.ko
Set Frequency - You do this when you want to change frequency - in hz, that's 6 additions Zero's to make Mhz
Code:
# echo 1188000000 > /proc/opperator
Is it possible for you to change this into a scriptmanager file?
Click to expand...
Click to collapse
What I'd really like is for the ROM making dev's to come to a consensus as to how to integrate this... Mainly, the best place to throw the script that does this at boot on these phones. I know how we did it on droid X, but I haven't dug deep enough into this phone just yet to be sure... I'll update the OP as methods improve and I get more feedback.
Click to expand...
Click to collapse
Or use callmearia kernel and make script for system/etc/init folder... havent tried his kernel but it should support the script at boot up. Acura roms should work that way too.
The way most roms use overclock is the init script that starts at boot...
Sent from my LG-P925 using XDA App
rdannar said:
Great job.... we use to use this type of script in motorola defy and moto bravo. It was easier with those because of the 2nd init recovery booting.
Sent from my LG-P925 using XDA App
Click to expand...
Click to collapse
Those would have been based on Milestone Overclock... Which is where I gained most of my knowledge by contributing to getting the droidx/2 side of things working. MO's method of manipulating frequency and voltage no longer works on OMAP4, or rather kernel 2.6.35+... I had to come up with a new way of doing things, which didn't fit well under the existing framework of MO. So, I started from scratch... This is just the tip of the iceberg... Basic, basic, basic...
i get insmod: init_module /system/lib/modules/symsearch.ko failed (exec format error).
What am i doing wrong?
I also get the same error: insmod: init_module '/system/lib/modules/symsearch.ko' failed (exec format error)
Is it because I have gingerbread?
Must I use froyo?
borelis said:
i get insmod: init_module /system/lib/modules/symsearch.ko failed (exec format error).
What am i doing wrong?
Click to expand...
Click to collapse
Both O3D's, huh? What kernel are you running? give me output of
# dmesg
and
# busybox uname -a
And if it's acurateam, a link to their kernel source
tekahuna said:
What kernel are you running? give me output of
# dmesg
and
# busybox uname -a
And if it's acurateam, a link to their kernel source
Click to expand...
Click to collapse
"LINK Boot_2.0 More RAM, No Lags, More Speed.." from acura. Think he uses stock kernel. Im on GB by the way.
Outputs is a bit over my head. Tell me how and i´ll provide it for you.

set swappiness in GDX v25

hey guys,
i know it may sound like a noob question but how can i set swappiness?
i flashed 'x8EnableSwapPartition', tryed to change swappiness in this script, but still 20..
then i tryed to set swappiness via hw_config.sh: still 20..
i feel like i'm going crazy
You're on custom kernel? If you are, there's a guide here. Try searching for that if you haven't.
Please give credit where credit is due..
If you can't even search how can I help you??
sorry, but there is no working guide...
its not the first time i used swap, but it always worked... well, actually it works but just about 14-18 MB due to 20 swappiness
and yes, of course i'm running a custom kernel
Install SetXperia from the PlayStore.
With it you can control cpu, swap and loads of really great extras.. You can even set a swap file @ boot and yes, swappiness..
thanks, it works
but there has to be another way to set swappiness, like in other roms too, without an app
laufersteppenwolf said:
thanks, it works
but there has to be another way to set swappiness, like in other roms too, without an app
Click to expand...
Click to collapse
yeah... it worked...
after reboot: 'can't get root access'... but superuser allows root...
anyone an idea to set it via script at boot?
Push SetXperia into system apps and set permissions and owner same as others..
laufersteppenwolf said:
thanks, it works
but there has to be another way to set swappiness, like in other roms too, without an app
Click to expand...
Click to collapse
sysctl -w vm.swappiness=x
where x is the value in which 0<x<100
and where do i have to add this line? hw_config ?
laufersteppenwolf said:
and where do i have to add this line? hw_config ?
Click to expand...
Click to collapse
create a new init.d script & name it to 15swappiness or anyname you want as long as there is number in front
Example:
#!/system/bin/sh
# Set swappiness to 40
sysctl -w vm.swappiness=40

[Q] Change Governor Before Flashing

Is there a possible method to change default governor like "ondemand" to "conservative" before flashing the ROM ??? What I mean is can any user change any ROM value in any file to achieve the same so that ROMS which does not have CPU Control ( Like AOSP ) can boot up with conservative governor ???
biswatmak said:
Is there a possible method to change default governor like "ondemand" to "conservative" before flashing the ROM ??? What I mean is can any user change any ROM value in any file to achieve the same so that ROMS which does not have CPU Control ( Like AOSP ) can boot up with conservative governor ???
Click to expand...
Click to collapse
AFAIR,in kernel config u need to change this while compiling:
# CONFIG_CPU_FREQ_DEFAULT_
GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_
GOV_USERSPACE=y
Or use an init.d script,copy paste this and set permissions
echo "governor-name" > /sys/devices/system/cpu/cpu0/
cpufreq /scaling_governor
side_effect said:
AFAIK, in kernel config u need to change this while compiling:
# CONFIG_CPU_FREQ_DEFAULT_
GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_
GOV_USERSPACE=y
Or use an init.d script,copy paste this and set permissions
echo "governor-name" > /sys/devices/system/cpu/cpu0/
cpufreq /scaling_governor
Click to expand...
Click to collapse
FTFY
Sent from my GT-S5830 using xda premium
side_effect said:
AFAIR,in kernel config u need to change this while compiling:
# CONFIG_CPU_FREQ_DEFAULT_
GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_
GOV_USERSPACE=y
Or use an init.d script,copy paste this and set permissions
echo "governor-name" > /sys/devices/system/cpu/cpu0/
cpufreq /scaling_governor
Click to expand...
Click to collapse
Look I was looking a more user point of view. Suppose I don't wan't to compile, then can I change the ROM's governor traits ????
biswatmak said:
Look I was looking a more user point of view. Suppose I don't wan't to compile, then can I change the ROM's governor traits ????
Click to expand...
Click to collapse
Read carefully.I already gave a method.
Or use an init.d script,copy paste this
and set permissions
echo "governor-name" > /sys/devices/
system/cpu/cpu0/
cpufreq /scaling_governor
Click to expand...
Click to collapse
edit:-.- quote fail

The Gaming of our LG Optimus 4X HD

As we all know the gaming at Our Phone isnt really good some report it's Slow beacause theres only 1 core online. But there is an solution for this!
Thread with the Stuff for the terminal Is also here: ( http://forum.xda-developers.com/showthread.php?t=2253921 ) But I was really lazy of doping this commands so, i were Going on the internet and found something to download! I'll put the file into the Attachments! How to install this.....
Requirements;
Root.
A Root file explorer to get into your system files...
A brain to reed this careful.
What to Do;
Extract the Zip Thats in the attachmnts.
Get it onto your phone. (internal External doesnt matter I suggest Internal)
Go to your file explorer And past the file in: System\Etc\Init.d\
And set Permissions!
Reboot.
Enjoy Gaming!
I didn't try it . But it won't work without adding the line :-
Code:
#!/system/bin/sh
In the top of that script . Which tells the system to sh this test .
And you forot to mention fixin permission.
Also this needs init.d kernel support or busybox run-parts in order to run this script every reboot .
Correct me if I'm wrong
Thanks for sharing .
Sent from my LG-P880
$Parker said:
I didn't try it . But it won't work without adding the line :-
Code:
#!/system/bin/sh
In the top of that script . Which tells the system to sh this test .
And you forot to mention fixin permission.
Also this needs init.d kernel support or busybox run-parts in order to run this script every reboot .
Correct me if I'm wrong
Thanks for sharing .
Sent from my LG-P880
Click to expand...
Click to collapse
SManager will run the script when klick "is script"...
Fladder72 said:
SManager will run the script when klick "is script"...
Click to expand...
Click to collapse
When you use smanager it's an app that is designed to run scripts .
But if it was in the init.d folder you must add that line to tell the kernel that this test is a script . And the kernel will use the sh binary to run it .
Sent from my LG-P880
@deownagee
Thank you for sharing my Script! I don't know why you make another Thread for that!
And if you quote instructions, please quote the whole Text! You forgot the important Part! You have to set Permissions!
@$Parker
This Script works also without this first line! In the init.d Folder it is not needed!
Holzi001 said:
@deownagee
Thank you for sharing my Script! I don't know why you make another Thread for that!
And if you quote instructions, please quote the whole Text! You forgot the important Part! You have to set Permissions!
@$Parker
This Script works also without this first line! In the init.d Folder it is not needed!
Click to expand...
Click to collapse
Thank you for letting me know even. And I've made this one beacause your Script wasn't clear for me so i couldn't understand you know?
just for making sure, you guys do know what this script does?
it makes the GPU to run always (!!!) on max speed. this will reduce the battery life extremely.
this script should not be ran at every boot. you better only run it when you want to play games (and maybe reboot afterwards, or write a "undo" script)
@laufersteppenwolf
I think the Battery Drain is not the main Problem. It isn't higher than without that Tweak.
But i have one Question!
Is it possible for you to implement this Tweak in your kernel?
So when you selected the Gaming Governor, that this tweak is also active. And if you turn off the Gaming Governor again, the tweak is terminated.
I don't know if it's possible, so i ask you.
can i use it on rooted v20B locked bootlader? there is no init.d folder in system\etc\, should we create that folder manually?
what is the permission? thanks
Holzi001 said:
@laufersteppenwolf
I think the Battery Drain is not the main Problem. It isn't higher than without that Tweak.
But i have one Question!
Is it possible for you to implement this Tweak in your kernel?
So when you selected the Gaming Governor, that this tweak is also active. And if you turn off the Gaming Governor again, the tweak is terminated.
I don't know if it's possible, so i ask you.
Click to expand...
Click to collapse
"better battery" could only be caused by the first command (unlink). the others only increase the batter usage.
this tweak is (partly (the unlink)) implemented in my rom. but i'm working on unlinking in the kernel of course.
about the idea about gaming: yeah i do have something in mind, but it's gonna be a bit different just wait and see right now i'm working on OC'ing the GPU, and then we can do such changes.
Guys is it the same as http://www.android-experience.de/board/index.php?page=Thread&threadID=47 ? I dont speak german and google translate is weird. What about this, anybody tried ?
Post #5 oki its the same.
Stanley- said:
Guys is it the same as http://www.android-experience.de/board/index.php?page=Thread&threadID=47 ? I dont speak german and google translate is weird. What about this, anybody tried ?
Post #5 oki its the same.
Click to expand...
Click to collapse
I've translated and it's same lol (I'm Dutch and it's like German.)
But anyway i cant set premission via root explorer or antything else and cant copy to /system/ folder... I have rooted phone and checked via root checker. Love this phone problems with everything, maybe reflash will help but i dont have time for that.
Isn`t this the same as using tegra overclock under GPU Clock section? It`s paid but it`t really worth it!
gabrielgon said:
Isn`t this the same as using tegra overclock under GPU Clock section? It`s paid but it`t really worth it!
Click to expand...
Click to collapse
It is the same!
gabrielgon said:
Isn`t this the same as using tegra overclock under GPU Clock section? It`s paid but it`t really worth it!
Click to expand...
Click to collapse
it's actually taken from there
Ok Guys! The Werewolf alpha2 Kernel from laufersteppenwolf is much better than this Tweak! For all who use CM 10.1, flash this Kernel!
Don't forget to delete this Script if you flash the Kernel!
[email protected] this sh1t get hot before you try any game...
One true: LG + nVidia sucks. That's all.
Winudert said:
One true: LG + nVidia sucks. That's all.
Click to expand...
Click to collapse
Well that wasnt OT was it?
Atleast my nVidia graphics card + LG monitor = GREAT
And i love this phone
Sent from my LG-P880 using xda app-developers app

[Q] Zencefil 17v

I have a problem with Zencefil V17 on stock kernel. I can't overclock my CPU i tried with no frill's CPU and Antutu CPU master but maximum is only the stock 600 Mhz.
Pls help me.
DeathX8 said:
I have a problem with Zencefil V17 on stock kernel. I can't overclock my CPU i tried with no frill's CPU and Antutu CPU master but maximum is only the stock 600 Mhz.
Pls help me.
Click to expand...
Click to collapse
Does it have the overclock module and does it load properly? As far as I know if you have stock kernel the only way to overclock is via module.
Check system/lib/modules if you have x8oc.ko. I suppose that's the file you're going to use to overclock the phone. If you don't then download it and put it there.
If you have it, open Terminal Emulator and write:
su
dmesg | grep x8oc
You should receive the output that it loaded successfully. If you get no output, the module isn't running.
If you have it and it isn't running, then open Terminal Emulator and write:
su
insmod system/lib/modules/x8oc.ko
This should run the module and allow you to switch frequencies. Start testing the frequencies with whatever CPU app you use.
When you're satisfied with the performance, add the insmod command to hw_config in system/etc and echo the clock value that suits you. You can find more information about this in the x8oc thread. Don't worry about reboots, make a backup before trying, and make sure you don't edit the hw_config file until you're sure the clock is stable.
Thank you it helped. I can now overclock
Hi where pattern settings in the framework.i want change pattern
Sent from my E15i using Tapatalk 2
I think the question above is to be asked in the ROM's specific thread. There are several guys in that thread that are more than willing to help you.

Categories

Resources