yashsingh1/xdaforums huggingface dataset:
[HTC Droid DNA] CharliesTheMan:
I've had some similar thoughts, we learn what works well on a device and just like Pavlov's dogs, the first thibg we want to do is what rewarded us previously.

I've done a lot of testing and tried a lot of governors, even adding lots of governors in just to test. My experience shocked me a bit but ondemand and this kernel literally gave me battery life I didn't know was possible.

From someone who has tried all kinds of adjustments and additions with this kernel, the hot plugging and mpdecision really do a pretty impressive job. I'm not saying crpalmer won't start creating and hacking up governors to get it better, but existing governors that worked well on different devices usually end up detracting from the efficiency.
[HTC Droid DNA] pyroguysf:
Does anyone on this kernel use apps like DeskSMS or MightyText? I like being able to text from my tablet or PC for convenience and battery by not needing my screen on, but the 3 or so services I've tried all seem to be hit and miss when the phone hits deep sleep. About 25% of the time in deep sleep, whatever signal these services send to the phone to wake it and send the text just doesn't work- I'll wait for up to an hour seeing that the message is still pending, but all I have to do is hit the power button on my DNA and it goes through instantly.

At the moment I'm on MicroMod's Digital Dream 1.2, have power saver off, wifi set to never turn off, HTC's "sleep mode" off, and everything else I can think of to make sure nothing closes out my data connection. Since as far as I know, deep sleep is controlled by the kernel, is there anything that can be tweaked to perhaps make it more sensitive to waking up, or is this more along the the lines of a bug?
[HTC Droid DNA] CharliesTheMan:
I'm thinking it's less on the side of the data connection, and more on the side of the app not waking the phone up. I will do some research on the apps themselves and the processes and see what I might can think of that could be useful. Before I'm done crpalmer will have probably already come in and pwned my answer though, dudes fast and always has an answer, rarely do I hear an "I dunno" out of him :)
[HTC Droid DNA] pyroguysf:
Haha, yeah it's not a big deal or anything just thought it was worth asking. Only reason I thought it might be more data/sleep than app related was because it happens with DeskSMS, MightyText and another one I tried. I've reflashed ROM and kernel but haven't yet had the chance to go back and see if I can replicate it with stock ROM/kernel. I've been meaning to learn more about Android's inner workings so I'm not scratching my head and frowning so often, especially since our phone has its few quirks and not a ton of development, but haven't had the time, so more power to all you devs out there who do, haha.
[HTC Droid DNA] tgerbracht:
Does a nandroid save your preexisting kernel by chance? I thought so but wanted to confirm.
[HTC Droid DNA] nimrodsv:
Yes if you selected the boot partition
[HTC Droid DNA] .torrented:
Yes and also another fancy trick is if you flash a bad kernel and can't get it to boot... And a nandroid that contains a kernel that works you can do an advanced restore and just restore the boot.img and problem solved
[HTC Droid DNA] pyroguysf:
I'm still not worried about it, but for what it's worth it seems like you're right with it being app related. Haven't touched or even looked at my phone all morning and get texts pushed to my computer/tablet when they come in via MightyText, but it still has problems sending, although they do eventually send. I haven't paid much attention, but it seems like they might be only be going off with my 15 min heartbeats back to Google while asleep, which actually isn't too bad.

MicroMod777 updated his ROM I've been using so I'll try some clean flashes soon and see if anything changes.
[HTC Droid DNA] CharliesTheMan:
I actually am going to be flashing that rom to check it out, so just for curiositys sake I'm going to try tinkering with the same apps and I will let you know if I find anything useful, it would be ideal if I could provide some valuable info that one of us can send to the app developer. No promises but if I do get something useful I'll let ya know for sure. Troubleshooting is kind of my niche as I'm useless with anything else lol.
[HTC Droid DNA] armydog13:
I am having the same issue with mighty text running Z's kernel and micromod's DigitalDream ROM. Sending texts from my pc takes forever
[HTC Droid DNA] hyphydragon:
option for sweep 2 wake? maybe some little exe that the people who want it can flash adding it to the kernel so that it wont be in the main release but it can be separately added for ppl such as myself who cannot live life without it?

the s2w from cubed is the best! i dont know how anyone could dislike it, only having to sweep from "back to home" to wake and "home to back" to sleep, LOVE IT!

meant this to be in the aosp kernel thread oops!

