FORUMS
Remove All Ads from XDA

[KERNEL][3.10.96] Cody Kernel ~ 07||02||2015 ~ REVAMPED

115 posts
Thanks Meter: 203
 
Post Reply Email Thread
FAQs:
1. My device rebooted or crashed, how can I help?
A: Get me /proc/last_kmsg on pastie.org.
2. Battery sucks, my device is not entering deep sleep. FIX PLOX!
A: Get the name of kernel (parital) wakelock that's keeping your device awake
4. Do I need to wipe anything when flashing this kernel?
A: No
5. Does this kernel has X or Y mod?
A: Learn to read, everything you need to know is in the features list, changelog or public repo.

downloads: mediafire
latest mirrors: d-h.st | mediafire
latest version: CodyKernel-Revamped

The zip's are named in the following fashion:
Code:
cody_kernel-sprout_<date>_<month>_<year>.zip
source:
cody_kernel_sprout/cm13.0

credits:
@varun.chitre15, @intersectRaven and @thewisenerd for base kernel works

kernel changelog:
http://forum.xda-developers.com/show...97&postcount=3

XDA:DevDB Information
CodyKernel for Sprout, Kernel for the OEM Cross Device Development

Contributors
Agaphetos, thewisenerd, varun.chitre15, intersectRaven
Source Code: https://github.com/agaphetos/cody_kernel_sprout

Kernel Special Features:
- based on 'stock' google sources: android-mediatek-sprout-3.10-marshmallow
- upstream patched up to 3.10.96
- compiled using UBER Linaro GCC 6.0-2015.10 (6.0) (thanks @Cl3Kener for his toolchain)
- supports all android-5.1 and android-6.0 ROMs
- UKSM (Ultra Kernel Samepage Merging)
- Dynamic Fsync Control (credits to faux123)
- Asynchronous Fsync from HTC (credits to imoseyon)
- sweep2wake+sweep2sleep + doubletap2wake. (disabled by default)
- pocket_mod prox hax!
- flashable zip created via AnyKernel2 (credits to osm0sis)
- Wifi Power Management Control (credits to varunchitre15)
- ThunderZap Features: (credits to varunchitre15)
* ThunderQuake Engine
* thunderplug
* thunderX cpu_governor
* thundercharge

Version Information
Status: Stable

Created 2015-06-06
Last Updated 2016-02-07
The Following 36 Users Say Thank You to Agaphetos For This Useful Post: [ View ] Gift Agaphetos Ad-Free
 
 
6th June 2015, 05:42 PM |#2  
Agaphetos's Avatar
OP Senior Member
Flag Cainta, Rizal
Thanks Meter: 203
 
More
Sign features
Terminal commands for some of the options in this kernel:
==================================================
WAKEMODS
==================================================
sweep2wake
--------------------------------------------------

toggle
Code:
echo [mode] > /sys/android_touch/sweep2wake
modes available:
0 - disable *default*
1 - enable

--------------------------------------------------
sweep2sleep_only

Code:
echo [mode] > /sys/android_touch/s2w_s2sonly
modes available:
0 - disable *default*
1 - enable

==================================================
doubletap2wake
--------------------------------------------------

toggle
Code:
echo [mode] > /sys/android_touch/doubletap2wake
modes available:
0 - disable *default*
1 - enable

==================================================
pocketmod
--------------------------------------------------

toggle
Code:
echo [mode] > /sys/pocket_mod/enable
modes available:
0 - disable
1 - enable *default*

--------------------------------------------------
pocket_mod_timeout

Code:
echo [value] > /sys/pocket_mod/timeout
values available:
0 - disable
k ms - valid value (600 - *default*)

==================================================
THUNDERZAP FEATURES
==================================================
ThunderQuake Engine
--------------------------------------------------

toggle
Code:
echo [level] > /sys/kernel/thunderquake_engine/level
levels available:
0-7 - Intensity Level (0 for lowest and 7 for highest)

==================================================
ThunderCharge
--------------------------------------------------

toggle
Code:
echo [mode] > /sys/kernel/thundercharge_control/enabled
modes available:
0 - disable *default*
1 - enable

--------------------------------------------------
Custom AC Current

toggle
Code:
echo [level] > /sys/kernel/thundercharge_control/custom_ac_current
levels available:
100-1000 - mA valid values
600 - mA *default*

--------------------------------------------------
Custom USB Current

toggle
Code:
echo [level] > /sys/kernel/thundercharge_control/custom_usb_current
levels available:
100-1000 - mA valid values
450 - mA *default*

==================================================
MISC
==================================================
Wifi PM
--------------------------------------------------

toggle
Code:
echo [mode] > /sys/kernel/mt_wifi/pm_mode
modes available:
0 - disable
1 - normal
2 - power-saving *default*

==================================================
SELinux status
--------------------------------------------------

toggle
Code:
setenforce [mode]
modes available:
0 - permissive
1 - enforcing

==================================================
The Following 11 Users Say Thank You to Agaphetos For This Useful Post: [ View ] Gift Agaphetos Ad-Free
6th June 2015, 05:44 PM |#3  
Agaphetos's Avatar
OP Senior Member
Flag Cainta, Rizal
Thanks Meter: 203
 
More
Info 2 features and changelog
features
- based on 'stock' google sources: android-mediatek-sprout-3.10-marshmallow
- upstream patched up to 3.10.96
- compiled using UBER Linaro GCC 6.0-2015.10 (6.0) (thanks @Cl3Kener for his toolchain)
- supports all android-5.1 and android-6.0 ROMs
- UKSM (Ultra Kernel Samepage Merging)
- Dynamic Fsync Control (credits to faux123)
- Asynchronous Fsync from HTC (credits to imoseyon)
- sweep2wake+sweep2sleep + doubletap2wake. (disabled by default )
- pocket_mod prox hax!
- flashable zip created via AnyKernel2 (credits to osm0sis)
- Wifi Power Management Control (credits to varunchitre15)
- ThunderZap Features: (credits to varunchitre15)
* ThunderQuake Engine
* thunderplug
* thunderX cpu_governor
* thundercharge

changelog
15Nov2015 - CodyKernel-Revamped
- Updated to Linux 3.10.96
- Updated to android-6.0.1_r0.16
- mediatek: mt_wifi: refine p2p earlysuspend registrations (credits to varunchitre15)
- fs/buffer.c: increase the buffer-head per-CPU LRU size (credits to sebastienbuisson)
- mm/slub: don't wait for high-order page allocation (credits to JoonsooKim)
- sched/fair: Stop searching for tasks in newidle balance if there are runnable tasks (credits to francisofranco)
- mediatek: wlan power saver mode control (credits to varunchitre15)
- Added ThunderZap Features: (credits to varunchitre15)
* thunderplug
* thunderX cpu_governor
* thundercharge

older:

15Nov2015 - CodyKernel-Revamped
- Updated to Linux 3.10.93
- pocket_mod_timeout: bringup! in collaboration with @thewisenerd
- flashable zip created via AnyKernel2 by @osm0sis

17Oct2015 - CodyKernel-Revamped
- CodyKernel-Revamped
- based on 'stock' google sources: android-mediatek-sprout-3.10-marshmallow
- upstream patched up to Linux 3.10.90
- compatible for both android-5.1(Lollipop) and android-6.0(Marshmallow)
- compiled using UBERTC-6.0
- bring up pocket_mod for sprout!
- use stock cpufreq-scheduler and iosched-governor (hotplug+bfq) *change it using any kernel control app*

06Sep2015 - CodyKernel-8.0
- Updated to Linux 3.10.87
- Total fix of wake delays (commit 8cc8fefb and 2da8f2d4<credits to @W4TCH0UT>)
- couple of patches to ARM, cpuidle, nohz, block, net, mm, sched, proc, fs, mmc, slub, slab, PM, QoS, pkt_sched (see github for whole changelog)

16Aug2015 - CodyKernel-7.1
- Updated to Linux 3.10.86
- Updated to android-5.1.1_r0.16
- Fixed wake delays (commit e9f38c28)
- SELinux to Permissive

09Aug2015 - CodyKernel-7.0
- Updated to Linux 3.10.85
- fs: fsync: add a toggle to enable or disable fsync() operations (credits to franciscofranco)
- PM / sleep: unregister wakeup source when disabling device wakeup (credits to zhang-rui)
- couple of patches to SELinux (credits to namhyung, Mark Salyzyn, longman88, pcmoore and kernelslacker)
- sched, smp: Correctly deal with nested sleeps (credits to Peter Zijlstra)
- tcp: we can enable tcp fast open functionality by default (credits to franciscofranco)
- tick: don't update idle time if cpu offline (credits to franciscofranco)
- sched/balancing: Prevent the reselection of a previous env.dst_cpu (credits to Vladimir Davydov)
- couple of patches to hwrang (credits to William Clark and bebarino)

13Jul2015 - CodyKernel-6.1
- added new IO Schedulers (VR, sio, zen, fifo, bfq, fiops)
- mm: push readahead to 1024kB
- set SIO as default IO Scheduler

12Jul2015 - CodyKernel-6.0
- Updated to Linux 3.10.84
- Added new cpu governors (smartmax, wheatley, alucard)

05Jul2015 - CodyKernel-5.0
- Updated to Linux 3.10.82
- Added powersuspend PM driver (credits to faux123 and yank555-lu)
- Added intelliactive governor (credits to faux123)

27Jun2015 - CodyKernel-4.0
- Updated to Linux 3.10.81
- Added cpu-boost driver (credits to Saravana Kannan)
- Added ThunderQuake Engine (credits to varuntchitre15)

- patches to rtmutex (credits to Thomas Gleixner)
- ARM: only allow kernel mode neon with AEABI (credits to Russell King)
- patches to Power,PM/QoS (credits to Alex Frid, Antti P Miettinen, Gaurav Sarode, Li Li, terjebergstrom and Puneet Saxena)
- cpu: Implement cpu core control (credits to andip71)
- ARM: make kernel oops easier to read (credits to Russell King)
- patches to cpufreq (credits to Saravana Kannan, Rohit Gupta, Swetha Chikkaboraiah, Srivatsa Vaddagiri and Patrick Cain)
- patches to sched (credits to Tk-Glitch, anarkia1976 and Steve Muckle)
- drivers/misc: remove battery logs (credits to varunchitre15)

21Jun2015 - CodyKernel-3.1
- fixed deep sleep issue
- updated UKSM from 0.1.2.2 to 0.1.2.3
- added Asynchronous Fsync (credits to imoseyon)

couple of patches to the following:
- cpuidle (credits to Tuukka Tikkanen, colincross, Daniel Lezcano, Viresh Kumar, paulburton, Chander Kashyap, amluto, ao2, imeraj, Mel Gorman, Christoph Lameter, Villemoes
- ARM (credits to Rob Herring
- power (credits to jinqian, Ruchi Kandoi, Joe Swantek
- memblock (credits to fnst-lrt, Yinghai Lu)
- workqueue (credits to Li Bin, Thomas Gleixner, fabianfrederick, laijs, utrace, valdisk,
- mm (credits to laijs, fabianfrederick, rashika, JoonsooKim, Davidlohr Bueso, torvalds, bbedward, Catalin Marinas)
- kmemleak (credits to lizf-git)
- readahead (credits hellsgod)
- block (credits to myfluxi, Dave Chinner, jankara, Tanya Brokhman)
- sched (credits to Michael Wang, Peter Zijlstra, Matt Wagantall)
- writeback (credits to Namjae Jeon, Junxiao Bi)
- fuse (credits xemul, andrewjcg, Maxim Patlasov, Rajat Jain
- int_sqrt (credits ramgear)
- PM: devfreq (credits to myfluxi)

(credits to franciscofranco for the following)
- Enable pipe flag.
- mm: push readahead to 512kB
- block: row: add magic values.
- audit: kiss goodbye you stupid piece of crap logging messages.

(credits to faux123 for the following)
- page_alloc: Make watermarks tunable separately
- android: binder: use GPF_HIGHUSER flag since binder is designed for u…

(credits to imoseyon for the following)
- mmc: core: Expose use_spi_crc module parameter in sysfs
- random: remove warning
- random: prevent add_input from doing anything
- fs: sync: Asynchronous Fsync from HTC

- fs/super.c: sync ro remount after blocking writers (credits to aeruder)
- cpufreq: Optimize cpufreq_frequency_table_verify() (credits to Viresh Kumar)
- timer: make deferrable cpu unbound timers really not bound to a cpu (credits to Joonwoo Park)
- wakeup: Add last wake up source logging for suspend abort reason (credits to Ruchi Kandoi)
- kthread_work: wake up worker only when the worker is idle (credits to laijs)
- futex: Add another early deadlock detection check (credits to Thomas Gleixner)

14Jun2015 - CodyKernel-2.2
- Set INTERACTIVE Governor and ROW Scheduler as default
- Enable UKSM (Ultra Kernel Samepage Merging)
- Dynamic Fsync Control (credits to faux123)
- Set SELinux to Enforcing (set it to Permissive at your own risk :P)

- add uksm 0.1.2.2 for v3.0 .ge.84.patch
- Added ROW I/O scheduler (credits to intersectRaven)
- power: make sync on suspend optional (credits to rknize)
- aio: Skip timer for io_getevents if timeout=0 (credits to famz)
- workqueue: allow rescuer thread to do more work. (credits to neilbrown)
- cpufreq: Introduce new relation for freq selection (credits to Stratos Karafotis)
- couple patches for block and fs improvement (credits to intersectRaven and Tatyana Brokhman)
- touches to hotplug, writeback: increase bdi_min_ratio to 5 (credits to intersectRaven)
- patches for lib/string and lib/memcopy (credits to DooMLoRD and faux123)
- patches to nohz_full (credits to paulmck and khilman)on of all-idle
- couple of ARM patches (credits wildea01, hglm, khilman, kimphill and Russell King)
- patches for task's adj rbtree (credits to Yi-wei Zhao)
- mm patches (credits to JoonsooKim, Lee Susman and Christoph Lameter)
- couple of patches to io sched/idle (credits to Peter Zijlstra, Tim Chen, Davidlohr Bueso, hofrat, Chinmay V S)
- Enhance power efficiency: Series of patches from NVIDIA (credits to Klozz)
- Added optimized ARM RWSEM algorithm. (credits to Ezekeel)
- cpuidle: remove cross-cpu IPI by new latency request. (credits to Guojian Chen)
- staging: binder: Change binder mutex to rtmutex. (credits to Riley Andrews)
- jiffies conversions: Use compile time constants when possible (credits to Joe Perches)

13Jun2015 - CodyKernel-2.0
- Updated kernel to v3.10.80
- Added more cpu governors

(Credits to broonie for the following)
- ASoC: compress: Use power efficient workqueue …
- ASoC: jack: Use power efficient workqueue …
- regulator: core: Use the power efficient workqueue for delayed powerdown …
- ASoC: pcm: Use the power efficient workqueue for delayed powerdown …

(credits to Viresh Kumar for the following)
- fbcon: queue work on power efficient wq …
- block: queue work on power efficient wq …
- PHYLIB: queue work on system_power_efficient_wq …
- workqueue: Add system wide power_efficient workqueues …
- workqueues: Introduce new flag WQ_POWER_EFFICIENT for power oriented … …

(credits to Varun Chitre for the following)
- mediatek: cpufreq: add more governor checks …
- mediatek: hotplug: improve current governor checks …
- sprout : back to enforcing
- mediatek : fix kernel panic on non-hotplug governors …
- mmc: disable crc check for 30% extra performance

07Jun2015 - CodyKernel-1.1
- DISABLED S2W AND DT2W BY DEFAULT. (as it drains battery fast. enable it at your own risk. )
(Credits to Varun Chitre for the following)
- defconfig: enable multicore scheduler.
- mali: reduce gpu utilization timeout.
- mali: disable state tracking.
- mali: increase l2 cache max read size.
- mali: increase kernel memory buffer size.
- Disabled GFS and enabled ARCH_POWER.

06Jun2015 - INITIAL RELEASE
- Remove the '+' sign on the kernel local version. (credits to franciscofranco)
- bringup s2w/d2w for sprout! (credits to thewisenerd)
- Fix kernel ooops upon changing CPU governor. (credits to Raymond Golo (intersectRaven))
- defconfig : enable selinux and set to permissive (credits to Varun Chitre)
- mediatek: fixup section mismatches (credits to Varun Chitre)
- ARM: try fixing commit fe9c7cb6 (credits to thewisenerd)
- ARM: fix commit aff6af4d based off b4ef696d (credits to thewisenerd)
The Following 15 Users Say Thank You to Agaphetos For This Useful Post: [ View ] Gift Agaphetos Ad-Free
6th June 2015, 05:46 PM |#4  
Agaphetos's Avatar
OP Senior Member
Flag Cainta, Rizal
Thanks Meter: 203
 
More
Post Available CPUFreq Governors and I/O Schedulers
==================================================
Available CPUFreq governors:
--------------------------------------------------
- performance
- powersave
- userspace
- ondemand
- interactiveplus
- interactive *default*
- conservative
- hotplug
- intelliactive
- smartmax
- wheatley
- alucard

==================================================
Available I/O schedulers:
--------------------------------------------------
- ROW
- CFQ
- V(R)
- Simple I/O (SIO)
- Zen
- Fifo
- BFQ *default*
- FIOPS

==================================================
The Following 9 Users Say Thank You to Agaphetos For This Useful Post: [ View ] Gift Agaphetos Ad-Free
7th June 2015, 01:53 AM |#5  
ARAVIND_PAVAN's Avatar
Senior Member
Flag Badvel
Thanks Meter: 93
 
More
FIRST of all thank you sir for this awesome kernel and I have a dumb question I can't get sweep to sleep or sweep 2 wake TO work can you tell me how to do it??

SENT FROM MY PIECE OF GLOWING GLASS MADE BY MICROMAX
HIT THANKS IF I HELPED
7th June 2015, 04:02 AM |#6  
Senior Member
Thanks Meter: 3,119
 
More
Info 2
Quote:
Originally Posted by nap533

FIRST of all thank you sir for this awesome kernel and I have a dumb question I can't get sweep to sleep or sweep 2 wake TO work can you tell me how to do it??

SENT FROM MY PIECE OF GLOWING GLASS MADE BY MICROMAX
HIT THANKS IF I HELPED

We've tested it on 3 of the 5 different panels used by the sprout family. You are perhaps using one of the remaining two. Please contact OP @Agaphetos for more details on how you can help us fix this.
7th June 2015, 06:51 AM |#7  
ARAVIND_PAVAN's Avatar
Senior Member
Flag Badvel
Thanks Meter: 93
 
More
Quote:
Originally Posted by thewisenerd

We've tested it on 3 of the 5 different panels used by the sprout family. You are perhaps using one of the remaining two. Please contact OP @Agaphetos for more details on how you can help us fix this.


for your information I'm using micromax canvas a1 model no: AQ4501 and I can't help you I'm not a DEV sir could you please look into it??

SENT FROM MY PIECE OF GLOWING GLASS MADE BY MICROMAX
HIT THANKS IF I HELPED
7th June 2015, 08:03 AM |#8  
Senior Member
Thanks Meter: 3,119
 
More
Question
Quote:
Originally Posted by nap533

for your information I'm using micromax canvas a1 model no: AQ4501 and I can't help you I'm not a DEV sir could you please look into it??

in which case you can't take ADB logs; you can always send me your device, and I assure you it'll be fixed, ASAP.

Anyone else with AQ4501 willing to provide a few logs for the sake of bringup?

P.S. And oh, i'll send you back your device safe and sound.
7th June 2015, 08:12 AM |#9  
Recognized Contributor
Flag Pune
Thanks Meter: 4,085
 
More
I have an AQ4501, ,I added the Wakemods to my own kernel, thanks @thewisenerd
I can confirm that dt2w works flawlessly. S2w takes a bit of time, need to swipe the full screen, a couple of times, then it works
What logs do you need???

Sent from my A0001 using XDA Free mobile app
7th June 2015, 11:13 AM |#10  
ARAVIND_PAVAN's Avatar
Senior Member
Flag Badvel
Thanks Meter: 93
 
More
I've figured out how to use sw2 only thanks to you I can use my device without mashing power button and one bug sweep to sleep doesn't work if you deactivate sweep to wake is it a prob?? and to use sw2s swipe on the nav bar from left to right and again left it works flawless for me thank you for the kernel again and I request you to optimize the kernel sir performance is on par when compared to black box is 2.5k lesser in antutu your kernel got 19381 in antutu and bb got 22356 so all the best for future

SENT FROM MY PIECE OF GLOWING GLASS MADE BY MICROMAX
HIT THANKS IF I HELPED
The Following User Says Thank You to ARAVIND_PAVAN For This Useful Post: [ View ] Gift ARAVIND_PAVAN Ad-Free
7th June 2015, 01:39 PM |#11  
ARAVIND_PAVAN's Avatar
Senior Member
Flag Badvel
Thanks Meter: 93
 
More
another doubt sir we have set echo on every boot?? it seems it's not working for me until I do echo after reboot can I fix it anyway??

SENT FROM MY PIECE OF GLOWING GLASS MADE BY MICROMAX
HIT THANKS IF I HELPED
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes