[HTC One X] n3ocort3x:
==[ncx_217_v13_AOSP]==

==[ncx_217_v13_SENSE]==​

Based on HTC Source: 2.17.401.2​

HOWTO REPORT ERRORS -> THE RIGHT WAY

-) YOU need to provide me the following information, otherwise I´m not able to help:

-) On wich ROM you are

-) Wich Kernel and wich modules did you flash

-) ALWAYS provide a last_kmsg AND a logcat (you dont know how to do that ? Use google or search here in this forum, its posted nearly everywhere)

-) posts like "XYZ feature on ROM XYZ does not work" will be ignored (what should i do with that information ???)

CHANGELOG (old versions) & KERNEL FEATURES

[B]ncx-217_v1[/B]
- initial release
- fixes from showp1984 to stabilize the Kernel

[B]ncx-217_v2[/B]
- fix cpu frequencies usage below 340Mhz
- fixed some compiler warnings
- allow 51 MHz screen usage (thx showp1984)
- fix bluetooth pairing (updated drivers, thx TEAMNDVRU)
- unity games on JB builds are now working (thx TEAMNDVRU)
- added V(r) I/O scheduler (big thx kholk)
- enabled deadline scheduler
- added some information "ONDEMAND TWEAKS" to OP
-default I/O scheduler: deadline
- ENABLED Voltage Control (faux´s work, I only integrated it ! send him a beer, awesome Job)
- some fixes (compiler errors)
- set deadline as default sheduler
- deadline tweaks
- added XZ compression method so files will be smaller
- set ondemand a bit more aggressive
- some other stuff (check github)
- optimized for speed instead of Size (thx LorDClockaN)
- fix for multitouch games (tbalden, awesome stuff, awesome guy)
- enabled KSM
- GPU clocked now @ 520MHz (BIG THX to KHOLK AND FAUX, brilliant work)
- added SIO (Simple I/O scheduler)
- added bfq v.4 scheduler
- added UKSM
- All cores can hit 1,5GHz (testing, temps are totally ok after 1 day of intensive testing)
- huge amount of fixups to LP Core by the one and only faux123 ! Big THX for that

[B]ncx-217_v3[/B]
-closed beta to fix wifi stuff on JB AOSP AOKP CM ROMS (Thanks to my testers)

[B]ncx-217_v4[/B]
-fixed WIFI issues on JB AOSP AOKP CM ROMS
-added Volume WAKE fix (be sure too send TripNraver a beer, he found out how)

[B]ncx-217_v4.1_SENSE[/B]
- fixed BLUETOOTH ISSUE on SENSE based ROMS

[B]ncx-217_v4.5_AOSP[/B]
-) freqs stick now on 1200, 1300, 1400, 1500 MHz
-) bootup freq set to 102 - 1200
-) fixed a bug where min freq showed up with 120MHz
-) removed usless HTC idle resume stuff
-) a few patches from Tegra reference git wich i forgot to mention before

[B]ncx-217_v4.5_SENSE[/B]
-) freqs stick now on 1200, 1300, 1400, 1500 MHz
-) bootup freq set to 102 - 1200
-) fixed a bug where min freq showed up with 120MHz
-) removed usless HTC idle resume stuff
-) a few patches from Tegra reference git wich i forgot to mention
-) add init.d support to RAMDISK
-) touchscreen: added back some stuff that i removed for AOSP version

[B]ncx-217_v.5_AOSP[/B]
-) removed a lot of usless HTC stuff (more than in alpha version)
-) fixed music lag on JB builds with ondemand governor
-) attempt to fix "crashing when changing to ondemand governor on JB builds"
-) [B]slightly [/B]undervolted and underclocked stuff wich is only accessible in source
-) ondemand changes to make it a bit more responsive

[B]ncx-217_v.5.5_AOSP[/B]
-) fixed multitouch gaming issues on AOSP ROMS (CM10, Domination), tested and working !
-) fix: SoD on JB builds (allready in changelog for v5 but forgot to mention it)
-) modified fallback freqs and mA
-) sudden battery drop after resume should be gone (still testing, provide feedback, cant promise anything)
-) battery status should be more accurate now (also, still testing, cant promise anything)
-) another round of governor playing arounds
-) uv and uc introduced in v5 seems to work and reslut in better battery life. not all my testers replied so far !
-) planed: add a comparison between battery life from AOSP_v4 to AOSP_5.5 as i made a lot of changes

[B]ncx-217_v.5.5_SENSE_ALPHA[/B]
-) modified fallback freqs and mA
-) sudden battery drop after resume should be gone (still testing, provide feedback, cant promise anything)
-) battery status should be more accurate now (also, still testing, cant promise anything)
-) another round of governor playing arounds
-) uv and uc introduced in v5 seems to work and reslut in better battery life. not all my testers replied so far !

[B]ncx-217_v.5.9_AOSP[/B]
-)removed GPU @ 520 the way faux did
-)implemented my own way for GPU freq changes
-)GPU clocks now on 540 MHz (for testing purposes)

and now the best:

[B]-) implemented a new governor -> n3ocold :D[/B]

[B]ncx-217_v.5.9.2_AOSP[/B]
-) changes to n3ocold governor to act more battery friendly
-) RAMDISK fixup (thx dekyyy, I´ve messed up something)
-) changes to tegra3-dvfs.c

[B]ncx-217_v6_AOSP[/B]
-) another play around with n3ocold governor (should be real smooth now)
-) added some stuff to it
-) GPU @ 550 MHz for testing purposes

[B]ncx-217_v.6_SENSE[/B]
-) removed GPU @ 520 the way faux did
-) implemented my own way for GPU freq changes
-) GPU clocks now on 540 MHz (for testing purposes)
-) implemented a new governor -> n3ocold :D
-) play around with n3ocold governor (should be real smooth now)
-) changes to tegra3-dvfs.c

[B]ncx-217_v7_AOSP[/B]
-) reverted back until ncx-v.5.9.2_AOSP
-) GPU clocks now on 520 again
-) n3ocold governor stays, no problems when you set the gov with SETCPU

[B]ncx-217_v7.2_AOSP[/B]
-) fixed lockscreen delay
-) fixed stuff in RAMDISK to work properly with Kernel settings (try not to repack my Kernel, IMPORTANT)
-) switching governors should now be no problem anymore even on Performance menue (IF you havent repacked)
-) If problem still exist -> switch with SETCPU

[B]ncx-217_v7.4_AOSP[/B]
-) fixed bt/gps toggle issue (thx showp1984)
-) added back a few Ramdisk tweaks, ondemand stays as default governor
-) GPU back to 520MHz

[B]ncx-217_v.7.3_SENSE[/B]
-) added working s2w support (ALL Credits to showp1984 -> its his work !)

[B]ncx-217_v7.5_AOSP[/B]
- stability fixes (showp1984)
- removed RIL boost to 1.5GHz (now we know why it stays some seconds on it) thx showp1984
- freaking n3ocold governor still crashes freaking ROM Control, but works on any other CPU app (still trying to solve it)
- removed htc stuff once more with feeling (thx Trip)

[B]ncx-217_v7.6_AOSP[/B]
-) added boostpulse to ondemand governor. Interessted how it works: [URL="https://github.com/n3ocort3x/endeavoru_2.17/commit/f6e5b4ac0b79b9b3a2c41796e9c6ed5ce6bf60a5"]LINK[/URL]
-) set ondemand sligtly more aggressive

[B]ncx-217_v8_AOSP_beta2_AOSP[/B]
-) fixed an NP oops (hopefully :))
-) lowered EMC,AVP,LP and VDD_CORE Volt
-) 1,5GHz on all 4 Cores is back (for those who need and want it)
-) changes to VR (Voltage regulator) (experimental)
-) Git will be pushed asap ! Sorry for the delay

[B]ncx-217_v8_AOSP_beta5_AOSP[/B]
-) reverted back to -50mV on EMC, AVP, LP and VDD_CORE
-) should now work for everyone (even the really crap Tegra revisions)
-) Ramdisk cleanups

[B]ncx-217_v8_SENSE_beta1_AOSP[/B]
-) reverted back to -50mV on EMC, AVP, LP and VDD_CORE
-) should now work for everyone (even the really crap Tegra revisions)
-) Ramdisk cleanups

[B]ncx-217_v9_AOSP_beta1_AOSP[/B]
-) introducing new cpu_g freq table
-) introducing new LP freq table
-) GPU now 484Mhz (testing purposes)
-) corrected voltages for new freq table

[B]ncx-217_v9_AOSP_beta2_AOSP[/B]
-)bugfix where the phone booted with 102Mhz instead of 100Mhz as min freq.

[B]ncx-217_v9_beta2_SENSE[/B]
-) introducing new cpu_g freq table
-) introducing new LP freq table
-) GPU now 484Mhz (testing purposes)
-) corrected voltages for new freq table
-)bugfix where the phone booted with 102Mhz instead of 100Mhz as min freq.

[B]ncx-217_v9_beta5_SENSE[/B]
-) fixed a silly derp I´ve made to the freq tables
-) new freqs look like this: 100, 150, 250, 300, 350, 400, 500 - 1500
-) removed the 200 freq in main core table as its barely used
-) maybe no more ondemand drama

[B]ncx-217_v9_beta5_AOSP[/B]
-) fixed a silly derp I´ve made to the freq tables
-) new freqs look like this: 100, 150, 250, 300, 350, 400, 500 - 1500
-) removed the 200 freq in main core table as its barely used
-) maybe no more ondemand drama

[B]ncx-217_v9_beta6_SENSE[/B]
-) attempt to fix music lag on ondemand (again again and again)

[B]ncx-217_v9_beta6_AOSP[/B]
-) attempt to fix music lag on ondemand (again again and again)

[B]ncx-217_v10_beta1_SENSE[/B]
-) optimization of own freq tables (LP, and cpu_g)
-) Undervoltage of LP Core to -125mV in extreme, -50mV in standard edition
-) values changed in cpufreq_ondemand to be a bit more battery friendly by default

[B]ncx-217_v10_beta1_AOSP[/B]
-) optimization of own freq tables (LP, and cpu_g)
-) Undervoltage of LP Core to -125mV in extreme, -50mV in standard edition
-) values changed in cpufreq_ondemand to be a bit more battery friendly by default

CHANGELOG LATEST VERSION:

ncx_217_v12_AOSP & ncx_217_v12_SENSE

-) back to old known freq table (51, 102, 204, 340 ... )

-) fixed high drain (7 - 8 % / hour) while listening to music

-) drain is now about 4 % / hour while listening to music

-) avp treshold patch out of Tegra reference (treshold up to 85)

-) pm.c patch out of tegra reference

-) no more "extreme undervolted" edition of kernel (for now)

ncx_217_v13_AOSP & ncx_217_v13_SENSE

-) update interactive to nexus 7 baseline (solves the 1200MHz bug on repacking)

Known issues:

You tell ! :D

Download Kernel & Modules

=====================================================================================================================

=====================================================================================================================

ncx_217_v13_SENSE STANDARD EDITION ===> BOOT.IMG

SENSE MODULES ===>STANDARD MODULES

ATTENTION: WIPE CACHE AND BATTERY STATS AFTER FLASHING

=====================================================================================================================

=====================================================================================================================

ncx_217_v13_AOSP STANDARD EDITION ===> BOOT.IMG

AOSP MODULES STANDARD EDITION ===> MODULES

ATTENTION: WIPE CACHE AND BATTERY STATS AFTER FLASHING

=====================================================================================================================

=====================================================================================================================

Repack needed ?

I always recommend to repack Kernel to the ROM you are using. Dont know how to repack ? There is an online repacker in HTX ONE X Android Development Section!

Howto install:

Additional Information: If you were coming from 1.29 base i highly recommend to reboot the system twice after flashing kernel and modules

-) boot into bootloader

-) fastboot erase cache

-) fastboot flash boot boot.img

-) fastboot erase cache

-) boot into recovery

-) wipe cache, dalvik and battery stats

-) flash modules from .zip

-) reboot into system

Github

Link for Sense Kernel, compiled with 4.4.3 toolchain, branch master

Link for AOSP, AOKP, CM Kerne, compiled with 4.4.3 toolchain, branch master

Disclaimer

-) I am not responsible for bricked devices

-) you do this on your own will

-) If you flash this, your warranty will be void

THANKS TO FOLLOWING BETA TESTERS:

-) nimrodity -> for his awesome job on music / bt streaming testing (now the LP Core consumes way less battery on it)

-) geko95gek -> for Sense / Renovate testing stuff -> awesome job (helped me with his bad Tegra Variant :p)

-) goku80 -> also for testing different stuff

-) DanteGR -> for Sense / Renovate testing stuff

-) TUN_SD, semdoc, Inzaghi75, Zlotin and everyone on ICJ helped me debugging-> for constantly testing stuff on ICJ for me !

Sorry if i forgot someone, if i did, please write me a pm, its way to late here ! :D

CREDITS

faux123 for his implementation of voltage control,gpu oc and all other stuff mentioned in changelog.

kholk for getting me into EP Team, i really owe you a lot mate, I hope i will have more time for EP in the future

showp1984 for his fixes to stabilize the kernel and for helping me getting started with compilation problems.

tbalden and mdeejay for providing the bluetooth fix on CM, and especially tbalden for answering my PM´s !

TripNraver for his awesome way to enable VOLUME WAKE !

franciscofranco for his way to remove silly HTC stuff for resume / suspend