[KERNEL] HTC DNA LK_DNA 0.9.6 [4-30-13] System Write/Standby fixes/Voltage mod

Search This thread

orangechoochoo

Senior Member
Nov 30, 2012
2,204
735
Beating up dumbbells
I ran into the all cores online issue that others who tried to go from DSB's cubed 2.4.2 kernel to DSB's stock write kernel have had.

I used Flash GUI to flash the Return to Stock boot.img, booted into recovery (TWRP 2.4.0.0beta touch recovery) and then flashed the Return to Stock modules.

After rebooting, I used Flash GUI to flash the LK_DNA 0.9.1 boot.img, booted into recovery and then flashed the LK_DNA 0.9.1 modules.

About 30 minutes after reboot, System Tuner showed that all cores were online (and stayed online)

In both instances, I wiped the Dalvik and cache as part of the Flash GUI flash. I'm using the stock ROM (with some apps removed and mods.)

As others have when they've run into this issue, I believe I've done this properly so I don't know what the issue is.

I've since reflashed 2.4.2 boot.img and modules and everything is back to "normal."

Try flashing without using Flash Gui, I prefer that all flashing is done the traditional way so we don't have as many variables. Also,what governor and scheduler are you using?

Are any of you other guys having all cores online?if the problem is showing up this early at least it narrows down the potential problem.
 
Last edited:

elkay

Senior Member
Apr 6, 2005
693
285
github.com
I'm actually seeing the same thing with all cores staying online even going back to complete stock. Can anyone confirm if the latter 3 cores went offline on stock kernel/modules? With stock and stock writable I see all cores go as low as 384Mhz but never go offline. I'm wondering if dsb did something with the Cubed kernel that allows the latter 3 to go offline.
 

orangechoochoo

Senior Member
Nov 30, 2012
2,204
735
Beating up dumbbells
If you flash the back to stock files it should solve this problem. So with a stock kernel it's fine, with the OC kernel it's fine, but on the intermediate kernel there's a problem. It can't be the write to system patch since it works fine on the OC version, so something else the OC kernel has solves the problem. Or the write to system is troublesome until something in the OC kernel is included.


What other things on you kernel have been changed aside from the write-to-system patch?
 

elkay

Senior Member
Apr 6, 2005
693
285
github.com
If you flash the back to stock files it should solve this problem. So with a stock kernel it's fine, with the OC kernel it's fine, but on the intermediate kernel there's a problem. It can't be the write to system patch since it works fine on the OC version, so something else the OC kernel has solves the problem. Or the write to system is troublesome until something in the OC kernel is included.


What other things on you kernel have been changed aside from the write-to-system patch?

Even back to straight stock didn't fix it. This kernel right now is just dsb's system write and a bunch of usb/hsic fixes. Nothing CPU-related has been touched. dsb's stock system write kernel is acting the same for me.

Are we 100% certain that straight stock untouched took cores 1-3 offline?

I'm also completely certain I'm flashing the appropriate files. I've been doing this for years.
 

wpsantennas

Senior Member
Nov 30, 2006
181
12
www.wpsantennas.com

Thanks, I appreciate it. I don't think that it is an issue with either your kernel or DSB's. It seems to be a problem with migrating from DSB's cubed kernel to either your kernel or DSB's stock write kernel. I would suspect user error (me) except that this has happened to several people who appear to have done the Cubed->Stock->DSB-Stock/Write,LK kernel correctly.

---------- Post added at 10:00 PM ---------- Previous post was at 09:53 PM ----------

Try flashing without using Flash Gui, I prefer that all flashing is done the traditional way so we don't have as many variables. Also,what governor and scheduler are you using?

Are any of you other guys having all cores online?if the problem is showing up this early at least it narrows down the potential problem.

Agree that variables make it tough. Today was the first time I used Flash GUI so as you suggested I redid everything the traditional way. Same result.

I checked System Tuner both after loading stock kernel/modules as well as LK kernel/modules. The weird thing is that not only did I see all cores stay online, I would see it state that cores 2 & 3 were running at a higher freq than core 0. I've never seen that. I wondered if perhaps the kernel switching was "confusing" System Tuner so I deleted/reinstalled but saw the same thing.

Reinstallation of 2.4.2 brought things back to "normal."
 

elkay

Senior Member
Apr 6, 2005
693
285
github.com
I can confirm that the back to stock zip isn't working correctly on my phone. At the very least, mpdecision.sav and thermald.sav are not being deleted from /system/bin. I looked in the zip and the script seems sound. I'm wondering if something isn't working right with TWRP 2.3.2.0. I'll look into that.
 

wpsantennas

Senior Member
Nov 30, 2006
181
12
www.wpsantennas.com
Try flashing without using Flash Gui, I prefer that all flashing is done the traditional way so we don't have as many variables. Also,what governor and scheduler are you using?

Are any of you other guys having all cores online?if the problem is showing up this early at least it narrows down the potential problem.

Even back to straight stock didn't fix it. This kernel right now is just dsb's system write and a bunch of usb/hsic fixes. Nothing CPU-related has been touched. dsb's stock system write kernel is acting the same for me.

Are we 100% certain that straight stock untouched took cores 1-3 offline?

I'm also completely certain I'm flashing the appropriate files. I've been doing this for years.

I can confirm that the back to stock zip isn't working correctly on my phone. At the very least, mpdecision.sav and thermald.sav are not being deleted from /system/bin. I looked in the zip and the script seems sound. I'm wondering if something isn't working right with TWRP 2.3.2.0. I'll look into that.

If you think it may be a recovery issue, I'm using TWRP 2.4.0.0beta touch
 

bsSkunkApe

Senior Member
Jan 15, 2009
194
27
I can confirm that the back to stock zip isn't working correctly on my phone. At the very least, mpdecision.sav and thermald.sav are not being deleted from /system/bin. I looked in the zip and the script seems sound. I'm wondering if something isn't working right with TWRP 2.3.2.0. I'll look into that.

Have you tried the kernel switch with TWRP 2.4.0? I performed this exact process this week with the cubed 2.4.2 > stock > cubed stock sys write and my cores all appear to be functioning normally.

Edit: WPS got to it the same time I did

On a slightly unrelated note, I have performed several flashes with aroma and TWRP 2.4.0 beta and aroma has not frozen on me once.
 
Last edited:

elkay

Senior Member
Apr 6, 2005
693
285
github.com
Have you tried the kernel switch with TWRP 2.4.0? I performed this exact process this week with the cubed 2.4.2 > stock > cubed stock sys write and my cores all appear to be functioning normally.

Edit: WPS got to it the same time I did

On a slightly unrelated note, I have performed several flashes with aroma and TWRP 2.4.0 beta and aroma has not frozen on me once.

I just tried TWRP 2.4.0.0beta and it didn't work, but I didn't "flip a switch". I'll go back and look for that setting and try again. If it worked for you, it's likely a recovery issue for those having problems. Going to take a few minutes because I keep putting the Cubed kernel back in for a true test. Will report back again!
 

bsSkunkApe

Senior Member
Jan 15, 2009
194
27
Re: [KERNEL] HTC DNA LK_DNA 0.9.1 [1-18-13] System Write/Standby fixes

I meant just the switching between different kernels, not any particular setting. Sorry I couldn't be much help. When I saw the recovery version, thought that might have something to do with it.

Mind telling me where this setting is? I don't see it under Settings.

EDIT:

Nevermind! I thought you meant "checkbox" when you said "switch", not "switch" as in the verb haha. 2.4.0.0beta did not work. I'm going to try Flash Image GUI.

Lol, yeah.

Sent from my HTC6435LVW using Tapatalk 2
 

elkay

Senior Member
Apr 6, 2005
693
285
github.com
Mind telling me where this setting is? I don't see it under Settings.

EDIT:

Nevermind! I thought you meant "checkbox" when you said "switch", not "switch" as in the verb haha. 2.4.0.0beta did not work. I'm going to try Flash Image GUI.

Flash Image GUI flashed the boot.img but didn't flash any of the modules even though it gave the indication that it was going to. Frustrating!
 

abn.geek

Senior Member
Oct 11, 2010
228
29
Re: [KERNEL] HTC DNA LK_DNA 0.9.1 [1-18-13] System Write/Standby fixes

Battery life is nuts on this. Charged to 91% at noon (so 9 hours ago) and I'm down to 76 with normal use.

One issue so far: sometime in the last 30 or so minutes of being in my pocket my phone decided it no longer had a sim card. Hot restart fixed this. What can I use to get you relevant logs if this happens again LK?

Thanks, off to a good start so far.
 

elkay

Senior Member
Apr 6, 2005
693
285
github.com
Battery life is nuts on this. Charged to 91% at noon (so 9 hours ago) and I'm down to 76 with normal use.

One issue so far: sometime in the last 30 or so minutes of being in my pocket my phone decided it no longer had a sim card. What can I use to get you relevant logs if this happens again LK?

Thanks, off to a good start so far.

That happened to me once yesterday as well. It only happened right when I booted my phone, so I wasn't sure if it was just an issue with the phone not being fully up and running yet. Thanks for confirming that it can happen further down the road. Think it's related to the issue with lost data connection. The fix for that will likely be in 0.9.2 on Sunday or 0.9.3 following that up next week. I'm assuming it's an issue with one of the HSIC patches that are still not yet applied. I haven't had a chance to get 0.9.2 much of a shot yet because I've been chasing this "all cores online" issue this evening.
 

elkay

Senior Member
Apr 6, 2005
693
285
github.com
If you have the "all cores online" problem, I've updated the first post with a fixed stock module zip file. The problem was that /system/bin/mpdecision and /system/bin/thermald did not have their permissions reset to 755 properly in the update script. If you use this zip file, you'll need to install the LK_DNA modules again right afterward (no need to reboot between installs).

Quite honestly, I'm not sure how the original return to stock zip file worked for anyone. The permissions on those two files had to have been fixed by something else in the cases that things worked.
 

Shamrock13

