5,597,397 Members 30,895 Now Online
XDA Developers Android and Mobile Development Forum

The overclock modules for HTC One XL, should be applicable on our One S

Tip us?
 
fxzy
Old
#1  
fxzy's Avatar
Senior Member - OP
Thanks Meter 94
Posts: 386
Join Date: Feb 2011
Location: Hong Kong
Default The overclock modules for HTC One XL, should be applicable on our One S

It can apply on phones running with Qualcomm MSM 8960 chipset.
Quoting from the OP:

One XL/AT&T/Rogers One X 1.8GHz overclock module

Please let me know about the module's compatibility with your phone. It has been reported to work on the latest AT&T version kernel, and I have a Rogers device myself.

Hey guys! I've created a kernel module that overclocks the MSM8960 Qualcomm Krait to over 1.8GHz. It also allows you to specify a custom voltage and frequency instead of 1.8GHz. This method works on ANY MSM8960-based rooted HTC One X, even on locked bootloader devices. This allows AT&T users to overclock, and others to overclock without necessarily needing to unlock the bootloader. This overclock makes the already tremendously fast MSM8960 about 20% faster.

Note that this mod is ONLY for the Qualcomm MSM8960-based Krait HTC One X and HTC One XL. This includes the AT&T HTC One X, Rogers HTC One X, and any phone branded as the HTC One XL.

The module is loaded using this command: insmod /data/local/krait_oc.ko pll_l_val=67 vdd_uv=1300000

The pll_l_val parameter determines how high the overclock is. Multiply this number by 27 to get the final clock speed in MHz. For example, 67*27 is 1809000, which is what the module defaults to.

The vdd_uv parameter determines the voltage used at the overclocked speed, in microvolts. The default for 1.5GHz is 1200000, and I was able to get a stable overclock at 1300000 at 1.8GHz. Raise the vdd_uv parameter if the overclock is unstable. The current maximum for this field is 1300000, so don't go higher than this. If your system crashes or is unstable at this frequency/voltage, lower the pll_l_val one by one until you reach stability. You can run rmmod krait_oc and then insmod krait_oc.ko with different parameters without having to reboot.

You'll also need a custom, tweaked thermald.conf. This thermald.conf raises thermal tolerances slightly (I've found that they're a little too strict, even at stock clocks and voltages). I've included this in the package, and instructions for installing it are below.

Video, demonstrating the overclock on a Rogers HTC One X:
YouTube Video

Screenshots




Source code is included in the package. If anyone has an HTC One S, this method will work on that, too. Please post below a dump of /system/lib/modules and I should be able to add support for any MSM8960-based HTC device with just that.

Instructions
First, determine which kernel module to use. Do an adb shell cat /proc/version and choose a ko file that matches your version number (these instructions assume you've renamed it to krait_oc.ko). 21/05/2012: If you don't see your kernel version here, try loading the module anyway. If it fails to load, please post a file from /system/lib/modules (any file) here and I will add support.

Install the overclock (only once):
1. Push the kernel module to your device:

adb push krait_oc.ko /data/local

2. Install the new thermald.conf, making sure to back up the old one, and reboot. The thermald.conf is included in the download. If you want to target a frequency other than 1809000 KHz, you should edit the thermald.conf and replace "1809000" to whatever frequency you want to target.

adb push thermald.conf /data/local
adb shell
su
mount -o rw,remount /system
cp /system/etc/thermald.conf /system/etc/thermald.conf.bak
rm -r /system/etc/thermald.conf
cp /data/local/thermald.conf /system/etc
reboot


Load the overclock (every time you reboot):
1. Load the kernel module (replace pll_l_val and vdd_uv with your desired voltages and L value as explained above. It defaults to 67 and 1300000 if you don't give it any parameters):

adb shell
su
insmod /data/local/krait_oc.ko pll_l_val=67 vdd_uv=1300000

2. Bring core 1 temporarily offline so it gets updated with the new max frequency:

echo 0 > /sys/devices/system/cpu/cpu1/online

3. You'll now have an additional CPU frequency! SetCPU can configure your maximum frequency up to this speed. You can also choose to keep running at 1.5GHz at any time - this method doesn't eliminate any available frequencies. Set the max at 1.8GHz to verify it's stable here.
4. Restart thermald by running "ps". Look for "thermald" in the list, and find thermald's pid (it's usually a number in the low hundreds, higher up in the list). Run "kill [thermald's PID]" in adb shell. The kernel does not currently have kernel-level temperature throttling turned on, so thermald is important for now.

Remove the overclock by restoring your backup of thermald.conf:

adb shell
su
mount -o rw,remount /system
rm -r /system/etc/thermald.conf
cp /system/etc/thermald.conf.bak /system/etc/thermald.conf
rm -r /system/etc/thermald.conf.bak
reboot

Rebooting clears any kernel modules that are loaded, so you're now clean. You can then delete anything left over in /data/local, but it doesn't matter.

If the module loads but the overclock doesn't seem to have any effect, even after putting max and min at 1.8GHz, your device might use a different SoC bin than the "nominal," and the kernel module is looking at the wrong place. Please reboot your device and post an adb shell dmesg right after the reboot so I can look at it.

Download current pack of modules:
http://www.setcpu.com/files/krait_oc_v2.zip (current)
http://www.setcpu.com/files/krait_oc.zip (old)

Finally, it'd be great if we as a community tried to work harder to encourage HTC to hurry up and 1. Release kernel source on time, all the time and 2. NOT cave into carrier pressure and stick to their written bootloader policy! S-OFF would be nice, too. 

Sent from my HTC One S using xda premium
Users from China, Hong Kong~
Please Thanks if you like my post!
I have too many phones and I am a DIE-HARD HTC fan!


Current:
The New HTC One z801s
Pantech SKY Vega R3 A850S
ASUS Nexus 7 (2013)
Apple iPod Touch 5th Gen.
Apple iPad 3rd Gen.
The Following 4 Users Say Thank You to fxzy For This Useful Post: [ Click to Expand ]
 
avetny
Old
(Last edited by avetny; 24th May 2012 at 02:48 PM.)
#2  
avetny's Avatar
Senior Member
Thanks Meter 1560
Posts: 4,914
Join Date: Jul 2010
Location: Private Island.





LETS DO THIS
 
plakers
Old
#3  
plakers's Avatar
Senior Member
Thanks Meter 106
Posts: 476
Join Date: Apr 2011
Location: Lyon
It also allows you to specify a custom voltage and frequency instead of 1.8GHz

Hehe... I'll test it tonight and undervolt a bit...
(no signature distraction)
 
fxzy
Old
#4  
fxzy's Avatar
Senior Member - OP
Thanks Meter 94
Posts: 386
Join Date: Feb 2011
Location: Hong Kong
Is there any additional modification is needed in order to make it work on One S?

Sent from my HTC One S using xda premium
Users from China, Hong Kong~
Please Thanks if you like my post!
I have too many phones and I am a DIE-HARD HTC fan!


Current:
The New HTC One z801s
Pantech SKY Vega R3 A850S
ASUS Nexus 7 (2013)
Apple iPod Touch 5th Gen.
Apple iPad 3rd Gen.
 
mycomputerisjunk
Old
(Last edited by mycomputerisjunk; 24th May 2012 at 04:04 PM.)
#5  
mycomputerisjunk's Avatar
Senior Member
Thanks Meter 59
Posts: 584
Join Date: Dec 2009
Location: The Icarus v2
I tried this on my T-Mobile US One S and the frequency shows up in SetCPU. My Antutu score jumped 500 points, so if it did actually do something it was only an 7-8% gain. Antutu does recognize the cpu as having 1809 MHz. All other benchmarks that I ran have improvements as well.

Also, on step 4, you can locate the thermald process easier by doing the following:

ps | grep thermald


Nice post btw!
Phone: I can never just pick one..



Partial List

LG G2, LG F3, iPhone 5, iPhone 4s, iPhone 4, iPhone 3GS, iPhone 3, iPhone 2G, LG Optimus G, Nexus 4, HTC One, HTC One S (x3), Galaxy Note 2 Verizon (2x), Galaxy Note 2 International, HTC 8X, Nexus, Galaxy S3, HTC One X, HTC Rezound, Droid DNA, LG Optimus V, HTC Sensation, HTC MyTouch 3G, HTC Hero, Palm Pre (ya, I said it)
 
fxzy
Old
#6  
fxzy's Avatar
Senior Member - OP
Thanks Meter 94
Posts: 386
Join Date: Feb 2011
Location: Hong Kong
Overclocked to 1.8 GHz just now. So far stable. Running Antutu Benchmark right now.
Users from China, Hong Kong~
Please Thanks if you like my post!
I have too many phones and I am a DIE-HARD HTC fan!


Current:
The New HTC One z801s
Pantech SKY Vega R3 A850S
ASUS Nexus 7 (2013)
Apple iPod Touch 5th Gen.
Apple iPad 3rd Gen.
 
rootrider
Old
#7  
rootrider's Avatar
Senior Member
Thanks Meter 364
Posts: 785
Join Date: Aug 2010
Location: Starnberg
Works - it's here. Now let's see...

Ahhh, and for the guys not on Linux: Copy the thermald.conf to sd card via usb and from there to its destination folder e.g. with root explorer.

Attached Thumbnails
Click image for larger version

Name:	2012-05-24 22.52.39.jpg
Views:	508
Size:	22.0 KB
ID:	1082072  
 
nickmv
Old
#8  
Senior Member
Thanks Meter 209
Posts: 855
Join Date: Jan 2011
Location: Memphis
Not to be Capt. Obvious here, but is there a point to overclocking the One S?

We're at about as fast as you can get before your eyes start bleeding. At the stock speed, my phone goes as fast as my eyes and thumbs can possibly move.

This is where all that quad-core Exynos crap goes right out the window. Seriously though, whats the point of OC'ing a phone that's already ridiculously fast?
 
raikesy
Old
#9  
raikesy's Avatar
Senior Member
Thanks Meter 196
Posts: 703
Join Date: Mar 2009
Quote:
Originally Posted by nickmv View Post
Not to be Capt. Obvious here, but is there a point to overclocking the One S?

We're at about as fast as you can get before your eyes start bleeding. At the stock speed, my phone goes as fast as my eyes and thumbs can possibly move.

This is where all that quad-core Exynos crap goes right out the window. Seriously though, whats the point of OC'ing a phone that's already ridiculously fast?
I think it's purely 'because we can'

Like you said, not really any need to, or tangible benefit in doing so
 
Raptylos
Old
#10  
Senior Member
Thanks Meter 114
Posts: 240
Join Date: Feb 2008
Quote:
Originally Posted by nickmv View Post
Not to be Capt. Obvious here, but is there a point to overclocking the One S?

We're at about as fast as you can get before your eyes start bleeding. At the stock speed, my phone goes as fast as my eyes and thumbs can possibly move.

This is where all that quad-core Exynos crap goes right out the window. Seriously though, whats the point of OC'ing a phone that's already ridiculously fast?
IMHO we can benefit from undervolting in manners of battery life. The OC thing is a nice "side effect"

Gesendet von meinem HTC One S mit Tapatalk 2
Main Device: HTC One(M8) S-Off bitten by Viper 1.0.0 ElementalX 0.6
Backup Device: HTC One(M7) S-Off bitten by Viper 6.0.1 ElementalX 14.0

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes