[q] Permanantly change cpu governer to smartass? - Optimus One, P500, V General

Hey guys just a quick question, i recently flashed the LOL rom with an updated kernel that has the smartass governor, what file / line do i change so that this is the default governor without the use of any app like setCPU?

note. that in the system_available_governors file smartass is listed, and thus can be set by setCPU without problems.... what im trying to do is avoid to have to run setCPU in the background to set smartass on bootup (default is interactive)
i have tried setting the system_governor to smart ass and setting it to read only but it ends up getting changed back to interactive somehow.
i have tried setting in the 05cpuclock file smartass instead of interactive to no avail... so it seems as if during the bootup process something after those scripts are referenced / executed another one is setting the cpu governor... question is where?!??!

Ginger LOL has script for overclocking so don't have to use any apk for overclocking... go to terminal and type su cpuclock and follow instructions on sceen

nd4spdbh said:
Hey guys just a quick question, i recently flashed the LOL rom with an updated kernel that has the smartass governor, what file / line do i change so that this is the default governor without the use of any app like setCPU?
Click to expand...
Click to collapse
By recompiling the kernel with CONFIG_CPU_FREQ_DEFAULT_GOV_SMARTASS=y
kubas87 said:
Ginger LOL has script for overclocking so don't have to use any apk for overclocking... go to terminal and type su cpuclock and follow instructions on sceen
Click to expand...
Click to collapse
LOL != GingerLOL

dr.notor said:
By recompiling the kernel with CONFIG_CPU_FREQ_GOV_SMARTASS=y
LOL != GingerLOL
Click to expand...
Click to collapse
ya... not using any of the GB roms... they all seem to have their problems... on the 2.2.2 froyo LOL rom.
i actually figured it out. the text editor i was using on my comp was messing with the file encoding so when i did edit the 05cpuclock init.d script it was never able to execute.... so editing the original script in eclipse proved to solved the problem.

Related

Overclocking Kernel of 2.6.32.21! [UPDATED 4/1/11]

Hiya everyone,
I've ported Dumfuq's overclocking patches from 2.6.29 to 2.6.32.21! This applies to those of us using the stock HTC OTA and allows the use of programs like SetCPU. This kernel was built from the source code from http://developer.htc.com and the kernel config is an identical copy of the one included in the latest Froyo OTA (my leak).
My current method of providing this is as an update.zip... just put this on your SDcard, boot into Clockwork, and flash it. If it kills your kittens, do not blame me.
Also, reminder: flashing this zip alone is not enough to overclock your device. Afterward, use a program (from the Market) such as SetCPU to overclock your device.
Download: http://www.multiupload.com/2XEWYRL62U
Change Log:
- Revision 2
Fix Wifi issues (as well as any other kernel module loading issues).
Add support for CPUfreq governers 'interactive' and 'smartass'.
Change the default governer from 'ondemand' to 'interactive' - this dramatically improves redraw performance and other user-interface responsiveness.
To change to the Smartass governer use something like SetCPU.
Include the MSM KGSL TLB performance tweak changes that are present in CM's kernel repository. You may or may not notice any video performance improvement, but it provides a possibility of improvement.
Fixed the kernel version string to properly read '2.6.32.21' not '2.6.32.17' - the first version wasn't .17, it was .21.
Please remember to disable the HTC Perflock in SetCPU by pressing the Menu key (while in SetCPU) and selecting 'Perflock Disabler'.
Happy? Donate.
Hey I'm running your NB 2.15 Mod ROM and just flashed this kernel. It broke the WiFi. I am now getting an Error when attempting to enable WiFi.
What is the max frequency of this kernel? And does it include smartass governer?
Sent from my T-Mobile myTouch 3G Slide using Tapatalk
pettigrew95 said:
Hey I'm running your NB 2.15 Mod ROM and just flashed this kernel. It broke the WiFi. I am now getting an Error when attempting to enable WiFi.
Click to expand...
Click to collapse
Ahh, one thing I didn't test, although I suspected it might break. I'll fix it tonight and post a new update.zip for ya'll.
agentg1001 said:
What is the max frequency of this kernel? And does it include smartass governer?
Click to expand...
Click to collapse
It's identical to Dumfuq's patches, so 864000Hz. And no, it doesn't include the smartass governer - I will investigate that possibility tonight, however I suspect I will be able to implement it. Additionally I will be disabling HTC Perflock in the kernel so it doesn't have to be done by SetCPU.
Toodles.
EDIT: I'll also be adding the new 'interactive' CPUfreq governer.
nbetcher said:
Ahh, one thing I didn't test, although I suspected it might break. I'll fix it tonight and post a new update.zip for ya'll.
It's identical to Dumfuq's patches, so 864000Hz. And no, it doesn't include the smartass governer - I will investigate that possibility tonight, however I suspect I will be able to implement it. Additionally I will be disabling HTC Perflock in the kernel so it doesn't have to be done by SetCPU.
Toodles.
EDIT: I'll also be adding the new 'interactive' CPUfreq governer.
Click to expand...
Click to collapse
I have made the changes, however I decided to NOT disable HTC Perflock through the kernel config, so please make sure to disable it (via SetCPU) first before trying to overclock or change your governer. New version uploaded, see OP.
Could you also include some higher frequencies? (Preferibly up to 960)? That would be great because my phone is stable up to 921. Also compcache enabled (like drowning child's kernel) would be awesome.
Sent from my T-Mobile myTouch 3G Slide using Tapatalk
I'm not sure why but my slide didn't like this kernel
http://pastebin.com/hVgG467j
Thank the devs for nandroid!
My slide not working with this kernel too (
Are you both running NB_Mod-2.15.531.1 Revision 2? Otherwise this won't work properly. Besides, according to that logcat your problems aren't related to the kernel... Android is unable to mount any of the MTD partitions (/system, /cache, /data, etc).
Please let me know more about what you're running.
Also, I'll be working on making a separate version of this that has OC enabled up to 960MHz, but 960MHz is very dangerous... 800MHz+ is even asking for trouble despite our processor's normal clockrate being 800MHz (T-Mobile downclocked it to 600MHz out-of-the-box).
I'll look into Compcache as well.
im IN.
good job, will try after work. gj
how long does it take to boot the first time?
been stuck at the white MT3GS boot screen for a few minutes now.
running CM7 RC4
EDIT: oops, did not know this is only for the leaked froyo update
pettigrew95 said:
Hey I'm running your NB 2.15 Mod ROM and just flashed this kernel. It broke the WiFi. I am now getting an Error when attempting to enable WiFi.
Click to expand...
Click to collapse
I just flash the this new Kernel and i'm also getting Error on the WiFi when trying to Enable it, also the SetCPU won't go higher then 600. The Rom i'm using is the 3rdSense 1.00
Thankfully i did a Rom Backup so i'm restoring my system
Sefy said:
I just flash the this new Kernel and i'm also getting Error on the WiFi when trying to Enable it, also the SetCPU won't go higher then 600. The Rom i'm using is the 3rdSense 1.00
Thankfully i did a Rom Backup so i'm restoring my system
Click to expand...
Click to collapse
This kernel is only to be flashed if youre running NB Mod 2.15 ROM. It wont work on 3rd sense
pettigrew95 said:
This kernel is only to be flashed if youre running NB Mod 2.15 ROM. It wont work on 3rd sense
Click to expand...
Click to collapse
Well, it showed it as the kernel in the "About" so it appeared to have flashed it (and it did kill the WiFi) so it did get flashed
Either way, i got back to the previous one (.17[aka .21]) and it's working fine again.
Sefy said:
Well, it showed it as the kernel in the "About" so it appeared to have flashed it (and it did kill the WiFi) so it did get flashed
Either way, i got back to the previous one (.17[aka .21]) and it's working fine again.
Click to expand...
Click to collapse
Hmm, .17 isn't AKA .21. They're two different kernels and contain different code. The kernel you're using in 3rdSense was from the HTC Legend release of 2.6.32.17 and had different Wifi drivers. When a kernel and its driver modules are built, the build process puts the kernel's version string into the modules, so if you try to load them on a different kernel it will fail. This is what happened to you... you have 3rdSense which uses 2.6.32.17 Wifi drivers and my 2.6.32.21 kernel cannot (well, I fib a little on that) load the .17 drivers. Get it? Got it? Good.
nbetcher said:
Hmm, .17 isn't AKA .21. They're two different kernels and contain different code. The kernel you're using in 3rdSense was from the HTC Legend release of 2.6.32.17 and had different Wifi drivers. When a kernel and its driver modules are built, the build process puts the kernel's version string into the modules, so if you try to load them on a different kernel it will fail. This is what happened to you... you have 3rdSense which uses 2.6.32.17 Wifi drivers and my 2.6.32.21 kernel cannot (well, I fib a little on that) load the .17 drivers. Get it? Got it? Good.
Click to expand...
Click to collapse
So... what you are saying is, a kernel from a different device all together, is working on a hardware which it doesn't really belong to. While a Kernel made specifically for this, will kill the WiFi of the device it's designed for?
From what i recall from Linux, and i could be wrong and this doesn't apply to Android, the Kernel and the UI are two separate components. The Kernel has all the drivers and the UI is the interface! but again, i could be wrong.
Sefy said:
So... what you are saying is, a kernel from a different device all together, is working on a hardware which it doesn't really belong to. While a Kernel made specifically for this, will kill the WiFi of the device it's designed for?
From what i recall from Linux, and i could be wrong and this doesn't apply to Android, the Kernel and the UI are two separate components. The Kernel has all the drivers and the UI is the interface! but again, i could be wrong.
Click to expand...
Click to collapse
What I'm saying is that the boot.img that I have in the update.zip from this post does NOT contain the modules for Wifi since the modules are stored on your /system MTD and the scope of this update.zip is for the kernel. Could I replace the modules from there with the ones shipped with the Froyo OTA? Sure, but where does it stop?
Anyways, the Legend is not a completely different device. The Legend is basically the UK version of the Slide, minus the keyboard. Same exact hardware all the way down to the Wifi and BT.
Let me explain things a little bit more:
There's sdio.ko and tiwlan_drv.ko in /system/lib/modules. NB_Mod has ones compiled from 2.6.32.21, 3rdSense has ones compiled from 2.6.32.17. This thread's kernel (boot.img, to dumb it down a bit ) is 2.6.32.21. So, when the system goes to load the modules from /system/lib/modules, it sees that you're running kernel 2.6.32.21, but the modules in that directory are for 2.6.32.17. It fails.
As far as Android being separate from the kernel... yes, of course. But touching "Wifi" (to enable Wifi) in Settings doesn't scurry out little Android gremlins to magically carry the firmware from your MTD to the Wifi chipset... all it does it say "Hey, kernel, would you mind loading the wifi module you have listed in init.rc? Thanks Linus! *kisses*" Then Android does some other stuff, but I won't bore you with the entire process or else I'll have to write a book (oops, too late).
EDIT: in hind-sight this all seems to not really answer your question and only further supports the need for a better answer to you, but hopefully you'll find some clarity.
nbetcher said:
What I'm saying is that the boot.img that I have in the update.zip from this post does NOT contain the modules for Wifi since the modules are stored on your /system MTD and the scope of this update.zip is for the kernel. Could I replace the modules from there with the ones shipped with the Froyo OTA? Sure, but where does it stop?
Anyways, the Legend is not a completely different device. The Legend is basically the UK version of the Slide, minus the keyboard. Same exact hardware all the way down to the Wifi and BT.
Let me explain things a little bit more:
There's sdio.ko and tiwlan_drv.ko in /system/lib/modules. NB_Mod has ones compiled from 2.6.32.21, 3rdSense has ones compiled from 2.6.32.17. This thread's kernel (boot.img, to dumb it down a bit ) is 2.6.32.21. So, when the system goes to load the modules from /system/lib/modules, it sees that you're running kernel 2.6.32.21, but the modules in that directory are for 2.6.32.17. It fails.
As far as Android being separate from the kernel... yes, of course. But touching "Wifi" (to enable Wifi) in Settings doesn't scurry out little Android gremlins to magically carry the firmware from your MTD to the Wifi chipset... all it does it say "Hey, kernel, would you mind loading the wifi module you have listed in init.rc? Thanks Linus! *kisses*" Then Android does some other stuff, but I won't bore you with the entire process or else I'll have to write a book (oops, too late).
Click to expand...
Click to collapse
Everyday you learn something new! thanks for being the teacher!
nbetcher said:
Are you both running NB_Mod-2.15.531.1 Revision 2? Otherwise this won't work properly.
Click to expand...
Click to collapse
Well now I feel a bit sheepish, I guess that's what I get for not reading closely enough, I'm running CM7 RC4, sorry about that.
Does anyone happen to have a copy of this kernel laying around somewhere? Megaupload is long gone unfortunately

[Q] How to build an costom overclocking kernel?

I think I need more levels of CPU frequency,and if there's no one working on overclocking kernel,I want a try.
Have you tried SetCPU and apps like this?
You don't need a new kernel to do that!
Apps like SetCPU don't have the possibility to overclock, do they?
But I've found out, that there are files including the max frequency of the CPU.
These files are at /sys/devices/system/cpu/cpu0/cpufreq.
So, could we change the cpuinfo_max_freq and the scaling_max_freq files to allow overclocking?
Flix123 said:
So, could we change the cpuinfo_max_freq and the scaling_max_freq files to allow overclocking?
Click to expand...
Click to collapse
They did this
search for artadat (or so) OC Kernel, it overclocks the kernel until 1.28GHZ
Lennb said:
They did this
search for artadat (or so) OC Kernel, it overclocks the kernel until 1.28GHZ
Click to expand...
Click to collapse
I know that, but can we change the max frequency only with edit the files? I don't want to install a new kernel.
Flix123 said:
I know that, but can we change the max frequency only with edit the files? I don't want to install a new kernel.
Click to expand...
Click to collapse
I dont know
but i would pm artadat at your position
Moved to proper forum
Flix123 said:
Apps like SetCPU don't have the possibility to overclock, do they?
But I've found out, that there are files including the max frequency of the CPU.
These files are at /sys/devices/system/cpu/cpu0/cpufreq.
So, could we change the cpuinfo_max_freq and the scaling_max_freq files to allow overclocking?
Click to expand...
Click to collapse
I've tried to edit them but they're read-only.I guess these files are located in zImage,so in order to change the freqency,we must edit the zImage file.

HTC Explorer root

Hello all,
I am looking forward to root my mobile. But I am not sure which tutorial to follow as their are many.
Also I have few questions :
1. Will any feature wont work if I root my mobile?
2. Are their any harm in overclocking the mobile?
3. Do I need to follow any other tutorial to over clock it or by rooting it will be overclocked?
4. Will the layout be changed or can be chnaged than the default after rooting?
Thank you for reading
Praveer
1. Everything should work if u dont delete its parts
2. I dont see any
3. U need amother app to overclock - eg. No-frills.
4. No. U need to change it on ur own.
Sent using r800i with DoomKernel v11 (1.21ghz)
Hello,
Thank you for your reply. So can I change the whole layout? What I mean is that if we use go launcher ex then only home screen and menu changes buy if you access sub menu like settings then default layout will be shown. So can it also be changed by rooting?
Also please link to a tut for rooting which is perfectly working and all features working coz I read somewhere that for Explorer WiFi was not working. Also please link to overclocking app tut that is really good.
Thank you
for rooting try - Super One Click
for oc - SetCpu
Sent from my Nexus One using Tapatalk
Hi bro,
Will it work for HTC explorer? Also will all features will work?
Thanks
Praveer said:
Hello,
Thank you for your reply. So can I change the whole layout? What I mean is that if we use go launcher ex then only home screen and menu changes buy if you access sub menu like settings then default layout will be shown. So can it also be changed by rooting?
Also please link to a tut for rooting which is perfectly working and all features working coz I read somewhere that for Explorer WiFi was not working. Also please link to overclocking app tut that is really good.
Thank you
Click to expand...
Click to collapse
Yes. U can change everything but u need to find (or make) special, themed .apk for it (eg. Im using modified settings.apk and it looks like ics - on gb - or xperia s home.apk).
Praveer said:
Hi bro,
Will it work for HTC explorer? Also will all features will work?
Thanks
Click to expand...
Click to collapse
1. I dont know if superoneclick will work (i used other method for xperia's phone), but it should work
2. setcpu is paid app. No frills cpu control is free.
Sent using r800i with DoomKernel v11 (1.21ghz)
Thanks.....How is jaggyjags ROM for overclocking?
Thanks
Custom rom has nothing to overclocking. U need custom kernel. As I see there is custom kernel in jaggyjags ROM <- and this is what let overlclocking. U can use any rom (even stock) but u need to flash custom kernel.
What's the difference between jaggyjags Rom and no frills which you mentioned for overclocking.
Also how do we install custom ROM after rooting our mobile. Please let me know in detail or link me to a tutorial as me doing it for the first time.
Thank you
Rom has nothing to oc, but kernel (which is with this rom i think) can let u overclock, but u cant change it without 3rd party app - eg. No frills (free) or setcpu (paid).
However in this rom u got overclock to 800mhz without using anything.
Sent using r800i with DoomKernel v11 (1.21ghz)
Thanks....So if I got you correct then for I to install jaggyjags Rom I need no frills?
Thanks a lot for answering my questions patiently.
Praveer
No. No frills is only the example of program which let u overclock. U dont need to install it if u dont want to change oc more than it is.
If u dont need more than 800mhz (imcluded in rom - i dont know if it is possible to increase it on ur phone) u dont need to install any apps like no frills
Sent using r800i with DoomKernel v11 (1.21ghz)
Oh got it. Thanks a lot.
Well are their any benefits in overclocking?
Thanks
Praveer said:
Oh got it. Thanks a lot.
Well are their any benefits in overclocking?
Thanks
Click to expand...
Click to collapse
advantage - no lag, smoothness,apps and games open faster.
disadvantage - battery drains a bit quicker
if ur kernel supports ONDEMAND governor. select it for a balanced performance vs battery
Sent from my Nexus One using Tapatalk
Thanks mate but I don't know whether ondemand supported by my mob or not
Me new to all this.
Praveer said:
Thanks mate but I don't know whether ondemand supported by my mob or not
Me new to all this.
Click to expand...
Click to collapse
no probes mate. all start as noobs only
and those governors and over clocking are related to kernels..so u need to go thru that thread.
Sent from my Nexus One using Tapatalk
Thanks a lot mate
Praveer said:
What's the difference between jaggyjags Rom and no frills which you mentioned for overclocking.
Also how do we install custom ROM after rooting our mobile. Please let me know in detail or link me to a tutorial as me doing it for the first time.
Thank you
Click to expand...
Click to collapse
Jaggysrom provides what you need to over-clock with something like No-Frills, No-Frills lets you actually over-clock it.
Praveer said:
Hello all,
I am looking forward to root my mobile. But I am not sure which tutorial to follow as their are many.
Also I have few questions :
1. Will any feature wont work if I root my mobile?
2. Are their any harm in overclocking the mobile?
3. Do I need to follow any other tutorial to over clock it or by rooting it will be overclocked?
4. Will the layout be changed or can be chnaged than the default after rooting?
Thank you for reading
Praveer
Click to expand...
Click to collapse
Be careful when you root, rooting is officially irreversible and can cause problems such as the sd card not being recognized.
Rooting has done so many small problems to my phone, if I had another android phone, I would take advantage of the warranty and not root.
I have followed tutorials for my phone, mostly involving a computer, I can declare that my phone is not an independent device anymore. Be aware of these risks. Without the warranty of android, a phone's lifetime can shorten.
Guys I have sgy but going to get the explorer.
To explain the oc process.
No frills is an app that when you open it, it gives you the choices to set the minimum and maximum speeds in all modes of your device. On sgy the settings would be 832 MHz max and 33? On the low end. With a 400 + setting and 600+ setting. Then a choice of governors which is what limits the performance. Like conservative or performance. You choose. Hope that helps. Btw could it be called an upgrade from sgy to htc explorer? But the real question is, is there a way to install cwm recovery without pc and rooting without pc. Please share links and zips for root unroot and cwm. Thank you.
Proverbs 20: 7

[Q] Faux Kernel modules question

First of all, I have searched the forums and I couldn't find and answer to my question. I guess my black belt in Google fu doesn't translate to XDA.
The background: I am S-Off running Speed Rom 7.8 and flashed Faux Kernel v22 with 4EXT Recovery. As far as I can tell it was successful. In the About Phone it is showing the correct info for Faux Kernel.
Now finally the question. I can not find anything different about my Amaze other than the line stating that it is Faux Kernel in the About Phone. Are there supposed to be governor or any other settings? Or is that all behind the scenes? I cannot find any "Modules" folder anywhere, I have searched up to root with ES File Explorer. I just want to make sure it flashed correctly.
Thanks in advance for any help. Again, if this has been addressed in another thread I apologize.
nonmon said:
First of all, I have searched the forums and I couldn't find and answer to my question. I guess my black belt in Google fu doesn't translate to XDA.
The background: I am S-Off running Speed Rom 7.8 and flashed Faux Kernel v22 with 4EXT Recovery. As far as I can tell it was successful. In the About Phone it is showing the correct info for Faux Kernel.
Now finally the question. I can not find anything different about my Amaze other than the line stating that it is Faux Kernel in the About Phone. Are there supposed to be governor or any other settings? Or is that all behind the scenes? I cannot find any "Modules" folder anywhere, I have searched up to root with ES File Explorer. I just want to make sure it flashed correctly.
Thanks in advance for any help. Again, if this has been addressed in another thread I apologize.
Click to expand...
Click to collapse
The modules are located in... /sytem/lib/modules
As for selecting governors you need a CPU app such as setCPU or SystemTuner
sent from my
NRGized amaze
powered by Faux
aj_2423 said:
The modules are located in... /sytem/lib/modules
As for selecting governors you need a CPU app such as setCPU or SystemTuner
sent from my
NRGized amaze
powered by Faux
Click to expand...
Click to collapse
Thanks a bunch. I thought I looked there but I guess not. I would hit your thanks button, but I don't have 10 posts yet.
You can CPU editor to set clock speeds and change governors. It's not an app but you need adb or terminal emulator to set it.
Double0EK said:
You can CPU editor to set clock speeds and change governors. It's not an app but you need adb or terminal emulator to set it.
Click to expand...
Click to collapse
I saw that in the OP but I'm good with what Faux has it set at for now. I did however install system tuner and under volted a bit. Thanks though. I was a systems administrator for 5 years, but I'm new to Android and custom rooms/kernels. All your help is appreciated.

[7840] Change governor with kernel stock

Hi,
Can I change the governor of kernel stock with kernel adiutor without bootloop ?
Thanks.
thedreamix said:
Hi,
Can I change the governor of kernel stock with kernel adiutor without bootloop ?
Thanks.
Click to expand...
Click to collapse
As long as you are rooted you can.
Ok thanks.
I suggest checking out Kernel Auditor. It's a ROOT-based app in the Google Play store. You can see all available options, tunables and the like. These settings can be configured to take place at reboot.
@thedreamix @vampirefo - Here are a few screenshots from Kernel Auditor. I have been working on a custom ROM for the Lenovo Yoga 2 whose Intel innards match those on the 7840.
I would test configs, measure results and ultimately went with a CLI app that ran as a task .
I have been using these settings in conjunction with System Monitor to track CPU cycles and the like. Give some settings changes a whirl, and see if you notice anything.
I'm going to create a separate thread about some kernel tweaks that improve system performance. We can work together to pick the best configs

Categories

Resources