or or, crpalmer you can jsut say no and ill never ask again
[HTC Droid DNA] nimrodsv:
He's already said no :)
[HTC Droid DNA] sdamark:
LOL, Pretty sure that's what I read too. :laugh:
[HTC Droid DNA] c5satellite2:
Agree with hyphydragon. This is a great kernel, people really like it and s2w is also very popular. Considering that the hardware/drivers supports it correctly, it shouldn't(and really doesn't) cause any instability or battery drain. A second version of this kernel with just s2w support added would be welcome by many!

Thanks again for the great work.
[HTC Droid DNA] .torrented:
Fork his kernel and clone it to your machine build in s2w push it to git so other people can access it and then build it and you got S2W :)
[HTC Droid DNA] ML417:
If only i had that kind of time :rolleyes:

honestly i love the stability of crpalmer's kernel, but i love the features in Z's kernel and can't seem to get them go
[HTC Droid DNA] dabomb697:
Sorry if this has been answered already but can I use this if I'm running the 2.06 firmware?
[HTC Droid DNA] dabomb697:
Well I followed the instructions and now my wi-fi won't turn on. What gives?
[HTC Droid DNA] .torrented:
That's strange maybe try it again... You did just flash in recovery right?
[HTC Droid DNA] dabomb697:
I'm s on so I flashed in recovery and then flashed the boot img in the bootloader.
[HTC Droid DNA] .torrented:
Flash the boot.img first then flash the zip in recovery
[HTC Droid DNA] dabomb697:
That's not what the instructions say but I'll try it

Still doesn't work. Plus when I flashed it this time it froze and the bottom buttons started flashing. I had to hard reset it to make it stop.
[HTC Droid DNA] ML417:
Try redownloading the files, might of gotten corrupt, or it could be that you mixed files up when trying to flash.
[HTC Droid DNA] CharliesTheMan:
Edit: I just saw you mention flashing the boot.img in the bootloader. Make sure you're flashing it in fastboot not regular bootloader.

Try using this app for boot.img. it's free on XDA http://xdaforums.com/showthread.php?t=1963896

When you do the instructions below screenshot your cmd prompt next time you fastboot flash it.

2.0.27 the version you're flashing? Have you wiped cache and dalvic cache before you flash it?

Oh make SURE you don't have a cpu control app or toolbox with settings applied to stick on boot.

If you were running a custom app, clear your app data in settings/app before flashing.

Try using flash image gui to flash the boot.img or if you used it fastboot flash it. it sounds like possibly boot img kernel zip might be a mismatch.

If you don't have WiFi after those pointers screenshot settings/about phone/ software/ more
[HTC Droid DNA] crpalmer:
That is usually that you flashed one, but not both, of the boot.img and the modules. Verify that you are running my kernel by doing

adb shell cat /proc/version

and seeing that it says crpalmer in it. Then do:

adb shell dmesg -c

(turn on wifi)

adb shell dmesg

and look for an error that says crpalmer in it (something like a module version mismatch error). If you see that, it should tell you the version number of the modules that are installed and the version of the kernel.
[HTC Droid DNA] CharliesTheMan:
It's so much more intelligent and correct when you say it :D
[HTC Droid DNA] del9800:
When setting stock lightsensor "adb shell..." Do I run that after boot or bootloader?
[HTC Droid DNA] crpalmer:
Sigh... Early in the morning, I was surprised the no one had helped and so I offered my advice. Now that I look back, I guess I missed the whole next page worth of replies to the thread...

Thanks to you and the rest for helping answer the questions so effectively!
[HTC Droid DNA] crpalmer:
After boot is most likely to be correct. These are just example commands that will create files on your sdcard with the right contents. You can use any text editor and/or adb push to create the files...
[HTC Droid DNA] CharliesTheMan:
Lol no I was serious, thanks for posting it. BTW I love that you're a morning person too. That's rare to find in a developer.

It's really nice that you're so active in the thread. Your latest kernel is rockin my phone by the way.
[HTC Droid DNA] dabomb697:
I kept trying and I couldn't figure it out so I just went with another kernel and it worked the first time. Thanks for all the advice though.
[HTC Droid DNA] [indiferenc]:
can someone help me out? i'd like to change the governor, but i couldnt find the script. and, on that note, im not even sure what the default governor is and which others are available. also, i'd like to increase the auto screen brightness just a bit, but not go back to stock. is there a way to do this?
[HTC Droid DNA] Milly7:
The default governor is ondemand. To change it, you can run the example command in post 2 using adb or terminal emulator (I think it is slightly different in terminal emulator) but using the governor name that you would like instead of interactive unless that's the one you want. The command is: adb shell su -c "echo interactive > /sdcard/crpalmer-cpufreq-governor". To see the list of available governors you can download set CPU from the play store to see which ones are available. For brightness, some have suggested Veils Autobrightness from the play store.
[HTC Droid DNA] supertoast92:
Sorry if this has been asked before, and I've already asked other things about the scripts. But, what would happen if I just flash and leave it as is? As in, no scripting whatsoever after installing, no created script files by the user. Are these simply defaults the kernel uses?
[HTC Droid DNA] CharliesTheMan:
It will run like a beast. Should perform extremely well.
[HTC Droid DNA] orangechoochoo:
Default shoukd be ondemand, 1728 max, 3xx min (I forget the exact number), cfq, 128 read ahead buffer.
[HTC Droid DNA] ML417:
Are you sure that it defaults to 1728? Last I checked default should be stock settings.
[HTC Droid DNA] supertoast92:
Looks like it defaulted to stock frequencies for me. I'm running Viper 1.3.1, which has cpu governor settings built in though...not sure if that has any effect or not.
[HTC Droid DNA] CharliesTheMan:
It's all depends on your rom. I believe it's postboot.sh if I remember correctly that's changing the settings.

The kernel's defaults are 348 min, 1728 max and ondemand. But a lot of the roms have a script that will set the cpu frequency so the kernel's defaults get over written.
[HTC Droid DNA] ML417:
why would it be set so high? my phone cant even boot with frequency that high
[HTC Droid DNA] .torrented:
I'm pretty sure it defaults to 15xxmhz
[HTC Droid DNA] jeremy46er:
I know his aosp kernel defaults to 1512. Most every other sense kernel I flashed of crpalmer's did as well. Only reason I know is because I never overclock.
[HTC Droid DNA] crpalmer:
New release:

Version 2.0.30: June 8, 2013: linux 3.4.48, small fixes

* Linux 3.4.48

* Fix CVE-2013-2595

* Decrease latency in cpufreq frequency changes

again, I haven't booted this kernel (I'm using the CM version), so let me know if I did something very stupid with this build...
[HTC Droid DNA] CharliesTheMan:
You don't have to worry about that it has special scripts for booting just for people with phones that won't boot with a high overclock.

Crpalmer put a lot of work into this kernel working for anyone, you won't have any problems. If you do let us know and we'll help you fix them.

Once your booted run a command to check the defaults and use the instructions in the OP to set the defaults where you want them.

---------- Post added at 11:33 AM ---------- Previous post was at 11:25 AM ----------

It booted up just fine and is running great so far. I booted it on a sense 5 Rom.
[HTC Droid DNA] mademan420:
Boots fine and running very smoothly so far on the latest ViperDNA ROM:good: Thanks for the GREAT support!!!
[HTC Droid DNA] Dri94:
I got some weird issue. When i flashed it would all go normally. When i went to reboot after the htc logo the screen would go white with a ribbon of pixels malfunctioning in the middle
[HTC Droid DNA] crpalmer:
Sense kernel flashed on an aosp ROM?
[HTC Droid DNA] CharliesTheMan:
A quick run through of the list shows a lot of AOSP interest so you're spot on like always I think.
[HTC Droid DNA] Dri94:
Aha! I knew i did something stupid
[HTC Droid DNA] CharliesTheMan:
No worries crpalmer is used to my stupidity on a regular basis.
[HTC Droid DNA] lhkjohn:
Flashed a clean install of NOS and it was smooth as butter, but video playback wasn't working. Flashed this kernel and all was fixed, but it seems noticeably laggier now when scrolling pages. Any ideas? Or should I just give it a few days of breaking in?

Sent from my DNA all in ya mouf
[HTC Droid DNA] etracyirl:
This kernel is amazing, using with viper. No problems and awesome battery life.
[HTC Droid DNA] Mcsquizzy:
I have lost the ability to connect/enable wifi since flashing the newest crpalmer kernel (2.0.30). For some details, I am running Venom DNA ROM (others have reported it working perfectly) I am S-ON and I flashed the update zip via TWRP 2.5.Then, I booted into bootloader and flashed the boot.img using a Windows DNA all-in-one tool. I booted fine into Venom ROM, but now my wifi will stay stuck on 'enabling'. Should I try pulling the boot.img from the phone using adb pull, then flashing it using fastboot flash?
[HTC Droid DNA] ickedmel:
Any recommended app to use for controlling the cpu ?
[HTC Droid DNA] crpalmer:
Yes, that's what I would suggest trying. I posted instructions not too long ago in how to verify the kernel / modules mismatch.
[HTC Droid DNA] crpalmer:
If you want to control speed, voltage and governor, see the second post that explains how to use the included scripts to do so.
[HTC Droid DNA] ickedmel:
Thanks saw that didn't want to screw anything up with the scripts
[HTC Droid DNA] Mcsquizzy:
Okay thanks a ton! I'll check it out! I guess I missed it, but then again I didn't know I could check that :) Is that to verify that I am running your kernel, that it flashed properly, and that it's running okay?

EDIT: I can't find the instructions to verify the kernel :/ I checked this thread and the AOSP kernel thread :/
[HTC Droid DNA] crpalmer:
I edited the second post to add this to it to make it easier to find:

My WIFI Won't Turn On

If your WIFI won't turn on then the most likely cause is that either you didn't flash the boot.img (e.g. not S-OFF) or your modules don't match the kernel. To figure out what's wrong, first verify that you are running my kernel by doing

adb shell cat /proc/version

and seeing that it says crpalmer in (it should match the version that you think you installed, but at least saying crpalmer is a good start). Then do:

adb shell dmesg -c

(turn on wifi)

adb shell dmesg

and look for an error that says crpalmer in it (something like a module version mismatch error). If you see that, it should tell you the version number of the modules that are installed and the version of the kernel.
[HTC Droid DNA] Mcsquizzy:
Thanks a ton for your help! I wiped cache and dalvik, then flashed using TWRP recovery, then I adb pull'd the boot.img, then I did fastboot flash boot boot.img and rebooting... Wifi works! I used the commands you outlined and I got exactly what was supposed to come up. I did get errors similar to:

<3>[ 265.784678] c0 4561 init: starting 'dhcpcd_wlan0'(pid:0)
<6>[ 265.801831] c0 4561 [ACPU] get_pvs: ACPU PVS: Faster
<6>[ 265.801861] c0 4561 cpuinfo: failed to get policy for cpu1
<6>[ 265.801861] c0 4561 cpuinfo: failed to get policy for cpu2
<6>[ 265.801861] c0 4561 cpuinfo: failed to get policy for cpu3
<6>[ 265.804883] c0 4561 [ACPU] get_pvs: ACPU PVS: Faster
<6>[ 265.804913] c0 4561 cpuinfo: failed to get policy for cpu1
<6>[ 265.804913] c0 4561 cpuinfo: failed to get policy for cpu2
<6>[ 265.804944] c0 4561 cpuinfo: failed to get policy for cpu3

Is that a problem, or is it normal?

Thanks for all of your help! :D
[HTC Droid DNA] CharliesTheMan:
If you ever need to flash a kernel away from the computer use "Flash Img GUI" which is an app available for free on XDA
[HTC Droid DNA] crpalmer:
Those messages are normal.
[HTC Droid DNA] Mcsquizzy:
That's good. I have a question for Viper DNA users: What are you guys using for your "Venom Tweaks > CPU" settings? Ondemand governor? How about voltage settings? I'm trying to set it to save the most battery as possible, but also ramp up if I really need it, but not as aggressively as ondemand. Conservative? Interactive?
[HTC Droid DNA] ML417:
You should probably specify that they need to be booted into system, because last time you tried helping (i forgot who it was) they pulled that info while in recovery which obviously gave them the wrong result.
[HTC Droid DNA] crpalmer:
I had forgotten about that. Thanks for the suggestion, I updated the second post.
[HTC Droid DNA] rayjr13:
S-OFF NOS M7 v2.0.3 [ROM]

Just flashed this to my device in recovery with no problems. no wifi issue and things appear to be rolling no problem. Thanks for the Kernel.

I'll be reporting back if anything changes. or if you drop a new version :)
[HTC Droid DNA] itzjen:
Sorry if this question has already been asked,but I didn't see this mentioned in the OP. Will we have the option for color control like changing gamma values and color multipliers? I remember when I had my galaxy nexus running aokp ,or CM that was an option for us to change .
[HTC Droid DNA] ickedmel:
Okay so I followed op commands in the first post worked well. Only made some very minor changes dropped the minimum speed from 384 to 192 everything works fine. I also undervolted by 50.

Has anyone here undervolted by 100? With stablity and no issues ? I figured -50 is a safe bet.

Edit: nevermind did -100 works smooth.
[HTC Droid DNA] t1gartist:
I'm undervolted only differnces between what it running and what I'm using is I have changed gpu and Fsb speeds
[HTC Droid DNA] CharliesTheMan:
Actually most of us have undervolted - 100

You need to research cpu binning for the DNA (i googled that and got the instructions.)

The kernel at one point was undervolted by 100 stock for cpu's binned fast, and it worked for almost everyone just fine. Because it cause problems for a few people the change was reverted so the user could set it.

Anyway, knowing how you're binned will help, if it's fast or faster it will take -100 like a boss.
[HTC Droid DNA] ML417:
If it's binned slow you'll be lucky to be running at 1.67Ghz without some major ov much less attempt to uv. The sad life of us at the ends of the batch.
[HTC Droid DNA] supertoast92:
I'm at the middle of the road with a nominal chip. I wonder if I have any headroom to undervolt when running at 1.728.
[HTC Droid DNA] matteebee:
I'm nominal at 192-1.67 uv -100. 1.72 locks up.

Stay tranquil, my friends
[HTC Droid DNA] ickedmel:
Thanks for the info I'm -100 with no problems. As far as bin I've read a little about it going to do it when I'm bored or have some extra time because I believe I need to flash stock recovery in order to find out my bin.

I do have another question can anyone direct me to a frequency table or how I might pull that up for cpu speeds? I want the numbers that are used for setting the speeds in the terminal. I did a Google search but couldn't find it maybe I'm using the wrong terminology?
[HTC Droid DNA] CharliesTheMan:
I used an app for tuning like android tuner the selections available in the app I noted and used those frequencies.

But you could go to crpalmers git hub, it's linked in the OP, and get them from there.
[HTC Droid DNA] ickedmel:
Thanks :)
[HTC Droid DNA] amit_sen:
UV -50, 1.7Ghz works fine.

Im nominal binned.

DNA | ⓣⓐⓟⓐⓣⓐⓛⓚ | TF300T
[HTC Droid DNA] crpalmer:
When running this kernel, your bin should be printed in the first few lines of

adb shell cat /proc/cpuinfo
[HTC Droid DNA] crpalmer:
New version posted:

Version 2.0.32: June 15, 2013: linux 3.4.49, scheduler & mutex improvements

* Linux 3.4.49

* Three scheduler performance improvements

* Move to more standard and slightly faster mutex implementation

again, I haven't even booted it so let me know if I did something stupid!
[HTC Droid DNA] Melodycd:
Downloading now to test it.

---------- Post added at 03:24 PM ---------- Previous post was at 03:14 PM ----------

I think it is working fine. After reboot I am not able to answer your post. Xda app was closing 4 times in a row. I don't think that it is kernel related.
[HTC Droid DNA] JeffBea:
I've read through this whole thread and re-read the 2 post to try and understand how to set up under volting and I just not grasping how to get it setup. I'm running Viper ROM and I installed this kernel no problem. I've located some of the files mentioned in the system folder and what not. I've opened them up and looked at them. Is there a secondary program that you must use to get the scripts running and files setup? If someone could help with a kind of mini guide of what exactly to do it would be helpful.

Right now I'm using the built-in venom tweaks to under volt -50. That's the max it will let you go. I'm not even really sure it doing anything. I have set on boot checked. So I must assume it working.

Thanks.
[HTC Droid DNA] crpalmer:
Reread the second post. It gives you an example adb command that UVs by 100. You have to reboot for it to do anything.
[HTC Droid DNA] JeffBea:
So I have to be in fastboot then run the command and it will make the file with my undervolt value. Then it will always run automatically when ever the phone is rebooted? I then can check the log to make sure it was applied correctly, right?
[HTC Droid DNA] crpalmer:
Not in fastboot. Adb commands don't work in fastboot. Otherwise, that's right.
[HTC Droid DNA] supertoast92:
Same here.
[HTC Droid DNA] ickedmel:
Question guys. When I flash the latest release of this kernel will the previous settings remain like for example 192 mhz minimum speed and -100 undervolt or would I need to configure the settings again.

---------- Post added at 10:30 PM ---------- Previous post was at 09:30 PM ----------

Thanks crpalmer my processor pvs is fast cool to know.
[HTC Droid DNA] ickedmel:
I still can't figure out the frequencies though :/

Nvm got it trickster mod shows it
[HTC Droid DNA] Zer0r:
Thanks, crpalmer! Very smooth kernel!

The only thing so far - can not enable stock light sensor settings. The file /sdcard/crpalmer-stock-lightsensor is present, permissions are correct. What else?
[HTC Droid DNA] crpalmer:
What does it say in /sdcard/crpalmer.log?
[HTC Droid DNA] Zer0r:
There is no such file...

UPD: This is my bug report, just in case...
[HTC Droid DNA] wpsantennas:
This sounds like the same problem I had. Problem was that init.d scripts weren't working on my phone. I used term-init to enable them and then everything worked.