[HTC One X] n3ocort3x:
banner by jonas2295​

==[ncx_3.14_AOSP]==

==[ncx_3.14_SENSE]==​

Based on HTC Source: 3.14.401.27​

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-314_v1[/B]
-initial release

[B]ncx_314_v3[/B]
-attempt to fix sound and bluetooth

[B]ncx_314_v4[/B]
- fixed audio

[B]ncx_314_v5[/B]
-fixed hotplugging (all governors should work now, all CPUS came online @ bench)
-added VOLUME WAKE (be sure to enable it in ROM too)
-fixed multitouch

[B]ncx_314_v6[/B]
-fixed cpu governor change issue
-all cpus use now the same governoDONT FLASH ON SENSEr
-added USB fastcharge

[B]ncx_314_v7[/B]
-added Voltage control
-GPU now @ 520 MHZ (please test), Also 484MHz and stock is added in code so i can compile in no time (plan to provide 3 versions)
-some compiler cleanups (only important for me, user aren´t affected from this)

[B]ncx_314_v8[/B]
- fixed GPU scaling, sorry guys now it scales up to 520 :) just tested

[B]ncx_314_v9[/B]
- raised gpu low freq to 250MHz
- enjoy a new level of UI smoothness :)

[B]ncx_314_v11_b[/B]
- added bfq I/O sched
- set bfq to default sched
- added cfq I/O sched
- added deadline I/O sched
- tweaked deadline

[B]ncx_314_v13[/B]
- fixed setting ondemand and bfq on boot
- patchset to fix light sensor issues on AOSP (thx Thömy)
- integrated s2w -> finally :p

[B]ncx_314_v13_c[/B]
- fixed starting apps and not booting issue

[B]ncx_314_v14[/B]
- enabled KSM
- AUDIO FM FIX from tbladen
- tweaked deadline more
- tweaked lowmemory killer

[B]ncx_314_v15[/B]
- fix button backlight lag (thx tbalden)
- UMS read-only mode fixed to Read-Write (Usb mass storage works correctly now, also here -> thx tbalden

[B]ncx_314_v16[/B]
- disabled interactive on early suspend (solves the issue that 2 different govs are used on resume)
- added n3ocold governor (peqasusq port)

[B]ncx_314_v16c[/B]
-solved reboot issue when switching to n30c0ld governor (thx max for teaching :) ) -> Attention: its still buggy, it stays on the freq thats online when switching (no up down scaling) [B]DONT SWITCH TO IT, ITS ONLY FOR ME AND MAX FOR DEBUGGING
-added smartmax governor from maxwen :)[/B]

[B]ncx_314_v16d[/B]
- fix to get cpu out of g mode in LP mode (thx for pm max)
- sound cleanups

[B]ncx_314_v17b[/B]
- replaced nv hotplugging with mpdecision (thx, showp-1984, maxwen)
- Disable OS check for the mass storage gadget, thx at thömy :)

[B]ncx_314_v18[/B]

- MERGE a pull request by LorD ClockaN:
- tegra_pcm -> supports audio up to 32 bit
- Spirit FM fix (untested)
- added smartdimmer (Tripnraver)
- updated graphics driver (Tripnraver)
- set core to 0,95V on LP1 (Tripnraver)

- added a GPU OC Interface (you are now able to choose ur GPU speed on your own)
- standard GPU clock is still 520 MHz (info how to change will be available in 3rd Post of this Thread)

[B]ncx_314_v20c_AOSP AND SENSE[/B]
-added SIO IO sched
-added ROW IO sched and set default (great perfromance)
-updated maxwens smartmax-gov to latest version
-UV´ed core_vdd (GPU,EMC,AVP, LP) -50mV by default as I did in old base

[B]ncx_314_v21_AOSP AND SENSE[/B]
- Added and enabled JRCU
- latest interactive governor from XMISTER (3.4 baseline + optimizations from XMISTER -> great Job, awesome dude :) )
- set smartmax a bit more aggressive (but still the best for battery)
- no more replug of fastcharge needed (thx maxwen)
- battery life should improove with this version while containing power also
- SENSE Ramdisk from latest RENOVATE ROM, AOSP RAMDISK from latest CM10.1 (every AOSP build use this atm)

[B]ncx_314_v21b_AOSP AND SENSE[/B]
- hopefully freezes and bootloops are gone

[B]ncx_314_v22_AOSP AND SENSE[/B]
- added CPU HARDCAP (seting freq with every app works now), thx to maxwen, xmister, nik3r, kozmikkick, showp-1948, faux, TripnRaver
- added ZRAM
- removed buggy governors perfromance and powersave
- switch from KSM to UKSM
- slow button backlight notification patch from tbalden and thoemy out of gerrit :)

[B]ncx_314_v23_AOSP AND SENSE[/B]
-set bootup freq to 1300 MHZ (best for smoothness and power)
-switched to CPUQUIET hotplugging
-enabled SWAP and ZRAM (double checked both now)
- be sure to run this script for working SWAP and ZRAM (thx again Kozmikkick): [url]http://d-h.st/tIH[/url] place it in etc/init.d folder or run it manually

[B]ncx_314_v24b_AOSP AND SENSE[/B]
-updated wifi drivers to 03.SP3 (thx TI :p, and kozmickkick for finding out )
-added touchdemand governor
-added intellidemand governor
-gave a bit more responsivness to intellidemand
-added sysfs interface for changin min audio freq while screen on (for the stutter guys) (thx maxwen)
-cpuquiet: added LP hysteresis and logging (thx maxwen)
-cpuquiet: LP hysteresis update (thx maxwen)
- fixed missing I/O Scheds

[B]ncx_314_v25c_AOSP[/B]
- added batterymax governor (smartmax governor with xtreme battery settings)
- dont excpect huge perfromance from batterymax its only for battery
- patched to 3.18 source (still need feedback about WIFI on sense)

special thanks here to maxwen... OneX wouldnt be that way without this guy !

[B]ncx_314_v26_AOSP and SENSE[/B]
- updated video drivers from Tegra Reference (thx for commits xmister and maxwen), should fix video on SENSE
- entropy tweaks :D
- some stability fixes
- try to fix the very rare spinlock bug

[B]n3okernel_v29_AOSP and SENSE[/B]

- audio bt freq boost to 204 MHz
- audio 2 bt sysfs interface (ported from maxwen bcm chip)
- more responsivenes for batterymax
- reduced Qos freq from 910 to 500
- reduced balance level from 60 to 55 (needs testing)
- more aggressive tresholds for EMC (MEM controller) and AVP (Audio Video Processor)
- added early suspend driver to ondemand governor (original implementation by showp-1984)
- fixed min audio sysfs interface for SENSE users
- revert to older wifi drivers for SENSE users (AOSP still has newer :p)
- removed pegasusq governor until debugged
- add and use gmode force (cpuquiet)
- balance play arounds as Tun reported audio lags to me
- renamed kernel to n3okernel instead of ncx_314
- page writback: patch disables the writeback function on screen is on, back when the screen is off to flush all the dirty pages.
- added sysfs interface to choose max LP core freq
- bunch of cleanups, cleanups and even more cleanups

[B]n3okernel_v31d_AOSP and SENSE[/B]

- set readahead to 128kb (better performance)
- button backlight sysfs interface from XMISTER (thx man)
- smartmax updates
- touchdemand updates
- builded with linaro toolchain and its optimizations
- performance and smoothness updates (thx xmister for the reworked dvfs tables, they work better on lower freqs we feel)
- BLN fix
[B]n3okernel_v33_AOSP and SENSE[/B]
- backlight: enable hidden sysfs for color enhance
- Set BLN max value to obey button brightness value
- led: limit BLN brightness to button brightness
- leds:add custom option if slow blink brightness should be limited to button brightness - default is true
- making touchpoke working :) thx maxwen
- smartmax updates

[B]n3okernel_v34_AOSP and SENSE[/B]
- updated smartmax to latest version and all its features :) thx maxwen
- Sense has new Wifi drivers now (report back, if its not working again i revert)
- updates to staging / android

[B]n3okernel_v35_AOSP and SENSE[/B]
- updated bfq sched to v6
- new hashtable from maxwen
- SENSE: BLN should be fixed now, please report back

[B]n3okernel_v36_AOSP and SENSE[/B]
-reverted some spinlock stuff
-proper fastcharge fix (maxwen)

[B]n3okernel_v37_AOSP and SENSE[/B]
- fastcharge fixed (thx maxwen)
- SENSE: reverted multitouch fix, so no more incoming call freeze
[B]n3okernel_v37_SENSE_CALIBRATION_FIX[/B]
-use xmisters synaptics_3200.c with sysfs control from maxwen, thanks buddys :)

[B]ncx_314_v38_AOSP AND SENSE[/B]
- added Double TAP to wake (double tap screen anywhere 2 times to wake device, works only on screen off... lol)
- unfortunatley AOSP only . I hope i get it working on SENSE the next days

[B]ncx_314_v39_AOSP AND SENSE[/B]
-fixup s2w
-revert JRCU (shoud fix deadlocks)

CHANGELOG LATEST VERSION:

ncx_314_v40_AOSP AND SENSE

-leds: fix currents interface

-block: BFQ update to v6r1

-leds: added lux interface and cleanup

-tegra: baseband: added missing mutex_unlock for error cases

-lowmemorykiller: use version from grouper

-touchpad: remove psensor usage if not needed (this probably fixes sense call freeze issues)

-AUTO-BLN should be fixed now... really :p

ncx_314_v41_AOSP AND SENSE

-fixed f*** wifi

ncx_314_v42_AOSP AND SENSE

-reverted psensor patch

-AOSP ramdisk updated

ncx_314_v44_AOSP AND SENSE

-import of franciscofrancos hotplug control with some small adjustments :)

Known issues:

nothing reported :)

Download Kernel & Modules

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

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

AOSP (CM, AOKP, PA,...) DOWNLOAD LINKS

n3okernel_v44 BOOT.IMG

n3okernel_v44: MODULES

DONT repack kernel, u will loose stuff necessary for DT2W to work :) The RAMDISK should boot on every AOSP based ROM in our section

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

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

SENSE DOWNLOAD LINKS

n3okernel_v44_FIX BOOT.IMG

n3okernel_v44: MODULES

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

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

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 ONE X Android Development Section!

Or (even is easier) go to TheDroidfanatic´s ncx repack Thread (Big THX) : LINK

Howto install:

-) 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[/SIZE][/FONT]

Github, GPL, XDA RULES

To be FULLY on the safe side now, full GPL and XDA compliance ;)

LINK TO THE REPO USED FOR COMPILING

LINK TO GLOBAL GITHUB/USER IN CASE SOMEONE WILL HAVE A LOOK ON MY OTHER REPOS

clicking is way easier then deleting a few chars out of the url bar.. isnt it ?? ;)

Toolchain used: arm-a9-eabi, self made (maxwen)

Defconfig to use: ap33_android_cpuquiet_defconfig

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

CREDITS

[B]maxwen [/B]for changing governor solution, sound fix, s2w port, fast charge and great support (awesome buddy)
[B]nik3r [/B]for s2w port
[B]tripnraver [/B]for volume fix
[B]faux123 [/B]for voltage control
[B]Xmister [/B]for pointing me in right direction for hotplug solution, s2w commit
[B]whole ICJ Team[/B] which support me where they can, you guys rock
[B]pabx [/B]from AOSP ROM, [B]tbalden [/B]from CM10.1 ROM (great guys, help where they can)
[B]showp-1984[/B] for great support, s2w and getting me started on Github
[B]franciscofranco [/B]for GPU OC interface of old base
[B]TUN_SD[/B] for providing our awesome Server
[B]Everyone [/B]whos helping in an other way (contributors, Thread residents)

​