[KERNEL] [AOSP] leanKernel: minimalistic kernel (v5.1.0, 11/16/11)

Search This thread

desai827

Member
Apr 11, 2011
44
1
So I'm still getting the random hangs with 3.3.8 and require a battery pull.

GingerRemix 2.1 ¦ Imoseyon's GB Kernel 3.3.8 ¦ MR 2.5 Radio
 

nerogold

Senior Member
Oct 23, 2010
361
36
ny
3.3.8 works flawless for my TB I ran twisted's tweaks and I'm oc'd to 1.92x and this is first time my bolt is as cold as ice ,before I could've hardly hold on to my Tb it would get extremly hot .Thanx Imo.

Sent from my ADR6400L using XDA Premium App
 
Last edited:

kriskmk

Senior Member
Jun 7, 2010
830
36
Utopia
One quick observation.... the camcorder works.. but if we take the video in portrait and try to view the same in landscape.. it sorta craps out.. (no FC.. but just bad video)..

However, it works without a glitch with the stock HTC GB Kernel. What gives?
 

Imoseyon

Recognized Developer
Dec 21, 2010
2,495
8,870
Mountain View, CA
One quick observation.... the camcorder works.. but if we take the video in portrait and try to view the same in landscape.. it sorta craps out.. (no FC.. but just bad video)..

However, it works without a glitch with the stock HTC GB Kernel. What gives?

Well what gives is that I don't have the source code of the stock kernel since HTC hasn't released it, and I got the camcorder working based on ace and cm7 kernel but it's not going to be perfect (well not yet at least). Thanks for the report - lemme see what I can do.
 
Well what gives is that I don't have the source code of the stock kernel since HTC hasn't released it, and I got the camcorder working based on ace and cm7 kernel but it's not going to be perfect (well not yet at least). Thanks for the report - lemme see what I can do.

Making pancakes with no eggs... The effort alone is respected.

Sent from my ADR6400L using Tapatalk
 
A

azbobs

Guest
Well what gives is that I don't have the source code of the stock kernel since HTC hasn't released it, and I got the camcorder working based on ace and cm7 kernel but it's not going to be perfect (well not yet at least). Thanks for the report - lemme see what I can do.

Yes thx for your hard imoseyon much appreciated!
Cheers,


Sent from my ADR6400L using XDA Premium App
 

Cubs2008

Senior Member
Sep 23, 2008
1,128
118
Schnecksville, PA
I am getting amazing battery life and performance from 3.3.8 184 at 1.9x/iX on Bamf RC3. My phone was stuck in a sync loop and stayed awake for 7.5 hours straight and my battery was at 87 percent when I checked it this AM (was on LTE most of the time but some wifi as well.) Screen shots are in the ROM thread. I'm really happy with this setup Imo! Also zero random reboots on this kernel (and I couldn't even run past normal mode since the start of the 3.3.x kernels without random reboots.)
 

desai827

Member
Apr 11, 2011
44
1
Just had 2 random reboots while using Dolphin HD in 1.9x mode.

GingerRemix 2.1 ¦ Imoseyon's GB Kernel 3.3.8 ¦ MR 2.5 Radio
 

Imoseyon

Recognized Developer
Dec 21, 2010
2,495
8,870
Mountain View, CA
Just had 2 random reboots while using Dolphin HD in 1.9x mode.

GingerRemix 2.1 ¦ Imoseyon's GB Kernel 3.3.8 ¦ MR 2.5 Radio

Try this. (I have this on OP now)

High Speed Overclocking for GB Sense
Overclocking above 1.4Ghz on some phones, something about the ROM and/or ROM/radio combo is causing random reboots when temp is high AND clock speed is high. Try using setcpu to create a profile so it doesn't go higher than 1.4ghz when the temp is higher than say 33c.
 
Last edited:

M@|ice

Senior Member
Dec 20, 2010
1,132
138
42
Noblesville, Indiana
Imoseyon is hard?

Sent from my ADR6400L using Tapatalk

your post made me laugh for the first time today, so im hitting the thanks button on this. :)





SWAP.........

