[MOD] 1.8GHz+ overclock module for AT&T/Rogers HTC One X/ (One XL)/One S!

Search This thread

coolbho3000

Retired Senior Recognized Developer
Dec 26, 2008
897
785
One XL/AT&T/Rogers One X/One S 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. It has also been confirmed to work on the One S (see this thread: http://xdaforums.com/showthread.php?t=1670904) and MIGHT work on the EVO 4G LTE.

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:

Screenshots
one_x_oc_1%20.png
one_x_oc_2.png


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:
Code:
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.
Code:
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):
Code:
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:
Code:
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:
Code:
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. ;)
 
Last edited:

gtung99

Senior Member
May 14, 2012
77
6
Sorry for being a noob but I don't understand how to do step 4 for restarting the thermald?

As it currently stands the OC works but as soon as I restart the phone, the overclock goes away.
 
  • Like
Reactions: cc1961

cc1961

Senior Member
May 17, 2008
89
29
Doesn't it say that you have to re-load the Overclock everytime your reboot ? (Post #1)
 

gtung99

Senior Member
May 14, 2012
77
6
My bad, I thought those steps meant that the overlock will load everytime the phone reboots.
 

jojojohnson7410

Senior Member
Jun 5, 2010
91
31
Freehold, NJ
Confirmation

Hey, just wanted to confirm that this overclock is working for RUU_Evita_UL_Cingular_US_1.82.502.3 (version 3.0.8-01150-g31e8587) on the AT&T HTC One X. Also, thanks so much for the mod! :D
 

coolbho3000

Retired Senior Recognized Developer
Dec 26, 2008
897
785
can we not use both cores with your mod?

ignore my ignorance it comes online fine :D

Yeah, you just have to bring core 1 temporarily offline. The overclock fully works with both cores.

Hey, just wanted to confirm that this overclock is working for RUU_Evita_UL_Cingular_US_1.82.502.3 (version 3.0.8-01150-g31e8587) on the AT&T HTC One X. Also, thanks so much for the mod! :D

Thanks for confirming this! I wasn't sure because I compiled it so that it works on my Rogers ROM, and some symbol versions might have differed. Guess not. Modversions is turned on in this kernel (yay), so there's no need to compile a different module for every kernel version.

My bad, I thought those steps meant that the overlock will load everytime the phone reboots.

Nope, but a script to do it automatically upon every reboot should be very trivial to write. I might leave that to the ROM devs though.


Sorry for being a noob but I don't understand how to do step 4 for restarting the thermald?
"adb shell ps" gives a list of the running processes on the system in rows. Find thermald's row (if you are on Linux or Mac OS X you can just do an "adb shell ps | grep thermald" to find the row quickly), and make a note of the first number - this is the PID. Now do "adb shell", "su", and then "kill [thermald's PID]". thermald will now be restarted automatically and will be aware of the overclocked speed. I want to find a way to enable kernel-level temperature throttling so we can disable thermald, as it's not very good.
 
Last edited:

solidus175

Member
Feb 2, 2010
40
2
"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.
"

Looks like this is happening to me. Here is my dmesg:

<6>[ 35.453074] [FD92][PID=530][wake_unlock][sys]
<6>[ 35.453197] [FD93][PID=530][state][sys]
<6>[ 35.453288] [FD94][PID=437][SettingsProvider.apk][system]
<6>[ 35.453349] [FD95][PID=437][SettingsProvider.apk][system]
<6>[ 35.453471] [FD96][PID=524][][pipe:]
<6>[ 35.453532] [FD97][PID=524][][pipe:]
<6>[ 35.453654] [FD98][PID=524][[eventpoll]][anon_inode:]
<6>[ 35.453715] [FD99][PID=530][[eventpoll]][anon_inode:]
<6>[ 35.453776] [FD100][PID=530][inotify][anon_inode:]
<6>[ 35.453898] [FD101][PID=530][][pipe:]
<6>[ 35.453960] [FD102][PID=530][][pipe:]
<6>[ 35.454082] [FD103][PID=530][][pipe:]
<6>[ 35.454143] [FD104][PID=530][][pipe:]
<6>[ 35.454204] [FD105][PID=530][[eventpoll]][anon_inode:]
<6>[ 35.454326] [FD106][PID=531][][pipe:]
<6>[ 35.454387] [FD107][PID=531][][pipe:]
<6>[ 35.454448] [FD108][PID=531][[eventpoll]][anon_inode:]
<6>[ 35.454570] [FD109][PID=534][][pipe:]
<6>[ 35.454631] [FD110][PID=533][ashmem][dev]
<6>[ 35.454692] [FD111][PID=533][ashmem][dev]
<6>[ 35.454814] [FD112][PID=534][][pipe:]
<6>[ 35.454906] [FD113][PID=534][[eventpoll]][anon_inode:]
<6>[ 35.454967] [FD114][PID=531][ashmem][dev]
<6>[ 35.455028] [FD115][PID=561][][pipe:]
<6>[ 35.455089] [FD116][PID=536][event6][dev]
<6>[ 35.455211] [FD117][PID=437][][socket:]
<6>[ 35.455302] [FD118][PID=537][][pipe:]
<6>[ 35.455363] [FD119][PID=537][][pipe:]
<6>[ 35.455424] [FD120][PID=537][[eventpoll]][anon_inode:]
<6>[ 35.455486] [FD121][PID=538][][pipe:]
<6>[ 35.455547] [FD122][PID=538][][pipe:]
<6>[ 35.455669] [FD123][PID=538][[eventpoll]][anon_inode:]
<6>[ 35.455730] [FD124][PID=539][][pipe:]
<6>[ 35.455821] [FD125][PID=539][][pipe:]
<6>[ 35.455943] [FD126][PID=539][[eventpoll]][anon_inode:]
<6>[ 35.456004] [FD127][PID=543][][pipe:]
<6>[ 35.456065] [FD128][PID=543][][pipe:]
<6>[ 35.456188] [FD129][PID=543][[eventpoll]][anon_inode:]
<6>[ 35.456249] [FD130][PID=564][][pipe:]
<6>[ 35.456371] [FD131][PID=533][ashmem][dev]
<6>[ 35.456432] [FD132][PID=564][][pipe:]
<6>[ 35.456493] [FD133][PID=565][][pipe:]
<6>[ 35.456615] [FD134][PID=536][event3][dev]
<6>[ 35.456706] [FD135][PID=536][event2][dev]
<6>[ 35.456767] [FD136][PID=533][ashmem][dev]
<6>[ 35.456889] [FD137][PID=564][[eventpoll]][anon_inode:]
<6>[ 35.456951] [FD138][PID=536][event1][dev]
<6>[ 35.457012] [FD139][PID=536][event0][dev]
<6>[ 35.457164] [FD140][PID=536][event8][dev]
<6>[ 35.457225] [FD141][PID=536][event7][dev]
<6>[ 35.457286] [FD142][PID=561][][pipe:]
<6>[ 35.457408] [FD143][PID=561][[eventpoll]][anon_inode:]
<6>[ 35.457469] [FD144][PID=560][][socket:]
<6>[ 35.457591] [FD145][PID=562][][pipe:]
<6>[ 35.457652] [FD146][PID=562][][pipe:]
<6>[ 35.457714] [FD147][PID=562][[eventpoll]][anon_inode:]
<6>[ 35.457836] [FD148][PID=563][][pipe:]
<6>[ 35.457897] [FD149][PID=563][][pipe:]
<6>[ 35.457988] [FD150][PID=563][[eventpoll]][anon_inode:]
<6>[ 35.458110] [FD151][PID=565][][pipe:]
<6>[ 35.458171] [FD152][PID=565][[eventpoll]][anon_inode:]
<6>[ 35.458293] [FD153][PID=437][Infinite.apk][system]
<6>[ 35.458354] [FD154][PID=566][][pipe:]
<6>[ 35.458415] [FD155][PID=566][][pipe:]
<6>[ 35.458538] [FD156][PID=566][[eventpoll]][anon_inode:]
<6>[ 35.458599] [FD157][PID=567][][pipe:]
<6>[ 35.458660] [FD158][PID=567][][pipe:]
<6>[ 35.458782] [FD159][PID=567][[eventpoll]][anon_inode:]
<6>[ 35.458843] [FD160][PID=568][][pipe:]
<6>[ 35.458904] [FD161][PID=568][][pipe:]
<6>[ 35.459026] [FD162][PID=568][[eventpoll]][anon_inode:]
<6>[ 35.459117] [FD163][PID=569][][pipe:]
<6>[ 35.459240] [FD164][PID=569][][pipe:]
<6>[ 35.459301] [FD165][PID=569][[eventpoll]][anon_inode:]
<6>[ 35.459362] [FD166][PID=570][][pipe:]
<6>[ 35.459484] [FD167][PID=570][][pipe:]
<6>[ 35.459575] [FD168][PID=570][[eventpoll]][anon_inode:]
<6>[ 35.459636] [FD169][PID=573][][pipe:]
<6>[ 35.459758] [FD170][PID=573][][pipe:]
<6>[ 35.459819] [FD171][PID=573][[eventpoll]][anon_inode:]
<6>[ 35.459942] [FD172][PID=579][][pipe:]
<6>[ 35.460003] [FD173][PID=577][][pipe:]
<6>[ 35.460064] [FD174][PID=577][][pipe:]
<6>[ 35.460125] [FD175][PID=577][[eventpoll]][anon_inode:]
<6>[ 35.460247] [FD176][PID=575][][socket:]
<6>[ 35.460308] [FD177][PID=579][][pipe:]
<6>[ 35.460430] [FD178][PID=579][[eventpoll]][anon_inode:]
<6>[ 35.460491] [FD179][PID=580][][pipe:]
<6>[ 35.460582] [FD180][PID=580][][pipe:]
<6>[ 35.460674] [FD181][PID=580][[eventpoll]][anon_inode:]
<6>[ 35.460766] [FD182][PID=437][userbehavior.db][data]
<6>[ 35.460857] [FD183][PID=437][ashmem][dev]
<6>[ 35.460949] [FD184][PID=607][][socket:]
<6>[ 35.461010] [FD185][PID=607][][socket:]
<6>[ 35.461132] [FD186][PID=607][][socket:]
<6>[ 35.461193] [FD187][PID=607][][socket:]
<6>[ 35.461254] [FD188][PID=608][][pipe:]
<6>[ 35.461376] [FD189][PID=608][][pipe:]
<6>[ 35.461437] [FD190][PID=608][[eventpoll]][anon_inode:]
<6>[ 35.461498] [FD191][PID=543][][socket:]
<6>[ 35.461620] [FD192][PID=543][][socket:]
<6>[ 35.461681] [FD193][PID=610][][pipe:]
<6>[ 35.461742] [FD194][PID=610][][pipe:]
<6>[ 35.461864] [FD195][PID=610][[eventpoll]][anon_inode:]
<6>[ 35.461925] [FD196][PID=611][][pipe:]
<6>[ 35.462017] [FD197][PID=611][][pipe:]
<6>[ 35.462108] [FD198][PID=611][[eventpoll]][anon_inode:]
<6>[ 35.462200] [FD199][PID=613][][pipe:]
<6>[ 35.462322] [FD200][PID=617][ashmem][dev]
<6>[ 35.462383] [FD201][PID=613][][pipe:]
<6>[ 35.462444] [FD202][PID=613][[eventpoll]][anon_inode:]
<6>[ 35.462566] [FD203][PID=437][lightsensor][dev]
<6>[ 35.462627] [FD204][PID=614][][pipe:]
<6>[ 35.462688] [FD205][PID=614][][pipe:]
<6>[ 35.462810] [FD206][PID=614][][pipe:]
<6>[ 35.462871] [FD207][PID=614][][pipe:]
<6>[ 35.462933] [FD208][PID=614][[eventpoll]][anon_inode:]
<6>[ 35.463055] [FD209][PID=531][ashmem][dev]
<6>[ 35.463116] [FD210][PID=531][ashmem][dev]
<6>[ 35.463177] [FD211][PID=531][][pipe:]
<6>[ 35.463299] [FD212][PID=531][][pipe:]
<6>[ 35.463390] [FD213][PID=531][][pipe:]
<6>[ 35.463451] [FD214][PID=531][][pipe:]
<6>[ 35.463573] [FD215][PID=531][HtcLockScreen.apk][system]
<6>[ 35.463634] [FD216][PID=531][HtcLockScreen.apk][system]
<6>[ 35.463757] [FD217][PID=531][HtcLockScreen.apk][system]
<6>[ 35.463818] [FD218][PID=615][][pipe:]
<6>[ 35.463879] [FD219][PID=615][][pipe:]
<6>[ 35.464001] [FD220][PID=615][[eventpoll]][anon_inode:]
<6>[ 35.464062] [FD221][PID=616][][pipe:]
<6>[ 35.464184] [FD222][PID=616][][pipe:]
<6>[ 35.464245] [FD223][PID=616][[eventpoll]][anon_inode:]
<6>[ 35.464306] [FD224][PID=437][GoogleBackupTransport.apk][system]
<6>[ 35.464459] [FD225][PID=437][][socket:]
<6>[ 35.464520] [FD226][PID=701][ashmem][dev]
<6>[ 35.464642] [FD227][PID=617][ashmem][dev]
<6>[ 35.464703] [FD228][PID=531][ion_share_fd][anon_inode:]
<6>[ 35.464764] [FD229][PID=531][genlock][anon_inode:]
<6>[ 35.464886] [FD230][PID=531][ion][dev]
<6>[ 35.464947] [FD231][PID=531][genlock][dev]
<6>[ 35.465008] [FD232][PID=617][ashmem][dev]
<6>[ 35.465130] [FD233][PID=885][][pipe:]
<6>[ 35.465191] [FD234][PID=429][][pipe:]
<6>[ 35.465283] [FD235][PID=429][][pipe:]
<6>[ 35.465374] [FD236][PID=617][ashmem][dev]
<6>[ 35.465466] [FD237][PID=806][][pipe:]
<6>[ 35.465527] [FD238][PID=806][][pipe:]
<6>[ 35.465649] [FD239][PID=885][][pipe:]
<6>[ 35.465710] [FD240][PID=885][[eventpoll]][anon_inode:]
<6>[ 35.465832] [FD241][PID=617][ashmem][dev]
<6>[ 35.465893] [FD242][PID=418][][pipe:]
<6>[ 35.465954] [FD243][PID=418][][pipe:]
<6>[ 35.466076] [FD244][PID=531][ion_share_fd][anon_inode:]
<6>[ 35.466137] [FD245][PID=531][genlock][anon_inode:]
<6>[ 35.466229] [FD246][PID=531][genlock][dev]
<6>[ 35.466351] [FD247][PID=418][Browser.apk][system]
<6>[ 35.466412] [FD248][PID=429][][pipe:]
<6>[ 35.466534] [FD249][PID=429][][pipe:]
<6>[ 35.466595] [FD250][PID=418][Calendar.apk][system]
<6>[ 35.466656] [FD251][PID=429][][pipe:]
<6>[ 35.466778] [FD252][PID=701][][pipe:]
<6>[ 35.466870] [FD253][PID=701][][pipe:]
<6>[ 35.466931] [FD254][PID=701][[eventpoll]][anon_inode:]
<6>[ 35.467053] [FD255][PID=701][][socket:]
<6>[ 35.467144] [FD256][PID=705][][pipe:]
<6>[ 35.467205] [FD257][PID=705][][pipe:]
<6>[ 35.467327] [FD258][PID=705][[eventpoll]][anon_inode:]
<6>[ 35.467419] [FD259][PID=701][][socket:]
<6>[ 35.467480] [FD260][PID=706][][pipe:]
<6>[ 35.467602] [FD261][PID=706][][pipe:]
<6>[ 35.467663] [FD262][PID=706][[eventpoll]][anon_inode:]
<6>[ 35.467785] [FD263][PID=704][][pipe:]
<6>[ 35.467846] [FD264][PID=704][][pipe:]
<6>[ 35.467907] [FD265][PID=704][[eventpoll]][anon_inode:]
<6>[ 35.468029] [FD266][PID=701][][pipe:]
<6>[ 35.468090] [FD267][PID=701][][pipe:]
<6>[ 35.468151] [FD268][PID=701][diag][dev]
<6>[ 35.468274] [FD269][PID=437][settings.db-wal][data]
<6>[ 35.468335] [FD270][PID=437][databases][data]
<6>[ 35.468426] [FD271][PID=784][][pipe:]
<6>[ 35.468518] [FD272][PID=437][htcCheckin.db][data]
<6>[ 35.468609] [FD273][PID=784][][pipe:]
<6>[ 35.468670] [FD274][PID=784][[eventpoll]][anon_inode:]
<6>[ 35.468792] [FD275][PID=429][][pipe:]
<6>[ 35.468853] [FD276][PID=418][HtcContacts+CRC_VIE_EVA_ENR_PRO_S40.apk][syst
em]
<6>[ 35.468976] [FD277][PID=437][GoogleBackupTransport.apk][system]
<6>[ 35.469037] [FD278][PID=437][GoogleBackupTransport.apk][system]
<6>[ 35.469159] [FD279][PID=418][HtcMusic.apk][system]
<6>[ 35.469220] [FD280][PID=418][HtcNotes.apk][system]
<6>[ 35.469342] [FD281][PID=418][Mail.apk][system]
<6>[ 35.469403] [FD282][PID=418][Message+CRC_1.apk][system]
<6>[ 35.469525] [FD283][PID=418][Music2.apk][system]
<6>[ 35.469586] [FD284][PID=418][PDF_Viewer_F_A.apk][system]
<6>[ 35.469647] [FD285][PID=418][PureC_ApplicationsProvider.apk][system]
<6>[ 35.469769] [FD286][PID=418][Settings.apk][system]
<6>[ 35.469830] [FD287][PID=418][Twitter.apk][system]
<6>[ 35.469952] [FD288][PID=418][VoiceSearch.apk][system]
<6>[ 35.470044] [FD289][PID=418][Watch.apk][system]
<6>[ 35.470135] [FD290][PID=418][YouTube.apk][system]
<6>[ 35.470227] [FD291][PID=418][com.android.vending-1.apk][data]
<6>[ 35.470349] [FD292][PID=418][com.google.android.apps.maps-1.apk][data]
<6>[ 35.470410] [FD293][PID=418][com.google.android.gm-1.apk][data]
<6>[ 35.470532] [FD294][PID=418][com.google.android.videos-1.apk][data]
<6>[ 35.470593] [FD295][PID=418][com.google.android.apps.books-1.apk][data]
<6>[ 35.470715] [FD296][PID=418][com.yellowpages.android.ypmobile-1.apk][data]

<6>[ 35.470837] [FD297][PID=418][com.twitter.android-1.apk][data]
<6>[ 35.470898] [FD298][PID=418][com.quoord.tapatalkxda.activity-1.apk][data]
<6>[ 35.471020] [FD299][PID=418][net.zedge.android-1.apk][data]
<6>[ 35.471081] [FD300][PID=418][com.handcent.nextsms-1.apk][data]
<6>[ 35.530352] [FD] 301 files print end
<6>[ 36.954768] genlock: genlock_release_lock: Releasing a handle that still h
olds lock (2)
<6>[ 36.955012] mdp4_overlay_pipe_free: pipe=c0c81828 ndx=2 stage 4 mixer 0
<6>[ 36.955898] genlock: genlock_release_lock: Releasing a handle that still h
olds lock (2)
<4>[ 36.963467] mdp4_overlay_update_layers: unstaging pipe ndx=2
<4>[ 36.963558] mdp4_overlay_update_layers: mask=0000F000 new layermixer_cfg=0
0000132
<6>[ 37.272943] msm_etb msm_etb.0: etb disabled
<6>[ 37.273035] msm_tpiu msm_tpiu.0: tpiu disabled
<6>[ 37.276148] msm_etb msm_etb.0: etb enabled
<6>[ 37.276239] msm_funnel msm_funnel.0: funnel port mask 0x3 enabled
<4>[ 37.276545] ------------[ cut here ]------------
<4>[ 37.276636] WARNING: at /home/aa/Project/Evita_ATT_WWE_ICS_CRC_Stable_2549
31/kernel/arch/arm/mach-msm/qdss-ptm.c:250 ptm_trace_enable+0x3b8/0x450()
<4>[ 37.276758] timeout while clearing prog bit
<4>[ 37.276880] Modules linked in: prima_wlan(P)
<4>[ 37.277094] [<c010c744>] (unwind_backtrace+0x0/0x12c) from [<c0179aec>] (w
arn_slowpath_common+0x4c/0x64)
<4>[ 37.277247] [<c0179aec>] (warn_slowpath_common+0x4c/0x64) from [<c0179b84>
] (warn_slowpath_fmt+0x2c/0x3c)
<4>[ 37.277674] [<c0179b84>] (warn_slowpath_fmt+0x2c/0x3c) from [<c011ba54>] (
ptm_trace_enable+0x3b8/0x450)
<4>[ 37.277826] [<c011ba54>] (ptm_trace_enable+0x3b8/0x450) from [<c011bdb8>]
(ptm_write+0x180/0x418)
<4>[ 37.277887] [<c011bdb8>] (ptm_write+0x180/0x418) from [<c021dbb4>] (vfs_wr
ite+0xac/0x134)
<4>[ 37.278040] [<c021dbb4>] (vfs_write+0xac/0x134) from [<c021dce8>] (sys_wri
te+0x3c/0x68)
<4>[ 37.278162] [<c021dce8>] (sys_write+0x3c/0x68) from [<c0105e60>] (ret_fast
_syscall+0x0/0x30)
<4>[ 37.278284] ---[ end trace 3e69383386a66a84 ]---
<4>[ 37.278528] ------------[ cut here ]------------
<4>[ 37.278620] WARNING: at /home/aa/Project/Evita_ATT_WWE_ICS_CRC_Stable_2549
31/kernel/arch/arm/mach-msm/qdss-ptm.c:250 ptm_trace_enable+0x3b8/0x450()
<4>[ 37.278773] timeout while clearing prog bit
<4>[ 37.278834] Modules linked in: prima_wlan(P)
<4>[ 37.279047] [<c010c744>] (unwind_backtrace+0x0/0x12c) from [<c0179aec>] (w
arn_slowpath_common+0x4c/0x64)
<4>[ 37.279261] [<c0179aec>] (warn_slowpath_common+0x4c/0x64) from [<c0179b84>
] (warn_slowpath_fmt+0x2c/0x3c)
<4>[ 37.279383] [<c0179b84>] (warn_slowpath_fmt+0x2c/0x3c) from [<c011ba54>] (
ptm_trace_enable+0x3b8/0x450)
<4>[ 37.279505] [<c011ba54>] (ptm_trace_enable+0x3b8/0x450) from [<c011bdb8>]
(ptm_write+0x180/0x418)
<4>[ 37.279627] [<c011bdb8>] (ptm_write+0x180/0x418) from [<c021dbb4>] (vfs_wr
ite+0xac/0x134)
<4>[ 37.279719] [<c021dbb4>] (vfs_write+0xac/0x134) from [<c021dce8>] (sys_wri
te+0x3c/0x68)
<4>[ 37.279841] [<c021dce8>] (sys_write+0x3c/0x68) from [<c0105e60>] (ret_fast
_syscall+0x0/0x30)
<4>[ 37.279963] ---[ end trace 3e69383386a66a85 ]---
<6>[ 37.280054] msm_ptm msm_ptm.0: tracing enabled
<6>[ 37.291255] msm_etb msm_etb.0: etb dumped
<6>[ 37.291316] msm_etb msm_etb.0: etb disabled
<6>[ 37.295406] msm_funnel msm_funnel.0: funnel port mask 0x3 disabled
<6>[ 37.298489] msm_ptm msm_ptm.0: tracing disabled
<6>[ 37.341614] [PM] CPU1: msm_pm_power_collapse: change clock rate (old rate
= 0)
<6>[ 37.343293] mdp4_overlay_req2pipe: pipe=c0c81828 ndx=2 num=1 zorder=4 mixe
r 0 format = 9
<3>[ 37.707187] l2cap_sock_connect: failed -115
<6>[ 38.011353] [WLAN] Set country code: US
<6>[ 38.071356] mdp4_overlay_pipe_free: pipe=c0c81a40 ndx=3 stage 2 mixer 0
<6>[ 38.071600] mdp4_overlay_pipe_free: pipe=c0c81c58 ndx=4 stage 3 mixer 0
<6>[ 38.071753] mdp4_overlay_pipe_free: pipe=c0c81828 ndx=2 stage 4 mixer 0
<4>[ 38.072028] mdp4_overlay_update_layers: unstaging pipe ndx=3
<4>[ 38.072028] mdp4_overlay_update_layers: unstaging pipe ndx=4
<4>[ 38.072028] mdp4_overlay_update_layers: unstaging pipe ndx=2
<4>[ 38.072058] mdp4_overlay_update_layers: mask=0000F0FF new layermixer_cfg=0
0000100
<6>[ 38.873920] mdp4_overlay_req2pipe: pipe=c0c81a40 ndx=3 num=2 zorder=2 mixe
r 0 format = 9
<6>[ 38.885609] mdp4_overlay_req2pipe: pipe=c0c81c58 ndx=4 num=3 zorder=3 mixe
r 0 format = 9
<6>[ 38.888600] mdp4_overlay_req2pipe: pipe=c0c81828 ndx=2 num=1 zorder=4 mixe
r 0 format = 9
<3>[ 39.689516] qtaguid: iface_stat: stat_update() rmnet0 not found
<3>[ 39.693148] qtaguid: iface_stat: stat_update() rmnet0 not found
<6>[ 41.600793] call alarm, type 2, func alarm_triggered+0x0/0xa0, 41568000000
(s 41568000000)
<7>[ 42.714695] wlan0: no IPv6 routers present
<6>[ 43.281794] call alarm, type 2, func alarm_triggered+0x0/0xa0, 43249000000
(s 43249000000)
<3>[ 43.849412] l2cap_sock_connect: failed -115
<3>[ 49.018159] l2cap_sock_connect: failed -115
<6>[ 49.228933] call alarm, type 3, func alarm_triggered+0x0/0xa0, 0 (s 0)
shell@android:/ $

---------- Post added at 06:47 PM ---------- Previous post was at 06:46 PM ----------

BTW.....Thanks for all the hard work :)
 

MatinatorX

Member
Oct 17, 2008
46
42
Didn't work on my Rogers XL unfortunately. I noticed my directory structure is a little different than in the instructions. Your adb instructions say:
Code:
echo 0 > /sys/devices/system/cpu/cpu1/cpufreq/online
Following that path with a file explorer I discovered my device has no cpufreq directory. The file "online" is in the cpu1 folder itself.

SetCPU shows 1809 MHz as selectable but does not show any changes in clock speed when selected as both min and max. Can't see any difference in speed.

Dmesg log is attached. Help would be appreciated! Thanks!
 

Attachments

  • dmesg.txt
    132 KB · Views: 66

Tiffany84

Inactive Recognized Themer
Jul 27, 2010
6,280
3,323
Oh ya, love this guy. Had this same type of thing for the 3d. Thanks op.

Sent from my SPH-D710 using Xparent ICS Blue Tapatalk 2
 

coolbho3000

Retired Senior Recognized Developer
Dec 26, 2008
897
785
Didn't work on my Rogers XL unfortunately. I noticed my directory structure is a little different than in the instructions. Your adb instructions say:
Code:
echo 0 > /sys/devices/system/cpu/cpu1/cpufreq/online
Following that path with a file explorer I discovered my device has no cpufreq directory. The file "online" is in the cpu1 folder itself.

SetCPU shows 1809 MHz as selectable but does not show any changes in clock speed when selected as both min and max. Can't see any difference in speed.

Dmesg log is attached. Help would be appreciated! Thanks!
Yeah, I made a mistake in regards to the directory structure. My mistake - I edited the post to reflect the correct directory that online is in.

Your attached log seems to be taken too late in the boot up process. You have to take it immediately after boot up or else it won't catch the crucial line :( solidus175 too. The line should look similar to:

[ACPU] select_freq_plan: ACPU PVS: Nominal

Where Nominal can be Nominal, Fast, or Slow.

EDIT: You know what, I can just change all three tables. That shouldn't hurt anything. Will release an updated version of the module.
 
Last edited:
  • Like
Reactions: MatinatorX

solidus175

Member
Feb 2, 2010
40
2
Yeah, I made a mistake in regards to the directory structure. My mistake - I edited the post to reflect the correct directory that online is in.

Your attached log seems to be taken too late in the boot up process. You have to take it immediately after boot up or else it won't catch the crucial line :( solidus175 too. The line should look similar to:

[ACPU] select_freq_plan: ACPU PVS: Nominal

Where Nominal can be Nominal, Fast, or Slow.

EDIT: You know what, I can just change all three tables. That shouldn't hurt anything. Will release an updated version of the module.

Cool....Will wait for update. THANKS!
 

MatinatorX

Member
Oct 17, 2008
46
42
Worked awesome! Thank you very much. I created a script for ScriptManager with a homescreen shortcut to make things easier each boot. Overclocking does indeed feel significant, noticing a healthy boost in N64oid.

Edit: After about a half hour of gaming my XL is pretty toasty. Hoping the casing doesn't take on a different hue :p
 
Last edited:

blacklistedcard

Senior Member
Dec 30, 2010
885
174
Is there anyway to have the module load automatically when the device boots? Like a modules.conf

Sent from my HTC One X using XDA
 

Skizzy034

Senior Member
Mar 10, 2010
5,509
1,123
40
Amsterdam, NY
www.facebook.com
Worked awesome! Thank you very much. I created a script for ScriptManager with a homescreen shortcut to make things easier each boot. Overclocking does indeed feel significant, noticing a healthy boost in N64oid.

Edit: After about a half hour of gaming my XL is pretty toasty. Hoping the casing doesn't take on a different hue :p

What was the temp?

Sent from my HTC One X using XDA
 

Tiffany84

Inactive Recognized Themer
Jul 27, 2010
6,280
3,323
Do u have to use the perflock disabler because setcpu shows 1.8 but CPU spy only shows up to 1.5.

Sent from my HTC One X using Xparent ICS Blue Tapatalk 2
 

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    One XL/AT&T/Rogers One X/One S 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. It has also been confirmed to work on the One S (see this thread: http://xdaforums.com/showthread.php?t=1670904) and MIGHT work on the EVO 4G LTE.

    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:

    Screenshots
    one_x_oc_1%20.png
    one_x_oc_2.png


    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:
    Code:
    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.
    Code:
    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):
    Code:
    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:
    Code:
    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:
    Code:
    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. ;)
    1
    Sorry for being a noob but I don't understand how to do step 4 for restarting the thermald?

    As it currently stands the OC works but as soon as I restart the phone, the overclock goes away.
    1
    Didn't work on my Rogers XL unfortunately. I noticed my directory structure is a little different than in the instructions. Your adb instructions say:
    Code:
    echo 0 > /sys/devices/system/cpu/cpu1/cpufreq/online
    Following that path with a file explorer I discovered my device has no cpufreq directory. The file "online" is in the cpu1 folder itself.

    SetCPU shows 1809 MHz as selectable but does not show any changes in clock speed when selected as both min and max. Can't see any difference in speed.

    Dmesg log is attached. Help would be appreciated! Thanks!
    Yeah, I made a mistake in regards to the directory structure. My mistake - I edited the post to reflect the correct directory that online is in.

    Your attached log seems to be taken too late in the boot up process. You have to take it immediately after boot up or else it won't catch the crucial line :( solidus175 too. The line should look similar to:

    [ACPU] select_freq_plan: ACPU PVS: Nominal

    Where Nominal can be Nominal, Fast, or Slow.

    EDIT: You know what, I can just change all three tables. That shouldn't hurt anything. Will release an updated version of the module.
    1
    Is there anyway to have the module load automatically when the device boots? Like a modules.conf

    You can write a script and set it to run on boot with scriptmanager.

    I'll do another test when I get home from work to verify the temperature. Not enough battery left right now.
    1
    Doesn't work with the EVO LTE, Error message:

    adb shell
    sh-3.2# insmod /data/local/krait_oc.ko pll_l_val=67 vdd_uv=1300000
    insmod /data/local/krait_oc.ko pll_l_val=67 vdd_uv=1300000
    insmod: init_module '/data/local/krait_oc.ko' failed (Exec format error)

    Kernel info:
    adb shell cat /proc/version
    Linux version 3.0.8-01360-g3fd0422 (root@ABM032) (gcc version 4.4.3 (GCC) ) #1 S
    MP PREEMPT Sat Apr 28 05:10:07 CST 2012