yashsingh1/xdaforums huggingface dataset:
[HTC One V] Adi_Pat:
Well in most cases, there is a variable which sets max freq at boot, which I couldn't find anywhere.. (In my Galaxy SL OMAP3630 it is policy->max)

Take a look at my Overclock commits on my github.. I did remove the cap on PLL2 because with that Overclock wasn't working. I also tried setting 1.024Ghz at boot in init.rc but I guess something is wrong.. Can you take a look at my ramdisk? Check init.primou.rc...

I think apps like Set CPU make the changes in init.rc.. But not very sure about this..

Once I can fix that.. OC should be stable on this phone!

Also, I will PM you examples of VDD Stats(the code) of other msm7x30 phones. We can try to incorporate it into this device)

Thanks for helping, your help is appreciated since it is difficult to get things tested since I dont have the device :)

Regards,

Adi_Pat
[HTC One V] sashapetrik:
Download TITANIUM KERNEL BUILD#3 ( 1.5Ghz Max frequency)
[HTC One V] maxwen:
Hi

Off Topic:

Just as a followup:

The complete backtrace was

E/AndroidRuntime( 1802): java.lang.RuntimeException: Error receiving broadcast Intent { act=com.htc.sync.provider.weather.result cat=[1__] flg=0x10 (has extras) } in com.htc.lockscreen.weather.LocationCtrl$3@411388e8

...

E/AndroidRuntime( 1802): Caused by: java.lang.ClassCastException: com.htc.util.weather.WSPData cannot be cast to com.htc.util.weather.WSPPData

From that I guess this is a bug in any of the apps or widgets using

"weather" e.g. clock, calendar and it has nothing to do with the kernel

which are actually good news :)

I will start a new thread for that.

Regards

max
[HTC One V] mysdavey:
There is a variable for min CPU speed under /etc/init.qcom.post_boot.sh but obviously this is not in the kernel image.. I would assume setting a max there would throttle the CPU during boot but I never tried it as I could boot the 2Ghz for long enough to set the CPU speed with No Frills.

But on to my actual question: Is there any difference between the 1,5 and 2,0Ghz versions other than the max CPU speed? I'm running the "Old" 2Ghz version now at 1,7 and it works fine, but if there are any other problems that has been taken care of since I'd obviously swap kernel again.
[HTC One V] Adi_Pat:
Hey guys!

I finally found a way to restrict boot-up frequencies.

Restricted to 1.024Ghz when the driver is initialized (HELL YEAH!)

SHould work now. Releasing build#4 soon :cool:

Here is the commit-

https://github.com/AdiPat/android_kernel_primou/commit/649e6cb712111ace7995a041cf45a316a485645e
[HTC One V] ryanlow134:
so... that means default clock speed would be 1Ghz? (sry, noob here)
[HTC One V] maxwen:
Hi

Cool!!!!

Will test it tonight :)

Regards

max

---------- Post added at 03:18 PM ---------- Previous post was at 03:15 PM ----------

Yes. But you have anyway installed a app to set

the frequency "later". This will still work the same.

Only difference is that booting is always done with 1GHz

instead of the max "possible" which is acceptable IMHO

I think this is very good because after a reboot you are always

have a "safe" frequency.

Regards

max
[HTC One V] Adi_Pat:
The reason 2Ghz kernel didn't boot for everyone was because everyones phone couldn't scale 2.016Ghz at boot. Hence many got bootloop. Now that 1Ghz is set as default at boot.. 2Ghz Kernel should boot for everyone.
[HTC One V] SiL3nTKiLL:
downloading!
[HTC One V] shubhamchamaria:
@Adi_Pat:

Unfortunately it has separate recovery partition!!

C:\fastboot>adb shell cat proc/emmc
dev: size erasesize name
mmcblk0p17: 00040000 00000200 "misc"
mmcblk0p21: 0087f400 00000200 "recovery"
mmcblk0p22: 00400000 00000200 "boot"
mmcblk0p25: 31dffe00 00000200 "system"
mmcblk0p28: 0afffe00 00000200 "cache"
mmcblk0p26: 3cfffe00 00000200 "userdata"
mmcblk0p29: 017ade00 00000200 "devlog"
mmcblk0p31: 00040000 00000200 "pdata"
mmcblk0p30: 00011c00 00000200 "extra"
mmcblk0p32: 05ffe000 00000200 "fat"
mmcblk0p27: 07fffe00 00000200 "swap"

