[HTC One X] lyapota:
​

src GitHub link.

CREDITS

step by step i'm porting works this guys.

maxwen (most of code)

n3ocort3x, Xmister, Alex-V, faux123

IMAGES

CHANGE LOG

[B]Ver 023[/B]
+ added MV kernels - middle undervolting from the box (CORE -25 mV/CPU -50 mV)
- complette removed LS seria.
[SIZE=1][COLOR=navy]full kernel set now: LM, LM_UV, LM_MV, LQ, LQ_UV, LQ_MV, LI, LI_UV, LI_MV[/COLOR][/SIZE]
[B]aroma[/B]
+ added value 10 backlight button brightness

[B]Ver 022[/B] (renew)
+ the golden kernel seria LM UV -50 from the box, return back in full team UV - LM, LQ, LI, LS look in ZIP with uv predicate.
- removed quick core uv option as incompatible with UV -50 kernels, the core_millivolts stay.
[B]aroma[/B]
* fixed mistakes.
+ added eco mode option
+ added limit CPU max freq option
+ account UV -50 kernels features

[B]Ver 021[/B]
+ added intelli hot plug (faux123), LI seria in ZIP
* restored Best trade hot plug (HTC), LS seria in ZIP

[B]Ver 020[/B]
* fixed bluetooth for AOSP, checked with CM 10.2.1

[B]Ver 019[/B]
+ restored frandom compiled as separate module
* restored /sys/kernel/tegra3_dvfs/core_millivolts
[SIZE=1][COLOR=#0000ff]getter show CPU clock freq with CPU voltage, setter takes one digital value: 25 or -25 or -50 etc. Entered value applying to all CPU voltage table.[/COLOR][/SIZE]
+ added core voltage attribute /sys/kernel/tegra3_dvfs/core_millivolts
[SIZE=1][COLOR=blue]getter show GPU clock freq with CORE voltage, setter takes one digital value: 25 or -25 or -50 etc. Entered value applying to all CORE voltage table.[/COLOR][/SIZE]
+ added quick core voltage atrribute /sys/kernel/tegra3_dvfs/core_quick_mv
[SIZE=1][COLOR=blue]0 - stock mV table, 1 set -25 mV, 2 set -50 mV into core_millivolts[/COLOR][/SIZE]
* compiled two kernel files LM and LQ with stock voltage
[B]aroma[/B]
+ added undervolting option to CORE and CPU voltage.
* restored frandom option
* in zip file two kernel images LM and LQ seria packed with Sense ramdisk.
[COLOR=blue]To get AOSP repack appropriate sense kernel into AOSP image.[/COLOR]

[B]Ver 018 (renew)[/B]
* DVFS GPU table 484 Mhz set as default
- removed frandom device
[B]aroma[/B]
+ default GPU OC 484 Mhz
- removed endeavoru model checks before install
- removed rescue voltage
* in zip file now four kernels: LM seria 50 and 25 mV undervolted, LQ seria 50 and 25 mV undervolted.
[COLOR=blue]To get AOSP repack appropriate sense kernel into AOSP image.[/COLOR]

[B]Ver 017 [/B](renew)
* undervolted -50mV for all freq table from the box
* enhanced gpu_quick_oc to three position. 0 - 416 Mhz(default), 1 - 484 Mhz, 2 - 520 Mhz
* no_edp_limit reworked and renamed to disable_edp_limit. Now applied values from init.d without losing after.
+ added gaming governor
+ compiled with linaro 4.7 Cortex A9 toolchain with appropriated compiler options
+ added frandom and erandom char devices
[SIZE=1][COLOR=blue]56frandom script replace random with frandom and urandom with erandom.[/COLOR][/SIZE]
* installation via aroma installer
+ kernel repacked with AISP and CM ramdisks (tnx @[URL="http://xdaforums.com/htc-one-x/member.php?u=4898058"][COLOR=#d38339]audahadi[/COLOR][/URL])
[SIZE=1][COLOR=blue]Not sure it working - need check.[/COLOR][/SIZE]

[B]Ver 016[/B]
- reverted to stock variant button backlight - removed blink virtual key supports, button_brightness stay here.
+ swap support
+ reworked init.d/55sw2wake
+ reworked min scale frequnce same as max
+ compiled with linaro 4.7
* fixed not applied CPU voltage
* fixed abnormal battery consuming
* GPU OC set default to 484 Mhz
+ added gpu_quick_oc to 520 Mgz

[B]Ver 015[/B]
* user policy max freq sync vs scaling max.
+ applied fix for proximity sensor with not enough light.
+applyed wi-fi patch.

To init.d/55sw2wake added
------------------------
##Blink VK with events
echo "0" > /sys/class/leds/button-backlight/auto_bln;
#Actual anly for cpuquiet LQ seria
#echo "0" > /sys/module/cpu_tegra/parameters/disable_lp_mode_on_resume;

[B]Ver 014[/B]
* Remade no_edp_limit attribute. Now can be applied from init.d

[B]Ver 013[/B]
+ added Backlight button brightness
[SIZE=1][COLOR=blue]/sys/class/leds/button-backlight/button_brightness (0-255)[/COLOR][/SIZE]

[B]Ver 012[/B]
* UV-mv table
[SIZE=1][COLOR=blue]/sys/kernel/tegra3_dvfs/cpu_millivolts[/COLOR][/SIZE]
* GPU OC 520 persist
[SIZE=1][COLOR=blue]removed gpu_oc and quick_gpu_oc attributies (not needed),[/COLOR][/SIZE]
[SIZE=1][COLOR=blue]but forgot to remove commented string gpu_quick_oc from init.d/sw2wake[/COLOR][/SIZE]
- Removed intellidemand, ondemand1 and touchdemand governors
[SIZE=1][COLOR=blue]old release not compatible with new kernel, may be i'm add reworked versions latter[/COLOR][/SIZE]
* Thermal throttle limitation
[SIZE=1][COLOR=blue]to disable /sys/module/cpu_tegra/parameters/no_thermal_throttle_limit (1-disable control)[/COLOR][/SIZE]
[SIZE=1][COLOR=red]i'm highly do not recommending touch it[/COLOR][/SIZE]
[SIZE=1][COLOR=#ff0000]thermal throttle prevent cpu damage from overheating more then 85 deg by C[/COLOR][/SIZE]
* EDP limitation
[SIZE=1][COLOR=blue]to disable /sys/module/cpu_tegra/parameters/no_edp_limit (1-disable max CPU freq limits in multi cpu mode)[/COLOR][/SIZE]
[SIZE=1][COLOR=#0000ff]EDP set freq limits dinamicalky decide battery level and cpu temperature below 85 deg by C[/COLOR][/SIZE]
* perf mode for awake
[SIZE=1][COLOR=blue]/sys/module/cpu_tegra/parameters/perf_early_suspend (1-enable perfomance mode in early suspend mode)[/COLOR][/SIZE]
+ Support HTC power save mode
[SIZE=1][COLOR=blue]/sys/htc/power_save (1 - enable power save mode 1.3 Ghz cpu limitation)[/COLOR][/SIZE]
[SIZE=1][COLOR=#ff0000]controlled by ROM HTC power manager no need touch it[/COLOR][/SIZE]
+ Support HTC media boost
[SIZE=1][COLOR=blue]Don't investigate it. In code it some alghoritm to boost cpu freq for audio and video processing. looks like controled by ROM[/COLOR][/SIZE]
+ Support HTC ril boost
[SIZE=1][COLOR=blue]Boost cpu freq in deep sleep mode for ril modem(incoming call)[/COLOR][/SIZE]

[B]Ver 011[/B] - died in beta stage

[B]Ver 010[/B]
+ GPU OC 520 optional in init.d/sw2wake
+ MP Decision instead HOTPLUG
+ IO Schedules (bfq, row, sio)
+ Governors (touchdemand, ondemand1)

[B]Ver 009[/B]
- GPU 520 removed
* do over again dt2w
* fixed stuck after deep sleep
* fixed vk responsible for Venom users

[B]Ver 008[/B]
+ Voltage control
+ GPU 520
+ smartmax, smartmax_eps governors.

[B]Ver 007[/B]
*Code revised and cleaned
*Pocket protection rewrited, now it work as expected
-Dead area by default revert back to 0

[B]Ver 006[/B]
+s2w Added pocket protection
[SIZE=1][COLOR=blue]/sys/android_touch/pocket_detect, enabled by default in 55sw2wake[/COLOR][/SIZE]
+dt2w Added dead area
[SIZE=1][COLOR=blue]/sys/android_touch/s2w_double_tap_dead_area, 1780 by default in 55sw2wake (dt2w work only in virtual key panel)[/COLOR][/SIZE]
[SIZE=1][COLOR=blue]put 0 for dt2w works on all screen and not only on virtual keya area.[/COLOR][/SIZE]

HOW TO FLASH

For S-OFF

1. Download ZIP file and put to SD card

2. Flash ZIP from recovery

For S-ON

1. Download ZIP file and extract kernel\[what you need].img to Kernel Flasher fastboot dirrectory on the PC

2. Rename .img file to boot.img

2. Put ZIP file to SD card and flash from recovery

3. Reboot to bootloader and flash kernel by Kernel Flasher from PC

Downloads post #2