Senior Member
Jun 7, 2010
864
33
PA
If I download this, do I have to return to stock first? I'm assuming I can just install this over top of the Stock Writable kernel. Yes?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 48
    Hello! Here's an HTC DNA kernel with system write access based off HTC's 2.04.605.2 source. While system write is awesome for those without s-off, there are just a few other things some of us desire while maintaining stability of our DNAs. The most glaring thing to me was the horrible standby battery time on our stock phones. The issue is due to a wakelock of msm_hsic_host that prevents the phone from going into deep sleep. This absolutely kills standby time. I've put fixes into place to correct this issue. I'll likely be adding some additional features to this kernel, but I won't be going crazy. My main concern with this kernel is stability and good battery life, so if you're looking for a benchmarking kernel you should probably try a different one for now. Don't ask for release dates!

    Installation:

    You must be unlocked and rooted to install this kernel. The process to unlock and root are covered in other threads dealing directly with those tasks. If you are unfamiliar with Recovery Mode or fastboot, this modification is not yet for you and you should read up on those things first. There's always the potential that you may damage your phone with any system modification, and by installing and using this kernel you take full responsibility for any damage you may cause to your phone. Download the zip file for the version you want to install. This zip file should be extracted on your computer and contains a boot.img file that needs to be flashed in fastboot, as well as another zip file containing the modules which must be put on your phone's storage and installed in Recovery Mode. DO NOT INSTALL THE FULL DOWNLOADED ZIP FILE IN RECOVERY. After flashing boot.img and installing the modules zip file, make sure you wipe your cache and Dalvik (recommended with each update, too).

    Known bugs:

    - None at this time

    Changelog:

    0.9.6 [4-30-13]
    - Fresh code base from HTC 2.04.605.2 source
    - System write
    - HSIC wakelock fixes
    - Enabled CPU stats
    - Added tables for Faster bin CPUs tweaked with lower stock voltages
    - Added voltage control

    0.9.5 [2-7-13]
    - Reverted some HSIC changes made by HTC

    0.9.4 [1-25-13]
    - More HSIC fixes
    - Added tables for Faster bin CPUs tweaked with lower stock voltages
    - Added voltage control

    0.9.3 [1-20-13]
    - Enabled CPU stats

    0.9.2 [1-20-13]
    - More USB/HSIC fixes

    0.9.1 [1-18-13]
    - More USB/HSIC fixes
    - Fixes for 3G dropout
    - Possible data drops (airplane mode or reboot will fix it)

    0.9.0 [1-18-13]
    - Initial release (fork from dsb9938's System Write Stock Kernel)
    - System write / root in ADB (thanks dsb9938)
    - Fixes for msm_hsic_host wakelock problem
    - Possible 3G dropout (airplane mode or reboot will fix it)

    Downloads:

    LK_DNA 0.9.6
    http://www.mediafire.com/?zvav29v4v6o6tp8
    MD5:16532ed065cfa72aa71d9d0899290c43

    LK_DNA 0.9.5
    http://www.mediafire.com/?63jol7u21eemu2z
    MD5:9f2ef4ca48baf2e58ba5ade26b89e42c

    LK_DNA 0.9.4
    http://www.mediafire.com/?x9469bbdo6n4bsz
    MD5: e0c71e23d7e0e1e3a67fba0cd1a3c028

    LK_DNA 0.9.3
    http://www.mediafire.com/?d1f4uel8eh131l3
    MD5: c984f3c72ec3c321bd88d59aecae9bbf

    Kernel source:
    https://github.com/elkay
    12
    Source is out for the DNAs new ota.

    http://www.htcdev.com/devcenter/downloads

    Sent from my HTC6435LVW using xda app-developers app

    Awesome! I started a new job Monday so I might not get around to digging into their code until this weekend, but I'll make sure to get you guys a build ASAP. :)
    8
    Just to clear some things up.

    I fixed my return to stock flash, thanks elkay for pointing out my derp.

    Second, you only need to flash that if coming from my custom kernel, not any of the stock based ones. On the custom one, I remove some files from your phone because the functions are built into the custom kernel. Flashing that file puts them back.

    D

    .
    7
    I pulled down the source and am starting to take a look at it. Pretty busy weekend but I'll see what I can do about getting something together.
    5
    According to the viper ROM instructions flashing the dsb modules isn't necessary, it's built in to his script.

    You're correct in that when flashing Viper as a clean install after full wipe, you don't need modules for the dsb kernel since they're built in to the ROM. However, to change to elkays kernel, you must flash the DNA.Stock.Kernel.Modules.Fixed.zip module to restore the missing stock files, then flash the new kernel. It's really a quick and painless procedure, but has to be done in correct sequence.

    So what you should do now to set things straight, and might as well move on elkay 0.9.4:
    1. Download and unzip the LK_DNA_0.9.4.zip file on your "SD"
    2. Download but leave zipped the DNA.Stock.Kernel.Modules.Fixed.zip file.
    3. Use flash GUI to flash boot.img file in unzipped LK_DNA_0.9.4 folder. (same as flashing boot.img through adb in bootloader with "fastboot flash boot boot.img" but a hell of a lot quicker).
    4. Reboot to recovery.
    5. Clear cache and dalvik cache, flash DNA.Stock.Kernel.Modules.Fixed.zip then flash LK_DNA.Modules.zip in the unzipped LK_DNA_0.9.4 folder. You can do all that in one recovery session without rebooting.
    5. Now reboot. Bet things will be a lot better.:good: