[kernel] 02-20-2012 - R14 - AnthraX - HTC Rezound

UNIVERSAL MSM8X60 KERNEL - LINUX 2.6.38.8
...now with better audio
Special Thanks to Ziggy471 for most of my installer scripts and ABOOTIMG
thanks to con247 for making this flashable on the rezound
please read post 3 - (known issues) before flashing
people with reboot issue = can you try on-demand
intelli controls gpu as well as cpu - but i never updated intellianthrax for the new gpu drivers i used in r14, and this may cause issues...
Click to expand...
Click to collapse
so far the only kernel for vigor released is GB SENSE. (not sense+ics)
if it works, i will release ICS and AOSP
in other words, dont flash on a non-sense rom such as cm7/cm9 or miui
Issue Reporting Form:
http://code.google.com/p/anthrax-msm8x60-kernels/issues/entry?template=Defect report from user
About rom compatability: My kernels do not replace your existing ramdisk (boot.img), I use Ziggy's script and abootimg that extract zImage from your boot.img file, i replace the zImage file, then re-package it into your boot.img (ramdisk). So custom ramdisk tweaks such as those used in synergy roms will remain intact, unchanged. Thanks goes to Ziggy for this method of installation.
This method of installation does require S-OFF. If your phone has S-ON, please consult your device specific threads on XDA or INFECTEDROM for directions on how to flash.
THE ONLY KERNEL TO PROVIDE 100% BEATS SUPPORT IN THE ACTUAL SOUND DRIVERS @ 96khz, 24 bit signal processing
FULL BEATS DRIVERS, CODECS, plus BEATS additions to the existing sound drivers.
*not just the headset notification code HTCDEV has in their source, im talking beats.c monster8x60.c monster.h beatsaudio.c beat8x60.c and beats_codec.c beatshelper.h
with FULL HTC REZOUND audio drivers ported over (qdsp6v3) with native HTC 2-way call record & Real-Time-Audio-Calibration
KERNEL Beats Support Defined:
Most ROMS now have beats in their framework, while sometimes this may improve sound, you will not get 100% of the beats experience unless your sound drivers (in the kernel)
have the BEATS CODECs,RTAC, and beats drivers activated in the kernel. My kernel has all of this, so you get the full 100% beats effects, just as if you had a HTC Rezound (IF: the rom supports beats correctly)
ALL post processing tasks are removed from the DAC (digital to analog converter) and done by the actual sound processor, this reduces CPU load to almost 0%, and improves quality, and removes any lag.
Also enabled the dedicated BEATS voltage regulator that assists power to the internal audio amplifier.
Due to the modifications to the sound drivers I use, sound in general should improve, no matter what rom you use, with or without BEATS.
DISCLAIMER: phones such as the Rezound has beats in stock form, while phones like the HTC EVO 3D do not, I took the REZOUND beats code, make some changes, and applied these changes to ALL devices. So, this may not be the only kernel for phones such as the REZOUND to include beats, but it is for devices such as the HTC EVO 3D. And since I use the same thread layout for all my posts, as i use the same source for all the devices i support, i thought i should throw this out there for all to read. IT PRETTY MUCH COMES DOWN TO THIS: THE REZOUND MAY HAVE SOME/ALL OF THESE FEATURES BY DEFAULT, WHILE OTHER DEVICES DO NOT. I DONT WANT TO BE ACCUSED OF CLAIMING TO PROVIDE NEW FEATURES THE STOCK KERNEL ALREADY HAS I DID IMPROVE ON THE REZOUND DRIVERS THOUGH (96KHZ/24BIT )
Click to expand...
Click to collapse
TERMS OF USE - the legal **** that protects developers (including XDA developers) who use my work, as well as myself, and infectedrom.com, and its hosting company and webmaster. HOW TO DOWNLOAD ALSO CONTAINED IN THE BOX BELOW!!
My kernels may contain closed source drivers, either written from scratch by me and copyrighted, or from source that was released to me under the terms of a NDA. therefore source code will never be released under the terms of GPL for these closed source drivers. If you do not agree with this, then dont use my kernel. Below is a disclaimer I copied and pasted directly from HTC's website regarding closed source drivers that they do not even post as part of their released source code.
This project is in a private test phase, where you are downloading a unfinished product for the sole purpose of testing. Once a final product is produced, GPL licensed source code will be available at googlecode.com, like my other finished products. The compiled binaries are not for public use or distribution.
--
SOURCE: http://htcdev.com/resources/faq
Why hasn’t HTC released the source code for some drivers?
HTC will release source code in accordance with any applicable open source license terms, i.e. GPL v2.0. Other source codes, which are not required to be disclosed by the open source license terms, unfortunately cannot be disclosed by HTC as they may be proprietary to HTC or its licensor.
--
yes, if HTC can hold back closed source portions of their kernel, so can I
I will supply source code for GPL 2.0 licensed parts of my kernel upon request (your best bet is to PM me here, or leave a public message for all to see - MODS/ADMINS can verify the existence of a PM), but parts of the kernel that include proprietary drivers, closed source drivers, and/or drivers written from scratch by me (such as intellianthax) will not be released. Code I developed from scratch that contains NO code from any GPL licensed source is entirly my code, and not licensed under GPL v2.0.
NOTICE FOR ROM DEVELOPERS:
If you agree to these terms, feel free to use my kernel in any roms you may develop, no permission is needed, though credit would be nice, it is not required.
To be compliant with XDA rules regarding GPL, as stated above, I will release gpl 2.0 licensed source code upon written request, but source for closed-source drivers as well as proprietary drivers, and copyrighted software will not be released. If the forum you post your rom on requires a link to source, feel free to link to this post, this will satisify the request for GPL compliance for forums such as XDA.
Click to expand...
Click to collapse
Closed Source software and drivers include, but is not limited to:
-source code released to me under a NDA agreement.
-software and/or drivers I have written from scratch, and have not used a GPL licnesed base to build from.
-software and/or drivers released to me under any non-GPL licensing agreement.
-software and/or drivers I was privileged to during my course of employment that was not considered proprietary my my employer(s).
-any modules, drivers, or coding not part of the linux source mainline, such as beats for example.
Additional source code that may never be released, even under GLP 2.0 include (but is not limited to) the following:
-Kernels that are un-released, experimental, and/or tests.
-Kernels considered private use (to be only used by myself, or anyone I send it to)
-Kernels protected from download by use of a password
By downloading my kernel, posting on this site, or posting on any thread, post, message, and/or article releating to my kernel (or any rom containing my kernel) on this or any other site (including, but not limted to xda-developers.com) you agree to these terms.
Download Link -> http://forums.infectedrom.com/forumdisplay.php/162-Anthrax-Kernel-Development
Click to expand...
Click to collapse
Comming Soon: (see change log in post 2 for more details, and items not listed here)
-full ZSL (2d is done, working on 3d)
-I/O scheduler tweaks
-CPU, RAM, Cache HOTPLUG notification tweaks
Click to expand...
Click to collapse
DISCLAIMERS:
1) overvolting/undervolting your phone may cause biit looping, or break it, brick it, cause it to melt, etc... do this at your own risk, and only if you know what you are doing. If YOU break your phone, please do not post on this thread about it.
2) If you OC'ed/OV'ed/UV'ed and now are in a boot loop or your phone is slow, or acting weird or just died - this means you changed something to a value your phone didnt like. I added the ability to OV/UV for those who know the risks and how to use it. Please do not post issues you may have after you OV/UV your phone, we may laugh at you.
3) overclocking your phone can break it, as you can see from reading this thread, this kernel has been 100% stable for quite a few, but some had issues. Overclock at your own risk.
4) not every phone can be over clocked, anything over 1.56 is considered unstable (on any of my kernels... well ok... most any ones kernel)
5) Please DO NOT use any task killers (or additional INITD scripts), they DO NOT improve performance nor battery life. They INTERFERE with your phone's stability (more crashes) and App compatibilities (Forced Close).
Click to expand...
Click to collapse
HOW TO INSTALL THIS KERNEL
PhantomApollyon said:
Ok so, if you're having wifi "Error" issues on BAMF Cubed, Inef, etc then please do the following as it was the only thing that fixed mine and got Anthrax R14 working.
1. boot into recovery and wipe data/cache
**2. reboot into fastboot(either by powering off and then holding volume down while powering on or by using adb) and flash the boot.img for whatever rom your're using(example: fastboot flash boot boot.img)
3. reboot device and verify that wifi works
4. reboot into recovery again and wipe data/cache again
5. flash con's repack from page 8
6. when it reboots to fastboot, select bootloader and then wait for it to check the file and then flash it
**notes: please understand that just because you have the stock kernel's zip file doesn't mean that you're flashing that, you are flashing "boot.img" that goes with your ROM
**regarding mainver errors: there are countless threads on how to fix this problem and you will most likely run into it, especially with BAMF Cubed because it's kernel is based off the old 1.xxxx mainver so PLEASE either search for that solution elsewhere or check out con's mainver tool to fix that
BAMF Cubed stock kernel <-- you can extract the boot.img from the PH86IMG.zip that is in that file so that you can flash it in fastboot
Click to expand...
Click to collapse
This kernel may (or may have in the past) contain work completed by the following people or companies (even if it was just one line of code).
If i discontinued using a developers work for more than 90 days, they will be moved to the list below.
Just because a name is listed here, does not mean I use their code in my current release, it means i used it within the last 90 days.
Companies: Qualcomm, HTC, Monster Audio, CreativeLabs, HP, IBM, Google, samsung, codeaurora.org, and kernel.org.
Private Developers:
...Chad Goodman (ME): about 85-90% of all the modifications, and tweaks
...Ziggy: CK3, scripts, installer scripts, autosched
...faux123: touch screen drivers for AOSP
...ToastCFH: usb drivers, some makefile files
Click to expand...
Click to collapse
Credit Disclaimer: if a major company has the same mod, code, change as a local developer who claims the mod was theirs (such as lithid, toast, ziggy, etc) - credit will go to the major company. If a mod consists of a change of a number for example (a common sense mod), credit will goto me for changing it. To reduce drama, I have given credit, even if I only used 1 line of code, and credit will remain, even if i stopped using their work/code/etc.
The following people (developers) have personally helped and/or assisted me with actual development (kernel or rom) in the past be it with this kernel, or work I did years ago:
Ziggy, Lithid, Virus, TrevE, QualComm, ToastCFH, JoelZ
Click to expand...
Click to collapse
Thanks to my beta testers, and non-developers who helped me out
Eternity-3D, kdunk (Special thanks for testing MegAnthraX), BigMase-3D, action-b, rudeboi3d (Special thanks for testing MegAnthraX), dondizzle, aaronpoweruser (Special Thanks for the 4.4.0 version of GCC Compiler that fixed WiFi and 4G), and easton
Click to expand...
Click to collapse
The last 90 days of releases DO NOT contain any code used by the following developer(s), but releases older than 90 days may have used code (even if just 1 line) from:
showp1984: some gpu code in the pre A-Series kernels from prior to OCT 2011.
TIAMAT: ICS Battery Reporting Drivers (battery, power, regulator, usb) - no released kernel contains code from TIAMAT's git.
Click to expand...
Click to collapse
In the future I may use code from the following developer(s), but as of now, I dont:
LeeDrOiD: cpu/voltage table
Click to expand...
Click to collapse
Features: (all verified working on the shooter and shooter_u devices as of 2-2012)
...basic features (some features may require additional support from the rom, such as USB HOST MODE for example)
Code:
-100% CIQ free, not 99.9, but truly 100% no CIQ (this may cause random lockups, freezes, reboots in roms that contain CIQ and make calls to CIQ memory space.)
-KGSL drivers, not SBA (HTC Sense based) - FULL OpenGL 2.0 hardware acceleration, full ICS / Sense 3.5 / MIUI hardware acceleration for 2D and 3D
-2-way call record support at the sound driver/kernel level
-beats audio support at the sound driver / kernel level
-quickcharge (not SBC, this will not over charge battery, but increases charging performance upto 50% depending on battery and voltage regulator temps
-GPU OC upto 320MHz
-Synchronous Multicore Threading
-FSB OC upto 460MHz
-CPU/l2 CACHE CLOCK Sync (share same clock, not 2 clocks set to same speed)
-SENSE and AOSP multitouch
-USB Host Mode (upto 4TB NTFS harddrives supported as well as usb keyboards) as of 2-11-2012, the only roms that support this are the titan hd series
-Bluetooth HID mode
-Bluetooth HBR mode, with support for 4 channel high definition sound.
-File System IO improvement hacks
-Hardware MEMCOPY support - improves code execution performance
-first with HTC 2-stage on-demand
-intellianthrax - focus on battery life AND performance while ignoring 'most' MPDECISON commands
-CPU @ 1.51GHz, both cores enabled during boot = faster boot times
-Clock and Voltage Settings set to Qualcomm spec by default
-Increased GPU Famebuffer size (memory)
-Undervolted WiFi, WiMAX
-WiFi Sensitivity adjusted - range extended by a LOT
-ZRAM, CLEANCACHE,
-Updated USB Drivers
-Updated WiFi Drivers - faster transfer rate, but may break "some" wifi hotspot hacks
-File System Support (Full Read/Write): CIFS, NTFS (4TB limit per partition), FAT16, FAT32, EXT2, EXT3, EXT4, and EFS
-FULL -o3 optimization during build
-UI tweaks at the kernel level (faster user interface)
-added steps to GPU clock
-added steps to OoM memory killer/task manager settings
-most basic tasks/house keeping limited to single thread processes
-CPU-supported unaligned access tweaks
-Vdd adjustable via SYSFS
-Camera ZSL framework in place for 2D
It provides support for
SmartShot™ - takes 5 photos and compiles the best parts to create one perfect shot.
BurstShot™ - capture 5 consecutive shots with just one click, so you never miss the action.
SweepShot™ panorama - take ultrawide shots then sweep in any direction.
ClearShot™ HDR - see crystal clear detail even when shooting in mixed or direct light.
as well as ZERO SHUTTER LAG
-Tweaks to Camera Flash/FlashLight drivers (added stobe mode, as well as adjusted low battery cut off points)
-Lots of Memory and Cache management tweaks
-custom RPC server
-Support for VPN and WiFi Calling (TUN and GAN)
-+mA mods to MHL Drivers
-120Hz, 3D support over HDMI/MHL @ 1080p
-CPU Governors: ziggy's lagfree, my intellianthrax, 2-stage on-demand, performance, smartass V2, interactive, userspace, powersave
-SD Card / MMC slot driver updates (faster IO performance for wimax and sd card r/w, using DMA access)
-100% ISO C99 Compliant coding, zero errors or warnings during -o3 compile
a friendly note
I personally own a 8x60 device, and developed this kernel for my personal use. Making this kernel work on 8x60 devices other than my own took a little time, but not much...and I am doing everyone a favor by doing this and sharing. You are not being force to use my kernel. I do not ask for donations, but I expect respect to me, my work, and other users. If people start drama for what ever reason, I will stop development for this device, just as I did other devices on XDA.
Click to expand...
Click to collapse
...additional features
Code:
-see the change logs in post 2 below for any changes to features.

linux 2.x change log
Code:
BUILD 15 19-FEB-2012 (IN PROCESS)
[COLOR="Red"]-DEFCONFIG edits for slide-to-unlock mod to work (included with vigor r14)
-some more camera changes (included with vigor r14)
-added OC ((included with vigor r14))
-backporting more linux 3 code (included with vigor r14)[/COLOR]
-some changes to support ICS android 4.0.3
-some ANTI-KANG mods (disabled some debugging and sysfs access)
-fixed AOSP performance issue
-louder audio (Voltage Regulator changes, no its not being over-volted like the Voodoo audio mod) (included with vigor r14)
-DEFCONFIG: verified good: shooter_aosp, shooter_sense, shooteru_aosp, shooteru_ sense, vigor_sense
-DEFCONFIG: working on: ruby_sense, pyramid_sense, tenderlion_aosp
-DEFCONFIG: need to finish: mecha_sense, supersonic_sense
[COLOR="#FF0000"]-ANTI-TAMPER, boot will check MD5 of zImage for tampering, cause bootloop if no-match -> thanks to IBM for this code
*bad downloads and/or a bad flash can cause a MD5 error and cause bootloops, please re-download if you have bootloops.
-beta/trial kernels will boot loop 15-days after build -> thanks to IBM for this code[/COLOR]
BUILD 14 18-FEB-2012 (RELEASED)
-custom cpu_hotplug drivers
-updated intellianthrax to work with more versions of mpdecision
-experimenting with camera drivers
-some GPU enhancements
-added SBA42 and 43 instruction set to the new KGSL drivers - should help w/ sense 3.0 issues
-better sound quality on 2-way record
-larger beats workspace (less lag)
-added 120hz 3D support via HDMI @ 1080p (experimental)
-improved HDMI image quality
-custom script to build ANTHRAX_CDMA_AOSP_DEFCONFIG, ANTHRAX_CDMA_SENSE_DEFCONFIG, ANTHRAX_GSM_AOSP_DEFCONFIG, AND ANTHRAX_GSM_SENSE_DEFCONFIG all at once.
.....also added defconfig files for other devices using the same source tree to build shooter
...still working on it - mainly the camera ****
-reworked audio drivers - best sound quaility yet, and a tad louder
-camera 2d and 3d now works with new OTA based roms, as well as previous roms (but only on HW001 - still working on hw002 issues)
-camera 2d and 3d work with new OTA based roms (all roms) but preview is broken on hw002
BUILD 13 20-JAN-2012
-fixed HDMI/MHL
-updated to latest KGSL drivers (KGSL 3.6)
-updated to latest BEATS device drivers
-updated to latest BEATS codecs
-updated sound drivers
BUILD 11 20-JAN-2012
-major RPC changes
-1st attempt at merging KGSL with SBA gpu drivers (100% merge)
BUILD 9 31-DEC-2011
-Fixed SysFS (enabled via defconfig, no code change)
-Fixed CPU Governors (enabled via defconfig, no code change)
-Reverted to KGSL 3.2, 3.3 was having some issues with some people (not all)
-Added CIQ Memory space emulation (redirected to NULL)
**Sitll using HTC's native CPU HOTPLUG code to manage cpu's
--zzzTESTzzzPLUSmA / EXPERIMENTAL (SAME as RLS9 plus the following:)
----->HDMI DRIVER UPDATE
----->CHARGE OVER HDMI (+mA)
*zzzTESTzzz is a test kernel, and the features added may or may not work.
It is a test because I have to way to test. please provide feedback to [email protected], NOT ON XDA.
BUILD 8 30-DEC-2011
-Fixed WiFi Issue with some roms
BUILD 7 30-DEC-2011
-Opened SYSFS FOR UV/OC
-ADDED 1.53GHZ
-410MHZ FSB ACTIVE (VS 360MHZ)
-300MHZ GPU CLOCK ACTIVE
-CPU and L2 Cache Clocks are Sync'ed (L2 and CPU run at same clock speed) up until 1.53.
---> 1.18Ghz (and only 1.18GHz) run all clocks @ HTC Spec (cpu, fsb, cache, gpu)
-ZSL FRAMEWORK (SO CAMERA MAY BE WEIRD, BROKEN OR ****ED UP)
BUILD 6a 29-DEC-2011
-ADD LINUX 3.X.X BRANCH TO MSM8X60_UNIVERSAL-ANTHRAX (NON-COMPILE)
BUILD 6 29-DEC-2011 UPLOAD FAILED - RC -2, RC 5, INV DIR
-ICS BATTERY FIX (I SERIOUSLY HOPE)
-FINIHED UNIFIED SOURCE (ALL 8X60 DEVICES, AOSP/SENSE/ICS - SAME TREE, **** - SAME BRANCH)
-> INCLUDES RUBY, VIGOR, SHOOTER, SHOOTER_U, DOUBLESHOT, PYRAMID, RIDER, HOLIDAY, AND GENERIC 8X60)
-> GUESS WHAT THIS MEANS :)
-CUSTOM RPC
--> INCLUDES CUSTOM L2 CACHE MANAGER
-KGSL 3.3 GPU DRIVERS WITH FULL SENSE 3.5, HONEYCOMB AND ICS HARDWARE ACCELERATION (2D AND 3D)
-KANGED USB DRIVERS FOR ICS (KANGED FROM TOAST)
-KANGED BLUETOOTH DRIVERS (FROM TOAST) - MODIFIED FOR HBR (BY ME)
-FRAMEWORK: CPU OV/UV +OC
--> INCLUDES FSB OC (UPTO 410MHz)
-FRAMEWORK: GPU OC
**FRAMEWORK MOD ARE NOT ACTIVE YET**
BUILD 5E 28-DEC-2011
-FIXED ICS BATTERY DRIVERS (AFFECTS ICS KERNEL ONLY)
--> ATTEMPT #2, STILL HOPING
BUILD 5D 28-DEC-2011
-FIXED ICS BATTERY DRIVERS (AFFECTS ICS KERNEL ONLY)
--> ATTEMPT #1, HOPE IT WORKS
BUILD 5C 28-DEC-2011
-FIXED ICS USB DRIVERS (AFFECTS ONLY THE ICS KERNEL)
-> ATTEMPTS IN 5A, AND 5B FAILED - BUT 5C IS GOOD
BUILD 5 27-DEC-2011
-ADDED ADDITIONAL CPU GOVERNORS
-ADDED CDMA_ICS_DEFCONFIG <---------- AOSP Verison
-FULL ICS 2D AND 3D HARDWARE ACCELERATION WITH KGSL 3.3 +TRIPLEBUFFERING
-ICS TOUCH SCREEN DRIVERS
-ICS USB AND BLUETOOTH
-ICS WIFI
BUILD 4 27-DEC-2011
-UPDATED USB DRIVERS TO LATEST VERSION (Still with HostMode/OTG support)
-FIXED BLUETOOTH HID DRIVERS
BUILD 3 24-DEC-2011
----> STABLE BETA, ALSO KNOWN AS "RELEASE-STOCK ANTHRAX" <----
-FIXED "PERFORMANCE" AS DEFAULT CPU GOVERNOR (ITS ONDEMAND NOW)
-FIXED BEATS HEADSET NOTIFICATION MODULE
-UPGRADED SOME BEATS MODULES TO 'REZOUND' VERSION
-UPDATED GPU DRIVERS - FULL HW ACCELERATION (2D AND 3D) (Sense 3.0/Sense 3.5/MIUI)
-ENHANCED AUDIO FOR AOSP (TESTED ON MIUI) - NOT BEATS QUALITY, BUT A LOT BETTER THAN THE STOCK KERNEL INCLUDED WITH MIUI
-NO OVERCLOCKING AS OF YET (CPU AND GPU) - EVERYTHING IS AT QUALCOMM SPEC FOR MSM8X60 CHIPSETS (NOT HTC SPEC)
BUILD 2 (BETA) 23-DEC-2011
-UPDATED AUDIO DRIVERS TO QDSP6V3 (SAME DRIVERS USED IN THE HTC REZOUND)
-ENHANCED AUDIO FOR SENSE - SHOULD IMPROVE ALL AUDIO, WITH OR WITHOUT BEATS
-QUALCOMM 2-PHASE ON-DEMAND GOVERNOR (SAME ONE USED IN THE REZOUND STOCK)
-EDITED DEFCONFIG TO ENABLE BEATS_AUDIO
-EDITED DEFCONFIG TO ENABLE BEATS_CODEC
-EDITED DEFCONFIG TO ENABLE BEATS_HDMI
-EDITED DEFCONFIG TO ENABLE RTAC
-EDITED DEFCONFIG TO ENABLE NTFS READ/WRITE
-EDITED DEFCONFIG TO ENABLE TUN/VPN
-EDITED DEFCONFIG TO ENABLE CIFS
-EDITED DEFCONFIG TO ENABLE GAN/WIFI CALLING
-EDITED DEFCONFIG TO ENABLE SENSE WIFI (QUALCOMM SOURCE IS 100% AOSP, NOT HTC SENSE BASED)
-EDITED DEFCONFIG TO ENABLE HIGH BITRATE BLUETOOTH
-EDITED DEFCONFIG TO ENABLE USB OTG (HOST MODE)
-EDITED DEFCONFIG TO ENABLE BLUETOOTH HID MODE
-CREATED 4 DEFCONFIG FILES (GSM SENSE, GSM AOSP, CDMA SENSE, CDMA AOSP) -- ALL BUILDS USE SAME SOURCE CODE
SENSE CDMA BUILD 1 (INITIAL COMMIT)
-100% STOCK QUALCOMM BASE, LINUX VERSION 2.6.38.6
-USED MSM8X60_DEFCONFIG FILE
-> THIS MEANS NO PLATFORM SPECIFIC FEATURES, SUCH AS WIMAX, OR WIFI - BUT ZIMAGE SHOULD WORK ON *ANY* MSM8X60 DEVICE
-COMPILED WITH -o3 OPTIMIZATION
IntelliAnthraX Features
Code:
[I]Proior to the rezound, on demand was either MINCLOCK or MAXCLOCK.
The rezound was the 1st phone to use a multi state on-demand govornor.
I made this available to all devices as my 2-phase on-demand governor.[/I]
IntelliAnthrax is 3 governors in one. Without going into too much detail,
It is a multistage on-demand govnornor for cpu0, cpu1, and gpu
(yes i said GPU). Some roms on the HTC EVO 3D had a custom
mpdecision file that caused issues with some of my kenrels,
IntelliAnthraX "attempts" to take priority over mpdecision as well.
[B]....this is just the basics[/B]

the good..
Code:
-it works
-my zip requires S-OFF
-con247 has a zip for those with S-ON
-sound is way better than stock, even over bluetooth
the bad... (Known Issues)
Code:
-my installer requires S-OFF - thanks to the rezound members for creating a new ZIP file that works w/ S-ON
-sometimes it needs to be flashed x2 times (dont ask why)

I WANT THIS ONE hehe
Chad.goodman for kernel dev of the year

Going through the changelogs, very impressive work man . The GPU doesn't have any issues @ 320mhz? Thanks!

JoelZ9614 said:
I WANT THIS ONE hehe
Chad.goodman for kernel dev of the year
Click to expand...
Click to collapse
14 downloads, no compliants - but i dont know if it will even boot

zetsumeikuro said:
Going through the changelogs, very impressive work man . The GPU doesn't have any issues @ 320mhz? Thanks!
Click to expand...
Click to collapse
i have been running this source on the htc evo 3d for months, as have many others..with no issues
the clock speeds are set to what qualcomm designed the 8x60 chipset to run at (as per their whitepapers and service manuals)
as far as the rezound - i dont know... its the same hardware...but i have no way to test.

chad.goodman said:
i have been running this source on the htc evo 3d for months, as have many others..with no issues
as far as the rezound - i dont know... its the same hardware...but i have no way to test.
Click to expand...
Click to collapse
I'm going to a Nand really fast and I'll flash.

Only flash on gb roms guys..Also read the whole OP im sure chad didnt write that whole thing up so you dont read it lol

JoelZ9614 said:
I WANT THIS ONE hehe
Chad.goodman for kernel dev of the year
Click to expand...
Click to collapse
joel...can you double check my installer script parition block numbers?
im off to bed - will check how things are going in the morning
thanks all
and a reminder:
THIS IS A SHOOTER/SHOOTER_U KERNEL MODIFIED TO WORK ON THE REZOUND - IT MAY OR MAY NOT WORK.
actually - its a shooter kernel that had been successfully modified to work on the shooter_u and ruby phones, hoping all goes well for vigor.
Click to expand...
Click to collapse

Almost positive flashing the zip did not work.... Unless you're S-Off I don't see how this will work. Is there anyway to see if it's installed?

Give me a sec and ill post a zip for you guys..

JoelZ9614 said:
Give me a sec and ill post a zip for you guys..
Click to expand...
Click to collapse
Thank you very much.

Yay you came over here too! Looking forward to ics sense version
Sent from my ADR6425LVW using xda premium

actually sorry i cant do it i dont have a gingerbread boot.img to pop this kernel into

Same as below, device boot animation is VERY laggy and does not boot.

Here goes...
Edit: Did NOT work for me. Couldn't get past the first, or second boot.

Flashed it on ICS Sense not realizing only for GB but I don't think anything happened to the rom, works fine.

Now here is a thread that's good to see. Nice having you and joelz over here. Let me know if there are any issues, I'll keep an eye on it too, but I can actually do something now.
Sent from my HTC Evo 3D using xda premium

This install script won't work. You need to use the script that I made that is a sticky at the top of this forum. It isn't updated for the newest mainver though so this afternoon I will rebuild the package for you.
Sent from my ADR6425LVW using XDA App

Related

[Kernel] [.38.8] intersectRaven's Kernel (AVS/CAVS)01/08/2011 22:00

This is my own personally compiled kernel based on the latest kernel from Cyanogen's Github repository with Kmobs' undervolt modifications, CodeAurora's AVS code, pershoot and rotohammer's audio gain mod and several compiler optimizations based on initial idea from psyq.
Only major releases will be advertised here.
All changes since 05/05 can be found at my Euroskank host:
http://intersectraven.euroskank.com/kernels/
*Thanks to RyanMacG for the free hosting!
Old uploads with minor changes can be found at my MediaFire folder or my Bitpad folder:
http://www.bitpad.co.uk/intersectraven
http://www.mediafire.com/intersectRaven
Major features:
- based on latest Cyanogen Mod kernel source from his GitHub repository
- numerous compiler optimizations with a custom compiler by redstar3894
- all CPU power governors for user dependent tweaking of power saving method
- Hybrid AVS (Adaptive Voltage Scaling combined with Static Voltage Scaling) support for maximum possible power savings dependent on CPU requirements and a customizable version (CAVS) for people who like to tweak how far their N1s can go
- universal update.zip template made by Koush
Instructions:
1.) Reboot to recovery and flash the update.zip directly.
OR
Instructions for zImage and bcm4329.ko driver extracted from the update.zip(from command line):
1.) adb remount
2.) adb push bcm4329.ko /system/lib/modules
3.) adb reboot bootloader
4.) fastboot flash zimage zImage
5.) fastboot reboot
OR
Use ADB GUI by minooch found here:
http://forum.xda-developers.com/showthread.php?t=666964
*please note the instructions...push the wifi driver BEFORE rebooting for flashing zImage...if your wifi is turned on when you reboot before you pushed the wifi driver for the kernel, there is a chance that you will go into a bootloop due to the incompatible wifi driver!
Changelog:
20120108_2143:
- just merged pershoot's commits
20111203_11XX:
- enabled MSM EHCI
20111114_23XX:
- integrated CM's commits (mainly bluetooth and WiFi fixes)
20111111_19XX:
- compiled using updated Mjolnir/Linaro compiler hybrid (having problems with our Mjolnir GCC)
- enabled SYN_COOKIES as requested
- some tweaks to the VFS settings
- switched network scheduler to SFB
- switched TCP congestion to Veno from YeaH (seems it's better for devices with a greater chance of random drops of packets)
20111010_11XX:
- disable CleanCache for YAFFS (too complex to change)
- more proper reapplication of changes from 3.0
20111009_22XX:
- enabled CleanCache for YAFFS, EXT3 and EXT4 (experimental)
20111008_23XX:
- ported BogoMIPS calibration from 3.0
- added CleanCache from 3.0
- switched to SIO from BFQ
- block IO batching from 3.0
- activate_pages batching from 3.0
20110904_07XX:
- added SmartAssV2 CPU governor
20110828_13XX:
- fix AVS to actually work (see previous latest post for apology... )
*this should restore the instability on some devices that can't handle AVS
20110828_00XX:
- prevent excessive suspend attempts
- optimized sha1 implementation
20110813_15XX:
- increased NAND buffer to 8k similar to codeaurora's version
- enabled 8-bit transfers for when the MMC card supports it
20110724_20XX:
- SmartAss improvement from the test kernels
- AVS code improvement also from the test kernels (hopefully improved the stability)
- RCU optimizations
- updated Mjolnir compiler
20110713_10XX:
- re-hauled SmartAss governor:
* interactive threads instead of workqueues to improve responsiveness when ramping-up frequencies
* reduced stepping frequency to use lower frequencies more
20110707_08XX:
- fixed the Voice Search problem
20110706_09XX:
- code cleanup
- additional tweaks
20110628_09XX:
- ARM improvements to memcpy and memmove operations from Wildfire (arco's kernel source)
- cherry-picked serial number commit from CM kernel
20110608_21XX:
- rebased everything together with removal of worthless commits
- added 2 new governors from SavagedZen kernel (SavagedZen & InteractiveX)
- updated code of Smartass governor to the one in SavagedZen since it seems more updated than the one I found
20110527_21XX:
- new method for addressing slow writes on USB from CodeAurora (although it's still slow using native USB mount and I didn't test using another mounter)
- some SIRC potential bug fixes
- input event handling modification from Google
20110523_08XX:
- compiled using updated Mjolnir
20110522_11XX:
- upgraded to v2.6.38.7
20110521_15XX:
- interrupt masking
- smd_tty buffer limit implementation
20110519_22XX:
- fix for potential bug and power leak improvement in DSP driver
- GPIO tweaks
20110516_19XX:
- increased DMA zone to 14MB (may speed some things or may not)
- timer workarounds have been removed as they're unneccessary on Scorpion
- prevent reading from write-only registers (just silly)
- used relaxed access functions for some functions
- remove extra interrupts sent from the SMD channel
20110515_21XX:
- added another commit from android unmerged which implements a watchdog to catch lockups during device resume
- fix for wakelocks which addresses the problem where while being connected to a computer, any attempt to power up will result in display immediately shutting off with touchscreen buttons still on
- uses an updated Mjolnir compiler
20110514_17XX:
- rebased everything
- removed some commits which were useless on the N1
- more zen branches merged
- WiFi-Fast patch has been integrated in all kernels since it seems to have no effect on battery (no more separate WiFi-Fast release)
20110511_22XX:
- reverted a change made to PMEM driver since the commit it was reliant to was reverted (sorry! didn't notice this...I wasn't too critical of my earlier cherry-picks... )
Link to a file which contains all kernels:
http://hotfile.com/dl/117478444/390f688/intersectR_-_20110511_22XX.zip.html
20110510_18XX:
- updated to 2.6.38.6
- committed some more video driver commits from CodeAurora
Link to a file which contains all kernels:
http://hotfile.com/dl/117350839/0a9a504/intersectR_-_20110510_18XX.zip.html
20110509_14XX:
- merged some commits from Android repositories that were still unmerged yet may prove useful for Ashmem and RPC
Link to a file which contains all kernels:
http://hotfile.com/dl/117209820/5b7fe7b/intersectR_-_20110509_14XX.zip.html
20110507_21XX:
- even more improvements from CodeAurora
Link to a file which contains all kernels:
http://hotfile.com/dl/117048553/0831385/intersectR_-_20110507_21XX.zip.html
20110506_15XX-16XX:
- enabled cache error reporting as this is indicative of how tolerant your N1 is to AVS undervolting
- smartass governor (from Temasek)
*this was mistakenly included in the previous release
- a minor kernel scheduling statistic commit
Link to a file which contains all kernels:
http://hotfile.com/dl/116922979/5fb2ec0/intersectR_-_20110506_15XX-16XX.zip.html
20110505_16XX-17XX:
- updated Mjolnir compiler
Link to a file which contains all kernels:
http://hotfile.com/dl/116827854/5839b43/intersectR_-_20110505_16XX-17XX.zip.html
20110505_08XX-09XX:
- AVS and CAVS now both allow changing of voltages on-the-fly. The only difference now is that AVS is undervolted by default while CAVS is undervolted to the same voltages that CM uses in his SVS kernel
- uses eviollet's on-the-fly voltage modification system instead of the previous one I had which is a lot more flexible
Link to a file which contains all kernels:
http://hotfile.com/dl/116798881/0d5b5bf/intersectR_-_20110505_08XX-09XX.zip.html
20110503_09XX:
- updated to version 2.6.38.5
Link to a file which contains all kernels:
http://hotfile.com/dl/116600585/b76a4b6/intersectR_-_20110503_09XX.zip.html
20110502_10XX:
- synced with pershoot's latest modifications which mirror CM's latest addition with regards to USB accessory function (not too important I think since it seems to be for future ADB use)
- uses an updated Mjolnir compiler (20110429)
Link to a file which contains all kernels:
http://hotfile.com/dl/116528049/1865aa6/intersectR_-_20110502_10XX.zip.html
20110424_11XX:
- reverted WiFi driver to same version CM uses for mainline kernel to fix channel 11 issues with the newest one
20110422_12XX:
- updated to 2.6.38.4
- compiler updated
20110421_15XX-16XX:
- first files to be hosted by Bitpad (http://www.bitpad.co.uk/intersectraven/)
*Thanks to MajorProbes
- just a minor release since I only updated the compiler
20110416_20XX:
- several compiler optimizations enabled (loop unrolling, peeling, etc.)
- zen-kernel cherry-picks for memory and fs optimization
20110415_23XX:
- updated to 2.6.38.3
- compiled using latest Mjolnir with an experimental merge by redstar
20110409_23XX:
- integrated a bluetooth fix and MMC quirks improvement from official Google repositories
20110407_13XX-14XX:
- integrate CM commits on futex optimization and removal of dodgy optimizations
20110403_12XX:
- fix for USB transfer speed (should now hold at 1MB/s without dropping)
20110401_22XX-23XX:
- first 2.6.38.2 release based on pershoot's 2.6.38
- added the usual mix (AVS, SLQB, CodeAurora patches, etc.)
- compiled using Mjolnir GCC 4.6.1
- changed FPU optimization to NEON
20110328_08XX-09XX:
- updated to 2.6.37.6
20110328_07XX:
- compiled using Mjolnir GCC4.6.0
- enabled Link Time Optimization and Graphite Optimization (use Google for definitions)
20110326_08XX:
- updated BFQ to v2-r1
20110324_18XX:
- updated to 2.6.37.5
20110320_17XX:
- merged Nick Piggin's RCU patches which were originally for 2.6.38 (one of the things Linux was excited about according to Phoronix)
20110319_09XX:
- merged latest CM kernel commits which enables the ff:
- enabled RCU boost
- enabled touchscreen filter (reduce CPU load made by touchscreen)
20110315_22XX:
- updated to 2.6.37.4
20110312_23XX:
- round 2 of CM's wonk fix attempt integrated
- toolchain update
*for links, go to my MediaFire folder as specified above
20110311_1623:
- integrated cyan's wonk fix attempt
- VPN "fix" (I don't like this one since it's just a backport of the old PPP interfaces)
*for links, go to my MediaFire folder as specified above
20110308_2246:
- updated to .37.3
- based on CM's latest kernel source
- with SLQB and BFQ v2
- regular and customizable AVS
- some CodeAurora patches
*for links, go to my MediaFire folder as specified above
20110213_1506:
- corrected minimum voltage value to 800mV
CFS-HAVS-CM7-NOBOOST -> http://www.mediafire.com/?m32mi1744ksb55m
20110213_1035:
- test release for new AVS-CUSTOMIZEABLE build which allows for runtime customization of AVS minimum and maximum limiters for more flexible AVS voltages depending on your CPU tolerance (/sys/module/avs/parameters/avs_adjust)
- AVS debugging outputs can also be toggled in runtime (/sys/module/avs/parameters/avs_debug -> set to 0 to not display, 1 to display)
CFS-HAVS-CM7-NOBOOST -> http://www.mediafire.com/?bt7mmtlmg407ne1
*format for avs_adjust is:
frequency,minimum voltage,maximum voltage
e.g.
echo 245000,925,975 > avs_adjust
**AVS debugging output will be enabled by default when you modify the limits
Finally created a github to store all of my kernel modifications:
http://github.com/intersectRaven/
To follow me for updates on Twitter:
http://www.twitter.com/intersectRaven
[Kernel] [.35.10, .37] intersectRaven's Kernel (HAVS-AXI-FM-720p-Zen)1/9/2011 10:13
Reserved for intersectRaven - Added 2post to allow OP to have more place for futur update
Finally a thread!
been using your kernels for some time now, good work!
---------------------------------------------------------------
Updates: I thought I'll use this space to provide some info since its right next to the OP
BFS:
BFS is the Brain **** Scheduler. It was designed to be forward looking only,
make the most of lower spec machines, and not scale to massive hardware. ie
it is a desktop orientated scheduler, with extremely low latencies for
excellent interactivity by design rather than "calculated", with rigid
fairness, nice priority distribution and extreme scalability within normal
load levels.
http://ck.kolivas.org/patches/bfs/bfs-faq.txt
CFS
Completely Fair Scheduler is the name of a task scheduler which was merged into the 2.6.23 release of the Linux kernel. It handles CPU resource allocation for executing processes, and aims to maximize overall CPU utilization while maximizing interactive performance.
http://en.wikipedia.org/wiki/Completely_Fair_Scheduler
Comparison of BFS vs CFS: http://www.cs.unm.edu/~eschulte/data/bfs-v-cfs_groves-knockel-schulte.pdf
Conclusion
The results indicate that CFS outperformed BFS with minimizing turnaround time but that BFS
outperformed CFS for minimizing latency. This indicates that BFS is better for interactive tasks
that block on I/O or user input and that CFS is better for batch processing that is CPU bound.
Click to expand...
Click to collapse
can i use this kernel along with the desire camera app?
britoso said:
Finally a thread!
been using your kernels for some time now, good work!
Click to expand...
Click to collapse
Had my dog press the enter key to prevent me from chickening out.
jblazea50 said:
can i use this kernel along with the desire camera app?
Click to expand...
Click to collapse
I haven't tested it so I don't know if it needs something from the kernel to work.
@intersectRaven - in the http://forum.xda-developers.com/showthread.php?p=6003800#post6003800Audio Mod thread rotohammer incorporated settings that increased both the bluetooth and in-call/earpiece volume. is your audio fix for a headset/bluetooth headset and/or does it incorporate higher values for in-call volume as well? thanks!
cortez.i said:
@intersectRaven - in the http://forum.xda-developers.com/showthread.php?p=6003800#post6003800Audio Mod thread rotohammer incorporated settings that increased both the bluetooth and in-call/earpiece volume. is your audio fix for a headset/bluetooth headset and/or does it incorporate higher values for in-call volume as well? thanks!
Click to expand...
Click to collapse
Hmmm...thanks for pointing that out. I'll probably release a new version later which will have this. (loading my Nexus Compilation Environment VM now...)
*Edit: I recompiled with the .min and .max settings he specified but reading further back it seems he changed some other things so I can't be sure if just this will provide the volume increase desired.
cortez.i said:
@intersectRaven - in the http://forum.xda-developers.com/showthread.php?p=6003800#post6003800Audio Mod thread rotohammer incorporated settings that increased both the bluetooth and in-call/earpiece volume. is your audio fix for a headset/bluetooth headset and/or does it incorporate higher values for in-call volume as well? thanks!
Click to expand...
Click to collapse
Hmmm...thanks for pointing that out. I'll probably release a new version later which will have this. (loading my Nexus Compilation Environment VM now...)
*Edit: I recompiled with the .min and .max settings he specified but reading further back it seems he changed some other things so I can't be sure if just this will provide the volume increase desired.
intersectRaven said:
I haven't tested it so I don't know if it needs something from the kernel to work.
Click to expand...
Click to collapse
It works. I thought you incorporated the audio fix yesterday too!
britoso said:
It works. I thought you incorporated the audio fix yesterday too!
Click to expand...
Click to collapse
I just compiled one with higher settings based on rotohammer's research. I think I'll stick with the default ones in my previous version though so its okay to skip this latest one.
For those who wanted to try out the modified values:
http://www.mediafire.com/?dqynw1inh3y <= 2.6.32
http://www.mediafire.com/?mmjwxzjlmmw <= 2.6.33
I'm working on a mod that will allow us to change the min_vol and max_vol from a file. Kernel SOP dictates this not advised, but I don't have time to learn how to implement a procfs hook.
I also used the voltages specified by kmobs so there should be no difference with the voltages. .32 is from the android kernel source while .33 is from cyanogen's. .32 is the stable kernel while .33 is still in its experimental stage.
Thanks a lot I've been looking for something like this!
intersectRaven, any chance to release Overclock kernel ?
1267Mhz on the nexus one will be great. hahahaha
rheza02 said:
intersectRaven, any chance to release Overclock kernel ?
1267Mhz on the nexus one will be great. hahahaha
Click to expand...
Click to collapse
haha...I'll think about it...I don't have the courage to try an OCed version though so you'll have to test it yourself if ever!
intersectRaven said:
I just compiled one with higher settings based on rotohammer's research. I think I'll stick with the default ones in my previous version though so its okay to skip this latest one.
For those who wanted to try out the modified values:
http://www.mediafire.com/?dqynw1inh3y <= 2.6.32
http://www.mediafire.com/?mmjwxzjlmmw <= 2.6.33
Click to expand...
Click to collapse
i'm currently using MoDaCo Alpha 19, which reports using a 2.6.33.1 kernel. so i would use the 2.6.33 version, correct? just to confirm, are your volume values the same as used by rotohammer? also, where is the zImage stored on my device, that is if it's actually saved at all (yes, i am a newbie, lol). thanks!
cortez.i said:
i'm currently using MoDaCo Alpha 19, which reports using a 2.6.33.1 kernel. so i would use the 2.6.33 version, correct? just to confirm, are your volume values the same as used by rotohammer? also, where is the zImage stored on my device, that is if it's actually saved at all (yes, i am a newbie, lol). thanks!
Click to expand...
Click to collapse
yes u would use the .33 if ever...the links u quoted does use rotohammer's values...and lastly, the zimage is flashed onto the image/kernel area in your device's boot partition...oh and no shame being a noob...we were all noobs once...
This kernel crash on my nexus one with desire camera when I try to see a video.
Anyone can confirm this?
www1 said:
This kernel crash on my nexus one with desire camera when I try to see a video.
Anyone can confirm this?
Click to expand...
Click to collapse
I just recorded a video with the desire camera app and played it back fine.

[KERNEL][14FEB'12]RedPillKernel_Rev1.3[RedPill Touch CWM Recovery by AF974]"TAKE IT!"

[KERNEL][14FEB'12]RedPillKernel_Rev1.3[RedPill Touch CWM Recovery by AF974]"TAKE IT!"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
Click to expand...
Click to collapse
RedPill Kernel Features | RedPill Kernel Changelog | RedPill Kernel FAAAQ​
"This is your last chance. After this, there is no turning back. You take the blue pill - the story ends, you wake up in your bed and believe whatever you want to believe. You take the red pill- you stay in Wonderland and I show you how deep the rabbit-hole goes." - Morpheus, The Matrix (Copyright belongs to the Wachowski Brothers... Larry and Andy)Features
Highlights
Initramfs from LA2
Samsung kernel-update3 (patched for deep sleep fix)
Based on Arighi sources (arighi) + a LOT of patches included by pongster for performance, stability and battery life
Custom ClockworkMod Based Recovery v5.0.2.7 by AF974 based on Team Overcome Recovery (thanks to alterbridge and AF974)
Instant root (modded script by gokhanmoral of SiyahKernel with a few edits by pongster to ensure latest SU apk and binary are used.)
Newest Superuser 3.0 and su binary (thanks to chainsdd)
Touchscreenfix set to "3" (vitalij)
Init.d support
VooDoo Louder Support by supercurio
2nd Core and Touch Move by Tegrak Support
SetCPU and Voltage Control Support
Full CWM Manager 3.0 Support by Chainfire
CPU & GPU Overclocking and Undervolting by Netarchy
Highly Experimental Ondemand based CPU Governors (Minor Edits only/Renamed to keep bugs on the experiments) based on arighi's deep_sleep and fast_start commits
Maximum CPU Freq set at 1.5Ghz
Enable or Disable File Syncing (fsync enabled by default)
CFS Autogroup by Mike Galbraith Enabled
CPU Topology and Sched_MC enabled
AFTR and LPA enabled
A lot of tunables via sysfs included
Undervolted Int ARM and Touch LED Values (thanks to Phenomenal for the idea)
Git Implementation of SHA-1 for 12% faster boot time
CPU set at 1.2Ghz at Boot for faster boot time (Thanks to Imoseyon)
XZ compressed kernel using optimized values for the size of the kernel
Uncompressed Initramfs (tweaked scripts/gen_initramfs.sh)
NTFS Read/Write Support for OTG (Flash Drives and External Hard Drives with enough Power supported)
CIFS and FUSE Support | Tweaked Ext4 Filesystem
SIO | noop | deadline | V(R) (tweaked for better throughput and balanced latency for Mobile NAND based devices)
sleepy | hyper | conservative | ondemand CPU Governors
generic cpufreq range regulation (arighi) | BLN support (Thanks to creams and neldar) | Fuel Guage Wakelock fix by Entropy512
Power Saving Features:
AFTR + LPA enabled
sched_mc enabled
ARM CPU Topology enabled
CPU Hotplugging OFF when screen off enabled (Thanks to arighi)
RCU Fast No HZ enabled
Stable Voltage Tweaks for Internal Voltages (not ARM Voltage which remain stock) to help lessen heat when in heavy usage scenarios
Boot Time Features:
Used git Implem of SHA-1 for 12% Boot time improvement
Added [PATCH] arm: remove "optimized" SHA1 routines by Linus Torvalds <[email protected]>
Added [PATCH] arm: remove stale export of 'sha_transform' Linus Torvalds <[email protected]>
Uncompressed initramfs (since initramfs is compressed as part of the kernel image, this is reduced to a copy operation from a decompress then copy one)
Set Clockspeed at 1.2Ghz at Boot time to ensure all critical tasks have enough power to perform them while the governors/maxfreq isn't set yet. (Thanks to Imoseyon for this hack)
CPU Features
CPU and GPU OC/UV thanks to netarchy/Hacre
CPU Governors Included:
Final Clean up of CPU Governors available for simplicity. (all Governors are tweaked for the best possible balance of battery and performance with a slight lean towards performance) With this focus on simplicity stated earlier, the only governors available are the following:
sleepy (ondemand based cpu governor with minor edits by pongster) loves to sleep and idle at the lowest set frequency, hence the name change from "solo" to "sleepy". Its closer to ondemandx in terms of performance. This can be tweaked and tuned using init.d scripts as well.
hyper (ondemand + suspend freq setting ability with minor edits by pongster) This was formerly the original kenobi which I renamed to hyper as others may not get the Star Wars Reference. It gives a good balance between battery life and performance. Its closer to ondemand in terms of performance. also tunable using init.d scripts.
conservative (good battery savings by default due to its slow ramp up and ramp down but tunable for performance) defaults are slightly tweaked for better performance than default conservative.
ondemand (old reliable thats been tweaked by arighi to support deep_sleep and fast_start) these features try to detect if the CPU is coming from a deep sleep and is more likely to sleep again and thus limits its frequency to the lowest possible that can handle the operations needed. fast_start checks if the CPU needs more "ooomph" and jumps to the highest frequency faster to enable it to complete the operation the system needs to complete. (like during boot-up)
3rd Party Kernel Apps Support
CWM Manager 3.0 (It works well for me. Its a useful app by Chainfire that extends the features of the current recovery. No need to reinvent the wheel, so to speak)
Voodoo Louder by supercurio
Voodoo Display (for future supercurio app)
2nd Core by Tegrak
Touch Move by Tegrak
SetCPU by michaelhuang
Voltage Control by xan
Filesystem Features (loaded by default to prevent the load insmodding at boot will cause, however minor)
CIFS
FUSE
NTFS
Experimental NTFS automount for OTG devices (you'll have to do a little more work to enable sdcard as ntfs) (Thanks to gokhan for the hotplug script as base.) This script uses the native NTFS RW support available in t he kernel instead of ntfs-3g
Ext4 Tweaks from 3.x.x branch:
[PATCH] ext4: fix ext4_end_io_dio() racing against fsync() from https://lkml.org/lkml/2011/12/16/311
*Reported-by: Kent Overstreet <[email protected]>
*Signed-off-by: "Theodore Ts'o" <[email protected]>
[PATCH] ext4: avoid hangs in ext4_da_should_update_i_disksize() from https://lkml.org/lkml/2011/12/16/344
*Signed-off-by: Andrea Arcangeli <[email protected]>
*Signed-off-by: "Theodore Ts'o" <[email protected]>
I/O Schedulers
SIO (2012 0.2 version)
deadline (tweaked for Flash)
noop
V(R)
Performance Patches
Mike Galbraith's Ultimate CFS Performance Patch (CFS Autogroup)<[email protected]> as ported by faux123 <[email protected]> for 2.6.35 kernels. I (sarcastillo <[email protected]>) additionally edited some things in sched.c to make it compile properly for 2.6.35.14 Samsung Sourced kernels*More info on this here: https://lkml.org/lkml/2010/11/20/91
Added the CGroup Patch:*Added [PATCH] cgroup: Provides a way of tasks grouping by timer slack value by Kirill A. Shutemov <[email protected]> Based on patch by Jacob Pan. Introduces per cgroup timer slack value which will override the default timer slack value once a task is attached to a cgroup. It's useful in mobile devices where certain background apps are attached to a cgroup and minimum wakeups are desired.
Miscellaneous Patches
Added [PATCH] cpu-hotplug: Add the function 'cpu_hotplug_inprogress' by Maya Spivak <[email protected]>
Added [PATCH] printk: Don't allow cpu to get console lock during hotplugging by Maya Spivak <[email protected]>
Added [PATCH] rcu-tree: Check for extended quiescent state at start of gp by Maya Spivak <[email protected]>
Added [PATCH] sched: Do not block when waiting to free old root domain by Maya Spivak <[email protected]>
Enabled fsync disabled (can be disabled by doing an echo "1" > /sys/module/sync/parameters/fsync_disabled in a terminal emulator or as a script for gscript or scriptmanager)
Touchscreen fix set to "3" for more responsiveness during games, etc. (Thanks to vitalij)
Custom CWM Recovery made by af974 (Huge props to him!) based on Team Overcome Recovery (Huge props to them!)
Enabled back key
Enabled Power button to select (less chance of double pressing the Home Button and format sdcard fro some users)
Reorganized, Inutitive layout and more Readable menu
No/Yes Selection Tweak (If you know how to get to Recovery, you don't need that many "No's")
Mount Internal AND Mount External from Recovery (We figured this would be quite Useful)
Click to expand...
Click to collapse
RedPill Download Links:Download TAR
Download CWM ZIP
​
Click to expand...
Click to collapse
Disclaimer: I made this for my personal use and has been personally tested by me and my team (HyperDroid Dev Team). While it may work for other i9100 International ROM's, we have not tested it personally. You have the liberty to choose to use this Rooted Kernel and by flashing this Kernel you will have surrendered your right to complain that you lost your Warranty. If you're smart enough to figure out WHY you need a Custom Rooted Kernel, you SHOULD be smart enough to undo it if you need your device serviced officially. If your device explodes, melts or otherwise disintegrates from its awesomeness I shall NOT be held responsible.
Click to expand...
Click to collapse
Reposting the Kernel: Please don't repost this kernel anywhere else. Keep the download links intact as I have taken the effort to provide fast links for everyone. If you can't understand English well enough and feel the need to re-post this kernel on a foreign language web site or forum, please let me know first and link to this page... (Google Translate can make it easier to read in your Native Language)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Credits: (Huge props to all the devs I've learned from by reading and studying their code)
Chainfire
Erasmux
Imoseyon
faux123
Ezekeel
franciscofranco
supercurio
hardcore
Hacre
Netarchy
Ninpo
gokhanmoral
Tegrak
Entropy512
cattleprod
alterbridge
Team Overcome
All the hardworking Kernel Devs at lkml.org (Linus Torvalds, Jens Axboe, Mike Galbraith, etc.)
Click to expand...
Click to collapse
Special Mention to the following:
To my mates at the HyperDroid Dev Team: (who help me test and refine the features of our kernel for our ROM)
Arighi (for the initial guidance on how to get the kernel booting and working & a lot of battery driven patches)
D.O.C. (formerly doctorcete) (for the friendship and being an example of diplomacy in dealing with usual ****storm of questions from users who refuse to search and read)
AF974 (for the Overcome based Recovery that's so bad ass I want to stay in recovery)
petsasj (for his great work on HyperDroidParts and all future Apps that are just pure awesomesauce!)
sicopat (for letting us use his server and helping us out with a lot of things smali)
s2d4 (for testing everything at the risk of the potentially time sucking Soft Brick...)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Kernel Source: https://bitbucket.org/sarcastillo/ultimate-kernel-sgs2
MatrixPills Image by Corinne Wilger. Visit her site HERE.
RedPill Touch Recovery Changelog:
-Based on new CWM 5.0.4.2 made for ICS
-Usual custom layout as previous release, custom images (thanks to Pongster)
-New menus layout:
Reboot menu= reboot to system,recovery and power off
Install menu= choose from internal or external sdcard
wipe menu= wipe data/factory res, wipe cache, wipoe voltage settings(it wipes voltage control script), wipe battery stats.
backup and restore= backup either on internal or external sdcard, restore and advanced restore to the same way.
storage menu= mount/unmount partitions, mount internal or external sdcard
Touch button on screen
Since the touch feature, we have again 7 no and one yes.
Touch buttons layout(from left to right) : BACK-UP-DOWN-SELECT
Battery percent
Battery charge while in recovery.
Click to expand...
Click to collapse
Credits:
Thor2002ro for all his help, i've stressed him along via pm and for porting ICS recovery compatible with gingerbread
DoomLord for the inspiration
Sztupy...nice and helpful guy
Gweedo767
Ogdobber
Koush for his wonderfull work on recovery
Linux even if recovery doesn't have linux code inside
Google
All Hyperdroid team
XDA Developers
CyanoGenMod Team
Alterbridge and Overcome team for their work on the Galaxy Tab recovery
Click to expand...
Click to collapse
Uploaded with ImageShack.us
----------------------------------------------------------------------------------------------------------------------------------------
HyperDroid RedPill Recovery ChangeLog:
-New custom layout, red color text, custom images (thanks to Pongster)
-New menus layout:
Reboot menu= reboot to system,recovery or download
Install menu= choose from internal or external sdcard
wipe menu= wipe data/factory res, wipe cache, wipoe voltage settings(it wipes voltage control script), wipe battery stats.
backup and restore= backup either on internal or external sdcard, restore and advanced restore to the same way.
storage menu= mount/unmount partitions, mount internal or external sdcard
back softkey is set to back.
power and menu are set to select.
Click to expand...
Click to collapse
Thanks to D.O.C (alias doctorcete, alias King) for screenshots
"The Surgeon"
Its basically to make our lifes simpler...
as stated by pulser_g2 here the idea was born on IRC basically because of the constant updates samsung was doing before, and we all felt a little overwhelmed about doing and redoing the mods and themes for every little release, and on top of it, without a changelog.
So basically "The Surgeon" is VRTheme on steroids. What does that mean?
VrTheme based on latest by seshmaru here modified by myself in several ways.
1. It uses sdcard instead of cache, thus making it cross compatible with devices with little cache partition memory (my case the HD2=
2. It has been modified to fit our needs of modding aswell.
So We basically take any John Doe build, no offense intended.
then flash out surgeon and we can do what any flashable zip can do plus:
1. Theme thanks to vrtheme system
2. Flash custom boot logo
3. Change DPI
4. Mod any apk that would allow us (for example, here we use it to provide multidpi for dialer and calculator).
5. Makes a backup of modded apks to sdcard/vrtheme-backup which can be called with the again modified vrtheme restore backup zip file that you should find on the posts below.
to this add:
1 Remove Apks
2 Automatic wiping of dalviks cache
3 adding apks
4 settings permissions, replacing dirs, etc, what any flashable zip does.
and, the best thing of it all, is that, removing specific xmls from the flashins system, makes the surgeon truly universal. This same advanced flashable zip file we have been using since KG6 (yeah, we have been building the roms since KG6, but we did not want to release until we got it all right) with the exception of certain xmls (devs know what im talking about, samsung has been changing smalis and xmls on every darn build).
It also has been proven to work (again without specific xmls) with VillainROM or any rom.
Our main goal was to build a custom base, and, although we consider the base rom to be pretty good, it has nothing spectacular or innovative added to it, its a base rom.
Again, so you guys get this straight.
Base rom contains all the mods that cannot be flashed thru the surgeon.
Thus, the Surgeon is where the magic relies, is where multidpi, themes, mods, scripts, bootlogo changing relies.....jep, that is where the magic takes place.
The Surgeon is pretty straight forward as you can see, no hidden tricks or secrets kept for ourselves, therefore, we consider this to be an opensource project, cause we truly believe that lots of eyes on sources make things a loot better.
So if we get lucky enough with samsung, only one surgeon from now, updates for base rom only.
Surgeon should get updated when bugfixing, adding of features or removal of them.....hopefully i said..
Again, without the help of the VillainRom Team, this wouldnt be possible.
PS: The rom was first intended to be as it is AFTER flashing the surgeon scripts, but, since we can provide a base rom for guys that like ALL of samsung stock features and theme, then this makes us all happy doesnt it?
Universal Surgeons Testing phase
Lets play a bit with this one and try to make surgeon to work on any build too shall we?
Ok here we go with the first one....I just flashed it and it works fine, no bootloops or anything, rom (not androidmeda) is totally themed, dpi hcanged to 192, dialer resized to be multidpi, apps injected, some removed, etc.......This shall make almost (yeah almost) like the docs surgeon script on any build....
Removes the following if existant on build to be flashed upon to
http://pastebin.com/YNC6RPkS
Changes the Bootlogo
Changes dpi to 192
adds some tweaks to init.d
adds color tweak
removes gapps and replaces with latest that supported dpi
adds Spare parts (please uncheck compatibility mode for dpi lower than 240 display correctly)
adds CM7 calculator
Adds gb keyboard I modded to be multidpi
Replaces TWlauncher, replaces with launcerpro
Removes almost all of tw stuff
Removes Kies functionality (and its entry from settings)
And lots more.....
*tested here over Villain Rom, on it and its all good so far
Now rom would be fully themed like docs theme (including custom fadings animations)
pls feedback is appreciated
Universal Surgeon V2.0
Kernel Changelog
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Red Pill Kernel
Changelog
RedPill_Rev1.3
Added Newest RedPill CWM Based Recovery by AF974 (Touch Enabled with Battery % and Charging in Recovery) (Huge props to AF974)
Experimental: USB Audio support for DAC devices
Change Back to SLQB for slightly better performance
Removed Net Scheduling/Traffic Shaping via Stochastic Fair Blue Scheduler as this may be causing network issues for some users
Added HFS and HFS+ Support
Added back V(R) but tweaked it to prevent aliased requests from starving other I/O as well (Thanks to franciscofranco for the idea)
Update SIO I/O scheduler to 2012 version by Miguel Boton
Tweaked CPU Freq hyper sampling rate
Added Patch ARM: improve compiler’s ability to optimize page tables by Russel King
Added Patch wakelocks: Allow independent debugging of wake_lock_destroy() (Thanks to Entropy512)
Experimental: Updated Wireless Driver from EL29 Source… (Thanks to gokhanmoral for these files that are “cherry-picked” from his repo) If users report a lot of the dreaded wlan wakelocks, I can easily revert to the stock update3 sources… This is an attempt to solve WiFi problems some are having.
RedPill_Rev1.2
Tweaked tweaks.sh file based on additional information learned and tested recently. (VM System Reading by s2d4 found <a title="Android VM System: Understanding It a Little More" href="http://goo.gl/bQgU0">here</a>)
Reduced number of available governors based on my personal testing... the 4 remaining should serve the needs of those looking for performance, battery life or anything in between.
Removed some more stuff no one used in the defconfig.
Release LA2 based initramfs version as stable (and make AOSP Support Unstable as we don't test that in GB)
Tweaked mount options for ext4 (extended Commit time to 30 and fall in line with the VM System tweaks implemented)
Change from SLQB to SLUB for a little less overhead (vs. a queued allocator) More info on SLUB here: http://lwn.net/Articles/229984/
Tweaked values in deadline and SIO I/O scheduler to give better throughput while attemting to keep a similar latency to the original (if not more aggressive) Based on my initial (indicative, not conclusive... yet) testing, having these in line with the vm dirty, expire, writeback values + ext4 commit=30 + laptop mode to "schedule" write outs to NAND based storage works quite well to balance throughput with latency expected in a mobile device. We took the big picture view instead of copy pasting random "known" good values and challenged some assumptions even we had at the start. The result is a mobile device tuned for good throughput and battery life with above average latency (not the lowest latency out there, but given the benefits of better I/O throughput and potential battery savings + extending the lifetime of NAND Based storage I think it was a compromise worth taking)
Remove V(R) and BFQv3r1 scheduler as the tweaked deadline, SIO and noop are the best we've tested for NAND filled mobile devices. (More on this later)
Added franciscofranco's deadline tweak that "Prevent aliased requests from starving other I/O"
Set deadline as default I/O scheduler
Tweaked deadline i/o fifo_batch for better throughput
Remove set_need_resched from rcutree.c based on https://github.com/drod2169/KangBang-OMAP/commit/717e7a22e42869418084701455c11e690a993fe8 which says:*"if we really are in an interrupt, the attempt to re-enter dyntick-idle mode will invoke*rcu_needs_cpu() in any case, which will force the check for RCU callbacks.*So this commit removes the check along with the set_need_resched()"
Experimental BTHID fix based on latest bthid.c from Samsung Source Releases I found on github (EK02 for Epic Touch 4G Released in December 2011... about 2 months after Update3 Sources were released for the i9100 and about the same time "BTHID broke" reports began coming in.) (Thanks to TDR for the source where I found this fix)
RedPill_Rev1.1
Adjusted Int Voltage of ARM and Busfreq to Stable Values across several devices
Added Imoseyon's suspend code to hyper and sleepy
Adjusted Touch Screen Values back to default (Thanks to Entropy for pointing this out)
Lowered Touch LED Values lower to dim the LED's a bit more.
Added Some Tweaks in the init.rc so they can be set from there and are consistent for anyone who uses the kernel.
Added some experimental compiler optimizations (Haven't noticed much difference, but we'll continue testing)
Enabled deep_sleep and fast_start by default in ondemand, hyper and sleepy
Added backported Conservative governor from 3.2
RedPillKernel_Rev1.0 (Final Rebrand to highlight the Power of Choice... formerly known as HyperKernel or HDK all older changelogs and commits since Update 3 are included)
Custom CWM Recovery made by af974 (Huge props to him!) based on Team Overcome Recovery (Huge props to them!)
-Enabled back key
-Enabled Power button to select (less chance of double pressing the Home Button and format sdcard fro some users)
-Reorganized, Inutitive layout and more Readable menu
-No/Yes Selection Tweak (If you know how to get to Recovery, you don't need that many "No's")
-Mount Internal AND Mount External from Recovery (We figured this would be quite Useful)
Tweaked NTFS automount script to support RW and use native ntfs built in the kernel instead of ntfs-3g (like stock kernel)
Adjusted Max CPU Freq to 1.5Ghz since its more stable then being at 1.6Ghz for those who like to OC
Fixed Bluetooth Devices not connecting properly because of the module not loading properly
Stripped the kernel modules used to bring the kernel size down a little more
Added Tegrak's Home Button Key Tweak (Thanks Tegrak)
Added Stochastic Fair Blue net scheduler (SFB)
Added [PATCH] lib/sha1: use the git implementation of SHA-1 by Mandeep Singh Baines <[email protected]> to improve boot performance by almost 12%
Added [PATCH] arm: remove "optimized" SHA1 routines by Linus Torvalds <[email protected]>
Added [PATCH] arm: remove stale export of 'sha_transform' Linus Torvalds <[email protected]>
Added ARM: 6941/1: cache: ensure MVA is cacheline aligned in flush_kern_dcache_area found here https://lkml.org/lkml/2011/6/16/174
Added ARM_ERRATA_754322 & ARM_ERRATA_754327
Tweaked the Tweaks File with more Tweaks so the Tweakers who like to Tweak can stop Tweaking as its Tweaked by default and No other Tweaks are needed to Tweak it even further. Any more Tweaking brings you to the law of diminishing returns... (you get the point so I'll stop there...)
Set Clockspeed at 1.2Ghz at Boot time to ensure all critical tasks have enough power to perform them while the governors/maxfreq isn't set yet. (Thanks to Imoseyon for this hack)
Add back default sampling_down_factor for Sleepy CPU Governor
Added [PATCH] mach-s5pv310: Make cpuidle AFTR entry less chatty by Entropy512 <[email protected]>
Added various clocksource patches from lkml.org (check the commit log for details)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Kernel Frequently Asked & Answered Questions (FAAAQ)
Where is the source for building this Kernel?
You can find the source HERE. I love GPL and We should all support Open Source Software and its Developers. Please Note that Open Source doesn't mean all of this magically wrote and patched itself... it takes a lot of our FREE time to do this and would appreciate if you let us know how you've improved the code.If you know what you're doing, you can easily build your own kernel too. *Please let me know if you have any improvements you feel should be included and send me a pull request. *If it tests okay, it may be included in the next release.
Does the RedPill support AOSP/MIUI/CM7 ROMs for i9100?
As of Rev1.3, I will not be working to making it work on AOSP/MIUI/CM7 as I only have enough time to test and maintain 1 build. When the ICS sources come out, I may have to make it support it again as the team may release an AOSP based ICS as well.
Why doesn’t the RedPill have high benchmarks?*
That’s done on purpose to keep YOU away. Seriously. The way the VM system is tweaked (dirty ratio’s, minfree values, etc.) + the focus on better throughput in any type of load + prioritizing data integrity by turning on fsync + a lot of other small tweaks all lead to good performance and battery drain in actual use (I like using my device and not keep it sleeping to bloat my battery stats, thank you). This may not give you the benchmark scores you want to be able to show off… which is good since it means YOU stay away from this kernel and continue to rely on benchmarks rather than actual usage.
Does the RedPill support other variants of the i9100 (like i9100g or i777)?
No. It supports only the i9100 International Version. *If you use it successfully on other i9100 variants, please let me know so I can update this page.
Is the Kernel Undervolted by default?
ARM Voltages are stock. Int Voltages and Busfreq Voltages are conservatively UV'd as seen in the source below...
CPU: L0=1500, L7=100
Code:
.index = L0,
.arm_volt = 1450000,
.int_volt = 1100000,
.index = L1,
.arm_volt = 1300000,
.int_volt = 1100000,
.index = L2,
.arm_volt = 1300000,
.int_volt = 1050000,
.index = L3,
.arm_volt = 1200000,
.int_volt = 1050000,
.index = L4,
.arm_volt = 1100000,
.int_volt = 1050000,
.index = L5,
.arm_volt = 1000000,
.int_volt = 975000,
.index = L6,
.arm_volt = 975000,
.int_volt = 950000,
.index = L7,
.arm_volt = 950000,
.int_volt = 925000,
Busfreq:
Code:
{LV_0, 400000, 1000000},
{LV_1, 267000, 975000},
{LV_2, 133000, 975000},
Why a tweaked deadline I/O scheduler?
The deadline I/O scheduler by Jens Axboe has proven itself as a low overhead, high throughput and acceptable latency I/O scheduler. *When tweaked for NAND based Mobile devices, it does even better. *While it "starves" writes by default with a 2:1 Read:Write ratio, this can easily be tuned via sysfs.
Why is my favorite governor (whichever it is) not available?
Simplicity is the Ultimate Sophistication, as Leonardo Da Vinci eloquently said. *Based on extensive testing and user feedback, we gathered that these 4 governors included gave the best performance and battery life on our device. Simple choice to have only the best ones available based on actual testing and feedback. *You will also note that I removed lulzactive and any interactive based governor. This was done after I realized that I was tweaking lulzactive, for example, to behave like governors that do the job perfectly already sans the sleep profile. *What I mean is setting a pump up step of 4 and tweaking other factors such as sampling rate and sample time along with cpu_load (inc and dec) made it behave like ondemand with a sleep profile... *I like it simple so I just included the tweaked and optimized ondemand with sleep profile instead. *You can also make lulz behave like conservative, so I included conservative in there. lulzactive is a tweakers dream... but those who like to keep it simple may find it takes time to configure correctly. *I included only these governors so you all have a simple choice to make in finding your favorite one. *These are all tunable via sysfs so you can skew it towards battery or performance based on what is important for you. *Don't expect uber smoothness and 6 hours screen-on time though... *there will be compromises when leaning towards any of the two factors most users consider important in a kernel.
What are the sleepy and hyper governors?**Experimental CPU Governors
(In order to keep all bugs properly attributed to my experiments and not the original author's, I have renamed it accordingly.)
sleepy (formerly know as solo) is an attempt to balance performance and battery life. Its based on the tweaked ondemand by arighi and is optimized for the SGS2. It includes imoseyon's ondemandx tweaks with some down_sampling and other features that users can set by echo'ing into sysfs. Sleepy is closer to ondemandx in behavior when in action.
It also features arighi's fast_start and deep_sleep detection features. It also suspends at 500Mhz.
hyper (formerly known as kenobi) is an aggressively smart and smooth tweaked and optimized for the SGS2 based on ondemand as tweaked by arighi with some ondemandx suspend features from imoseyon. (Added setting suspend_freq via sysfs and Imoseyon's Suspend Code) Hyper is closer to ondemand in behavior when in action.
It features arighi's fast_start and deep_sleep detection features. It also suspends at 500Mhz.
What is arighi's deep_sleep detection?
From arighi's description on the*<a title="deep_sleep commit" href="https://github.com/arighi/linux-gt-i9100/commit/719732552357f66b11f8c972575b440a8f97d64b">actual commit here:</a>
deep sleep detection via low-power idle notifier
Implement a deep sleep detection mechanism using a low-power idle*notifier introduced in 9487d11.
A new parameter is provided in the ondemand cpufreq governor and*exported in sysfs:
/sys/devices/system/cpu/cpufreq/ondemand/deep_sleep
The deep sleep detection is implemented using the following heuristic.
When deep sleep detection is enabled (deep_sleep = 1) if we detect that*the previous low-power idle state was more than 4x the sampling rate, it*means that we're probably going to enter to a deep sleep state or we're*just resuming from a deep sleep.
In both cases we completely ignore the cpu activity (considering it to*the minimum load), because probably there's a big chance to get back to*the deep sleep soon. If it happens, with this heuristic, the cpu will*enter the deep sleep state at the minimum frequency, that is good for*saving battery life.
What is arighi's fast_start detection?
From arighi's description on the <a title="fast_start commit" href="https://github.com/arighi/linux-gt-i9100/commit/df47f443192c3806277db6aed257421e33c4036f">actual commit here:</a>
fast start detection via low-power idle notifier
Implement a heuristic to detect interactive usage of the device and*boost the cpu frequency to the max.
A new parameter is provided in the ondemand cpufreq governor and*exported in sysfs:
/sys/devices/system/cpu/cpufreq/ondemand/fast_start
The fast start detection is implemented using the following heuristic.
If in the last 4 samples the cpu never entered in low-power idle state,*probably the cpu is very busy. In this case we jump to the maximum frequency immediately.
Why SLQB? (According to its author, Nick Piggin)*
”SLQB is a slab allocator that focuses on per-CPU scaling, and good performance with order-0 allocations. Fastpaths emphasis is placed on local allocaiton and freeing, but with a secondary goal of good remote freeing (freeing on another CPU from that which allocated).”
Why XZ Compression for the Kernel?
Its about 30% smaller and decompresses at just half the speed of gzip... I decided to use it as we have a lot of ram and raw cpu power that can easily handle the extra load xz compressed kernels
XZ compression is set to compress at -9 instead of the default -6 (since XZ decompresses faster when the archive is larger) delivers more performance since in kernel land you don't need to worry about compressing anything back to XZ, these gains in size were enough of a trade-off instead of using gzip by default. (Technically, gzip compressed kernels and initramfs are faster than any other compression method... but for our device we have a lot of raw CPU power and a lot of RAM) (more here http://tukaani.org/xz/)
Why ARM Topology and sched_mc?*(From linaro.org)
"The sched_mc function adds a power saving awareness to the Linux scheduler which is tuned for performance by default. When sched_mc is enabled, the scheduler tries to gather the running processes in a minimal number of cpus and clusters. This choice of the location of a process is done thanks to the cpu topology function which describes the affinity between cpus."
(more info here: https://wiki.linaro.org/WorkingGroups/PowerManagement/Specs/sched_mc)
Why RCU Fast No HZ?
"This option causes RCU to attempt to accelerate grace periods in order to allow CPUs to enter dynticks-idle state more quickly. On the other hand, this option increases the overhead of the dynticks-idle checking, particularly on systems with large numbers of CPUs." The power savings generated from using this, in my experience, outweigh the additional minimal overhead in checking dynticks-idle."
Why rename some modded CPU governors?
I chose to rename tweaked/edited governors as there may be bugs that I inadvertently add with my experiments and would like all these bugs to be properly documented as being introduced by myself. (Personally, it would be worse for me to introduce a bug in a current mainline CPU Governor with my experiments as I'm still learning about tweaking and making changes at this level... and from how I live my life, experience is the best teacher)
Ondemand, for example, is an old reliable and putting all the features I want in there will change the performance I have come to expect from it. I don't expect ondemand to have a sleep/suspend profile for example. So editing/tweaking/optimizing a governor and renaming is the way forward for me. I want to select "ondemand" and know that it will behave like it does in all my devices... reliably handling the load at the expense of battery life.(smoothness above all)
Where do I report Issues or Get Community Support?
Head over to the <a title="Official Kernel Release Thread" href="http://androidmeda.com/forum/index.php?topic=47.0">Androidmeda Forums Kernel release thread</a> or <a title="XDA Kernel Release Thread" href="http://forum.xda-developers.com/showthread.php?t=1288850">XDA Kernel release thread</a> to get support from fellow RedPill Users. *Make sure you included a dmesg or last_kmsg by following <a title="How To File Useful Bug Reports in Android" href="http://androidmeda.com/forum/index.php/topic,12.0.html">my guide on filing Bug Reports here.</a>
How do I show my appreciation? Can I donate to you?
You can show your appreciation concretely in several ways:
Pressing the "Thanks" Button on XDA
Signing Up to the Androidmeda Forums and Pressing the "Super Thanks" Button there
Report issues politely and completely
Donating any amount is completely up to you. *I look at donations as a "tip" for a job well done, rather than a "wage" or a "bounty" to get things done. *And Tipping is always up to you... the tipper. *I won't stop development if you don't donate, that's for sure, as I do this mainly for myself and my HyperDroid mates to begin with. I make more money running my own business than this hobby so “tips” are not a necessity… it just tells me how many people actually find the work useful enough to say thank you via a financial gesture.
This Kernel will ALWAYS be FREE to Download and USE, even if the time spent making it IS NOT FREE. *That's Open Source. (The time people spend on open source projects could have been used to spend more time with their families, for example. But the Devs commitment to get something done right is almost always tugging at him to Dev just a little bit more) *
*I've personally donated to Devs who've done things I would never have been able to figure out at the time they did figure stuff out. *Learning anything new takes time and time, in my book, is more important than money as I can't turn back time, while I can always earn money. SO I donate to Devs who spend their free time making Stuff better and easier for those of us who haven't figured out how to get it done.
Docs Surgeon
Docs Surgeon
​*The Screenshots are from the theme only, Touchwiz launcher is removed on the surgeon.[/B][/LEFT]
**The theme download (not surgeon) will theme your twlauncher/weather/clock like the screenshot above.[/COLOR][/FONT][/B][/SIZE]
Docs Surgeon script
List of APKs and other stuff is removed from Build when this is flashed
Features
Flashable over Androidmeda
Lucid based theme overall system using VRtheme modified (props to doctorcete)- autobackup made on sdcard for easy restoring
Custom made Screen transitions (doctorcete)
Removes samsung bloatware
Preserves samsung mail and im untouched and working
Removes entry from settings not to show kies wifi (doctorcete)
Prevents home key or volume to wake up device, only power button does (OP)
Changes dpi to 192 thus making rom as multidpi compatible as possible.
Changes the first boot logo to hyperdroid logo
Removes warm tint color thanks to (IntExCZ)
Removes gapps and adds latest gapps that had multidpi support (12/07/2011)
Removes twlauncher and replaces with launcherpro (easily replaceable before flashing, just remove Hyperdroid-LauncherPro.apk and add your desired launcher to /system/app inside zip file.
CM7 calculator
DSP manager
Keyboard with a comma thanks to petsasj
Adds some useful apps to data/app
Clear button to show on the bottom and centered
Changelog
v4.0 (09/12/2011)
General Theme tunning up, there is a loot of visual changes, u might consider flashing it even if you did not liked the them before.
Changed the updater scripts to be a bit more precise on pregress bars
Organized updater script
Removed all gapps but vending files form surgeon, now it is more compatible whit newer gapps versions sin its only replacing vending.apk
Updated to be compatible with new kk5 apk name changes
Updated to be compatible with Jkay 13.2 theme
This surgeon I believe is not universal.
v3.0 (26/11/2011)
Change Dialer pngs one more time
Added jkay v13.1 compatibility
Added XW and XX bases compatibility (theory only)
Change dialers pngs again
Retained FB social sync
Added dpi app changer thanks to innodroid
Added mdnie switcher thanks to freerunner
Added Fix permission script to be run at end of flashing to avoid permission management issues.
V2.2 (27/10/2011)
vrtheme to use latest installtheme.sh with fixed permissions
V2.1 (24/10/2011)
Changed the first boot logo to fit new boot animation
Removed build.prop modifying except for dpi change.
V2.0 (22/10/2011)
Updated now to jkay v12.1 support
Theoretically now all V2.0 Surgeons should be universal to be flashed over any other builds (needs testing and confirmation)
V1.4 (19/10/2011)
Changed the Clear button to show on the bottom and centered, note that since the carrier is on the same line of the button, whenever the clear button shows up, our carrier name will show up aswell.
Removed some sound from system at all that I ound anoyying (volume sound, charging sound, fully charged sound).
Removed samsung bootanimation at startup and shutdown animation as they arent being used and only taken up some space.
Alarm icon on status bar removed, wont show up there, but it will function normally
V1.3 (18/10/2011)
Included jay v12 support
Special modded keyboard by petsasj with comma at the right and dot at the left, if you find this unconfortable just go to his thread here and flash ur favorite keyboard, Dont forget to press thanks to him for the mod.
V1.2 (17/10/2011)
Reestructure of flashable zip file
Now Surgeon changes build number displayed, it should display code names at the end corresponding to the surgeon being used.
Changed the dialer theme thanks to (Cruznec)
V1.1 (06/10/2011)
Added more multidpi support to dialer
Launcher Pro Plus is now under /system/app and has been themed and shorcuts to the mms "bug" has been removed for your convinience. (doctorcete)
Download via HyperDroid Parts OTA Tool​
Pongster Surgeon Home
Welcome to my Surgeon,
This is my personal surgeon for the HyperDroid-Androidmeda for SGS2. I use this myself without any problems and I hope you enjoy it or use it as a base for your own Surgeon.
Features
Flashed over HyperDroid-Androidmeda
Fully deodexed
Frankentheme (MattedMidnight) heavily based on GingerWay Blue Ocean by antonda (link here) with PNG's from Jabbawalkee's MattedBlues, Sonnysekhon's Lucid and Monochrome and Nitroz and Pele of Black Android Theme for Gingerbread
Removes some samsung bloatware: mainly TouchWiz except for TWCalculator and TWCalendar
Prevents home key or volume to wake up device, only power button does (OP)
LauncherProPlus included by default (Thanks to Federico Carnales)
Mail and IM fully functional
Kies still functional
Jkay compatible
3G/G/Wifi and Network Signals turn White when connected to Google Servers
DPI is set at stock 192
MattedBlack...
Bootanimation is minimalist android text similar to default bootanimation in Android Emulator.
Creates a folder in your /sdcard named gscript which contains the most useful tweaks I personally use
7 Notification toggles for Jkay mod version at 160 dpi (Thanks to sicopat)
MultiDPI MusicPlayer.apk (works at densities from 160 and above) modded by pongster
160 dpi for FULL Android Market support
MattedBlack Franken Theme (Lucid + BAT Xtreme + BlueOcean +GingerGray)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Here is the LIST of the applications that have been removed. Read it, and if you need some applications that are removed, simply follow the instructions below.
Suggested Market Applications
Code:
Browser => [URL=https://market.android.com/details?id=com.opera.browser&feature=search_result]Opera Mobile[/URL]
News Feeds => [URL=https://market.android.com/details?id=com.alphonso.pulse&feature=search_result]Pulse[/URL]
Video Player => [URL=https://market.android.com/details?id=com.clov4r.android.nil&feature=search_result]Mobo Player[/URL]
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Screenshots of MattedMidnight Frankentheme
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
Screenshots of MattedBlack FrankenTheme
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Downloads
MattedMidnight
Theme available via the ROM Tool on v4.0
MattedBlack
(Available in Transparent only | 160 DPI (DON'T CHANGE THIS) | petsasj 160 DPI TW | pongsters MultiDPI MusicPlayer mod)
Available via the ROM Tool on v4.0
Click to expand...
Click to collapse
Click to expand...
Click to collapse
How to flash
Code:
0) Check the list of applications removed and modify for your own needs
1) Flash base
2) Flash any Delta Updates
3) Flash surgeon
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Instructions if you don't want to remove a specific application
Code:
Open zip, navigate to META-INF>com>google>android
Extract updater-script
Delete the line of the application that you don't want uninstalled
Save and replace original updater-script
Flash
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Credits
HyperDroid Dev team
doctorcete for the unique and powerful Surgeon
Seshmaru and Pulser_g2 for VR Theme
lidroid for his awesome little app
Jkay
petsasj
sicopat
Kahvitahra and "TSM" Sbrissen
antonda
Nitroz
sonnysekhon
mr.megi
dtekkt
LeoMar
MIUI ROM
The rest are mentioned in OP and Changelog portion already. If I forgot anyone, do let me know.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
=======================SURGEON CHANGELOG======================​
MattedBlack v4.0 (9/12/11)
Jkay 13.2 Support
Updated Themes of some Apps thanks do doctorcete (Clock, EMail, Phone, Samsung Keyboard)
MattedBlack v1.0 (11/10/11)
Initial Release
Huge Props to LeoMar for the Matte Dialer from his Revolution 2.7.1 Kitchen, mr.megi for DarkMIUI and dtekkt for MIUIBuntu and all original creators of the PNG's (as this is a frankentheme I put together, not created, please let me know if there are images that you created so I can credit you properly)
V2.0 (22/10/2011)
Updated now to jkay v12.1 support
Theoretically now all V2.0 Surgeons should be universal to be flashed over any other builds (needs testing and confirmation)
V1.3 (18/10/2011)
Included jkay v12 support
V1.2 (17/10/2011)
Reestructure of flashable zip file
Now Surgeon changes build number displayed, it should display code names at the end corresponding to the surgeon being used.
V1.1 (06/10/2011)
Hotfixed already to avoid bootloops, crashes or malfunctioning, everything now whould be smooth as butter
Added more multidpi support to dialer
Added SpareParts apk to data/app, please use it to uncheck "compatibility mode" and reboot.
Launcher Pro Plus is now under /system/app and has been themed and shorcuts to the mms "bug" has been removed for your convinience. (doctorcete)
V1.0 (05/10/2011)
Flashable over Androidmeda (Visit antonda's thread here)
Frankentheme (MattedMidnight) heavily based on GingerWay Blue Ocean by antonda (link here) with PNG's from Jabbawalkee's MattedBlues, Sonnysekhon's Lucid and Monochrome and Nitroz and (dev name here) of Black Theme for Gingerbread
Removes some samsung bloatware: mainly TouchWiz except for TWCalculator and TWCalendar
Prevents home key or volume to wake up device, only power button does (OP)
LauncherProPlus included by default (Thanks to Federico Carnales)
Mail and IM fully functional
Kies still functional
changes dpi to 182
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Hello ladies and gents,
This is my surgeon for Androidmeda HyperDroid. I won't bore you with a long block of text. So here's a short layout of the features.
Features
Flashed over Androidmeda
Fully Odexed or Fully Deodexed (2 versions)
RTL patch compatible. For Jkay mod based builds you MUST use the deodexed version. For TSM both are working
Blue theme on most applications (I have drawn a line between blue being the dominant color and everything just being ... blue)
Stripped almost completely to the bone. About 90 system applications removed
Jkay or TSM mod compatible (2 separate versions)
3G/G/Wifi and Network Signals turn blue when connected to Google Servers
DPI is set at stock 240
Includes my modified TouchWiz Launcher (v2.4 Page Number 4 default Home Page)
Includes my modified Samsung Keyboard
3 very useful applications installed in /data/app (SmartRotator, AutoMountUSB, homeMYhome) and OdexMe in /system/app
Rosemary Fonts from SGS (select from Menu > Display > Screen Display)
Creates a folder in your /sdcard named Walls with SGS2 stock wallpapers and Galaxy Nexus Wallpapers
Up to 12 notifications in Jkay mod that are rearrangable. 5/6 notifications layouts (non-deluxe) come with a carbon fiber background.
Edited Settings.apk to remove unused entries
Here is the LIST of the applications that have been removed. Read it, and if you need some applications that will be getting removed, follow the instructions below.
Short description of the surgeon
This surgeon uses a unique reodexing script to turn the deodexed base ROM back to odexed. This script was done using bolts and bits of reodexing scripts floating around. (Jkay and TSM versions use different odexing scripts and procedure) Many kudos to those people.
This is best suited for the users that remove most bloatware and install Titanium Backup to restore their applications at once. Should you not be one of those users, there are some suggestions below to replace stock applications with.
It is prefered you use odexed themes. But you can flash deodexed themes, as well, so long as you leave /system/framework/*.jar's untouched. Open the theme .zip, note the apks that the theme contains and once installed, remove the appropriate odexes. Then run Paul's OdexMe application (this is an edited version).
Email and Email widget are included, however Premium accounts cannot be created. The push notifications of Social Hub does eat up a lot of RAM and Battery (a lot of battery in fact) so please use Hotmail/Yahoo mail push apps.
homeMYhome app (renamed for easiness into Double Tap - many thanks to c3k!) replaces VoiceToGo double tab feature with another app of your choice. Make sure you have Double Tap enabled if using Jkay's version.
AutoMountUsb enables USB automounting once plugged in, and SmartRotator allows you to select which applications you want to rotate or not
Suggested Market Applications
Code:
Browser => [URL="https://market.android.com/details?id=com.opera.browser&feature=search_result"]Opera Mobile[/URL]
Calculator => [URL="https://market.android.com/details?id=uk.co.nickfines.RealCalc&feature=search_result"]Real Calc[/URL]
Email => Hotmail/Yahoo push email apps
File Manager => [URL="https://market.android.com/details?id=com.speedsoftware.rootexplorer"]Root Explorer[/URL]
News Feeds => [URL="https://market.android.com/details?id=com.alphonso.pulse&feature=search_result"]Pulse[/URL]
Video Player => [URL="https://market.android.com/details?id=com.inisoft.mediaplayer.dice&hl=en"]Dice Player[/URL]
Screenshots of JKAY version
Downloads
Via OTA tool
How to flash
Code:
0) Check the list of applications removed
1) Flash base
2) Flash any Delta Updates (if any)
- 2.5) Flash RTL patch if you wish (for Jkay mod must be deodexed version)
3) Flash surgeon
Instructions if you don't want to remove a specific application
Code:
Open zip, navigate to META-INF>com>google>android
Extract updater-script
Delete the line of the application that you don't want uninstalled
Save and replace original updater-script
Flash
Last updated: 9/12/2011
Changelog
Code:
v4.0
fixed settings.apk xml files
updated pngs
updated for kk5
v3.0
ICS Transition animations
Ported ICS transitions to TW Launcher
Some more animations in menu elements
Included TW Launcher v2.4 (5 columns) - read my thread for how to
Included appzorter
Themed email widget (only works on 2x4/2x5)
Themed a bit more the status bar elements and lines
Some new wallpapers
Added back in Browser.apk due to issues being caused with CSC
Included S20color init.d script with edited mdnie values
v2.2 - fixed AOSP lockscreen sliders
Credits
HyperDroid Dev team
Seshmaru and pulser_g2 for VR Theme
Jkay for his mod
Paulobrien for OdexMe app (modified by Mekrel + some edits by me)
MANY THANKS to the creators of the reodexing scripts that helped me create this one
C3k for homeMYhome app (i love it!)
Capez for ICS transition animations here
If more, please pm me and i will add you asap
Nitroz BAT Xtreme theme
Note: All Credits to Pele for the theme, Nitroz did the port to our S2, he wanted to share this with all of us
Mr. Megui DarkMIUI theme port to vrtheme
Note: The theme contains all pngs mr.megui made for his original theme. In order to achieve transparent background for status bar i would have to edit it on base first so no transparent status bar. Still pending the centered clock too.
Download Via HyperDroid Parts OTA Tool​
Hi everybody,
Here is the SicOpaT's surgeon for Androidmeda HyperDroid.
Features
Flashed over Androidmeda
Now with Call recording and bigger contacts picture option (v2.1.1)
Gold and Black theme with semi transparent pulldown menu
Jkay or TSM mod compatible (2 separate versions)
Gold 3G/G/Wifi and Network Signals
Gold theme of contacts.apk
DPI is set at stock 240
Includes Yiannis modified TouchWiz Launcher (Page Number 1 = default Home Page)
Includes Yiannis modified keyboard with COMA
Nexus Prime Bootanimation (youtube video)
Gallery with Bounce effect *
Browser with Bounce effect *
* only after XDXD9 firmwares
Here is the LIST of the applications that have been removed. Read it, and if you need some applications that will be getting removed, follow the instructions below.
Short description of the surgeon
modification of Jkay HTC GoldEdge theme V13.1
wonderfull modified TW Launcher with 5 icons dock and 4 x 5 icons in Applications menu
idem for the coma keyboard
bounce effect back only in Browser and Gallery*
Screenshots of my JKAY version
Screenshots of TSM version
SOON
If you're having a hard time deciding over TSM or JKay, read the appropriate topics to help you out.
Jkay's mod
TSM mod (Kahvitahra's port)
Surgeon download links:
XDXD9 Jkay Version 3.0
olders :
XXKI4 Jkay Version 2.1
With Call Rec :
XXKI4 Jkay Version 2.1.1
Old versions :
XXKI3 Jkay Version 1.3
TSM surgeon Version (release soon)
VRTheme download links:
XXKI4 Jkay Version 2.1
How to flash
Code:
0) Check the list of applications removed
1) Flash base
2) Flash any Delta Updates
- 2.5) Flash RTL_patch if needed
3) Flash surgeon or VRTheme
Instructions if you don't want to remove a specific application
Code:
Open zip, navigate to META-INF>com>google>android
Extract updater-script
Delete the line of the application that you don't want uninstalled
Save and replace original updater-script
Flash
Credits
HyperDroid Dev team
Seshmaru and Pulser_g2 for VR Theme
lidroid for his awesome scrolling Toggle Bar
Jkay
Kahvitahra and "TSM" Sbrissen
Yiannis for his modified TWLauncher and keyboard
Matriak31 for nexus prime bootanimation
Vertumus for helping me in my theme
If more, please pm me and i will add you asap
Beta Testing​
No betas currently active, use official v3.0 version
Todo:
Update Superuser.apk inside kernel
Suggestion please
If you're having trouble with anything, the only way we can find out what's causing your Issues is If we have complete information.
The logcat/wakelocks/last_kmsg will do just that...
Simply reporting something doesn't work will not help... we all have different devices, different setups, different device manufacturing dates, etc...
If everything is set to default, everything works on our devices.​
How To File a Bug Report with Logcat:
Install android sdk
Install drivers for adb on PC
connect phone to PC
open cmd.exe or terminal
type 'adb logcat' without the quotes
start the app that causes the issues
wait for the app to close or get to the error
copy logcat contents and put in pastebin
copy pastebin links here
Click to expand...
Click to collapse
Click to expand...
Click to collapse
How To Find Wakelocks:
Install android sdk
Install drivers for adb on PC
connect phone to PC
open cmd.exe or terminal
type 'adb shell cat /proc/wakelocks > /sdcard/wakelocks.txt' without the quotes
copy contents and put in pastebin
copy pastebin links on your post
Click to expand...
Click to collapse
Click to expand...
Click to collapse
How To Get last_kmsg logs:
Install android sdk
Install drivers for adb on PC
connect phone to PC
open cmd.exe or terminal
type 'adb shell cat /proc/last_kmsg > /sdcard/last_kmsg.txt' without the quotes
copy contents and put in pastebin
copy pastebin links on your post
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Before filing a bug report, please consider the answer to these:
Is the bug reproducible?
How do you reproduce it?
What is the expected behavior?
What actually happens?
Do you have a Task Killer running?
Are you on the default Kernel?
Did you restore data of System Apps using Titanium Backup?
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Kernel Changelog
HyperKernel HDK: The underrated, quietly confident and remarkably smooth kernel...​Kernel Source:​https://bitbucket.org/sarcastillo/ultimate-kernel-sgs2​
Download Link:​​The Latest HyperKernel is bundled with the newest HyperDroid.
A separate thread will be introduced that will usher in the release of the kernel download separately.
v1.2 is already in testing and will be released as soon as my heavy usage with heavy UV and OC are done. (In 3-5 days)​
FYI If anyone should ask... we currently use the CodeSourcery Lite Toolchain. I was just about to play with other Toolchains but decided against it because after doing some research I found this R&D by Ezekeel. Thanks to Ezekeel for the useful information.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
HyperKernel HDK v1.1
-Cleaned up choice of CPU Governors and reaaranged them so that when selecting them in CPU Control Apps such as VoltageControl by xan (which is highly recommended fo use with this kernel), its arranged by its "focus and intent" (based on extensive testing on all default Clocks and Voltages) from "battery focused to performance driven".
-With this focus on simplicity stated above, the only governors available are the following:
-lulzactive (interactive based cpu governor by Tegrak) extremely flexible... by default it has a screen off profile and can be tweaked using init.d scripts or the lulzactive app by Tegrak to be battery centric or performance oriented.
-sleepy (ondemand based cpu governor formerly called "solo" edited by Pongster) loves to sleep and idle at the lowest set frequency, hence the name change from "solo" to "sleepy". This can be tweaked and tuned using init.d scripts as well.
-conservative (good battery savings by default due to its slow ramp up and ramp down but tunable for performance) defaults are slightly tweaked for better performance than default conservative.
-lazy (ondemand based cpu governor by Ezekeel) described by Ezekeel as "maybe a better version of ondemand" and for good reason as it gives a good balance between battery life and performance. also tunable using init.d scripts.
-ondemandx (ondemand based cpu governor by Imoseyon) this features earlysuspend features and downsampling which looks for the lowest frequency which can sustain the load while keeping idle time over 30% and tries to try to decrease to this frequency.
-ondemand (old reliable thats been tweak by arighi to support deep_sleep and fast_start) these features try to detect if the CPU is coming from a deep sleep and is more likely to sleep again and thus limits its frequency to the lowest possible that can handle the operations needed. fast_start checks if the CPU needs more "ooomph" and jumps to the highest frequency faster to enable it to complete the operation the system needs to complete. (like during boot-up)
-Added sysfs interface for setting suspend frequency for sleepy CPU Governor. Default is 500Mhz. Min Frequency is 100Mhz, Max is 1.2Ghz (Why would you need to suspend beyond that right?)
-Added some tested tweaks from the past few months of testing with HyperDroid ROM.
-Removed the + sign at the end of the versioning thanks to franciscofranco.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
HyperKernel - HDKv1.0
-Consolidated all current features of the Ultimate Kernel and feel its matured enough to go by the name of the ROM. Enter the HyperKernel or HDK...
-Removed some governors that are not as effective based on testing. (Removed skywalker, SmartAssV2) Use lulzactive if you want an interactive based governor. There are 8 governors in total available. Default is kenobi. You can tweak it by echoing into sysfs as usual.
-Added some tweaks in Kernel thanks to Erasmux and everyone involved in the discussions HERE: http://forum.xda-developers.com/showthread.php?t=786919
-Enabled Kernel Debugging and Schedule Debugging for the tweaks from Erasmux et. al.
-Fixed LOUDER App Compatibility thanks to @supercurio and @gokhanmoral
-Integrated gokhanmoral's implementation of Tegrak's updated lulzactiveV2 (Huge props to Tegrak and gokhanmoral)
-Tuned lulzactive for HyperDroid defaults. (Can be changed using tegrak's lulzactive app from the market)
-[PATCH] ext4: fix ext4_end_io_dio() racing against fsync() from https://lkml.org/lkml/2011/12/16/311
Reported-by: Kent Overstreet <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
Cc: [email protected]
-[PATCH] ext4: avoid hangs in ext4_da_should_update_i_disksize() from https://lkml.org/lkml/2011/12/16/344
Signed-off-by: Andrea Arcangeli <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
Cc: [email protected]
-Added RWSEM from cattleprod's Github Repo c/o Code Aurora
-Change default AC charge current to 650
-Change Internal Voltage for each CPU Level from L2 to L7
-Change Bus Frequency Voltages (less 100mV)
-Fix typo in suspend.h and suspend.c
-Several Code Cleanups and optimizations for stability and performance
-Disabled Net_Sched Queueing and Traffic Shaping via Heirarchical Token Buckets (HTB) as no one was maximizing its use/presence in the kernel
-[PATCH] Added missing Android common patches that were previously included but overwritten by the 2.3.4 code drop, Samsung have not applied any new patches from the Android common kernel tree to their kernels. by Adam Green <[email protected]>
-Added lazy CPU governor by Ezekeel <[email protected]>
-Updated Kenobi to use lazy governor features + fast_start and deep_sleep detection
-Updated "LOUDER" kernel driver created by supercurio (Kernel drivers are ready and waiting for his App to increase volume)
-Add support for Tegrak's touchmove thanks to tegrak
-Modified cpufreq.h to follow samsung update3 default behavior when HI_ARMCLK_THAN_1_2GHZ is enabled
-Modified touchscreen locking CPU at L3 thanks to AndreiLux for pointing that out.
-Updated su binary thanks to ChainsDD (added ICS support for su)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
v2.3 Ultimate
-Add [PATCH] kernel:smp: Match on_each_cpu behaviour on UP to SMP by Gilad Ben-Yossef <[email protected]>
-Add [PATCH] nohz: Remove ts->inidle checks before restarting the tick by Frederic Weisbecker <[email protected]>
-Enabled Smooth Scaling by default (Please use Voltage Control or init.d scripts to control your CPU or it will not work as expected)
-Now using Chainfire's CWM 5.0.2.7 Recovery (with no back key)
-Faster Recovery and Boot (slightly) due to the use of gzip for initramfs instead of xz... (still using xz for the kernel so the kernel is still 5.0MB)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
v2.2 Ultimate
-Add other ARM Topology Patches [ARM: cpu topology: Add update_cpu_topology function]
-Added supercurio's voodoo modules (Huge props to supercurio)
-Load these via insmod at boot during post-init
Source for patches found here:
Exynos Yamaha Tweaks
https://github.com/project-voodoo/mc1n2_voodoo
Exynos ld9040 Tweaks
https://github.com/project-voodoo/ld9040_voodoo_exynos_galaxysii
ARM Topology Patches:
http://patches.linaro.org/5095/
v2.1 Ultimate
-Enabled AFTR by default and tweaked scheduling a little bit for performance.
-Patched to Add v5 ARM cpu topology definition by "Vincent Guittot"
-Enabled sched_mc_power_savings
Add ARM cpu topology definition
The affinity between ARM processors is defined in the MPIDR register.
We can identify which processors are in the same cluster,
and which ones have performance interdependency. We can define the
cpu topology of ARM platform, that is then used by sched_mc and sched_smt.
The default state of sched_mc and sched_smt config is disable.
When enabled, the behavior of the scheduler can be modified with
sched_mc_power_savings and sched_smt_power_savings sysfs interfaces.
ARM CPU topology
https://lkml.org/lkml/2011/7/4/250
Click to expand...
Click to collapse
Click to expand...
Click to collapse
v2.0 Ultimate
Release Date 09/DEC/2011
Added the Ultimate CFS Patch
- Added [PATCH] CFS Autogroup: Implementation by Mike Galbraith as ported by faux123 for 2.6.35 kernels.
I (sarcastillo) additionally edited some things in sched.c to make it compile properly for 2.6.35.14 Samsung Sourced kernels
More info on this here: https://lkml.org/lkml/2010/11/20/91
Added some PPP Patches
- Added [PATCH] net: Reorder incoming packets in PPPoLAC and PPPoPNS by Chia-chi Yeh
Added some RCU and CPU-Hotplug Patches
- Added [PATCH] cpu-hotplug: Add the function 'cpu_hotplug_inprogress' by Maya Spivak
- Added [PATCH] printk: Don't allow cpu to get console lock during hotplugging by Maya Spivak
- Added [PATCH] rcu-tree: Check for extended quiescent state at start of gp by Maya Spivak
- Added [PATCH] sched: Do not block when waiting to free old root domain by Maya Spivak
More details on commit message on bitbucket
- Turned Off STACKTRACE, FTRACE and SEC_LOG
- Set USB_VBUS Draw to 450
Click to expand...
Click to collapse
Click to expand...
Click to collapse
v1.9 Ultimate
- Added latest cpufreq patch by arighi that brings down battery consumption when the screen is on. More details on actual commit on my bitbucket git repo.
- Removed some files from initramfs to bring kernel down to 5.1MB (without sacrificing key features we want in our kernel)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
v1.8 Ultima
- Kenobi set as default CPU governor
- Disabled ARM_UNWIND
- Fixed Recovery Loader to enable ROM Tool/OTA App to work with CWM 5
- Revert to --lzma2=dict=1MiB (increases initramfs a little and adds some gains in speed vs compression)
- Added zcache as backported by faux123 here: https://bitbucket.org/faux123 BUT I only enabled cleancache for now
zcache, tmem, cleancache info here: https://lwn.net/Articles/454795/
Click to expand...
Click to collapse
Click to expand...
Click to collapse
v1.7 SynergySeries
- BFQv3r1 as default I/O scheduler
- Removed NTFS Support in the kernel as that's handle by ntfs-3g now
- Removed ReiserFS support here as well (as Recovery may not support it properly)
- Removed ext 2 support as the option for using ext4 as ext2 and ext3 is enabled
Click to expand...
Click to collapse
Click to expand...
Click to collapse
v1.6 SynergySeries
- Added XZ decompression support for kernel headers and initramfs... (Thanks to faux123)
- Added some XZ related fixes thanks to the original contributors.
- Tweaked XZ compression to compress at -9 instead of the default -6 (since XZ decompresses faster when the archive is larger)
and since in kernel land you don't need to worry about compressing anything back to XZ, these gains in size were enough of a trade-off instead of using gzip by default.
(Technically, gzip compressed kernels and initramfs are faster than any other compression method...
but for our device we have a lot of raw CPU power and a lot of RAM) If you don't trust me, trust the smoothness of the kernel at its current setup.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Code:
Why XZ? Some XZ Decompression details: (more here [url]http://tukaani.org/xz/[/url])
- Its about 30% smaller and decompresses at just half the speed of gzip...
I decided to use it as we have a lot of ram and raw cpu power that can easily handle the extra load xz compressed kernels and initramfs bring...
based on my current understanding, it decompresses really fast so the boot time and other processes that depend on these are still fast while keeping the kernel lean and mean
- Huge props to Lasse Collin and Igor Pavlov for XZ... quite an amazing piece of work there.
- Our kernel with initramfs and complete features (nothing made as modules or removed) is only 5.8MB yup... you read that right...
v1.5
- BFQv3r1 included (backported from 2.6.38)
- Enable Net Scheduling and Queueing for a more stable and faster loading of pages and apps that depend on a network connection (e.g. Market)
HTB by default http://luxik.cdi.cz/~devik/qos/htb/
Why HTB? See here: http://luxik.cdi.cz/~devik/qos/htb
- Experimental Support for Non-Samsung ROM's thanks to gokhanmoral's siyah_feature_set which I ported from his kernel tree and used his initramfs as a base
- Experimental NTFS automount for OTG devices (you'll have to do a little more work to enable sdcard as ntfs) (Thanks to gokhan for the hotplug script)
Note: fuse.ko is built in statically into the kernel, as is cifs.ko and usbserial.ko
- Enabled fsync disabled (can be disabled by doing an echo "1" > /sys/module/sync/parameters/fsync_disabled in a terminal emulator or as a script for gscript or scriptmanager)
- Enabled fast_start and deep_sleep for 2 other ondemand based governors: solo and kenobi
- Turned Off CFS bandwidth for a small performance gain
Click to expand...
Click to collapse
Click to expand...
Click to collapse
v1.4
- Made FUSE, CIFS and other .ko's part of the kernel.
- Fixed Voltage COntrol scripts not being set correctly at boot time.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
v1.3
- bfq by default
- Experimental use of NET scheduling (HTB) for faster page loading when browsing (Market included)
- CWMManager now backups to external as required.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
v1.2
- cleaned up kernel source code and initramfs
- User-level Release only (disabled kernel debugging)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
v1.1
- User-Level release removes kernel debugging to increase smoothness
- Touchscreen fix set to "3" for more responsiveness during games, etc.
- reorganized initramfs scripts (easier for devs to find as they're centralized now)
- fixed USB charge current by using the latest charge_current related code from Gokhan (he's the author of this feature)
- removed userspace, lagfree and SavagedZen, InteractiveX and brazilianwax governors
- brought kernel size down a little bit more
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Kernel Androidmeda TJK v1.0
Release Date 20/NOV/2011
Included Solo, Kenobi and Skywalker governors.
Reverted to Recovery 5.0.2.7 for stability and internal testings.
Tweaked recovery to show internal sd and external sd and point to correct path.
Included CWM 3.0
speeded up loading of init.d scripts
fuse.ko is now also loaded on boot
Deadline is default scheduler
Click to expand...
Click to collapse
Click to expand...
Click to collapse
OLD CHANGELOG​
Kernel Androidmeda TWD v2.5
Release Date 09/NOV/2011
Included lulzactive gorvernor
Reverted to Recovery 4.0.0.2 for stability and internal testings.
Reverted to stock voltage values to avoid SOD of cpus not handling well lower frequencies
Initramfs totally restructured again.
Kernel Androidmeda TWD v2.3
Release Date 30/OCT/2011
Fixed yet again inst-root.sh script
Included Fuse.ko and gspca.ko to lib modules (sorry about that)
Kernel Androidmeda TWD v2.2
Release Date 28/OCT/2011
Upgraded to recovery 5.0.2.7
Fixed instant root script as it was not working (thanks to pongster)
Enabled Thumbee for testing
Kernel Androidmeda TWD v2.0
Release Date 27/OCT/2011
Added the following features thanks to Speedmod huge thanks to him for sharing and the credits go to him and pongster for the merge into our kernel.
- MDNIE screen sharpness tuning (improves text readability)
- MDNIE color tuning (reduces over-saturation of color)
- Lower brightness at low-light levels
Updated Superuser.apk to 3.06 and latest bin for rooting
Updated Recovery to 5.0.2.6 (still no back key, sorry, we are working on that 24/7)
Kernel Androidmeda TWD v1.0
Release Date 24/OCT/2011
Based on update3 from samsung.
Removed CUSE support
cifs.ko is loaded now via init.d
user customizable charging speed (use at your own risk).via script on init.d, thanks to gokhanmoral
Committed Patch to fix fuel alert wakelock Thanks to Entropy512
Kernel Androidmeda DNR v3.1
Release Date 17/OCT/2011
CWM app backups on external sd card, to restore them u will have to manually copy those onto internal sd card (we actually find this useful to backups, so, while we are linked to sources on how to build recoery from source, we will stick with this option)
Making the backup from recovery makes the backup into internal sd card
Changed from SLQB to SLUB
Enabled Brazilinawax and SavagedZen governors for testing purposes
Released as an independent CWM zip file.
Kernel Androidmeda DNR v2.0
Release Date 14/OCT/2011
Initramfs from kI8
Dalvik is now back to data/dalvik-cache
ClockworkMod Recovery v5.0.2.3
Support for internal and external sd card on recovery
Several patches to kernel, see github for changelog
Superuser 3.05 (thanks to chainsdd)
Kernel Androidmeda DNR v1.0
Release Date 05/OCT/2011
Initramfs from kI3
Samsung kernel-update2 (patched for deep sleep fix)
Based on Arighi sources (arighi)
ClockworkMod Recovery v4.0.1.5
Custom boot logo and support for custom bootanimations (Props to Hellcat)
Dalvik cache moved to /dalvik located on p12 hidden partition and symlinked to data/dalvik-cache (Androidmeda Original Feature)
recovery modded to format /dalvik (currently wipe dalviks cache does not work, will be fixed in near future, as of right now, please use format /dalvik to wipe dalvik cache.)
Instant root (modded script by gokhanmoral of SiyahKernel with a few edits by pongster to ensure latest SU apk and binary are used.)
Superuser 3.0 (thanks to chainsdd)
Touchscreenfix (vitalij)
Init.d support
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Experimental CPU Governors:​
*Experimental CPU Governors:
Added 3 modded CPU Governors tweaked and optimized for the SGS2
*skywalker is a smart and smooth tweaked and optimized for the SGS2 based on SavagedZen. (Right now I just tweaked the numbers, but I plan to try and add more mini features. In order to keep all bugs properly attributed to my experiments and not the original author's, I have renamed it accordingly.)
It suspends at a freq of 500Mhz. It wakes up at 800Mhz.
*kenobi is an aggressively smart and smooth tweaked and optimized for the SGS2 based on ondemand as tweaked by arighi. I also ported the features of Ezekeel's lazy governor. (which is based on ondemand as well) (In order to keep all bugs properly attributed to my experiments and not the original author's, I have renamed it accordingly.)
*solo is an attempt to balance performance and battery life. Its based on the tweaked ondemand by arighi and is optimized for the SGS2. It includes imoseyon's ondemandx tweaks with some down_sampling and other features that users can set by echo'ing into sysfs.
It also features arighi's fast_start and deep_sleep detection features. It also suspends at a freq of 500Mhz.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Exciting news!
Can't wait to see what you've developed.
(First! )
Great use your hyperdroid on my HD2... Best Rom ever... I want to test what is better LeoMar75 Revolution rom or your hyperdroid rom!!!!
Send from my Revolution GT-I9100 using Tapatalk
well come to gs2 , waiting for your rom.
I'm from hd2.. Hyper is the best for ever.
Yes, finally released...
I didn't help much for this release but, i will give you my full support for next releases
Woooo, hyperdroid, I remember the days I had HD2, used to love your roms with 160 or 180 dpi screen resolution, welcome waiting for your rom, Regards.
Welcome pongster !!!!!!!!! warm greatings from India too !!!!!!!
We are honoured to have you on the Samsung Galaxy S2 forums !!!
Eagerly waiting for your work.
We need performance !!! Looks are secondary !!!
Best Regards,
Karan.
sweet and warm welcome !! nice to have you here !!
will support 100%

[KERNEL][UV][CWM] Entropy's Daily Driver-GB, 03/07/2012 (Small Fixes))

OK, I figure it's time to start providing my kernels to the general public.
This should be compatible with most stock-derived Gingerbread firmwares. It is NOT compatible with CM7/MIUI or any other AOSP-derived firmware. It is NOT compatible with ICS and WILL NOT BE until ICS kernel source for the I9100 is released. At that point a new thread will be created for those kernels. I am testing it currently with self-deodexed/debloated/Hellraised XWKL1.
This kernel series is intended to be similar in spirit to my Daily Driver series for the Infuse at http://forum.xda-developers.com/showthread.php?t=1212795
It is built from sources at https://github.com/Entropy512/linux_kernel_sgh-i777/commits/master, and initramfs at https://github.com/Entropy512/initramfs_sgh-i777/commits/master
My general goals are to focus on stability and battery life. If it comes to a tradeoff between performance and the above two, I will choose stability/battery life. In general I will choose stability first, with the exception of undervolting.
Current features:
codeworkx's cpuidle patch - should improve battery life a bit. In most cases it will likely not improve things much, but in rare cases it will result in significant improvements. (I only have one partially-reproducible test case on the Infuse so far)
JHash 3
BFQ I/O scheduler
CIFS module in initramfs
CWM 5.0.2.8 pulled from latest CM7 source tree as of 2/28/2012
"insecure" kernel (meaning root in ADB)
CPU governor set to Conservative by default to conserve some battery - this will make your device slightly less responsive, use SetCPU or a similar app to return to ondemand if you want it, or reduce the conservative polling interval
Filesystem readahead tweaks in initramfs
netarchy's Sleep of Death fix
netarchy's conservative governor tuning patch - should improve responsiveness of devices when using the conservative governor if you reduce the polling interval (misnamed as sample_rate) - the I9100 community calls this "lionheart" even though it's really only a 2-line patch
Battery charge current monitoring (CurrentWidget) support - only reports charge current and not discharge, and reports a value 2.85 times the actual current. Use CurrentWidget's "operation on value" to divide by 2.85.
Miscellaneous bugfixes pulled from Ninphetamine and CM7 sources - see github for details
/system/etc/init.d support in initramfs - Note that this only runs stuff in /system/etc/init.d - ROM developers or you need to create it. Attached is an example script that will change the CPU frequency governor to ondemand if placed in /system/etc/init.d and set to executable
Four "use at your own risk" features that trade performance for stability - See Post #4 for details
Standard bootanimation support
/proc/last_kmsg crash debugging support
NFS modules in initramfs - note that they must be insmodded in a specific order: sunrpc.ko, lockd.ko, then nfs.ko
Fix for fuel_alerted perma-wakelocks
Fix for wifi tethering on I9100 ROMs that have been Hellraised
Bump up TCP buffer sizes in initramfs to match that of the Infuse - may help network performance in some cases
cpuidle driver from Tab 7 Plus kernel - allows entry into AFTR more often
Support Bluetooth HID on newer firmware bases
3-step GPU clock/voltage control
Extended hotplug tuning
Support for Xan's ExTweaks universal tuning app - https://market.android.com/details?id=com.darekxan.extweaks.app
Planned features, short term:
Pull in some improvements from myfluxi and arighi's trees
Planned features, mid-term:
????
Planned features, long-term:
Improved battery charge algorithm for faster charging - Initial research indicates we have an alternate battery charger chip (MAX8922) that differs from the MAX8997 used in the I9100. We DO have an 8997 also - but on our device for some reason Samsung decided to use an alternate chip instead of using the 8997's built-in charging. This means we have far fewer options (90,400,660 mA) in terms of charge rates compared to the I9100 (from 200 to 950 in 50 mA steps). So we might not be able to implement any fancy charging algorithms.
Features not planned:
BFS process scheduler - I have only once ever seen a test case where this clearly outperformed the mainline Linux scheduler (multithread x264 encoding) - The mainline schedule was fixed in the next release and BFS now has no performance benefits
Any feature that trades off stability or data integrity for performance unless it can be disabled entirely and defaulted to "off"
Any feature that cannot have functionality tested without a paid app. Interface-only checks don't cut it - I don't want users complaining that the app they paid for didn't work because an interface check worked but function didn't
Touch recovery - too prone to accidental user errors - Maybe I will revisit when ICS hits.
Known issues:
Power management regression somewhere between 12/8/11 and 1/2/12 - Intermittent high drain without high AOS or reduced deep sleep percentage when on some wifi networks - seems more likely if GPS is used when connected to wifi. Wifi with high AOS/reduced deep sleep is not a kernel problem. This appears to only happen on some firmwares - it happens on XXKI3 but not XWKL1. It is likely connected to a wifi power management bug in some firmwares. A debugging feature in 2/7 and later will allow identification of such firmwares - see http://forum.xda-developers.com/showpost.php?p=22581928&postcount=1777 for details
Some people have reported touchkey lights becoming disabled until the screen is turned off and back on again. Under investigation - seems to mainly happen on firmwares with BLN-modded liblights even if the BLN app isn't used
Internal and External SD card are swapped in CWM currently
Basic flashing instructions for .tar releases (NOTE - There are currently no releases in this category. These instructions only remain for heimdall+ZIP users:
(Tested on Linux, not tested MacOS/Windows but should work) Heimdall - Extract the contents of the tar file, enter download mode, and flash with the following command line:
Code:
heimdall flash --kernel zImage
Flashing instructions for .zip releases:
Flash in CWM, or extract the zImage and use the Heimdall instructions above.
Please do not ask how to enter download mode or install Heimdall/Odin in this thread - these are basic generic skills anyone flashing custom firmwares on Samsung devices should know and plenty of documentation exists elsewhere. If you really need to ask, use the General forum, or if created, the Q&A forum. I want to try to keep this thread clean and only with bug reports and issues specific to this release, not general HOWTO or troubleshooting posts. Some of the information you need is in jivy26's FAQs thread at http://forum.xda-developers.com/showthread.php?t=1288112 - Reading at least the first post of this thread in its entirety is STRONGLY recommended.
Bug reports:
If you have a crash (reboot all the way to Galaxy S I9100 screen), use ADB dump the contents of /proc/last_kmsg and post
If you have oddball behavior, include a clearly reproducible test case with your report, or use ADB to obtain a dmesg and logcat capturing the odd behavior at the time of error.
Similar to flashing - using ADB and obtaining last_kmsg, dmesg, and logcat dumps are basic skills that anyone working with custom firmwares on Android devices should have. If you need help with these, do some searching, or post in the General forum or, if created, Q&A forum.
Firmware ("ROM") Developers:
While I cannot restrict anyone from putting this kernel into a ROM as long as links are given to the github sources for GPL compliance, I request that anyone who includes this kernel in a firmware release does the following out of courtesy:
Link to this thread
Clearly indicate in your firmware changelog which Daily Driver kernel release is included in your firmware release whenever you change DD releases - this lets users identify whether a fix is present in the kernel they're using or not
Kernel Developers:
Similar to my request for ROM developers, while I can't restrict you from doing anything, I ask as a courtesy that if you cherry-pick my commits, you do the following:
Please don't rebase my commits into a large multi-feature without consulting me - rebasing related bugfixes together is OK.
Please try not to implement lots of unrelated features or bugfixes in a single git commit - it makes it hard to reimplement that when Samsung drops new sources or releases a new device
ALL OF MY RELEASES ARE NAMED BY RELEASE DATE - MMDDYYYY. See the changelog for differences between Experimental (exp) and non-exp versions for days where dual releases are made.
Change Log
3/7/2012 Release:
Default GPU voltages were slightly too high (but not dangerously so) due to misreading some #ifdefs. Adjusted them downwards.
03/05/2012 Release:
3-step GPU voltage control (thanks to gokhanmoral of SiyahKernel)
Extended CPU hotplug tunables (also thanks to gokhanmoral of SiyahKernel) - I didn't bother with Tegrak Second Core support as it offers nothing these tunables don't offer that makes sense
Preliminary support for Xan's ExTweaks tuning app - https://market.android.com/details?id=com.darekxan.extweaks.app (Yes, it currently says SiyahKernel only, but I added support) - use this to tweak the new features
03/04/2012 Release B:
Add GPU voltage control in addition to existing clock control - see http://forum.xda-developers.com/showpost.php?p=23260574&postcount=64 for more
Reduce default sampling_rate of conservative governor from 100ms to 50ms - conservative uses deferred ticks that shouldn't impact cpuidle
03/04/2012 Release:
Readd https://github.com/Entropy512/linux_kernel_sgh-i777/commit/0746aeb285341896877a3adddd79bdaa0cf4a6f6 (disable second core when screen is off)
03/03/2012 Release B:
Readd a couple of cpuidle register restore/saves that were removed by Samsung between the I9100 and Tab 7 Plus sources - Small chance this might be where the SoDs come from.
03/03/2012 Release:
Readd https://github.com/Entropy512/linux_kernel_sgh-i777/commit/373425c3130fbbb67cdae74793bd3df363a5dc04
Remove powersave governor - it's a guaranteed SoD if used and the same results (without SoD) can be achieved by setting conservative with min=max=200 MHz
03/02/2012 Release:
Revert https://github.com/Entropy512/linux_kernel_sgh-i777/commit/3954900055afe0d22a7ce71b50e4a5cb439c24bf - It turns out it's not actually in the mainline tree, and it has had questionable results from users. It may have caused power regressions for shoman94
Readd https://github.com/Entropy512/linux_kernel_sgh-i777/commit/ec9e34085c2e1284b3e30926862161fa63d498ea - Should improve performance a little on devices with "small" memory (compared to PCs, 1GB is "small")
02/28/2012 Release:
Revert https://github.com/Entropy512/linux_kernel_sgh-i777/commit/634b73c2d0b7e156b5c1626fd268662fcaa5fabe again - It was causing severe performance regressions for red5, and was clearly narrowed down to a single patch (red5 swapped between 18B and 26 multiple times, these are adjacent releases that differ by only one patch.)
Readd https://github.com/Entropy512/linux_kernel_sgh-i777/commit/9c10cd423cdcb0039c5f7730076d1f8db9c09442
Reduce minimum polling interval of conservative from 25 msec to 20 msec
Make defaults of conservative governor consistent with battery-optimized tuning - won't affect anyone using SetCPU to tune governors
Initramfs: Clean up cruft that was doing nothing but taking space
Initramfs: Compiled latest CWM 5.0.2.8 from sources - should fix advanced restore
Initramfs: Swap internal/external SD in CWM to be consistent with newer Android standards
02/26/2012 Release:
Readd https://github.com/Entropy512/linux_kernel_sgh-i777/commit/634b73c2d0b7e156b5c1626fd268662fcaa5fabe
02/16/2012 Release B:
PULLED - actual release was identical to 15C due to a mistake in creating the ZIP. - Replaced by 02/18/2012 Release B.
Readd https://github.com/Entropy512/linux_kernel_sgh-i777/commit/3954900055afe0d22a7ce71b50e4a5cb439c24bf (cpuidle: governor: menu: don't use loadavg)
02/16/2012 Release A:
PULLED - actual release was identical to 15C due to a mistake in creating the ZIP. - Replaced by 02/18/2012 Release A. (CWM will report this as 2/17A - ignore this, CPUSpy should report afternoon in 2/18)
Readd https://github.com/Entropy512/linux_kernel_sgh-i777/commit/4d8a7e7834e29cee232d6634454c0c38e9903d49 (Add MSHCI Power Control)
02/15/2012 Release C:
Fixes to multiple drivers that were attempting to lock frequency to certain levels. On an overclock kernel, these were all two frequency steps higher than originally intended:
Application-controlled lock in kernel/power/main.c - Likely this combined with arighi's frequency scaling patch was the cause of most 2/7 stability issues
Camera locking to 1.2 GHz is fixed
Thermal limits (reducing clock frequency while overheating) was broken, should now work properly
02/15/2012 Release B:
Readds the following patches, should be safe:
https://github.com/Entropy512/linux_kernel_sgh-i777/commit/35187426d15d05d465d07b6d743e1eb37c629a24 - small network performance improvement
https://github.com/Entropy512/linux_kernel_sgh-i777/commit/733758d888e4a23d7ae6487de0dbb525e9d7433c - another small network performance improvement
https://github.com/Entropy512/linux_kernel_sgh-i777/commit/325cdbf1b89e7d2138482e76879fabf9a6dac5b7 - Provide a warning when a broken firmware is preventing proper wifi power management
02/15/2012 Release A:
Revert most patches from 1/30 and 2/07 due to stability issues EXCEPT:
BTHID interoperability fix
MFC/new cpuidle interoperability fix
A BCM4330 patch revert (it was a revert to begin with)
There will be a second "B" release containing patches that I think should be safe stability-wise but want to have separated anyway. After that, I will be making releases 1-2 times a day, each with only one new patch. This will allow the offending patches for recently reported stability problems to be identified. As a result, releases will have A/B/C/etc letter codes after the date until I no longer expect multiple releases per day. Until the stability issues are resolved, Experimental releases are suspended.
02/07/2012 Release:
Lock out AFTR during hardware accelerated video playback - should fix issues with hwaccel video that some people had with 1/29 and later
Disables second core when the screen is off (this patch comes from arighi)
A patch from arighi ("smooth scaling") that prevents the performance governor from getting "stuck" at the wrong frequency, and should make ondemand a bit more responsive
Small cpuidle governor fix from mainline
Revert a wifi patch that did nothing at all if you read the code
Print an error in dmesg when suspend handling in the wifi driver is blocked by the system firmware for whatever reason (XXKI3 does this) - System firmwares that do this will make you vulnerable to battery drain on "dirty" networks (ARP spam, broadcast traffic)
Small performance patch by Russell King of ARM (see github for details)
Standard only for now - will release experimental in a day or two
Warning - This doesn't have as much testing as I normally put into a kernel, but I needed to get a cpuidle fix out ASAP in my opinion
1/30/2012 Releases:
Backport Bluetooth HID fixes from Epic 4G Touch EL29 sources - Seems to fix Bluetooth HID on UCKK6, should also fix it on newer I9100 bases
Backport a power management change (MSHCI power control) from E4GT EL29 - Actually, I think this is something that was in the AT&T drop and I9100 Update3 removed
ashmem deadlock fix - might fix nizda1's issue (unknown, I thought I had this in already but I guess I didn't) - found by arighi
Tweak from arighi - set SLUB_MAX_ORDER to 0 since our device doesn't have ginormous amounts of RAM
Increase TCP initial receive and congestion windows - should improve throughput on new TCP connections (such as web page loads)
Remove a small dmesg spam introduced by the cpuidle backport
Add ARM Errata 753970 (bugfix)
1/29/2012 Releases:
Backported cpuidle driver from the Tab 7 Plus - Allows AFTR idle to be entered more often, enables it my default, and permits it to be tracked separately from LPA idle mode.
Reverted some small I9100 changes to GPIO configurations - These changes may do nothing, the functions of these GPIOs are undocumented but appear to be somehow sleep related. See github commit for details
1/24/2012 Releases:
Include tun.ko
The above change is so small I'm removing the 1/23 download
1/23/2012 Releases (Note: Experimental might not actually be posted until 1/24):
Enable building for I9100 targets (source code change only, see github)
Revert some unnecessary patches from arighi's tree, prep for implementing more useful ones
A pile of upstream Linux kernel bugfixes, huge thanks go to myfluxi for finding these and testing them on himself: https://github.com/myfluxi/xxKernel
Bring in two small missing updates from I9100 update3 sources
Enable separate debugging of wake_lock_destroy() to enable diagnosing high deleted_wake_locks time
1/2/2012 Releases:
Road to I9100 Update3: COMPLETE - Video changes, media changes, battery/PMIC changes, Samsung-specific arch/arm changes
Road to I9100 Update3: Revert touchscreen drivers to I777 source codebase. SiyahKernel also did this, it seems to solve the wake lag issues. However those that didn't encounter lag may see reduced responsiveness. There's a possible workaround though.
12/21/2011 Releases:
Road to I9100: USB Host (untested), Touchkey, Broadcom DHD (Bluetooth, WiFi)
Initramfs: Bring in a few updates from UCKK6. Might fix wifi for KK6 people (UCKK6 compatibility UNTESTED.)
12/12/2011 Releases:
Road to I9100: Touchscreen Drivers
Irrelevant Road to I9100: DPRAM, WiMax, staging drivers
12/8/2011 Releases:
Resume dual-release standard (2.6.35.7) and experimental (2.6.35.14) builds - note exp does NOT fix the AOS bug, just hides it - see http://git.kernel.org/?p=linux/kern...it;h=a3fe22ee824895aafdc1b788e19c081a2e6dd9da
Remove some debugging printk()s from the AFTR cpuidle driver for those who enable AFTR deep idle mode (see init.d scripts thread linked below)
More components of I9100 update3 sources - MMC, filesystem, and generic arch/arm changes
Removed filesystem I/O scheduler tweak script from initramfs - this belongs as a separate init.d script. See http://forum.xda-developers.com/showthread.php?t=1378080 for this script's new home along with other scripts
Enable compilation of FUSE module. Combined with an ntfs-3g binary this should allow people who want to mount NTFS drives with OTG cables to do so. I cannot provide any additional support for this though - no OTG cable
12/1/2011 Release:
Disable interactive governor - it was causing kernel panics in LPM (e.g. reboot to normal poweron when power-off charging), too much risk of it causing a panic during normal operation so it's gone
Two small fixes, one to MMC power management and one to cpuidle - see github for details
Per-file fsync disable - see HERE BE DRAGONS post #4 and USE AT YOUR OWN RISK
First step of patching up to Samsung I9100 update3 sources - New sound drivers. Please focus on sound until the next release.
11/23/2011 Release:
BLN from Ninphetamine - WARNING: An active BLN notification WILL drain your battery by holding a wakelock. Also, you need to install a compatible liblights if your ROM doesn't already have it. VillainROM 3.0 has it, I'll try to post a library and installation instructions after the Thanksgiving weekend ends
Permissions changes for /data/misc/wifi that allow tethering settings to persist on Hellraised ROMs (EDIT: Not working for fresh flashes... Maybe not working at all. what the **** is overriding the perms?)
Enabled Interactive governor in defconfig. drowningchild says it's stable - I tend to be paranoid when it comes to governors
11/13/2011 Release:
Upgrade to CWM 5.0.2.7 pulled from Cyanogenmod 7 nightly 12 - adds nandroid backup/restore to external SD - advanced restore from extSD not working yet, also CWM labels external SD as "internal"
11/10/2011 Release:
Removed automatic root injection from the initramfs - It causes too many problems. Flash ChainsDD's Superuser package from CWM instead.
11/03/2011 Release:
Fix for wifi tethering on I9100 ROMs
Bump up TCP buffer sizes in initramfs to match that of the Infuse - may help network performance in some cases
Experimental (2.6.35.14) releases discontinued until further notice - They provided no discernible benefit, and hid the infamous "AOS Bug" making it harder to diagnose. (It did not fix the drain)
10/20/2011 Releases:
Fix for fuel_alerted perma-wakelocks
GPU clock control, same method as Ninphetamine - see Ninphetamine kernel for documentation. Completely untested other than that the default values don't change or break anything. Same rules as for my overclock code... Credit goes to Netarchy for this, it's his git commit 100%
10/16/2011 Releases:
Make root injection script less aggressive
NFS modules in initramfs - note that they must be insmodded in a specific order: sunrpc.ko, lockd.ko, then nfs.ko
Miscellaneous bugfixes, see git
10/13/2011 Releases:
Make root injection script in initramfs less aggressive
10/09/2011 Releases:
Update root injection script to install su-3.0 - Still need work on this to make it more robust when su updates again.
Misc. fixes from codeworkx's CM7 tree and Ninphetamine
Start of Experimental dual-release series - Experimental updates base to 2.6.35.14 using arighi's patches
10/07/2011 Releases: (There were multiple, but as their files are no longer posted I'm merging it into one changelog entry)
Conservative tuning patch no longer considered experimental
/system/etc/init.d support in initramfs
Overclocking/Undervolting implementation by codeworkx - USE AT YOUR OWN RISK. DO NOT REPORT BUGS OR PROBLEMS IF YOU ARE OVERCLOCKING OR UNDERVOLTING. IF YOU EXPERIENCE ANY STABILITY PROBLEMS, DISABLE ALL OC/UV
Standard bootanimation support
10/06/2011 Experimental Release:
netarchy's conservative governor tuning patch - should improve responsiveness of devices when using the conservative governor
10/06/2011 Release:
Automatic root injection in initramfs
Filesystem readahead tweaks in initramfs
netarchy's Sleep of Death fix
Battery charge current monitoring (CurrentWidget) support - only reports charge current and not discharge, and reports a value 2.85 times the actual current. Use CurrentWidget's "operation on value" to divide by 2.85.
Miscellaneous bugfixes pulled from Ninphetamine sources - see github for details
Initial Release: 10/04/2011
codeworkx's cpuidle patch - should improve battery life a bit. In most cases it will likely not improve things much, but in rare cases it will result in significant improvements. (I only have one partially-reproducible test case on the Infuse so far)
JHash 3
BFQ I/O scheduler
CIFS module in initramfs
CWM 5.0.2.3 from Codeworkx's CWM kernel
CPU governor set to Conservative by default to conserve some battery - this will make your device slightly less responsive, use SetCPU or a similar app to return to ondemand if you want it
"Insecure" kernel - ADB sessions ALWAYS have root
Here be dragons
This post is for features present in the kernel that are "use at your own risk" - They have either potential or guaranteed negative side effects if used.
Overclocking (CPU):
Enable using SetCPU or a similar app
USE AT YOUR OWN RISK. DO NOT REPORT BUGS OR PROBLEMS IF YOU ARE OVERCLOCKING OR UNDERVOLTING. IF YOU EXPERIENCE ANY STABILITY PROBLEMS, DISABLE ALL OC/UV
Overclocking (GPU):
See Ninphetamine kernel for documentation - Same control method
USE AT YOUR OWN RISK. DO NOT REPORT BUGS OR PROBLEMS IF YOU ARE OVERCLOCKING. IF YOU EXPERIENCE ANY STABILITY PROBLEMS, DISABLE ALL OC
Per-File fsync() disable:
This allows you to disable per-file write forced syncs. (e.g. if an app tries to force a write straight to disk, it'll just go to cache). This achieves the same goal as the modded sqlite hacks seen in tweaks such as USAS, however it can be disabled at runtime.
WARNING: THIS CAN CAUSE DATA LOSS OR CORRUPTION IN A CRASH
To enable, do the following in a terminal, or add it to an init.d script (look at my ondemand script as an example):
Code:
echo "1" > /sys/module/sync/parameters/fsync_disabled
And to disable (return to the default):
Code:
echo "0" > /sys/module/sync/parameters/fsync_disabled
Good for around 200 points of epeen in the database benchmarks in Antutu or 500-600 points of epeen in Quadrant. Real-world benefit: Probably not worth the data integrity risk, but you've got a choice now.
Backlight Notifications (BLN):
This allows the touchkey backlights to be used for notifications. Some stock apps (such as stock MMS) don't support it. Supposedly services.jar mods can change this.
This WILL drain your battery when a notification is active due to a wakelock that holds deep sleep. Sorry, it's either this or instability for the time being.
In addition to the BLN control app, the ROM needs a modified liblights file for this to work
Attached here - Liblights - both BLN-modified (extracted from VillainROM 3.0) and stock I777
To install, take the file and push it to /system:
Code:
adb remount
adb push <file> /system/lib/hw/lights.SGH-I777.so
adb chmod 644 /system/lib/hw/lights.SGH-I777.so
Then reboot
Note that on a Hellraised ROM, you need to replace SGH-I777 with GT-I9100. This includes manually ported ROMs like Cognition 777
Like my prerooted system image, this file is compressed using 7-Zip to prevent people from trying to flash it with CWM
OK, right now this post only has documentation of one "special but safe" feature:
To enable debugging of high deleted_wake_locks time, I've set this up to allow wake_lock_destroy() to be debugged without enabling DEBUG_WAKE_LOCK (which spams dmesg with a ton of stuff not needed for wake_lock_destroy() debugging). To enable, add 32 to the value of /sys/module/wakelock/parameters/debug_mask - This defaults to 3, so the proper value is 35.
Code:
echo "35" > /sys/module/wakelock/parameters/debug_mask
Return this to 3 to set it back to the default.
With this, you'll see wake_lock_destroy debugging information in your dmesg output. This is only needed if you have very high deleted_wake_locks times.
If we're not rooted(stock) this will give us root? Or just cwm where we can either use superoneclick or your pre rooted kernel?
eep2378 said:
If we're not rooted(stock) this will give us root? Or just cwm where we can either use superoneclick or your pre rooted kernel?
Click to expand...
Click to collapse
If it's in "planned features" - it's not in yet.
However it can be SOCed just like codeworkx's kernel
Works fine, as in I don't notice a huge difference in speed or anything but huge differences after changing kernels shouldn't really happen so I guess that's good.
I flashed your kernel with Odin and I think it went well. Will kernel version in About phone be the same as stock (2.6.35.7)?
Thanks for using the recommended toolchain to compile
all the newer ones seem to cause the SGS2 to get very warm.
shishir95 said:
Works fine, as in I don't notice a huge difference in speed or anything but huge differences after changing kernels shouldn't really happen so I guess that's good.
Click to expand...
Click to collapse
Shouldn't be any difference in speed - might even be slightly slower since I make conservative governor default for battery saving purposes. You can change this with SetCPU.
wonner said:
I flashed your kernel with Odin and I think it went well. Will kernel version in About phone be the same as stock (2.6.35.7)?
Click to expand...
Click to collapse
In About Phone, yes. If you use a more advanced info tool that shows the localversion, the git tag should be appended and the [email protected] build info should be [email protected] I'm going to be adding a CONFIG_LOCALVERSION tag in the future.
I just had my first Sleep of Death and realized I'm missing last_kmsg support. That's on the list for Planned Features, short-term now.
designgears said:
Thanks for using the recommended toolchain to compile
all the newer ones seem to cause the SGS2 to get very warm.
Click to expand...
Click to collapse
Newer ones make the Infuse die a horrible and painful death, if the kernel even compiles, and I want to retain that compatibility for now.
Sorry for my ignorance regarding Samsung Hardware, this is my first device from them.
Is this kernel aimed at CM or any Rom such as Cognition?
Drew
drewdatrip said:
Sorry for my ignorance regarding Samsung Hardware, this is my first device from them.
Is this kernel aimed at CM or any Rom such as Cognition?
Drew
Click to expand...
Click to collapse
Right now, stock-derived ROMs. NOT CM7/MIUI.
Regarding BLN - I am very unhappy to hear it may not be easy/possible to implement this on our phones. It appears that they've got it working on the international galaxy s 2s, do our phones have more in common with the Infuse than with those?
By the way, I almost forgot -- thank you for this! Flashed it with ODIN, no problems at all, and super-one-click-rooted as well. So far so good!
Any chance of adding a date to the thread title do I can know when you've updated and flash it again lol
jivy26 said:
Any chance of adding a date to the thread title do I can know when you've updated and flash it again lol
Click to expand...
Click to collapse
Will do. If you look at my Infuse series, I usually edit the first post with the update, and post to a post within the thread with a list of changes. The post in the thread will cause a bump - but since bumps don't always mean updates this is a good idea.
Initial observation.
With setting i/o to deadline i did not see my phone go into deep sleep much last night.
Today using noop the phone seems to sleem more often
Drew
drewdatrip said:
Initial observation.
With setting i/o to deadline i did not see my phone go into deep sleep much last night.
Today using noop the phone seems to sleem more often
Drew
Click to expand...
Click to collapse
Hmm... Interesting. That might be part of why battery life in CM7 on my Infuse seemed to be less the last time I used it, I never got tweak_scheduler.sh running on that.
Default in this kernel is CFQ, I've added BFQ but I've had bad things happen when it's the default at boot.
Is this a common issue that we're supposed to be having? Sleep of deaths? I haven't gotten any since I started using your kernel.

[KERNEL] UniKernel v8-0002 COH9 [G920 /925]

~~~~S6 UniKernel~~~~​
For Galaxy S6 920 F / I / S / K / L / T / W8 ​For Galaxy S6 925 F / I / S / K / L / T / W8 ​
For Lollipop 5.1.1 only! ​
UniKernel Features
- Supports F / I / S / K / L / T / W8 variants of 920 AND 925 devices
- Supports 920FS, ID and SD Dual SIM devices
- All edge screen special functions on Edge devices working
- Built from official Samsung Sources
- Full init.d scripting support
- SE Linux set to permissive (will prevent private mode from working)
- Stock Clocks
- Fully working Auto-Root for all 5.1.1 roms
- BusyBox injection if not detected in ROM
- DriveDroid support
- CIFS / FUSE
Kernel Configuration
The TWRP flashable kernel now comes with an Aroma installer, allowing you to choose a configuration you prefer. It also comes with 3 preset options - Stock, Performance, and Battery.
The Stock preset will make the kernel behave exactly as a stock kernel - no turbo mode, CFQ scheduler, stock interactive
If no pre-existing configuration file is found on the phone, (ie - New ROM flash) the ODIN flashable kernel will also have stock behaviour.
Every Aroma option is clearly labelled with an accurate description of what the setting will change. You are free to reflash to change configurations or manually edit the /system/unikernel.prop file that is generated by the installer (and then reboot). If you choose either the performance or custom options and enable Turbo mode, do not post in this thread about poor battery life. Turbo mode costs battery. deal with it
Download
UniKernel v8-0002 TWRP FLASHABLE >>> https://www.androidfilehost.com/?fid=24052804347808102
UniKernel v8-0002 ODIN FLASHABLE >>> https://www.androidfilehost.com/?fid=24052804347808101
If you get any FCs after flashing this kernel, wipe cache and dalvik cache in TWRP and reboot.​
Changelog
UniKernel v8-0001
- Updated to COH9 Sources (New WiFi Driver and sensorhub firmware amongst other things)
- Fixed CIFS support
- Slight modification to ramdisk tweaks when a non-stock configuration is used
UniKernel v8-0001
- Updated to COH2 Sources
- Rewritten unification code
- Aroma Installer with preset and configurable options (Stock, Performance, Battery, Custom)
- ALL 5.1.1 ROMs are supported, even early versions, ie - BOFj / COF6
Sources
UniKernel >>> https://github.com/glewarne/S6-UniKernel
Credits
Source contributors
@ktoonsez - Major contributor to universal patch set
@edgarf28 - Relentless Testing testing testing, help and suggestions
@Xileforce - Help, encouragement and some code bits
@mikeyinid - Help, DHA tweaks
AndreiLux - Permissive mode patch and some other bits
Awesome Testers
@-Mr. X- for relentless and speedy testing
@sswagonman - Primary 925 feedback
Kyle - For not sucking any more
Robert - Primary 925 feedback
Steve - Primary 925 feedback
Other Credits
@Chainfire - For SuperSU included in the kernel
Disclaimer
You, the User, Accept full responsibilty for anything you choose to flash to your own device. I cannot be held responsible for any loss of data, income, revenue, software or hardware damage that may occur due to the use, or attempted use of this kernel.
reserved
Okay tried on the Canadian 920W8 and no call audio and Network Settings gets replaced with Sim Card Manager. LTE icon doesn't show anymore but data works!
Elisha said:
Okay tried on the Canadian 920W8 and no call audio and Network Settings gets replaced with Sim Card Manager. LTE icon doesn't show anymore but data works!
Click to expand...
Click to collapse
Yeah, to be expected. the defconfig in the kernel sources I used was specific to the international versions only. I will need to download the sources for the T variant (and maybe W8) and examine them for file differences and defconfig differences. gonna take some time. However, i I can build a working one its easy to build 2 simultanoeusly for upload in the future. only takes 5 mins per kernel.
thanks for testing though!
No problem.
If I flash back the stock kernel, will there be any leftovers from your kernel in the system?
So far no problem at all. Good work. I hope that some talented dev could port to our galaxy savoca color calibration... Thanks.
mcreego said:
So far no problem at all. Good work. I hope that some talented dev could port to our galaxy savoca color calibration... Thanks.
Click to expand...
Click to collapse
great to hear! thankyou
Hi , what about performance ? is it really more fluid than the stock one ?
thanks
Works like it should. Thank you for your work and time spent!
I don't see ktoonsez in your credits. Since you copied his voltage control.
jordan.elliott said:
I don't see ktoonsez in your credits. Since you copied his voltage control.
Click to expand...
Click to collapse
1) not released yet
2) originator is on the github commit
3) is actually made by Andrei lux
There is no need to credit every kernel contributor in existence especially if those commits are tagged
Um. ktoonsez spent hours trying to get the voltage control to actually apply. It was being overridden by touchjizz rom on every boot. I was one of his testers. It took about 4 hours. It wasnt just a copy paste.
jordan.elliott said:
Um. ktoonsez spent hours trying to get the voltage control to actually apply. It was being overridden by touchjizz rom on every boot. I was one of his testers. It took about 4 hours. It wasnt just a copy paste.
Click to expand...
Click to collapse
that may well be the case. however, as I said previously, the commits on my github from today are on code that has not been released yet. You can see the released kernel with the defconfig v01a commit and comment (last one pushed yesterday)
perhaps im using voltage control sysfs for some internal testing? maybe ill remove it before release? maybe i am going to release it in the future? maybe i would have given credit, as I have everyone else on the *curerntly released* code.
I will not enter into any further discussions with you on this matter. If you wish to report my thread please do go ahead. as it stands right now, i am 100% in compliance with both the stickies at the top of this very thread and XDAs very clear GPL rules.
The OP has not violated the GPL or xda rules by using kernel code from other developers. First because he hasn't released that code as a binary yet, and second he has not squashed the original authorship out of his sources. This satisfies the GPL and xda's rules on giving credit.
It is simply not possible to list all the kernel contributors in the OP...the list is way way way way too long.
If there are any more issues about the GPL, credit, sharing, etc. Please PM me about them.
Thanks!
OK everyone
After a bit of a delay due to computer issues, i have a new kernel ready for beta testing. Anyone interested?
Built in OC to 1.6GHz on .LITTLE and 2.3GHz on .big cores
lots of fixes and boosts
very very smooooooth
Bring it on. I would love to overclock 53 but tone down the 57 ones, it's possible with a tuner I belive?
Sent from a mobile gadget...
g.lewarne said:
OK everyone
After a bit of a delay due to computer issues, i have a new kernel ready for beta testing. Anyone interested?
Built in OC to 1.6GHz on .LITTLE and 2.3GHz on .big cores
lots of fixes and boosts
very very smooooooth
Click to expand...
Click to collapse
Can I test ? ?
sure ill have a beta up for you guys later tonight
ok, beta kernel time!
download here: https://www.androidfilehost.com/?fid=23991606952601582
some changelog:
BFQ scheduler default
increased bus frequency on apollo and atlas cores
enabled Mali 772Mhz GPU maximum
lots of kernel patches
framework for fixed overclock implementd (though not enabled in this build)
reduced readahead (is actually faster)
tweaked interactive and ondemand governors - interactive is now default again
please test for general stability and performance, I will released a overclocked version soon maybe
sources: https://github.com/glewarne/Galaxy_S6_920F_Kernel_v2

Development [Kernel][12.04.2023][Android 13] Kirisakura 3.0.1 for Sony Xperia 1 III aka "Sagami"

Kirisakura-Kernel for the Sony Xperia 1 III
Hello everyone,
To keep it short: Here is Kirisakura - Kernel for the Sony Xperia 1 III aka Sagami. Sagami is the internal codename for this years development platform of Sony Mark III devices. Please note this kernel is made to run only on Xperia 1 III.
I would appreciate if everybody that flashes the kernel, reads at least once through this opening post and the following ones.
Kirisakura - Kernel is designed to bring a handful of beneficial features to the device, while ensuring excellent performance and smoothness to get you safely through the day!
If you expect a custom kernel to magically improve your devices battery life manifold and this is your only priority then this might not be the right place for you.
However the kernel is built to keep battery life close to the same as you would experience the on stock kernel while being tuned to perform better in various UI related benchmarks. The same benches are used by google to verify and ensure UI smoothness on the Pixel devices.
There´s also a cpu-battery saver mode that cuts back the CPU max- freqs, but without the disadvantages like delayed notifications from built into the system user-space power-saving modes.
If that got your curious, I welcome you to continue reading if you´re still interested!
The kernel includes a lot of improvements and contributions from other developers as well. Without this kernel would not exist.
A big part of improvements originate from @arter97´s, @kdrag0n´s and @Sultanxda´s work. Many others contributed in some way or another to this kernel.
A big thanks to all of them at this place!
Now lets continue with a list of features in the next paragraph!
Main Features:
- Based on latest kernel sources from Sony for Android 12 and intended to be used on the latest Stock-Firmware
- compiled with Clang 14.0.7 and built with -O3 speed optimizations
- Linux-Stable-Upstream included to 5.4.202
- upstreamed CAF base for the Snapdragon 888 (qcoms internal codename "lahaina")
- CPU-Battery saver to be able to restrict max cpufreqs on the fly, without enabling powersaving modes that might cause missed notifications (more info here)
- include important fixes/improvements from kernel/common
- reduce power consumption during deep sleep
- remove logging while device is suspended
- add SSG-IO scheduler from samsung (less overhead, better tuned towards android)
- disable various debugging mechanisms for drivers which are not needed on a perf build (e.g. binder)
- disable selinux auditing (we don´t have to adress selinux denials running a stock rom)
- disable unnecessary CPU errata for our specific SoC
- implement LRNG (thanks @arter97, see arter kernel OP for more info )
- Flashing the kernel will keep root!
- Flashable via EXKM, FKM or TWRP (if available) on a rooted system!
EAS related features:
- Implement dynamic WALT-Window size depending on current FPS, collecting information about CPU-Load to provide more precise information for the scheduler
- EAS implementation patched up to latest CAF state
- updates from kernel/common
- scheduler updates from sd888/ 5.4 kernel
CPU related features:
- Power saving workingqueues enabled by default (toggleable in EXKM)
- Change various drivers (WLAN, MM, audio, charger, power, thermal, glink etc) to use power efficient workingqueues. This compliments EAS in general
- improvements to cpufreq/times/stats
- vdso32 patches as found on Google Pixel devices (brief documentation here) (CAF 5.4 default, keep for documentation)
- remove event debug logging
- disable broken irq detection, disable debugmon
- improve suspend/resume from audio driver (caf-upstream for audio-kernel)
- cpuidle: wake only cpus for which qos has changed (this allows cores to keep idle states better)
- disable debugging during sleep states as per qcom recommendation
- remove RTB logging to reduce overhead
- disable trace_printk as it shouldn´t be used on production/perf kernel builds
- enable suspend_skip_sync to save power during suspend/resume
- disable edac and coresight (following google on the pixel kernels)
- disable jtagv8 debugging as recommended by qcom for perf builds to avoid potential power, performance and memory penalty
- disable s2idle in favor of deep idle state -> improves deep sleep drain (google initially used 2idle for improved suspend/resume latency on pixel 3 and pixel 4, but disabled it on pixel 5. qcom followed suit for sd 888, but apparently didn´t see google reverting it on pixel 5. Other OEMs such as Xiaomi or OnePlus already disabled s2idle on their SD888 devices in favor of deep- read more about s2idle vs deep here)
GPU related features:
- GPU driver updated to latest CAF-State
- gpu/kgsl improvements from pixel 4/pixel 5 kernel
- add low_prio_worker thread for gpu driver (Improves performance when tearing down processes (eg, via LMK) and not blocking currently running UI from submitting work to the GPU
File System related features:
- upstream BFQ-MQ to latest state in linux-mainline and default to 128KB readahead
- improve memory allocations in kernfs
- ufs improvements from pixel 4/ pixel 5 kernel
- improve GC as to not interfere while user interaction is happening and prevent possible jitter or latency spikes
Network related features:
- Wireguard Support (Details)
- advanced TCP algorithms enabled
- use bbr as default TCP congestion algorithm (fasted algo according to this excellent research from @kdrag0n found here )
- improved networking drivers from caf-upstream (especially wifi)
- remove unnecessary wakelock from WLAN driver to reduce thousands of very short wakeups during a 7 hour deep sleep period
- improved bluetooth performance (¹, ²)
- Enable support for TTL spoofing
Memory related features:
- Speculative Page Faults left enabled (1. 2) (CAF 5.4 default, keep for documentation)
- Fix various memory leaks in different subsystems
- improved mm with patches from mainline
- patches from kernel/common
- improve memory allocations in various subsystems, video encode/decode, kernfs, cgroup
- Backport to enable CONFIG_HAVE_MOVE_PMD (see here) , thanks @arter97
- Backport to enable CONFIG_HAVE_MOVE_PUD (commit here) , thanks @arter97
- free more RAM by removing unused reserved memory regions
- mm: Micro-optimize PID map reads for arm64 (improves game performance, especially unity based games such as genshin impact)
- MGLRU added (info here and here
Security related features:
- Control-Flow-Integration (CFI) and Link-Time-Optimization (LTO) (CAF 5.4 default, keep for documentation)
- Use ThinLTO which was first used in the Pixel 4 XL Android R-Kernel instead of full LTO (CAF 5.4 default, keep for documentation)
- Shadow Call Stack (SCS) Security-Feature ( 5.4 default, keep for documentation)
- enable init_on_alloc for even more security, more information can be found in the commit message (CAF 5.4 default, keep for documentation)
Misc Features:
Wakelock Blocker:
- advanced wakelock blocker with the ability to block any wakelocks (dangerous, use with caution)
- please read [URL="https://arstechnica.com/gadgets/2018/08/p-is-for-power-how-google-tests-tracks-and-improves-android-battery-life/"]this for further info
- blocking a kernel wakelock should only be done in case of firmware incompatabilities (WiFi network at work (can´t be changed) causes deep sleep to not work on the phone.) That´s the only use case I see for this feature. The kernel does not features this to improve battery life!
Other features:
- clean up asus drivers and fix a few warnings in kernel log
- disable logging and debugging to make the kernel more lightweight in various places (includes binder, mm, vma, gpu, ipa etc)
- fix several coding issues detected by newer Clang-Toolchains
- enlarge dmesg size to ease debugging
Flashing Guide, Download and Changelog
Requirements:
- unlocked Bootloader
- USB-Debugging in developer options enabled
- latest adb and fastboot binaries
- working adb and fastboot environment
- magisk root
- a backup of stock boot.img or your magisk patched boot.img in case you want to go back to stock.
How to flash the Kernel:
1. Download the latest kernel.zip and make sure you have properly updated to the latest matching Firmware (check the feature list for the current firmware the source is based on). When there´s an OTA update for the Sony Xperia 1 III it takes Sony a while to release the source code for the new OS and me a while to build a new kernel. If you don´t want to face any issues, wait until I either release an updated kernel or give green light because there were no kernel changes.
If you want to be sure there are no issues, always make sure to run the firmware the kernel is built for!
If you feel adventurous and try in advance, make sure you have a backup ready!
2. Flash the kernel.zip via latest TWRP (if available), EXKM or FKM app and do a full reboot.
3. Reboot and profit.
DOWNLOAD:
Download is located always in this folder:
https://www.androidfilehost.com/?w=files&flid=331114
Or attached to the release post starting with Android 13 as AFH is currently not working correctly
Important: Read after Download
Please take a look at the second post after flashing the kernel!
Changelog:
Android 11
1.0.0 Initial Release
1.0.1 https://forum.xda-developers.com/t/...xperia-1-iii-aka-sagami.4377449/post-86140929
Android 12
2.0.0
[Kernel][02.07.2022][Android 12] Kirisakura 2.0.0 for Sony Xperia 1 III aka "Sagami"
Kirisakura-Kernel for the Sony Xperia 1 III Hello everyone, To keep it short: Here is Kirisakura - Kernel for the Sony Xperia 1 III aka Sagami. Sagami is the internal codename for this years development platform of Sony Mark III devices. Please...
forum.xda-developers.com
Android 13
3.0.0 https://forum.xda-developers.com/t/...xperia-1-iii-aka-sagami.4377449/post-88048199
3.0.1 https://forum.xda-developers.com/t/...xperia-1-iii-aka-sagami.4377449/post-88404445
Donations:
Donations are not mandatory but very welcome if you want to support development or just buy me a coffee/tea
If you like my work: http://paypal.me/freak07
Credits:
Sony for the development device, giving me the opportunity to create this project!
@osm0sis for all his work, including the ak3 installer!
@tbalden for being the best HTC, Pixel, OnePlus and now Asus wingman!
@LeeDroid and @mwilky for their awesome roms and work I used on multiple devices!
@Captain_Throwback for all the mentoring and guidance!
@Eliminater74 for bringing me into the game and the Inspiration
@nathanchance for his upstream guidance and assistance
@RenderBroken for helping me out
@flar2 for all his work
@joshuous for all the help he provided to me in the past!
@arter97 for giving me advice
@kdrag0n for his help and advices!
@topjohnwu for magisk!
Source Code: https://github.com/freak07/Kirisakura_Sagami
F.A.Q:
Question: Is root preserved when flashing this kernel?
Answer: Yes, the AnyKernel.zip will detect root and keep it.
Question: Safetynet does not pass on my phone since I unlocked the phone, why is this so?
Answer: Google introduced hardware backed attestation recently. Unfortunately the old kernel tricks to still get safetynet passing won´t work. Instead you will have to rely on some magisk modules. Short guide in post #4 below.
Question: How do I return back to stock or another kernel.
Answer: Extract boot.img from the matching firmware you are on (you can do so by using this tool or similar ones found on XDA and when googling around) and flash them via fastboot. If you want to keep root flash back the magisk_patched_boot.img. Or dirty flash your rom and re-root.
Question: Why is having Magisk installed mandatory for this kernel?
Answer: The kernel uses a ramdisk overlay to apply some settings after boot. If you are not rooted these settings will not get applied and you miss some of the optimizations.
Question: How to report bugs properly?
Answer: Have a look at post #3 in the linked thread. The linked guide is a pretty good starting point.
Before reporting any bug make sure you´re running on a stock configuration. That´s means you´re not using any mods, tweaks in kernel managers or other root tweaks , magisk modules, scripts or other modifications that alter various functions like sound mods, data traffic, sleeping behaviour, scheduler, magical battery tweaks etc.
Try to describe the issue as detailed as possible! Give your exact setup, like rom, magisk version, kernel version.
Is the issue reproducible? Does it happen frequently?
Please make sure to meet the points described above, provide logs as detailed in the link above, otherwise debugging is a lot more time consuming and harder. (kernel flashing apps usually support exporting logs of flashes too) If these requirements aren´t met and I don´t find time to either reproduce the issue myself or I´m not able to reproduce the issue myself, reports might just be ignored. If you can already reproduce the issue and provide logs it greatly limits the amount of time I have to spent until I figure out how to reproduce it.
If the device force reboots/randomly reboots (that means you see the bootloader unlocked screen!) provide a .zip of /asdf.
Easiest way is immediately after booting up, with a root explorer navigate to /asdf. Copy the contents to your internal storage, zip it up and send it to me.
If the issue happens while the device is running provide a dmesg plus a logcat that you take while/shortly after the issue happens. This will log what´s running in the current session. Try to be as detailed as possible what´s happening when the issue appears. It will also help me in reading the log!
Feature Documentation:
Here´s a brief documentation about some of the features included in the kernel that can be changed as the user desires.
They can be accessed via either terminal, scripts or for example EXKM manager ( tools -> user settings).
CPU-Frequency Limiting:
Another option is CPU-Freq Limiting. You can now limit the CPU frequency to a few different levels with a sysfs interface. Original implementation is from @tbalden, I only changed it to be accessible via traditional root methods.
Main Switch:
sys/module/cpufreq/parameters/batterysaver
Set this option to "1" to enable the feature
Max-Frequency Selection (Input boosts, such as scrolling boost or app launching boosts will still apply, if touch boost restriction is not set to 1)
sys/module/cpufreq/parameters/batterysaver_level
Set this to "1" to restrict the max CPU-Freqs to 1,7GHZ/2,1GHZ/2,49GHZ (Little Cluster/Big Cluster/Prime Core)
Set this to "2" to restrict the max CPU-Freqs to 1,6GHZ/1,7GHZ/2,0GHZ (Little Cluster/Big Cluster/Prime Core)
Set this to "3" to restrict the max CPU-Freqs to 1,49GHZ/1,4GHZ/1,6GHZ (Little Cluster/Big Cluster/Prime Core)
Touch-Boost Restriction
sys/module/cpufreq/parameters/batterysaver_touch limiting
Set this to "1" to restrict the powerhal from boosting over the limit defined in batterysaver_level
Set this to "0" to allow the powerhal to boost above the values defined in batterysaver_level, but only during interaction with the Phone!
Screenshots:
View attachment 5309899View attachment 5309901View attachment 5309903
This is for example very useful during gaming to prevent additional heat, if not the highest performance from the CPU is required. Check if the game is running fine on level 1 or 2, and you´ll notice much less heat. Powerdraw will be reduced as well.
Another very useful trick while doing video calls or long extended navigation sessions with google maps to preserve battery or keep the phone from heating. Especially during summer if the ambient temperatures are high.
This is a very easy way to preserve battery or reduce heat without toggling the battery save mode in settings as that restricts background data usage, which can lead to delayed notifications.
How to pass Safetynet after unlocking the bootloader
With the introduction of hardware backed safetynet attestation, passing safetynet has become a lot more complicated.
Some probably remember a while ago, flashing a kernel that forced some flags was enough to pass it. However these days are gone.
Below is a short guide how to pass safetynet on phones that are flagged to use HW attestation (such as the ROG 5).
1. Make sure you´re running latest magisk canary.
2. In Magisk Manager enable both zygisk and deny list.
4. Download the latest Universal Safety Net Fix from @kdrag0n ´s github for zygisk cand flash it in Magisk Manager. Reboot.
5. Profit
this one is the last one
Freak07,
Please not this kernel is made to run only on Xperia 1 II
Click to expand...
Click to collapse
I guess it should be "Please note this kernel is made to run only on Xperia 1 III"
By the way, is there any plans to make same kernel for 5 III ?
Source Code: https://github.com/freak07/Kirisakura_Sagami
Click to expand...
Click to collapse
Leads me to nowhere (404).
dron39 said:
Freak07,
I guess it should be "Please note this kernel is made to run only on Xperia 1 III"
By the way, is there any plans to make same kernel for 5 III ?
Leads me to nowhere (404).
Click to expand...
Click to collapse
Fixed the typos and the link.
No, I only have the Xperia 1 III to work on.
Amazing work mate, very meticulous tuning. Would love to have this kernel on the 5 III. I understand the device architectures are quite similar?
treff89 said:
Amazing work mate, very meticulous tuning. Would love to have this kernel on the 5 III. I understand the device architectures are quite similar?
Click to expand...
Click to collapse
I asked the same question above
And unfortunatelly Freak07 do not support 5 III because he doesn't have it. Hope someone else could transfer his patches and things to 5 III.
Thanks for the kernel. However after installing the kernel my SD card gave an error. It says issue with the SD Card tap to fix and then asks me to format it?
BlazingKahn35 said:
Thanks for the kernel. However after installing the kernel my SD card gave an error. It says issue with the SD Card tap to fix and then asks me to format it?
Click to expand...
Click to collapse
I see. Thanks for the report!
I think i know whats up. They use a proprietary driver for exfat formatted sdcards ( I assume yours is formatted as exfat?) so it's not included in the source i build the kernel from.
I don't use a sdcard, that's why I missed it.
treff89 said:
Amazing work mate, very meticulous tuning. Would love to have this kernel on the 5 III. I understand the device architectures are quite similar?
Click to expand...
Click to collapse
dron39 said:
I asked the same question above
And unfortunatelly Freak07 do not support 5 III because he doesn't have it. Hope someone else could transfer his patches and things to 5 III.
Click to expand...
Click to collapse
They are similar, but I can't support a device i don't own. I also lack the time to do any remote debugging.
The phones however are similar as you mentioned, so if somebody is interested in starting to work on it all my work is up on GitHub. That might make it a lot easier than it would be otherwise.
Freak07 said:
I see. Thanks for the report!
I think i know whats up. They use a proprietary driver for exfat formatted sdcards ( I assume yours is formatted as exfat?) so it's not included in the source i build the kernel from.
I don't use a sdcard, that's why I missed it.
Click to expand...
Click to collapse
Yes mine is exfat since it's 256gb but not a big issue. I just transferred all my files to PC formatted the SD and transferred back now it works.
Also I'm using forced 4K all the time. But the only downside is the slowing down of the FP sensor. I think it's a kernel panic can you look in to that also maybe? (It was also slow on stock kernel)
Dear developer, if there is an opportunity, I would like to receive a kernel for PRO-I products!
I promise to donate
Update to 1.0.1
Good morning everybody,
thanks to @BlazingKahn35 ´s report exfat formatted sdcards are now working fine again.
Included an open source driver, that spoofs texfat support (the proprietary exfat driver) once an exfat sdcard is detected.
Download link can be found in the OP.
BlazingKahn35 said:
Also I'm using forced 4K all the time. But the only downside is the slowing down of the FP sensor. I think it's a kernel panic can you look in to that also maybe? (It was also slow on stock kernel)
Click to expand...
Click to collapse
Not sure what you mean. A kernel panic crashes the device so that it reboots.
The fingerprint scanner works fine for me. I place my finger on it, it scans and proceeds to unlock. It's not the fastest around, but it's quick enough for me.
Also used the adb commands to enable 4k and the speed of the fingerprint sensor stayed the same on my end.
I noticed just as I woke up that my phone was charged to 100%. Did you removed battery care from the kernel?
Freak07 said:
Not sure what you mean. A kernel panic crashes the device so that it reboots.
The fingerprint scanner works fine for me. I place my finger on it, it scans and proceeds to unlock. It's not the fastest around, but it's quick enough for me.
Also used the adb commands to enable 4k and the speed of the fingerprint sensor stayed the same on my end.
Click to expand...
Click to collapse
For me there is a big delay sometimes. Do you have AOD enabled?
BlazingKahn35 said:
I noticed just as I woke up that my phone was charged to 100%. Did you removed battery care from the kernel?
Click to expand...
Click to collapse
Not intentionally no. It might be not enabled the way I built the source or i need to see if the drivers is available somewhere else to be able to build it in.
I'll play around with it the next few days, see if I can reproduce the issue and find what's missing or broken. Thanks for the report again.
BlazingKahn35 said:
For me there is a big delay sometimes. Do you have AOD enabled?
Click to expand...
Click to collapse
Not constant AOD. Only waking to AOD screen when lifting the phone is enabled.

Categories

Resources