however on a thunderbolt related topic, im still having one hell of a time getting this SWAP to work. i have tried doing all the steps exactly as they are on the thread but get nothing but zeros for swap. i even ran the remove command, rebooted, and tried it again, nothing. it all sets up fine, no errors or anything, but the values just never change from zeros. any suggestions experts?
 
Last edited:

Imoseyon

Recognized Developer
Dec 21, 2010
2,495
8,870
Mountain View, CA
SWAP.........

however on a thunderbolt related topic, im still having one hell of a time getting this SWAP to work. i have tried doing all the steps exactly as they are on the thread but get nothing but zeros for swap. i even ran the remove command, rebooted, and tried it again, nothing. it all sets up fine, no errors or anything, but the values just never change from zeros. any suggestions experts?

You want to make sure there's an init.d script (in /etc/init.d) that runs "swapon", and then make sure that the actual swapfile exists.
 

fixxxer2008

Senior Member
Jun 22, 2008
5,087
89
West Michigan
nice kernel but im back on 3.3.7... had issues with sync getting stuck on with no data and my phone wouldn't go to sleep. all fine now though.

btw does this kernel have any audio tweaks at all?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 92
    This is a minimalistic Thunderbolt kernel based on the official gingerbread kernel source, patched to 2.6.35.14, and then a bunch of lean mods added (look at feature list below).

    DOWNLOADS:
    1) lean (normal lean version), 1) 184Mhz (184Mhz can be unlocked via st - note for many people 184Mhz is unstable and cause issues, also supports outgoing call recording)

    speedtweak.sh
    This script will allow you to "transform" your kernel into normal, extreme, 1.92, 1.92X and battsaver versions (ie. it allows you to control speed, voltage, and slots to a certain degree). Once you run the script, everything will be self-explanatory. To run the script:
    1) Open Terminal Emulator (install it from market if you don't have it).
    2) Type "su" (without quotes) and hit enter.
    3) Type "speedtweak.sh" (without quotes) and hit enter.
    leanKernel kernel speed tweaker
    ------------------------------_
    1) normal: undervolted, overclocked to 1.41Ghz
    2) extreme: extremely undervolted, overclocked to 1.41Ghz
    3) 1.92: undervolted, overclocked to 1.92Ghz
    4) 1.92X: extremely undervolted, overclocked to 1.92Ghz
    5) battsaver: extremely undervolted, not overclocked

    6) Unlock 184Mhz
    7) Lock 184Mhz
    8) View current settings

    Please type 1, 2, 3, 4, 5, 6, 7, or 8:
    speedtweak.sh and SetCPU
    The risk of running setcpu is that it can inadvertently override the min and the max that were set by the speedtweak script. (oh it can also override the governor setting but that's not as bad). Other than that it's pretty harmless - it can't mess with the voltage settings. So if you're going to use SetCPU, keep this in mind. One way to make this work is to use SetCPU to configure governor and min/max, and use speedtweak.sh to configure voltage settings. Or just don't use SetCPU. :)

    FEATURES
    1. Includes lots of goodies from kernel source (2.6.36.x & 3.x from kernel.org) newer than stock.
    2. speedtweak.sh script to adjust clock frequencies and voltages.
    3. SVS - manual voltage tweaking via /etc/init.d/01vdd_levels
    4. InteractiveX and ondemandX governors! Added my own suspend code to interactive and ondemand code to make the phone lock at low clock speed when screen is off. No need for sleep setcpu profile anymore.
    5. For 1.92Ghz builds, interactiveX and smartass governors were modified to minimize unnecessary spikes above 1.8Ghz to keep phone stable.
    6. vm, minfree, memory, buffers readahead buffer tweaks
    7. All unnecessary kernel components removed to make kernel lean and fast!
    8. low # (5-10) of cpufreq slots for simple management and less governer transitions.
    9. Undervolted for longer battery life.
    10. SWAP and EXT4 enabled.
    11. Filesystems mounted via EXT4, and tweaked for performance.
    12. init.d enabled in ramdisk
    13. TUN, CIFS, NSIO (netspector) module support
    14. zram (from linux 3.1) module support (to enable, go into Terminal, type su, and then type "zram enable" without quotes). What is zram?
    15. TINY_PREEMPT_RCU.
    CHANGELOGS

    4.2.0 (10/28/11) - last "stable" kernel based on cm7 source.
    5.0.0 (10/29/11) - based on official kernel source from HTC.
    5.0.3 (11/1/11) - bluetooth, video playback, scaling frequencies sysfs all fixed. audio levels tweaked. netspector(nsio) module upgraded to 2.0.
    5.0.4 (11/13/11) - 5.0.3 with audio levels reverted stock for better compatibility with MIUI (no need to upgrade from 5.0.3)
    5.1.0 (11/16/11) - cpufreq and cpuidle updated to linux v3.2rc1, suspend support for LTE, 184mhz version supports in-call recording now (outgoing only).

    DIRECTIONS
    Uh.... flash the zip in clockworkmod. You may need to wipe Dalvik cache and/or delete /data/misc/dhcp, /data/misc/wifi.

    Donate to your favorite charity, or donate to me.
    18
    GOVERNORS
    First, my take on the governors that are out there: http://xdaforums.com/showpost.php?p=13020648&postcount=617
    I offer three governors: interactiveX, ondemandX, and smartass. What are they?
    • interactiveX - it's the interactive governor from CM, but I added suspend/wake logic so when the phone screen is off it runs at below 400Mhz. Also, I modified its code some more to minimize unnecessary cpu spikes above 1.8Ghz if you happen to be running one of my 1.92 kernels. Most tbolts are unstable above 1.8Ghz, and it's the quick jump above 1.8Ghz that usually locks up the phone. It will hit 1.92Ghz only when it makes sense (ie. sustained high load). This is my favorite governor - perfect combination of speed and power efficiency.
    • ondemandX - ondemand governor code from latest linux source *plus* the suspend/wake logic described above, except it has the ability to ramp to 369Mhz while screen is off. No additional code was added for stabilizing above 1.8Ghz.
    • smartass - smartass code from erasmux, but I wasn't happy with its performance so I tuned it for quicker ramp up in speed. It has the same suspend/wake logic as ondemandX, and the same >1.8Ghz stabilizing mod as interactiveX.

    Source code
    AOSP: https://github.com/imoseyon/leanKernel-tbolt-gingerbread/tree/aosp

    AOSP FAQ
    1. Wifi is not working - 1) first make sure you flash kernel via CWR, not kernel manager or rom manager, 3) clear dalvik cache, 2) delete all files in /data/misc/wifi and /data/misc/dhcp, and reboot.
    6
    SENSE v2.5.4test4 (5/22/11) - Fixed a silly bug i introduced when i reworked overclock code, modded battery code to charge FAST until 95% and then slow charge.

    Oh also changed the higher frequencies to even numbers: 1200000, 1400000. Keeping it simple the leanKernel way! (also may resolve some oc/uv issues)

    http://xdaforums.com/showpost.php?p=13940102&postcount=1

    TODO:
    1) look at battery drain issue some more (possibly wifi 11n enable).
    2) work out any remaining kinks with battery and cpufreq code mods.
    3) look into camera/camcorder focus issue

    I'm probably going to take a little break for the rest of the evening. Still a bit under the weather. Happy flashing! :D
    5
    Sweet man! Glad its working for ya! Charging is awesome, but like you said and everyone else, Drain sucks! just wish I knew where to find all the previous GB kernels!! I loved 2.5.4test4, but haven't found anything! stay in touch and let me know (as well as other people reading this) if you guys know where I can find previous Imosey GB Kernels. Thanks for the Thanks Mate! :D

    Ask and you shall receive. I have almost all of his kernels on my computer. This is the 2.5.4test4. enjoy.
    Since IMO's server is down I'll post the 2.8.1test1 kernel as well. I was able to snag it as soon as he posted it.
    4
    Working like a charm right now !!!!

    Imoseyon, YOU DA MAN! BT is back up and running on your sweet new 3.3.3! THANKSYOUTHANKSYOUTHANKSYOU!

    Sweet. Call XDA and tell them to make me a recognized developer! :D