1. Download our Official Android App: Forums for Android!

Root [KERNEL][AOSP][2.6.38.2] - Savaged-Zen v1.1.0! [HAVS+CFS/BFS!] UPDATED 4/7!

Discussion in 'Android Devices' started by frenchy714, Apr 8, 2011.

  1. frenchy714

    frenchy714 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    333
    Posts:
    3,154
    Joined:
    Nov 11, 2010

    Nov 11, 2010
    3,154
    1,958
    333
    Male
    East Tawas, MI
    Like the title says, SavagedZen's kernel has been updated to 1.1.0!

    As of version 1.1.0, SBC can now be turned on and off on the fly thanks for the sysfs interface implemented by Brandon. If you'd like to know how to enable/disable it, you can read the documentation for it at: http://forum.xda-developers.com/showpost.php?p=12736026&postcount=2770

    Change Log:

    1.1.0

    Added BATT_OPTIONS sysfs interface to allow runtime toggling of SBC (Brandon)
    USB mass storage write speed increased
    BFS v376
    Starting voltage raised to 925mV for stability

    If you want to try it out, here you go:

    Savaged-Zen Mirror System
     

    Advertisement

  2. Xtremedays

    Xtremedays Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    2,514
    Joined:
    Apr 5, 2010

    Apr 5, 2010
    2,514
    1,073
    313
    Male
    Auto Technician(for now)
    Going to give this one a shot tonight. Maybe it will fix my reboot issue on Kings GB :)
     
  3. frenchy714

    frenchy714 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    333
    Posts:
    3,154
    Joined:
    Nov 11, 2010

    Nov 11, 2010
    3,154
    1,958
    333
    Male
    East Tawas, MI
    I think it's pretty slick that you're able to turn sbc on or off at will.
     
  4. Xtremedays

    Xtremedays Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    2,514
    Joined:
    Apr 5, 2010

    Apr 5, 2010
    2,514
    1,073
    313
    Male
    Auto Technician(for now)
    I agree. I use SBC kernels on both Evos at my house but I get a bit nervous about them when you have to charge them more than once a day. I hope Netarchy implements this in some of their sense kernels.
     
  5. frenchy714

    frenchy714 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    333
    Posts:
    3,154
    Joined:
    Nov 11, 2010

    Nov 11, 2010
    3,154
    1,958
    333
    Male
    East Tawas, MI
    Not to get too off topic, but, how's your experience been w/ Kings GB?
     
  6. evomattnc

    evomattnc Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    3,245
    Joined:
    Feb 10, 2011

    Feb 10, 2011
    3,245
    536
    213
    Mechanical Engineer for GE Nuclear
    NC
    Dl'ed last night :). Though I havent tested yet because i was messin around and switched to MIUI then to Chogardjr v3, aaahhhhh i need to get back to the Kings GB. ;)
     
  7. flyjbaker

    flyjbaker Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,192
    Joined:
    Oct 17, 2009

    Oct 17, 2009
    1,192
    266
    163
    Sweet. I never had any issues with the SBC kernels. That is a pretty neat feature.
     
  8. Xtremedays

    Xtremedays Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    2,514
    Joined:
    Apr 5, 2010

    Apr 5, 2010
    2,514
    1,073
    313
    Male
    Auto Technician(for now)
    Up until a week or so ago, I have had no issues and love it. Been getting random reboots here and there for the last week or so. Nandroid back to Mikfroyo 4.5 and no reboots. Not sure if it is kernel related but I don't see it being a rom issue as it was fine for a while before this started.
     
  9. flyjbaker

    flyjbaker Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,192
    Joined:
    Oct 17, 2009

    Oct 17, 2009
    1,192
    266
    163
    Got Kings GB all set up and styling. Flashed this kernel. That is a dead link up there....how do you toggle SBC????
     
  10. akazabam

    akazabam Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    4,418
    Joined:
    Jun 7, 2010

    Jun 7, 2010
    4,418
    1,387
    313
    Near Los Angeles
    Instructions in this link. Basically:

    To verify if it's currently on or off, do this first:

    cat /sys/kernel/batt_options/sbc/sysctl_batt_sbc

    If it's 0, sbc is off; if it's 1, sbc in on.
     
  11. flyjbaker

    flyjbaker Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,192
    Joined:
    Oct 17, 2009

    Oct 17, 2009
    1,192
    266
    163
    Can I do that via terminal emulator?
     
  12. akazabam

    akazabam Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    4,418
    Joined:
    Jun 7, 2010

    Jun 7, 2010
    4,418
    1,387
    313
    Near Los Angeles
    Yes, that's how you have to do it (or from any shell, such as through adb shell or ssh). FYI for those who don't know, sysfs changes are wiped out when you reboot, so you'll have to do this every time you reboot if you don't want sbc. I'm to get it to run at boot with a script from a flashable zip, but it's not working yet. I'll post it here once I have more time to fix it.
     
  13. akazabam

    akazabam Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    4,418
    Joined:
    Jun 7, 2010

    Jun 7, 2010
    4,418
    1,387
    313
    Near Los Angeles
    I haven't gotten it to work correctly yet. It seems like the init process is different with CM GB or something weird is going on with how sysfs works with this kernel, and the init process. Who knows. I'll figure it out later.

    That being said, I did automate the process by making a tasker toggle widget, so if anyone who uses tasker wants it, I'll export it, and post it here. Since they are just tasker tasks, you could even have it enable/disable based on other tasker contexts (use sbc only at night, but not during the day, for example).
     
  14. frenchy714

    frenchy714 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    333
    Posts:
    3,154
    Joined:
    Nov 11, 2010

    Nov 11, 2010
    3,154
    1,958
    333
    Male
    East Tawas, MI
    That reminds me, I still have to give Tasker a go :D.
     
  15. akazabam

    akazabam Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    4,418
    Joined:
    Jun 7, 2010

    Jun 7, 2010
    4,418
    1,387
    313
    Near Los Angeles
    I think you'll like it :). This is one more example of just how powerful it is.
     
  16. Xtremedays

    Xtremedays Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    2,514
    Joined:
    Apr 5, 2010

    Apr 5, 2010
    2,514
    1,073
    313
    Male
    Auto Technician(for now)
    Tried this on Kings GB. Phone wouldn't wake up for 20 seconds or so. Had the same issue on another version of savaged-zen.
     
  17. akazabam

    akazabam Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    4,418
    Joined:
    Jun 7, 2010

    Jun 7, 2010
    4,418
    1,387
    313
    Near Los Angeles
    Okay, so it turns out my text editor was throwing in control characters that it shouldn't have (think notepad), though it's not supposed to. Whatever. I figured it out, so here is a flashable zip that will disable SBC at each boot.

    sbcoff-signed.zip

    I would appreciate it if those who don't want SBC would test this, and verify it works consistently (I see no reason why it wouldn't). I tested it with a couple reboots (after actually flashing it), and it worked.

    EDIT: Oh, and credit for the actual script itself goes to bbedward of XDA. I had my own, but it wasn't working (my stupid mistake ;)), so by the time I figured that out, I just went ahead and used this one. It's close enough to what I had, but he still deserves credit for this.
     
    ocnbrze and frenchy714 like this.
  18. frenchy714

    frenchy714 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    333
    Posts:
    3,154
    Joined:
    Nov 11, 2010

    Nov 11, 2010
    3,154
    1,958
    333
    Male
    East Tawas, MI
    First off, thank you Akazabam; secondly, you only have to flash this once, correct?
     
  19. akazabam

    akazabam Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    4,418
    Joined:
    Jun 7, 2010

    Jun 7, 2010
    4,418
    1,387
    313
    Near Los Angeles
    Right, so, basically, when the phone boots up, it runs a script called init.rc. That script does a bunch of things at startup, such as start interfaces, start some services, etc. etc. One of the things it does is call on something called run-parts. All that is, is a binary that will execute all of the scripts in a particular directory. It's given /system/etc/init.d as an argument, meaning that as part of the startup process, all scripts in the /system/etc/init.d directory are executed in order (that's why you see scripts in there named with numbers - in case they need to run in a particular order). This is how I verified it runs on CM 7, and it may be different on other ROMs, especially Sense ones. Maybe I'll look into that later.

    In any case, this flashable zip takes a script that does nothing more than run the known command (echo 0), and places it in /system/etc/init.d. What that means is that each time the phone boots, it will run that command, and turn off SBC.

    So, short answer - yes, you only need to flash this once. Obviously, if you reflash the ROM or any other ROM, you'll need to reflash this.
     
    ocnbrze likes this.
  20. ocnbrze

    ocnbrze DON'T PANIC!!!!!!!!!
    Rank:
    None
    Points:
    1,923
    Posts:
    23,595
    Joined:
    May 13, 2010

    May 13, 2010
    23,595
    14,436
    1,923
    Male
    being a flashaholic sponsor, helping others gettin
    los angeles
    going to give this kernel and your sbcoff zip later tonight. thanx akazabam.
     
  21. MizzouBrent

    MizzouBrent Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    2,853
    Joined:
    Feb 13, 2011

    Feb 13, 2011
    2,853
    2,519
    313
    Olathe, KS
    What do you guys prefer? SBC or noSBC?
     
Tags:

Share This Page

Loading...