C:\fastboot>adb shell cat proc/partitions
major minor #blocks name
179 21 8701 mmcblk0p21(recovery)
[HTC One V] Adi_Pat:
Hey all,

I will upload the new kernel by tomorrow , i.e boot.img

Also I will try my best to build CWM, now that I know its a seperate recovery partition.

Sorry I am a bit slow coz I dont have the device and I dont wanna break anyone's phone :D
[HTC One V] shubhamchamaria:
That's ok .. atleast you are helping us... Ask me if you need any other info....gimme a buzz but right now I gotta sleep...
[HTC One V] Abaddon:
Great news!!!!!! :)

will surely wait for this. And ofcourse test :D

Edit:cant wait :D
[HTC One V] Adi_Pat:
Ok here it is, the boot img..

Test the kernel -> Download
[HTC One V] shubhamchamaria:
Hi..I tested the kernel...flashed ok..

C:\fastboot>fastboot flash boot boot.img
sending 'boot' (3600 KB)...
OKAY [ 2.563s]
writing 'boot'...
OKAY [ 1.440s]
finished. total time: 4.002s

LETS SEE IF IT BOOTS

---------- Post added at 02:37 PM ---------- Previous post was at 02:31 PM ----------

Sorry..it doesn't boot....it doesn't get past splash therefore no logcat...I flashed stock boot.img back and now it staqrted in <1 min.....
[HTC One V] Abaddon:
it doesnt boot either styck on splash screen :D
[HTC One V] Adi_Pat:
Ok Compiling again, stay tuned.
[HTC One V] Abaddon:
ok im waiting :)
[HTC One V] shubhamchamaria:
Okay...waiting...
[HTC One V] Adi_Pat:
Another test kernel :D

http://www.mediafire.com/?zbt11zgzmo9a25b
[HTC One V] ckpv5:
Tested... it does not boot.

I repack the zImage with original boot.img, it boots but there is no wifi.

Do you need all the modules too ? Let me know then I will upload the modules.

BTW, attached here the repacked boot.img with your zImage. Maybe you can check why this one can boot but no wifi.
[HTC One V] Adi_Pat:
Can you give me your kernel packing script? I guess there is something wrong with mine :(

EDIT: Test this one, I guess kernel pagesize was wrong. :D (If it doesnt boot, then PM me your unpack-repack tools)

http://www.mediafire.com/?gel6j8prz7sdmah
[HTC One V] ckpv5:
I just tested this one with repacked boot.img as we don't have the recovery yet. It boots but no wifi too. Replace the modules with the one from the kernel.zip, wifi works. so I guess maybe it needs modules update too.

Anyway will test your updated kernel and reporting back tomorrow as it is almost 4 a.m. here. Testing :)

Note: I use dsixda android kitchen to unpack/repack boot.img

EDIT : tested... sorry to say the latest one does not boot too.
[HTC One V] Adi_Pat:
So after you repack the same zImage , it boots? Correct?
[HTC One V] shubhamchamaria:
he means the ViirtousS4-A2 kernel boots with repacked boot.img..
[HTC One V] Adi_Pat:
Read the earlier posts, he said he repacked my zImage with original boot.img and it booted, so I guess there is something wrong with packing the kernel. I will hse Dsixda kitchen and upload in a few mins.
[HTC One V] shubhamchamaria:
Also in that version WiFi didn't work which means you will have to provide the modules needed just like m-deejay did..
[HTC One V] Adi_Pat:
Of course I will, first I wan't to get the kernel to boot up.

Test this, http://www.mediafire.com/?xpljyrai49r7xxv

./FingersCrossed , hope it boots :D
[HTC One V] hasoon2000:
Not necessarily. 2GHz won't boot for everyone. All the chipsets are not made the same. Some can boot up at that speed, others won't. You should also warn those that overclocking will drastically reduce the life of the phone/CPU
[HTC One V] Adi_Pat:
Well now since I have restricted boot speed to 1Ghz , the kernel will boot. Even if highest is 2.016Ghz.
[HTC One V] TeHashX:
After 2 days of use I can say that battery life is very good with cpu overclocked to 1.5 GHz, it's exactly time like stock kernel but with 1GHz clock.
[HTC One V] hasoon2000:
What I'm trying to say is even though it is set to 1ghz, if the user overclocks it to a certain point, the phone will restart. I have a phone before that would only go to 744MHz but I had another of the same phone that would go to 856MHz. Not all phones will be able to hit 2GHz and the user should make sure that the new speed isn't set to boot.
[HTC One V] paarthdesai:
which is the recommend app for cpu set?

and i am using frills

but i don't get what to do with the last to options wht to set

in governor and iq

help plss

dont just say thanks hit thanks if i helped :)

a true lfc supporter

and a former symbian lover
[HTC One V] hasoon2000:
I personally use SetCPU. Great app. You can read tutorials on how to set it up
[HTC One V] paarthdesai:
using frills but all done and i can feel yhe difference but drains the battery like hell if oveclocked at 1.5 and playing games for 10min and got my battery form 47% to 41 in no time

i am currently underclocked at 758

dont just say thanks hit thanks if i helped :)

a true lfc supporter

and a former symbian lover
[HTC One V] maxwen:
Hi

Just two words :)

It works! :D

Thanks for adding this. I think this will make it more easy

to use for not so experienced people trying it

Regards

max
[HTC One V] paarthdesai:
hi

i tried using the 1.5ghz max one

with rc 1.1

and the music doesn't appear in the player

however if i flash the provided boot. img bt ckpv5 then it's all back to normal

y this?

m i doing something wrong?

dont just say thanks hit thanks if i helped :)

a true lfc supporter

and a former symbian lover
[HTC One V] Adi_Pat:
Media scanner didnt run. Just reboot. Happens sometimes..not a bug :D
[HTC One V] Adi_Pat:
I agree with you on that. But I meant tp say that the phone should boot regardless of the max frequency!
[HTC One V] paarthdesai:
did 5times

ntng hapnd :(

dont just say thanks hit thanks if i helped :)

a true lfc supporter

and a former symbian lover
[HTC One V] 1ceb0x:
Why do you underclocked your phone to 768 mhz, dude? Your phone will not be speedy and more than that, it is not good for battery and cpu! Leave it at 1ghz if you have problems with overclock, but DON'T UNDERCLOCK IT!
[HTC One V] paarthdesai:
to save battery?

i underclocked at 758

hope and think it will save battery

it doesn't save u mean to say?

dont just say thanks hit thanks if i helped :)

a true lfc supporter

and a former symbian lover
[HTC One V] 1ceb0x:
That's not a smart move at all! HTC has let your phone at 1ghz and it works for 2 days with medium usage. It is an above average battery life. You are underclocking your phone at 758 regarding the software that it is using (sense 4, ice cream sandwich) and you expect to have a better battery life? You will have a crappy battery life because your cpu will most likely get stuck at 758mhz almost in every case because the OS and software used on the phone are not a friendly combination for that value.
[HTC One V] sumairmh:
Well im using CPU Master Pro, Lionheart manager, OC to 1.4 Ghz when screen on and 758mhz when screen off... i'm getting better backup than stock.
[HTC One V] tranceph0rmer:
hey guys,

leeetle bit of help here needed.

Im a bit new to kernel flashing(read n00b).

if anyone could post a 3-4 ponter guide on how to flash this kernel,i would really appreciate it.

Btw,i have unlocked my bootloader and am not new to fllashing custom ROMs :D
[HTC One V] sumairmh:
Download and extract 1.5ghz kernel to your fastboot folder (the one where you copied some files to during bootloader unlock C:android maybe), this will give you the boot.img

restart your phone holding down the vol - button and power until hboot appears

select "fastboot"

connect usb cable (assuming you have all drivers installed) it will show fastboot usb

open command prompt in your computer and navigate to the folder where you extracted boot.img (c:android).

type "fastboot devices" (without quotes) (to check if your device is property connected) if it does not show any error message proceed.

type "fastboot flash boot boot.img"

wait for two seconds till the message on cmd says OKAY!

then type "fastboot reboot"

enjoy!!!
[HTC One V] tranceph0rmer:
Thanks bruv.
[HTC One V] ThePresence:
Hi adi I got my cell replaced and I tried your build 3 with 2 ghz....by using set cpu I set 1 ghz set on boot and flashed your kernel but it freeze on startup screen....after that when I restore nandroid backup then it was again start to freeze on startup screen...then I flashed 1.5 ghz frequency kernel and then all is fine....but I want to use 2 ghz what silk l should I do!???
[HTC One V] flar2:
^^your phone is obviously not stable at 2GHz. You'll have to settle for 1.5GHz, which is still an amazing 50% overclock.

Or, use the latest kernel that boots at 1GHz but allows setting the frequency up to 2GHz, and see how high you can take it, testing each step of the way. You might get 1.7, 1.8 or 1.9.
[HTC One V] Mangala_Dharma:
About the underclocking to 768, the battery saving effect is in direct relation to the voltage specific to the cpu frequency. Coming from optimus one P500, I remember Franciscofranco explaining exemple that for that phone, any frequencies under 480 mhz were at the same voltage so it was no use to put the minimum frequency lower than that as it would basically be the same drain on the battery and more sluggish performances. On the other hand, my transformer prime goes all the way from 102 mhz up to 1.6 ghz in performance mode, though it mainly stays around 400 mhz minimum. For our phone, I put my minimum at 245 mhz and using Cooltool to monitor in real time my frequencies when the phone is only playing background music exemple it goes naturaly down to that frequency and as soon as I touch the screen there is a cpu usage spike and it rev up the frequency, to where I put my max at about 1.4 ghz. It does not feel more sluggish because it goes really fast to 1.4 and at the same time it goes by itself at lower frequencies and so less battery used.

As far as putting my maximum to 768 mhz, to save battery I guess it would depends on the exact voltage for the frequencies used. If it's the same at 768 and at 1.024 ghz, then there is no benefits from underclocking and it make the phone more slow as well. I do not know how to verify the voltage by frequencies for our kernels. Should be easy to find out.

Monitoring conservative governor versus lionheart, I find that lionheart governor is more reactive, going up and coming down faster so I prefer it to conservative even for battery savings. It is quicker to get down to my minimum 245mhz and so is the best of both worlds, fast cpu when I need it and also able to just cycle slow when idling or no touchscreen used. Cooltool on the market is really useful to get your own opinion on real life usage of governors. On our phone there is also this classic cpu spike to about 90%-100% when touching the screen but it was and endless debate on that other phone on fluidity and performance of scrolling versus battery saving. Maybe it is an android thing.

Sent from my HTC One V using my Dog
[HTC One V] ThePresence:
Dude my question Is I set on boot to 1ghz so why this happened to me....and also I can't access play store it fc every time....I can't open play store help....and where that latest kernel which boots on 1 ghz??
[HTC One V] Adi_Pat:
Wait for Build#4 I am busy with exams now. And he is right. Underclocking will only save battery if the frequency steps are undervolted. There is slight undervolt on stock freq.

PS: Underclocking doesnt cause any harm. Overclocking does cause harm. And remember, 2Ghz can burn out the processor so be careful when using it.
[HTC One V] Adi_Pat:
You saved me five minutes of explanation! Thanx for explaining in detail :D
[HTC One V] 1ceb0x:
I don't believe this could happen. Only if the cpu is a faulty hardware and it cracks up. And if it does burn out your processor, you should put a BIG RED WARNING SIGN on the OP page, to avoid any further problems. Many users here are new to android and they barely know how to flash a kernel, so hints like these should be good for noobs.

I was running my One V at 2ghz all day with no problems but I found out that at 1.9ghz it is much more speedy than the last step and much more points in benchmarking (although this is not relevant), until I needed to return my phone to store and now I'm waiting to pick up a new one.
[HTC One V] maxwen:
If someone really needs a "1GHz boot" enabled build earlier

I can provide one in the meantime. Just includes the latest change

from Adi_Pat and is max 1.5GHz

Just tell me

regards

max
[HTC One V] ThePresence:
i tried again but this time from no frills cpu i set 1 ghz set on boot but when i flashed 2.0 ghz kernel then it freezed on startup screen....but 1.5 ghz kernel is running smoothly so

@maxwen can you provide 2ghz kernel which will have default 1ghz??
[HTC One V] maxwen:
Hi

Can do it tonight MET when I am back@home

But - Actually it would be better if only Adi_Pat provides builds to that we

dont create other issues by providing builds from different people.

So I will do this only in real emergency cases :)

regards

max
[HTC One V] ThePresence:
so dude can you pm me i really need it and i think it may help many people like me....

regards
[HTC One V] maxwen:
Hi

But looking into Adi_Pats Changelog Build #3 should already include

the 1GHz boot "fix"

...

13] Limited boot-up speed to 1Ghz for stability purposes

...

Are you sure you flashed the correct kernel?

regards

max
[HTC One V] ThePresence:
yup i flashed correct kernel and everyone knows that it has default frequency of 2 ghz....
[HTC One V] tranceph0rmer:
The exact same thing is happening with my device.

The 1.5 ghz kernel is working like a charm:) but when I flashed the 2ghz kernel its stuck on the HTC boot up screen.
[HTC One V] Adi_Pat:
I had added lines to init.rc which didn't work. The fix is not there yet. :| I will try to release a fix soon. SOrry for delays !
[HTC One V] ThePresence:
take your time.......:)
[HTC One V] maxwen:
Would it be ok for you if I post my builds in the meantime?

Regards

max
[HTC One V] Adi_Pat:
Can someone please post step by step instructions for flashing boot.img ?

I will pin it up to the OP. Since I don't have the device I don't know the entire procedure.

Thanks.
[HTC One V] ThePresence:
-Download and extract 1.5ghz kernel to your fastboot folder (the one where you copied some files to during bootloader unlock C:android maybe), this will give you the boot.img

-restart your phone holding down the vol - button and power until hboot appears

select "fastboot"

-connect usb cable (assuming you have all drivers installed) it will show fastboot usb

-open command prompt in your computer and navigate to the folder where you extracted boot.img (c:android).

-type "fastboot devices" (without quotes) (to check if your device is property connected) if it does not show any error message proceed.

-type "fastboot flash boot boot.img"

-wait for two seconds till the message on cmd says OKAY!

-then type "fastboot reboot"

enjoy!!!
[HTC One V] paarthdesai:
instructions to flash boot. img

1) boot into bootloder

2) go into fastboot and then connect the phone to your pc

3) open command prompt and execute ro the location where the kernel is placed(same folder as fastboot)

type fastboot flash boot boot. img

4) let it complete

5) reboot

6) njoi oveclocked phone

dont just say thanks hit thanks if i helped :)

a true lfc supporter

and a former symbian lover
[HTC One V] hasoon2000:
If you want to make it easier then using the commands, you can use my tool to do it. You put the boot.img in the kernel folder and press flash user provided Kernel.
[HTC One V] 1ceb0x:
:) you are doing it wrong! you cannot flash the first kernel that has the cpu set at 1ghz at boot, thick the option "set at boot" and then flash another kernel that has the step 2ghz set at boot! because if you flash another kernel, all your changes made for the first kernel will disappear. so basically you are doing nothing!
[HTC One V] tranceph0rmer:
Lol I'm doing the same thing.:p

Thanks for clearing that up.:D
[HTC One V] ThePresence:
-I've 1.5 ghz kernel and i tick on option "apply on boot" in No-cpu frills....

-Then i flashed kernel which has 2 ghz and it freezed on startup screen....

-back to 1.5 ghz frequency kernel..

I've done something wrong or i'm missing something?????
[HTC One V] sashapetrik:
the same

+1
[HTC One V] shubhamchamaria:
It doesn't work that way...
[HTC One V] ThePresence:
So can you help me out....??
[HTC One V] shubhamchamaria:
Please wait until Adi_Pat releases build.4
[HTC One V] tranceph0rmer:
Guys just post a reply on how to flash the 2ghz kernel after flashing the 1.5ghz Kern.

A lot of people(including myself :D)

Are stuck on the boot up screen

Scared the shìt outta me too :p
[HTC One V] ThePresence:
+1.....
[HTC One V] 1ceb0x:
As I've said! You cannot flash the 1 ghz version or 1.5 ghz version and set it to 1ghz and then flash 2ghz and expect that the settings were the same as you left it (booting up at 1ghz instead of 2ghz). You have one boot.img and you flash another one totally new over the top -> it is normal that the settings that you are saving with no frills, setcpu or whatever, to not remain!!!!

Just flash 1.5 GHZ and wait until build 4 is released. OR if you are experimented in kernels and the way they work, just open the boot.img up, find the init.rc file and edit that to limit the cpu to be set at 1ghz at boot up!
[HTC One V] tranceph0rmer:
Okay sir. Will do. :D
[HTC One V] maxwen:
Hi

Ok just for this time :)

Max 1.5GHz with 1GHz boot limit

http://www.mediafire.com/?a6s3ovv8gsx1vgm

Max 2.0GHz with 1GHz boot limit

http://www.mediafire.com/?m8wnwfdkucfcxab

Based on the git repository from Adi_Pat with no changes

DONT share these files. Always use the builds from Adi_Pat by default

else we might get confusions :)

Regards

max
[HTC One V] tranceph0rmer:
Thanks a lot.

Will test right nao.
[HTC One V] ThePresence:
I tried 2 ghz kernel but it has 1.5 ghz Max speed....
[HTC One V] maxwen:
Hi

Really? - Will check

regards

max
[HTC One V] Adi_Pat:
>>>UPDATE<<<

Uploading Beta-BUILD#4 soon.

I have patched upstream to latest Linux Kernel 3.0.35- :cool:

And limited 1Ghz on boot..

Uploading soon :cool:
[HTC One V] ThePresence:
wating......
[HTC One V] Adi_Pat:
Ill upload tomorrow, got to study now :D

Some issues with mmc driver.. compile errors after patching.

Will look into it tomorrow :D
[HTC One V] Lloir:
dude this is important, are you able to ENABLE usb in the kernel please? it goes a long long way to fix CWM mounting problem, would mean a hell ton :)

check pm dude :)
[HTC One V] maxwen:
Hi

Ok you where right - Sorry

2.0 is now

http://www.mediafire.com/?7dpsjraee89xbkc

1.5 is

http://www.mediafire.com/?fw6dh5o4k328ih0

Regards

max
[HTC One V] ThePresence:
wow man you're great it works but default value is 1.5 ghz which i was set in no frills cpu....but anyway you made my day mate...thankzz lot.:)
[HTC One V] acedexplorerABL:
so this sunday as i told you on fb, i will be doing this to my friends one v.

+1 already done. :p

will let you know what happens.. but i guess it will all be fine.:fingers-crossed:

edit. ooh just noticed the new smileys :victory::good:
[HTC One V] shubhamchamaria:
Should I use init.d scripts or not?

First you say they are supported then in the 3rd or 4th post you say...dont use any init.d scripts!
[HTC One V] Adi_Pat:
Depends on what scripts you use.. Changing VM-dirty ratios is not recommended, nor is tweaking any VM value recommended because I have already tuned it in the Kernel. PM me what init.d scripts you wan't to use.. I'll tell you.
[HTC One V] shubhamchamaria:
Just zipalign!
[HTC One V] Adi_Pat:
Thats fine :)
[HTC One V] Adi_Pat:
Build#4 Beta-

http://d-h.st/wt9

Linux Kernel-3.0.35

Boot-speed set to 1Ghz.

---------------------------
[HTC One V] Lloir:
is this the ONE?
[HTC One V] Adi_Pat:
Nup, will do it now.. need to know how this kernel is working and people wanted a 1Ghz(boot) Kernel urgently..
[HTC One V] Lloir:
lol, i've just flashed this i'll let you know, also with the next one can you not let it out into the wild until we've done a proper test with the recovery please, dont want things breaking or people not being able to do this\that\other

thanks dude
[HTC One V] Adi_Pat:
That Kernel which you wan't I will give it specifically to you!

EDIT: If it booted means I finally patched upstream!
[HTC One V] Lloir:
yeap it booted :P and thanks dude