yashsingh1/xdaforums huggingface dataset:
[One (M8) Original Android Development] hl2modrift:
No, I wasn't aware that I had to, nor do I know how to.

Does mkbootimg have a switch for this? Or do I use the zImage-dtb file that's generated?

There are also multiple .dtb files in the ./arch/arm/boot folder. Would I include all of them?

Thanks!
[One (M8) Original Android Development] Captain_Throwback:
Just unpack flar2's boot.img and repack it with your zImage. That should do it. The dtb will get extracted and included automatically.
[One (M8) Original Android Development] hl2modrift:
This is what I've been doing, but I decided to give it a shot again. It results in the same 11MB file and kick to fastboot, unfortunately.

Thanks, again!
[One (M8) Original Android Development] flar2:
It's definitely a dtb issue if it's kicking you to fastboot. I don't have the info and file on hand (I'm at work) but search around for dtbToolCM, which will add the special HTC tag to the dtb image.
[One (M8) Original Android Development] mw2fan:
I can't get linux to work on my laptop, which is all I have for the moment.

I managed to get it kinda working on my desktop but I won't be able to access that for a few weeks. I got to the defconfig part, but after that I just got so confused by all the command line stuff.

I'm way in over my head here, just couldn't get it to work. Could you please help?
[One (M8) Original Android Development] Captain_Throwback:
What version of mkbootimg are you using? Are you using Android Image Kitchen? If not, try it. If you are, then the issue must be with your zImage.
[One (M8) Original Android Development] hl2modrift:
I was using the wrong version of mkbootimg, it wasn't adding dt.img. Got Image Kitchen and now everything is working fine and dandy. Got udev up and running in a chroot.

Thanks for the help!

-FC
[One (M8) Original Android Development] Diddy555:
Anyone else noticed slightly slower music playback while screen off when using ondemand govenor? Using interactive fixes it but wanted to use ondemand for better battery...

I am on v2.0 & latest Insertcoin...
[One (M8) Original Android Development] zebidybob:
There is no issue with ondemand. Are you sure you have the latest full firmware update? You need to flash .6 .7 and .9 (International) as the updates are incremental.
[One (M8) Original Android Development] Diddy555:
Yes, thats what I did.
[One (M8) Original Android Development] Rainman26:
Depends on your interactive settings on how it will react on your phone usage. Interactive and deadline are my settings for years.
[One (M8) Original Android Development] threetwentyfizzle:
Hey Flar, I've noticed on an AOSP ROM, there is some CPU Boost options available in your app, along with PowerAmp gain controls in the sound tab. Are those options/features available or relevant for sense or GPE in maybe a future update? I've noticed in the Faux Sound App, the M8 has a device specific option for control on the headphone Amp gain control, which I've noticed does increase and give noticeable audio quality. Although the setting doesn't stick upon reboots, my thinking is conflicts between the elemental app settings and the app. If it can be incorporated in your app that would be so awesome.

Thanks Flar!
[One (M8) Original Android Development] threetwentyfizzle:
Here's a screenie of what I'm talking about with the faux sound M8 specific headphone amp control :)
[One (M8) Original Android Development] bentez2003:
Sorry if this has been asked before but if I install Elemental can i gain write access to the external SD for Titanium backup etc?
[One (M8) Original Android Development] ToxxMe:
Sense Lollipop?

Hope ElementalX-Kernel for 5.0.1 Sense is ready soon!

I wanna use the best Kernel on this ROM!
[One (M8) Original Android Development] jbm76:
Lets hope it's soon, but HTC are normally pretty slow at releasing their source code. I've just flashed a lollipop ROM and missing sweep2sleep already! Didn't realise how much I used it!
[One (M8) Original Android Development] flar2:
The sweep2sleep module can be ported for lollipop, I'm very busy at the moment, so if anyone wants to hexedit it, they can go ahead.

The kernel will not be available until HTC releases source. I'm not even going to attempt any hacks to get the GPE source working on Sense. It's too time consuming and not guaranteed to work (actually it's guaranteed to be buggy).

I'm not sure where that setting is, I'll see if I can find it.
[One (M8) Original Android Development] -Duir-:
As flar2 stated, nothing can be done until HTC releases the source. If we want that to happen sooner rather that later, I recommend tweeting "@HTC" "@HTCUSA" and "@HTCDev" urging them to release the source.

And just because it can never be said enough: thanks [MENTION=4684315]flar2[/MENTION] for making this. :)
[One (M8) Original Android Development] DeeZZ_NuuZZ:
at first we have to get the kernel source code ;)
[One (M8) Original Android Development] mattb3:
Weird adb issue

