[HTC One X+] maxwen:
Kernel for AOKP/AOSP 4.2.x and compatible roms and CM10.1

github:

https://github.com/maxwen/enrc2b-kernel-BLADE

download:

http://goo.im/devs/maxwen/BLADE

mirror:

http://www.mediafire.com/?68fgg63iebpba

Build 201307272344

Changelog:

-added S2W pocket protection - based on proximity sensor and light sensor

-fixed ondemand1 governor crash

Build 201307220013

Changelog:

-after rework load_stats is again the default cpuquiet governor :)

-input boost mediator - make sure cpu hotplugging is boosted before cpu freq

-fixes from upstream

Build 201307080025

Changelog:

-new cpuquiet governor load_stats - compared to rq_stats this uses CPU load instead of threads number - load_stats is the default governor

-added input boost to cpuquiet - cores will be brought up faster on touch events

-smartmax updates

Build 201306091244-3

this includes only 2 bugfixes no other changes

-broken wired HS button support

-failure to sync kernel modules when used together with AOKP 4.2.2

this is causing not working mobile data

Build 201306091244

Changelog:

-disable zcache

-use lowmemorykiller from grouper

-update to BFQ v6r1

-cleanup

Build 201305280126

Changelog:

-smartmax updates

-enable zcache - http://lwn.net/Articles/396467/ - thanks to bedalus for providing help

-cpuquiet hotplugging tweaks - faster core activation and faster LP mode switch

-touchscreen driver cleanup

-backlight handling cleanup

-GPU OC interface including "quick oc" switch

USE THIS AT YOUR OWN RISK!

using to high values can freeze the device! maximum value is 600MHz

by default there is NO GPU OC anymore - stock values are used

Get current GPU frequencies (in MHz)

cat cat /sys/kernel/tegra3_dvfs/gpu_oc
200 267 304 361 408 446 484 520 600

Set GPU frequencies - 9 values MUST be provided

echo "200 267 380 492 528 564 600 600 600" > /sys/kernel/tegra3_dvfs/gpu_oc

"quick oc" switch

echo 1 > /sys/kernel/tegra3_dvfs/gpu_quick_oc

will set the values to 200 267 380 492 528 564 600 600 600

echo 0 > /sys/kernel/tegra3_dvfs/gpu_quick_oc

will reset to the default 200 267 304 361 408 446 484 520 600

Build 201305062233

Changelog:

-S2W fixes

-switched from JRCU back to stock RCU to see if its the reason for some problems

Build 201305041517

Changelog:

-correct reset of RIL boost on incoming calls - BIG derp :)

-changing fast_charge is correctly reported to user-space

-correct cpufreq policy locking

-added "double tap to wake"

allows waking up the device by double tapping on the lower part of the screen - disabled by default

sysfs interface:

/sys/android_touch/s2w_allow_double_tap

enable/disable

/sys/android_touch/s2w_double_tap_barrier_y

default 1300 - y-barrier below that taps will be recognized

/sys/android_touch/s2w_double_tap_duration

default 150 - time in ms for minimal duration between the two taps

/sys/android_touch/s2w_double_tap_threshold

default 150 - threshold how much longer the duration can be then duration

For CM10.1 and AOKP you should be able to use this

updated version of "device options" - will be included in next ROM builds

http://cyano-rob.tuennerhoff-edv.de/Maxwen/EndeavoruParts.apk

Build 201304191544

Changelog:

-added 620LP - to enable use

echo 1 > /sys/module/cpu_tegra/parameters/enable_lp_oc

-smartmax:

-separated suspend_ideal_freq and awake_ideal_freq

-reduced sampling rate to 40ms

-cpuquiet improvements

-BFQ v6

-reverted arm spinlock changes - maybe solves the network stack crashes

-suspend delay disabled by default - to enable use

echo 1 > /sys/module/cpu_tegra/parameters/use_suspend_delay

-touchscreen calibration control enabled again by default

to fix the issue of somtimes "frozen" touch screen

if you experience muti touch issues disable it be using

echo 0 > /sys/android_touch/calibration_control

Build 201304100118

Changelog:

-reverted BFQ to v5.1 - v6 causes issues

-fixed screen not turning on on incoming calls

-cpuquiet governor rq_stats is now default

Build 201304060107

Changelog:

-faster response to touch events when in LP mode

-smartmax update - allow up ramps during boost

-delayed suspend boost - fixes most of the possible audio stuttering during

screen on/off sequence for players without own audio buffer handling

-new cpuquiet governor rq_stats

-fixed cpu num restriction handling

Build 201303280100

Changelog:

-added sysfs interface for button backlight brightness

e.g.

echo 30 > /sys/class/leds/button-backlight/button_brightness

default value is 63 possible values 1-255

-smartmax_eps finetuning

-suspend/resume tuning

-added max cpu 2 limit if using off-screen freq > 475

Build 201303220148

Changelog:

-added sysfs interface for A2DP min freq

echo 340000 > /sys/devices/platform/tegra_uart_brcm.2/a2dp_tuning_freq

-added support for AOA 2.0 (usb audio) - still WIP since this requires also a ROM part

-faster resume on screen on

-switched back to BFQ as default scheduler

Build 201303170221

Changelog:

-smartmax_eps finetuning

-added CPU UV interface - so you can now use apps like Trickster mod

to change CPU voltages

-use variant 4 CPU voltages by default also for variant 3

Build 201303131612

Changelog:

-added smartmax_eps governor

eps stands for "extreme power saving"

so this is a smartmax tuned for even less battery usage

-disabled blocking ramdom access (always use non-blocking urandom)

-arm spinlock tweaks taken from 3.8.2

-rwsem tweaks

Build 201303052312

Changelog:

-use ROW I/O scheduler as default - better performance

-switched to cpuquiet CPU hotplugging with - tweaked to get more LP time

-added uhid - required for BT HID devices (gamepads)

-fast_charge no need to replug cable after changed

-configurable screen of frequency limit if you have problems with default 475Mhz

echo "640000" > /sys/module/cpu_tegra/parameters/suspend_cap_freq

Attention: this will disable "automatic" LP lock during screen off

so think if you really need it

-configurable min audio frequency limit if you have problems with default 102Mhz

echo 204000 > /sys/module/snd_soc_tlv320aic3008/parameters/audio_min_freq

-fixed kernel for HDMI support - now works again on sense

AOSP issues are caused by the ROM currently

Build 201302241749

Changelog:

-smartmax: minor fixes

-added nvidia smartdimmer - based on grouper kernel

https://android.googlesource.com/ke...d75/arch/arm/mach-tegra/board-grouper-panel.c

more info on smartdimmer here

http://nvidia.custhelp.com/app/answers/detail/a_id/2271/~/what-is-nvidia-smartdimmer?

Disable smartdimmer:

echo "0" > /sys/devices/tegradc.0/smartdimmer/enable

-added T3 variant sysfs

To get your variant:

cat /sys/kernel/debug/t3_variant

-added JRCU

-added row and sio I/O scheduler

-some tegra3 tweaks from TripNRaVeR - big credits to him

-google and nvidia bug-fixes

Build 201302202247

Changelog:

-updated interactive governor

-updated smartmax governor

-fixed button backlight lags - thanks to Thömy

-"good" nvidia fixes are back

-core voltage UV disabled to see if cause the random freezes

-some tegra3 tweaks from TripNRaVeR - big credits to him

smartmax is now the default governor!

Build 201302161307

Changelog:

-smartmax fixes

-reverted nvidia video fixes cause they seem to cause random freezes

-added support of cpufreq scaling_max_freq API

so you can now use apps to set scaling_max_freq and it will stick

----------------------------------------------------------------------------------------------

"fast charger" support (allows "overruling" of automatic charger detection)

to enable:

echo "1" > /sys/devices/platform/htc_battery/fast_charge

4x1.7Ghz mode

To enable

echo "1" > /sys/module/cpu_tegra/parameters/enable_oc

S2W Configs:

Turn off:

echo "0" > /sys/android_touch/sweep2wake

Button panel locks to s2w after this distance:

/sys/android_touch/s2w_register_threshold

Screen turns on/off after this distance:

/sys/android_touch/s2w_min_distance

Direction independent(1 - Yes, 0 - No):

/sys/android_touch/s2w_allow_stroke

How to get your CPU variant (3 or 4)

cat /sys/kernel/debug/t3_variant

and look for the line

cpu_process_id => 3