yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] DakuGaranto:
Hey guys, just to confirm that I'm coming over faux kernel to this, I just need to wipe cache and dalik cache and I'm ready to flash this kernel? Does this apply to all when switching to new kernel? No need to flash anything first like "kernel reset" or something like that? Thanks in advance.
[HTC Sensation] ganeshp:
coming from faux ? then no need to do any thing extra ..just go to recovery and flash this kernel thats all
[HTC Sensation] DakuGaranto:
Alright thanks. =)
[HTC Sensation] piimp:
Also if u used yank's aroma install then delete the 99z_kernel folder in system/etc/intd as it will mess up with this kernel settings

Sent by my feau gee
[HTC Sensation] sIpInWiT mYdRoId:
This is not meant to be rude at all cause i love this kernel and use it even though i haven't changed my Sig again. I and many others are very much wanting to use this kernel at other frequencies alot at 1.72 and some under 1.56. Not in a lazy way, but i don't like using apps to overclock the kernel and i noticed this with a lot others also. I've entered the right commands via terminal emulator and everything is correct but these commands, as obviously known by you seeing you are obviously a genius @sebastionFM, but these commands have to be entered after every reboot. Is there any possible way anyone can point me how to enter a command to make my phone oc'd at 1.72 permanent via terminal emulator, or maybe sebastionFM could somehow implement a way in the kernel so we can set this when flashing? Any help with this issue would be great as i am in no way a kernel expert and am able to easily do this with other kernels and would be very grateful if this most best kernel could have some type of option to choose the frequencies at flash..:cowboy: Sorry for the big post just been wondering about this for a while.
[HTC Sensation] axetilen:
nope. with terminal emulator, you have to enter them at every boot

To make a permanent change, you have to make an init.d script file, so system will load the settings of this file at boot

I suggest using ES File Explorer, Options -> Check: Up to Root, Mount system R/W

Press Back to go to Root

Go to this: system/etc/init.d

If you see any file named 89badass or 69force => delete 1 of them, open the one you leave with ES text editor and delete everything inside

open and copy these lines to that file: (leave a space at the end, total: 5 lines)

#!/system/bin/sh

echo 1188000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1188000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq

change 1188000 to the value you want

save...

long press, Properties -> You can see 9 boxes of Permission -> check all of them

Reboot system
[HTC Sensation] sIpInWiT mYdRoId:
Thank you very much. Can i also make a script with changing the last set of words in the 2 command lines for scaling_min_freq
[HTC Sensation] axetilen:
yes
[HTC Sensation] Yank555:
You know this is something I really don't quite get :

1) I want to under-/overlclock my device other than a kernel comes stock with

2) I don't want to use any OC app

3) I am willing to type strange stuff in a terminal which I'm potentially not certain to really know what it does

4) Even if I don't do scripts, I might even add those strange lines to an existing script which I potentially still don't quite know what that one does

Please don't get me wrong, I really don't want to sound rude here nor am in any way making fun of anyone, we're all here to share and learn from each other, but :

Wanting to do 1) and not willing to use 2) for it, while accepting 3) or even 4) makes not much sense to me.

An OC app will do exactly the same thing for you, plus you get to easily change this in a very convenient graphical way.

If you're not into scripting, use an app, it's so much easier !! ;)

Just to remove all the magic here, a CPU set to 1.72 by a script (or echo command in a terminal) does

in no way perform any better

as if it were set by an app :D

What are you so afraid of using an app like System Tuner or SetCPU ?

JP.
[HTC Sensation] DakuGaranto:
Found it and deleted, thanks.:)
[HTC Sensation] sjknight413:
You also have to delete init.post-boot.sh and init.qcom.post-boot.sh from system/etc. Fauxs kernel puts them there but Sebs kernel doesn't contain them by default so doesn't need them, worth deleting just incase they switch frequencies or don't turn mpdecision on.
[HTC Sensation] superevans:
ROM Compatibility

Can anyone tell if it works with TouchCream 2.1 ? Or does it have to be Sense ROMs ? Please fill me in :o
[HTC Sensation] MMoodyB:
Sebastians' kernel needs to be used on a Sense based rom.

Tamcores' latest kernel can be used on ASOP / AOKP based roms, as he has added SebastianFM's fixes too :

http://files.tamcore.eu/android/?dir=tamcore-kernel

Do a nandroid backup up first & then flash the zip in recovery.
[HTC Sensation] yazzabo:
I noticed that coming from faux b9v2 i have a less responsivity of touch screen, expecially when i write

Messages happend that an input misses (while in fqux doesn't happend!)
[HTC Sensation] juancubo:
Yank, nice reasonable explanation, but human behavior is not always reasonable. I don't like CPU controlling Apps also. Maybe because the phone didn't behave like I wanted while the app was installed (and here is the unreasonable part... there is no proof that the cpu app was the culprit) but yes, perceptions can lead to conclusions and then you have a behavior based on that.

By the way, I dont know if the code is missing a line in the previous post in order to have the 2nd CPU frequency to stick it needs to be on.

Here is a script tutorial, but there are many of them in the web

http://www.freeos.com/guides/lsst/

Thanks Yank555, I have learn a lot from your posts and scripting, Aroma configurations, etc. just by opening the files, the scripts, and reading some books of linux scripting. I am glad that you Keep contributing even if you are not using the sensation as before.
[HTC Sensation] superevans:
But Tamcore's Kernel doesn't have USB OTG support :(
[HTC Sensation] MMoodyB:
The latest version from his webpage is meant to - 3.0.40-TAMCORE-00689-gfe1a294.zip - although I haven't tested it myself yet.

Quoted from the changes listed on his kernel page :

* 00c0cde (TamCore) pyramid: use SCSI, USB & HID config from @SebastianFM's kernel

* f27cf75 (SebastianFM) USB OTG
[HTC Sensation] androm3da:
My phone is showing 1.8 GHz dualcore even though it should be 1.5 by default according to Dev. I like the kernel but want the max freq at 1.5. Any suggestions?

Sent from my HTC Sensation 4G
[HTC Sensation] axetilen:
use system tuner free to decrease max clock to 1512mhz

the default clock of this kernel is 1.8ghz
[HTC Sensation] luis4ever:
No. The default is @1.5 GHz.
[HTC Sensation] axetilen:
I think his device is mssing stock init.qcom.post_boot.sh, so mpdecision and thermald are not loaded

=> CPU will be set at 1.8ghz instead of 1.5ghz and both cores are online
[HTC Sensation] rzr86:
when i flashed the kernel it showed the same to me at software info(1.8ghz) but when i did a test with antutu benchmark the cpu frequency result was 1512mhz.i suppose it is 1.5ghz by default.

i oc it with setcpu to 1782mhz,did again the test and the cpu frequency was 1782mhz
[HTC Sensation] androm3da:
Previously on bricked kernel. Flashed reset kernel and script of Super-Android, no matter what I do it still shows 1.8 GHz dualcore.

Sent from my HTC Sensation 4G
[HTC Sensation] rzr86:
give a test with benchmark to see what will be the cpu frequency result

according to the first post of this thread it is 1512mhz by default no matter what it shows at software info

mines still shows 1.8ghz dualcore after i oc it to 1782mhz
[HTC Sensation] zehel7:
1.8 is the max freq you can OC this kernel thats why it is indicated in the system hardware info

it will not change even if you OC or underclock it
[HTC Sensation] mike2nl:
+1 and right, sometimes it helps to read the 1, 2 and 3 posting complete and the rest of the thread because sometimes it is answered more then once (not half and only download because it is the newest one and i must have because otherwise i am not the one) ....;)

This is not meaned as rude, but it is the truth because i have found the answer by searching and reading the thread. Yes it was 5 minutes but i have found it ...

BTW:

That can be found in the 1st posting:

So next time please think first, then read the thread and then write ..
[HTC Sensation] axetilen:
I found that the file 91tun that Bricked kernel leaves may cause problems to sebastian kernel. I leave it in the init.d folder and regularly get system freezes, run like normal but can't use any apps

After deleting this file, my device has worked for 2.5 days without any issue

I'll check it some more times this week
[HTC Sensation] SebastianFM:
Don't look at the info about processor in Hardware information. System reads processor name from kernel only once at boot.
[HTC Sensation] rorycs:
Sebastian,

If you could please clear this up:

If coming from another kernel, what needs to be deleted? Is there a flashable zip that will do this process? Should I just wipe boot and that's it? Everyone seems to have a different opinion...

Thanks
[HTC Sensation] rzr86:
if someone has a solution for this because it is weird:eek:

i used android terminal to oc 3d gpu at 320mhz and it did but when i rebooted the device it returned to 300mhz:eek:

that only happens when i reboot the device

on boot it stays at 320mhz

can someone help me?

thx
[HTC Sensation] superevans:
Ah. Now I see it. Must be my eyes. Thanks for pointing it out :)
[HTC Sensation] StuartTheFish:
There was one a few pages back.
[HTC Sensation] XxXPachaXxX:
ok woring now...original pad and non original.

For me sometimes i have to disconnect the hub and riconnect...it happens also for usb mass storage devices
[HTC Sensation] Yank555:
That's not weird, that's normal, anything you change in the sysfs interface (/sys/...) will

NEVER

survive a reboot, never has, never will, that's designed that way.

All you get by the sysfs is access to kernel variables so you can change behaviour, and variables are in RAM, hence it will get lost by a power off / reboot.

If you want those changes to stick, you need to make these changes at every boot, and if you don't want to do that manually, you need to put those commands in a script that you put inside "/system/etc/init.d".

The script should lool somehow like this :

#!/system/bin/sh

echo "blabla" > /sys/x/y/z
echo "blabla" > /sys/x/y/z
echo "blabla" > /sys/x/y/z
echo "blabla" > /sys/x/y/z

JP.
[HTC Sensation] rzr86:
i got a little bit confused!

you mean that i have to create a script(but how),add those 4 commands on it and then where do i place it?

also how do i name that script?

right or am i wrong?:o
[HTC Sensation] :
I have a little problem.

I changed the min_freq and max_freq in

"sys/devices/system/cpu/cpu0/cpufreq"

to 192000 and 1512000

and everything work, but after a reboot the max_freq is again at 1,56Ghz.

Only the min_freq is still at 192000mhz.

What I'm doing wrong?
[HTC Sensation] axetilen:
let me help you. create a new file named 31gpu_scaling or anything you want but it must have a number and a name like my example. no extension (no .txt, no .doc...)

#!/system/bin/sh

echo 320000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk

total: 4 lines (need a blank space at the end of the script)

Save it to this folder: system/etc/init.d

long press 30gpu_scaling:

If you use ES file explorer -> properties -> tick all boxes of permission

If you use root explorer -> Permission -> all boxes

---------- Post added at 07:09 PM ---------- Previous post was at 07:07 PM ----------

if you change the values like that -> it will be reset to the original values at every boot

you have to make a init.d script to force system to stay at the freqs you want
[HTC Sensation] rzr86:
i don't have such a file init.d on system/etc

may i have to create it by me?
[HTC Sensation] axetilen:
yes...

or you can download my attactment and extract it. I made it for you

xda doesnt allow me to attact the file without extension, so I have to zip it => this is not a flashable zip

about setting permission -> you have to do it to make sure everything will work correctly
[HTC Sensation] :
Is there a guide how to create a init.d script?
[HTC Sensation] axetilen:
you must edit your script with Notepad++ (please avoid my english errors :()

p/s: to save your file without file extension, go to Control Panel -> Folder options -> Views -> Uncheck: Hide extensions for known file types

and then remove the extension of your script by deleting .[extension] (.doc or .sh...)
[HTC Sensation] rzr86:
i extract the zip.file and i placed as it is in system/etc

i tick all boxes of permissions(es file explorer)

after that i used the android terminal and did the command echo 320000000 > /sys/devices/bla bla bla

reboot the device again and it returned at 300mhz

does it have to do with setting permissions?

shall i have to change them?

what are you suggesting?

thanks anyway for your time(both axetilen and Yank555)
[HTC Sensation] :
Thanks, I will try it.

But why I have to use Notepad++? Why I can't simply use Windows Editor?
[HTC Sensation] axetilen:
system/etc/init.d

not system/etc => this is totally useless

---------- Post added at 09:27 PM ---------- Previous post was at 09:25 PM ----------

you will see a big different if you open an existed script with windows notepad :)

everything is in the same line => you must be panicked cuz you dont know what to do after
[HTC Sensation] rzr86:
actually i also did a folder and named it init.d and put 31gpu_scaling and happened the same after rebooting

i suppose creating init.d as folder is also a mistake

with notepad++ shall i create the init.d?

if yes is it possible to provide me a link for the notepad++?
[HTC Sensation] axetilen:
google it, very easy to find notepadd++

go to this path: /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk

set permission to this file: all boxes and see what happen?? (max_gpuclk)

but I forgot to ask you, what kernel did you use before? if there is a file the kernel created, it mays contain a script to set gpu at 300mhz
[HTC Sensation] rzr86:
is ok with notepad++

i had stock kernel

no the kernel is not created in there but also has a gpuclk script with a number 177778000

does this matter or not?
[HTC Sensation] axetilen:
177778000 is thedefault value of gpuclk but this file. dont touch it. it is dangerous :D

just edit max_gpuclk
[HTC Sensation] tsrzealot:
Hey Yank, thanks for contributing, we can all learn quite a bit from your posts! Just a couple of questions to understand all this a bit better:

1. So no matter what I name files that I put to init.d (e.g., could I name one "77randomfile"?), their content will be "executed" on boot? Why do people put numbers in front of their filenames? Do those numbers do anything?

2. Is there a difference between scripts in init.d and stuff I add to init.qcom.post_boot.sh? Is there any advantage of not writing commands in there and instead putting them in files in init.d besides having a better overview of everything?

3. What's the function of the first line (#!/system/bin/sh)?

Thanks again for all your help, it's fun learning like this.
[HTC Sensation] rzr86:
i did that a few days ago but nothing happened

the only thing that is left is to create a int.d using the notepad++ and put 31gpu_scaling on it

am i right?

i also tried to tick all boxes of permissions but when i rebooted happened the same and also the permissions changed by itself to rw-r-r
[HTC Sensation] tsrzealot:
Did you mount your system as read write before trying to set these permissions and making the changes (e.g., with ES file explorer)? If not, your changes won't stick.

---------- Post added at 05:29 PM ---------- Previous post was at 05:22 PM ----------

Are you absolutely positive that this is a leftover of bricked kernel? How do you know? Isn't the tun module needed for VPN? I mean, this script simply checks if the kernel module is there, right? How could it cause the behavior you describe? Did you change anything else, e.g., CPU voltage? I also have this file and experience no freezes whatsoever.
[HTC Sensation] rzr86:
i'm not realy sure:o

how do i check if my system is mounted as read write?
[HTC Sensation] tsrzealot:
No problem. If you're using ES file explorer, hit the menu key, then select preferences, scroll all the way to the bottom and there you should see options for root explorer and to mount the system folder for write access.
[HTC Sensation] axetilen:
i am sure it is a bricked kernel's leftover because it is placed in bricked kernel package. sebastian kernel doesnot contain this file

I decrease gpu clock to 267mhz and system freeze appears. with 300mhz, it may not

but after removing 91tun have used my device a long time but no system freeze yet
[HTC Sensation] rzr86:
now i understand but i have already done that

previously i created init.d as folder and put in there 31gpu_scaling

may i have to create init.d to something else and put there 31gpu_scaling and not as a folder?
[HTC Sensation] Yank555:
Thanx, always glad to help.

Question 1) :

The name of the script will not matter, or almost not. It should have a format "99XXXXXX", in other words, convention is to start the filename using two digits. This part will matter, as scripts are executed one after the other in the order of the filenames.

So "50hjsdhfjk" will be executed after "45jgklfjlk" and before "55jfkdsjkl".

But also "50fhjdks" will be executed after "50addj" and before "50zfsdlk".

NB: the text part should not be too long, I've had issues with a script not being executed, shortening the filename solved that (it was

a long name

;))).

Question 2) :

You should not fiddle in ROM files, it will work, but it's not the convention. Different device, no such file (there no such file on my SGS3 for example).

It is standard UNIX convention to place scripts to be run at startup in "/etc/init.d", on our Android devices that becomes "/system/etc/init.d".

On a real UNIX system, you'd place the scripts in "/etc/init.d" but they wouldn't be used directly, but there would be "/etc/rcX.d" folders, where X would be the run-level (mostly 1-5, 0 and 6 being halt and reboot). Then inside those folders, you'd point to the different files in "/etc/init.d" using symbolic links and in those naming convention is a bit more complicated, "S99xx" would execute the corresponding init.d with "start" as argument (e.h. "50fshjfks start") and "K99xxx" with "stop" as argument (e.g. "50fshjfks stop"). This tells the system what to start and what to stop when entering a specific run-level.

But this might have gone a little too far ;)

Question 3) :

The first line, even though it looks like a comment, has a special meaning, it will tell the system which shell it should use to run the script. Consider a shell as certain kind of "DOS box" (ok this might be a little far fetched, but should give you an idea). A different shell will likely have a different syntaxe, so what you put in the file should be compliant with the syntaxe of the shell referenced in the first line.

For simple "echo" commands, almost any shell would probably do.

"/bin/sh" (again in UNIX, "/system/bin/sh" in Android) is the very default shell, most init.d scripts will be for that shell, since that shell is also present on 100% of UNIX system (it's a bit like 'vi' the text editor, might be strange to use, but it's good

and

it's available on almost any system).

Hope this shed some light on the topic ;)

JP.
[HTC Sensation] Tinchoska:
It has been improved batt life?

Enviado desde mi Sensation usando Tapatalk 2
[HTC Sensation] Namit1994:
Sebastian, the VilleC2 source code has been released. If you port it to the sensation, will it help with making a fully functional Sense 4.0 ROM?
[HTC Sensation] tsrzealot:
Awesome, simply awesome, man, thanks a bunch! I kind of guessed that the numbers were responsible for the order of execution, good to have that clarified. Also, you exactly guessed what I was aiming at with asking about the first line,because it looked like a comment to my untrained eye :)

So I presume when different people like kernel developers and ROM developers create and name these files they just "guess" how important their script is in terms of "timely execution", because none of them can know for sure what digits the other people assign to their scripts?

Anyway, thanks so much for your detailed answer and I greatly appreciate that you even went a little further, I thoroughly enjoyed that little "lesson" :)
[HTC Sensation] Corvo007:
Any news about Sweep2Wake in this awesome kernel?
[HTC Sensation] Yank555:
Well as for 'guessing' the digits, well you guessed right :D It's a big guessing game, and it sometimes goes wrong ;)

In general, you'd use a low number if your script does sth 'low' like mounting partitions around or stuff like that, that you don't want happening when the system is mainly up & running. And you'd go with a high number if you're changing system params, to be sure to be the last and that your settings be the ones that stick, or you need most other stuff to be done so as to do what you'd need to do.

The latter explains why 99 is so busy ;)

And in my script generator for faux's kernel I chose 99z_kernel, in the hope to have the very last word on those settings :D

JP.
[HTC Sensation] tsrzealot:
Haha, so if I ever have to create a script that has to compete against your settings, I'll just make sure to call it "99zzzInYourFace" :P

Sorry for the OT, but that was too tempting ;)

If I want to learn more about these things, can you recommend any good book or anything like that? I'm sure there are tons of resources out there, but maybe you know a very good one. And as always, thanks for everything.
[HTC Sensation] Yank555:
That would probably work, I'd need to check if "z" comes after "_" ;)

Well the last time I had a book in my hands about scripting, I was studying IT, that was ~20 years back from now ... :eek:

There was one called "UNIX in a nutshell", I think, must have been from O'Reilly's ...

Wow ... I just googled, and guess what, it still exists, updated even, and for the kindle ;) (4th edition, found a reference to the 2nd edition which was published in 1995 !!)

I can't believe I actually do remember stuff like that, name and even publisher, don't even know where my book is, in some boxes I guess !! That made a bunch of good memories come back to me ... thanx for that :D

And sorry for this little off-topic :angel:

JP.
[HTC Sensation] chassy_8o9:
Sebastian, hello

really greate KERNEL!! please ADD support for sweep2wake. thank you and keep the good work!!!:good:
[HTC Sensation] Tamamaxx:
Hi! I'm try to flash 1.52 kernel to my sensation xe.

It's still show HTC LOGO and not continue boot.

My Sensation use HTC Stock rom 3.33.707.106

Please advise.

sorry about my english

Thank for every answer or help.
[HTC Sensation] vincentshjuan:
ZRAM

Hi, Just wanted to check if zram is default enable or disable in this kernel?
[HTC Sensation] SebastianFM:
HTC Ville C2 kernel source code was released a week ago and I already saw it. There is no significant differences in code between this and HTC Sensation kernel. Besides I tested my kernel with ViperS 1.1.0 (based on HTC Ville C2 ROM) and I didn't find any kernel related issues.

By default is disabled. You'll find instructions how to enable it in my OP.
[HTC Sensation] Odnoglazy:
Boot loops

I've just flashed latest Revolution HD ROM on my Sensation and started getting sudden reboots and boot loops. The problem is clearly in this kernel, because there are no reboots when I flash alternative kernel.

Shifted frequency down to 1,62. Now will watch devices behavior.
[HTC Sensation] SebastianFM:
Thousands of people (me too) uses this kernel in their phones without any issues. Maybe problem is with too high CPU frequency. My kernel allows CPU OC up to 1.836 GHz but not every device can handle this.