Was windering if anyone has ever experienced adb weirdness with this kernel (or any other kernel). I have T-Mobile M8 with 4.4.4 firmware using the stock/rooted 5.01 by graffixnyc, clean flash and all of that. With the stock kernel in that ROM, I have no issues with adb. The adb command command works completely as expected (e.g. dialog box requesting permission, adb devices works, lollipop icon in the status bar, etc). When I flash the 3.01 GPE kernel in this thread, the device boots and operates fine except adb no longer works (e.g. adb devices reports offline, no status bar icon). Another weird thing is that the option to revoke USB authorizations is missing in the developer settings menu. If I reflash the rom (overwriting the kernel), adb is back to normal and the revoke USB authorizations menu item is back. My laptop is Ubuntu 14.04, not that it matters much because I am reasonably confident adb is setup properly.

I've tried various combinations of USB fastcharge and SELinux disabled in the aroma installer, but with no luck. This excellent kernel has been on my N5 for over a year, and I would love to continue that on the M8, but no ADB is kind of a showstopper. Maybe it's related to my 4.4.4 firmware (no s-off for me until Sunshine is updated), but beyond that I have no ideas. Anyone else have the same setup?
[One (M8) Original Android Development] bentez2003:
Is anyone able to confirm the above for me?

Thanks
[One (M8) Original Android Development] Captain_Throwback:
That has nothing to do with the kernel. That's a userspace change.
[One (M8) Original Android Development] flar2:
On lollipop, yes, tons of weirdness, which is not to do with the kernel but with selinux. The selinux policies are set in the initial ramdisk part of the boot.img, which I got from stock, so it should be the same behaviour on stock and EX.

For me, if I set selinux permissive, adb works normally. Without permissive, I couldn't debug my app and other weird stuff. I don't agree with setting selinux permissive, but I really don't have the time to learn the details of selinux and go through all the policy and try to fix it. I'm hoping someone else will do that.

I haven't tried out lollipop on Sense yet, I hope it's not as screwed up as GPE.
[One (M8) Original Android Development] RegnierD:
Flar, what about the write-protection module, can that be easily ported to Lollipop in the mean time while we wait for source? I'd rather not have to find the latest busybox to flash and just install it through the app, as well as several other functions I'd like to perform.
[One (M8) Original Android Development] olvrick:
Announcement from flar2: Version 1.00 for Lollipop is out!

Can someone point me to a link pls?
[One (M8) Original Android Development] DeeZZ_NuuZZ:
that was the gpe kernel update not for the new LolliSense ;)
[One (M8) Original Android Development] mattb3:
Okay, I'm not sure what the issue is, but since you are not seeing it, the issue sounds like it is some weird interaction with the ROM and your initial ramdisk. I wonder if there is a way to leave "my" ramdisk intact while flashing your kernel.
[One (M8) Original Android Development] Viper4713:
[MENTION=4684315]flar2[/MENTION]

I reported about a month ago or less that I was having issues with this kernel and stating that on Skydragon GPE I couldn't get sweep2sleep or sweep2wake to work at all, I ended up trying this kernel again tonight but only this time I dirty flashed Skydragon and chose Stock kernel..... then flashed ElementalX afterwards, now everything seems to be working 100%, I just thought I would share this experience to inform there doesn't seem to be an issue now, but it seems if your on Skydragon Kernel then flash ElementalX afterwards then some conflict occurs.
[One (M8) Original Android Development] seadersn:
there is, it 'just' needs some m8 specific edits, for dtb image for example. it's called "anykernel" and originally was developed by koush. it contains scripts for keeping your initrd.gz and change only zImage.

https://github.com/osm0sis/AnyKernel2/
[One (M8) Original Android Development] NQNH:
lollisense Elementalx Kernel for One m7 is out, will m8 follow soon? :)
[One (M8) Original Android Development] flar2:
Nope, not till HTC releases source, probably in a couple months.
[One (M8) Original Android Development] NQNH:
Ah okay, I thought you have some special sources, because I didn't saw the m7 sources on the htcdev site,

I will wait :P
[One (M8) Original Android Development] flar2:
The GPE kernel works on the m7, but not here without hacks.
[One (M8) Original Android Development] Viper4713:
Can't wait for HTC to release the sources, even with Project ERA I am noticing a difference without the enhanced audio on the kernel end.

Why does HTC take so long anyways? do they believe this to be some testing period or something?
[One (M8) Original Android Development] gock:
Be glad, they are still releasing it at all.
[One (M8) Original Android Development] MassStash:
Well they kind of have to...

~m8whl on the Always Solid ViperOneM8 Latest

Hypernova mako_hotplug kernel at 2.572 Max ¦ 300 Min ¦ 1.190 Sleep

interactive

row
[One (M8) Original Android Development] Maedhros:
Can't see how its dangerous. So long as your phone is stable it shouldn't affect phone longevity.
[One (M8) Original Android Development] Brava27:
Underclock, Undervolt could be wonders for battery life.
[One (M8) Original Android Development] NJGSII:
It's scary that how high processing speeds have gotten on phones. The last phone that I actually felt overclocking really do anything to enhance real life performance was the One X.
[One (M8) Original Android Development] ILoveYouAll:
So I guess leaving it on stock freq with Gboost enabled is enough for gaming?

Sent from my One Mate.
[One (M8) Original Android Development] NJGSII:
WIll be more than plenty, bub.

The only thing I noticed when I overclocked this device was the battery going down faster.
[One (M8) Original Android Development] Root-Maniac:
Pvs 0. ????
[One (M8) Original Android Development] ryanjsoo:
I`m also noticing increased battery drain since 0.8 for some reason, anyone know the stock voltages for the 2.5ghz model btw?, thanks
[One (M8) Original Android Development] Freak07:
Did you enable gboost?
[One (M8) Original Android Development] rayraycarter4:
I'm right there with you my friend, it sucks
[One (M8) Original Android Development] flar2:
There's a typo in version .8, everyone will show pvs 0. It doesn't affect anything though. Check /proc/last_kmsg for your true pcs. I'll fix it tonight.
[One (M8) Original Android Development] ryanjsoo:
With or without it make no difference, my phone drains about 5% an hour in idle no screen on with all WiFi, 3g, etc off
[One (M8) Original Android Development] GelullaBarr:
I lost 5% in 2 h with one bechmark (gfxbench manhatan 746 points on screen), 3 calls, few texts and some twitter, I can't belive this, 0.8,cpu 2,573Mhz, gboost. So try reflash ROM, and then reflash kernel, reboot 2 times or even power off the device and then test it again
[One (M8) Original Android Development] rayraycarter4:
found this reguarding pvs stuff http://xdaforums.com/showthread.php?t=2411840&page=423
[One (M8) Original Android Development] GSLEON3:
Curious. I have a speed bin reporting as 1. My PVS is 8 however.
[One (M8) Original Android Development] Root-Maniac:
Glad to hear that! i know my phone is fast as heck, OC doesnt make it do anyting weird. Im thinking i got a higher pvs but i guess we will find out later, thanks for clarifying that and making me feel better! lol :)
[One (M8) Original Android Development] flar2:
There are two revisions: 0 and 1.

All m8's are revision 1.

Within revision 1, there are two speed bins: 1 and 3

1 is the 2.265GHz version and 3 is the 2.458GHz version

Within each speed bin, there are 16 PVS bins, form 0 to 15

I broke the PVS readout in version 0.8, but you can still see the real speed and pvs right at the beginning of the kernel logs (eg: reboot and look in /proc/last_kmsg)
[One (M8) Original Android Development] GSLEON3:
Yep. I actually grabbed it from the last_kmsg, lol... I may not be the amazing Flar2 :-p , but being around as long as I have, I darn well know that. In fact, if I couldn't find that after this long (2003 originally), I would probably be using iOS, lol... (BTW, I am now 100% Flar2, M8, N5 & N7.2)

I guess all AT&T devices are Speed bin 1 then. My PVS is 8, so that should be balanced nicely between clock ability & leakage.
[One (M8) Original Android Development] jayjay7411:
Sorry if this has been asked before but does this kernel play nice with ART enabled? I'm currently running ARHD With ART enabled and I was about to flash this kernel but wanted to verify before I flash. Thank you for your time flar.
[One (M8) Original Android Development] mechanimal82:
Don't worry, this'll purr with ART.
[One (M8) Original Android Development] Giblet-dono:
How did you edit your navigation bar buttons?
[One (M8) Original Android Development] santod040:
Well, the good news is that the 4.16.1540.8 Developer Edition source is now live. :)
[One (M8) Original Android Development] HolyAngel:
[MENTION=5110913]Viper4713[/MENTION]

its an issue with the config files conflicting in system/etc and system/etc/init.d, if you delete the skydragon.conf and 99skydragon files and then reboot elemental would work perfectly.
[One (M8) Original Android Development] Viper4713:
Oh! I deleted the conf file but forgot about the 99 file, ha wow, but yeah sense then I converted my authentic GPE phone to a Dev/Sense based phone, the devs for even GPE based roms started to go on a route where you would run out of system storage instantly, HolyAngel had to fix when I told him what was going on but DigitalHigh still wouldn't even finish installing, so I converted to get much more space and try out Sense 6, I am enjoying it, but anyways! rambling here! Sense the kernel sources are here now I guess its a matter of time for Lollisense to have ElementalX!! Best kernel out there, on Sense 6 right now I am mostly missing the enhanced sound quality of music in your kernel, almost thought about going back to GPE in the mean time. :p

---------- Post added at 12:42 AM ---------- Previous post was at 12:31 AM ----------

This is exciting news! Lollisense sound quality is going to be super hd again! even with project ERA like I said without an optimized kernel is lacking.

And don't forget battery life :)

So it just went live today? and I'm guessing a kernel based off 4.16.1570.8 will work on 4.16.401.10 right? I mean its still Lollipop, rather then trying to run a Kitkat kernel or something.
[One (M8) Original Android Development] santod040:
Yes it just went online today and will work fine on .10 based roms.

(any available LP sense base should work fine with it)

Though in general, I think HTC still needs to improve it some yet for Lollipop, in my opinion.
[One (M8) Original Android Development] Krendelrus:
Now that lollisense kernel source is released, let's wait for flar2 to do his magic on the best m8 kernel around here :)
[One (M8) Original Android Development] GelullaBarr:
+++++1
[One (M8) Original Android Development] HD2Owner:
+One™

4.16.401.10 sense rom battery performance seems great.

can't wait to tweak voltages on ad5..
[One (M8) Original Android Development] mobileman88:
The m8 kernel sources are out on htcdev. Yay
[One (M8) Original Android Development] flar2:
Update!!!

I just built this tonight, so it hasn't been thoroughly tested. Same as the kitkat kernel, but updated for lollipop. Hopefully everything works.

Sense (Android 5.0.1)

ElementalX-m8-4.00-Sense

Changes:

-update for Sense Android 5.0.1

Source (uploading very slowly):

https://github.com/flar2/m8-Sense-5.0.1
[One (M8) Original Android Development] muppetmaster916:
Thanks man, you're too good to us.
[One (M8) Original Android Development] JayRolla:
Testing now
[One (M8) Original Android Development] grgsiocl:
i cant hear the other callers voice with latest kernel... will test again with clean flash of the rom...
[One (M8) Original Android Development] jbm76:
Just installed - working great so far - however only just installed it and rebooted :) Thanks for the update!

---------- Post added at 03:01 PM ---------- Previous post was at 02:59 PM ----------

Just had a call then and was perfect! No problems for me!
[One (M8) Original Android Development] pisc3s1203:
seems good to me :v
[One (M8) Original Android Development] grgsiocl:
Thanks for the testing...earlier i flashed skydragon kernel and deleted 99sk** along with skydragonconf file before flashing elemental kernel...may be the problem with that...flashing the rom with clean install followed by the kernel now...
[One (M8) Original Android Development] Iceberger:
You are fast! Thanks for the update! much appreciated. :good::fingers-crossed:
[One (M8) Original Android Development] grega_slo:
Wooooo wooooo yessssssss, now I just have to wait for the certain ROM to update and here we come :)
[One (M8) Original Android Development] mirco_p:
Damn, with arhd 34 after flashing kernel I am stucked on a bootloop
[One (M8) Original Android Development] Forsaked:
Im also on ARHD 34.0 to and its working great even with UV.

Reflash ARHD, redownload the Sense-Kernel and then flash it again!
[One (M8) Original Android Development] p50kombi:
Flying with arhd34. Thanks man.

**********

Sent from a tin of baked beans using some chewing gum, tinfoil, a piece of string and a manual written by MacGyver
[One (M8) Original Android Development] mirco_p:
It seems like the function overclocking /undercoating if enabled, was causing problems to the boot..
[One (M8) Original Android Development] Ferrum Master:
I can confirm, that it may stall at the boot sometimes, couldn't pinpoint exactly what it is, no PC around debug.
[One (M8) Original Android Development] lzy257:
Does anyone feel your phone slightly heating up? or battery draining slightly faster than stock kernel? It may be just me being paranoid.

I only enabled gBoost, swipe to sleep and wake, the rest are all stock settings.

Will update in a few more hours to confirm.
[One (M8) Original Android Development] anthropolyte:
Eep. I just installed the new Elemental kernel (running InsertCoin 6.0.3) and I got a black screen on boot... Managed to get things up and running by long-holding power and vol-up, and it's booted normally now. Mild panic over.
[One (M8) Original Android Development] flar2:
The default is to raise the thermal throttle limit slightly. It shouldnt warm up noticeably during normal use and there shouldn't be any more drain than stock. You likely have some background process running.
[One (M8) Original Android Development] ivicask:
Thats how android L is, i noticed this from first flash of fully stock unrooted rom, first time i felt my M8 warm, nothing to do with this kernel.

This kernel actually helped me with the issues of extra heating, i simple did a bit of undervolt (-100mv), and lowered GPU speed, its cool now :)
[One (M8) Original Android Development] lzy257:
Left it to standby for about an hour or so now, it seems fine. Thanks for the responses :)

Does that bit of undervolting and underclocking cause any noticeable changes?
[One (M8) Original Android Development] JayRolla:
Running great. Overclock and undervolt. No heat up and battery held good over night.
[One (M8) Original Android Development] jcrompton:
What governor are you guys using? Any other settings that you feel are helpful in getting your great results ?
[One (M8) Original Android Development] GelullaBarr:
very good and stable kernel, as always, thanks [MENTION=4684315]flar2[/MENTION]
[One (M8) Original Android Development] flar2:
ondemand is the only recommended governor
[One (M8) Original Android Development] Czai24:
Thank [MENTION=298610]Flar[/MENTION]!

Just a quick question, I understand undervolting will kelp increase batt life right? Any recommended setting??
[One (M8) Original Android Development] Sneeuwtijger:
Undervolting only keeps your device cooler and may increase your battery health, but has no effect on your battery life , as far as i understand :)
[One (M8) Original Android Development] oxrevealxo:
I see you on the ARHD thread and this :)
[One (M8) Original Android Development] lzy257:
I am using stock governor, just because i don't understand what is on-demand for. As for CPU clockspeed i go on stock (undervolted by -15mV), enabled sweep2sleep and tap2wake.

The rest are all stock if i remember correctly.
[One (M8) Original Android Development] smeejaytee:
On_demand is the stock governor.
[One (M8) Original Android Development] the_scotsman:
Haven't used a custom kernel for a LONG time. Flashed this onto InsertCoin - running fine so far! May be placebo, but certainly feels a little snappier with higher clocks etc...also using the Elemental app which seems good.

Really? Why not Interactive?
[One (M8) Original Android Development] lzy257:
mmm but there is another on-demand selection below the stock selection, am i missing out something?
[One (M8) Original Android Development] smeejaytee:
Interactive is faster than Ondemand but it's not HTC default. I'm not using this kernel atm however I do use the app but if there are two Ondemand governors maybe one is tuned up.
[One (M8) Original Android Development] lzy257:
I see, thanks for the information.
[One (M8) Original Android Development] Sneeuwtijger:
[KERNEL] [Jan 26] [Sense] [GPE] ElementalX 4.00 (Android 5.0.1)

Maybe because i use both [emoji5] It is a wonderful combination anyhow !!
[One (M8) Original Android Development] Rainman26:
Running interactive and deadline. The long time combo. Thanks flar.
[One (M8) Original Android Development] flar2:
I haven't used interactive on this device

Generally, interactive is less responsive than ondemand. Most Qualcomm devices pair it with CPU boost to reduce stutter.

The ondemand governor on this device is highly modified and specifically optimized for this device by HTC. It has a great balance of performance and battery life. HTC has found the lowest frequencies that will support smoothness across the ui. That's why I recommend it.
[One (M8) Original Android Development] GelullaBarr:
hello [MENTION=4684315]flar2[/MENTION] I have a "problem" with the app and I had the same problem on KitKat. After 1 day of use it lowers CPU's frequencies max to 1036 Mhz and even if I choose other freqs and hit apply after reboot, after another day or two, it lowers again the freqs...it is wierd.
[One (M8) Original Android Development] flar2:
That is weird, and I can't understand how that would happen. I use the app as well, and have no such problem. The app only sets a max frequency if you ask it to. Did you clear the app data? Is powersave mode enabled?
[One (M8) Original Android Development] GelullaBarr:
it was a new install of the app yesterday and today I saw this, initiali it set max CPU at 1980Mhz, I changed to 2450Mhz, and later I realized that my phone was slow and I checked and the max CPU was set to 1036 Mhz. If I don't have the app everything is OK. The same story on KitKat, without app, I have no problem, with this app installed, after 1 or 2 days, it set max CPU at 1036 Mhz.
[One (M8) Original Android Development] flar2:
Clear the app data and don't try to set any cpu frequencies. There is still no possible way I can think of that the app would change the frequency