yashsingh1/xdaforums huggingface dataset:
[HTC One X+] nik3r:
It's 4 max normally, 3 max when you use power saving mode as it always was. I pretty much just tweaked the load stats conditions that decide how many cores activate depending on the CPU utilization and the frequency ramping strategy for each core.
[HTC One X+] avivhaiser:
Alright, thank you :)
[HTC One X+] Jakic007:
Great tweak! No problems for me and battery life is good. ;)
[HTC One X+] reaper90:
Hey nik3r,

is it possible that latest kernel version (or maybe all version since fixing audio playback stuttering) get's stuck on screen off frequency limit while audio is playing? sometimes Lockscreen and music player is incredibly slow and laggy and i have to unplug my headphones to make it stop and somehow get back to normal speed. Can't remember having this on earlier versions with LP core audio playback.
[HTC One X+] nik3r:
Well anything is possible, can you reproduce it on cable and use the tegra3_cpustatus tool to see the active cores/freqs?

http://elite-force.eu/emoxp/tegra3_cpustatus.zip
[HTC One X+] reaper90:
It happens randomly, but i'll see if i can force it.

edit: seems like i can't test anything right now... adb doesn't find my device, i don't know what's going on...
[HTC One X+] reaper90:
Seems like fastcharge was the culprit for ADB not working...

did some short testing and was able to force it to a state once, where your tool only reported two cores up to 475 MHz even when screen was on. wasn't able to reproduce it yet, so i'll test further the next days
[HTC One X+] saitch76:
I noticed this for the first time yesterday when I had Neutron Music Player and Google Navigation running. I had to disconnect the audio cable as the phone was unresponsive. When I connected the audio cable I got a reboot. I'll try to reproduce this and upload a log.
[HTC One X+] nik3r:
EliteKernel 140628 is released

I changed the LP core lock to only trigger in one direction, that should clear up the problem you've been having.

I suspect your player stopped and started the playback during sleep mode and that allowed the LP core to activate, but G cores were not restored afterwards, because audio was playing during wakeup.

// Do not allow LP core while music is playing
if ((tegra_pmqos_audio == 1)
&& !(flags & TEGRA_POWER_CLUSTER_FORCE)
[COLOR=SeaGreen]&& (target_cluster == TEGRA_POWER_CLUSTER_LP))[/COLOR]
return -EBUSY;

There, fixed it, hopefully ;)

Changes:

- fix for screen-off CPU cap getting stuck occasinally after playback gap during sleep mode

- tweaked CPU touch boosting

~ Enjoy :)
[HTC One X+] MahanAir:
you can't add Double Tap 2 Wake to this kernel?
[HTC One X+] nik3r:
What would you say if I made a new edition of EliteKernel based on MoKee 4.4.x ROM?

I got it to compile just fine, module injector seems to be working, audio/camera/wifi/calls work, all it needs is a little bit of Elite flavor :D
[HTC One X+] reaper90:
Sounds great! Did you try MoKee rom? is it good/stable?
[HTC One X+] nik3r:
It looks snappy enough (at least when it's clean), everything I tried worked. There are 5 apks with asian characters in names but those can be disabled/updated/deleted. Scrolling animation seem s abit over the top but it's a nice novelty :D

What I want to try now is to take ParanoidAndroid and use it with this kernel, the injector should make them compatible so we would have an universal kernel for 4.4.x based ROMs at least.

Edit: GPS works as well, trying to flash latest paranoid now.

And it shows a WHITE LED when charging, sooo pwety :D
[HTC One X+] reaper90:
dafuq? we don't have a white led^^
[HTC One X+] nik3r:
I'm not kidding, unless I have problems with my eyes lol

It's yellow-ish wite, no idea how they managed that.

EDIT: Paranoid seems slower, it's jerky even on clean system and no white LED here :D

I will test all functions and return back to MoKee
[HTC One X+] reaper90:
seems like i have to try 4.4 again as soon as you release your kernel^^
[HTC One X+] nik3r:
GPS in ParanoidAndroid just doesn't work, my kernel or their stock, I'll test latest Carbon 4.4.2 now with the kernel.
[HTC One X+] reaper90:
afaik Paranoid android uses an older device tree isntead of cm11 device tree
[HTC One X+] nik3r:
Ok Carbon is very good, everything seems to be working fine, I'm now back on MoKee and can't make it to use the white LED, I swear I saw it but it wasn't charging or fully charged :D
[HTC One X+] reaper90:
maybe mixed red and green led? I'd guess it's a bug^^
[HTC One X+] saitch76:
Yes please!
[HTC One X+] nik3r:
Yes, that would explain it

What I saw was bright yellow, but I thought you can't activate both at once...

I just noticed it's green while charging (it's red usually), so maybe it will happen when it gets to 100%, I'm at 92 and counting lol
[HTC One X+] reaper90:
i remember Lloir wrote somewhere that AOSP based roms have green light as soon as battery level reaches 90%, so the green led is intended. maybe the red one just didn't turn off then^^
[HTC One X+] reaper90:
I'm impressed by the speed of MoKee rom, much faster than actual cm11 nighltlies! Can't wait to try it with your kernel^^
[HTC One X+] nik3r:
I actually chose Carbon in the end (even though it's "only" 4.4.2 right now), its speed is comparable, you can get the same scrolling animations and 10 extra and it's more customizable and english. They are both good though.

And the yellow LED must have been a bug, I wasn't able to reproduce it. But it makes me want to investigate this in the kernel...
[HTC One X+] reaper90:
There's also a 4.4.4 build: http://xdaforums.com/showpost.php?p=53637596&postcount=548
[HTC One X+] nik3r:
Now you tell me, I just restored backups :D

Well I'm on the 17th nightly, guess I will need to update now...

Here's the universal 4.4.x kernel, it's pretty much MoKee git repo with implemented module injector, I will officially fork it later.

http://elite-force.eu/emoxp/oxp_elitekernel_kk_140629.zip

EDIT: Oh almost forgot it also has init.d / userinit.sh support ;)
[HTC One X+] morbvamp:
That'd be great, nik3r!! I flashed mokee rom yesterday and for me its the only 4.4.x rom that's perfectly working on my hox+, it's stable for me. Sure I'll be looking up for this kernel. Thank you :fingers-crossed:
[HTC One X+] nik3r:
New experimental branch

EliteKernel KitKat (4.4.x) 140630 is released

I have started a new experimental branch compatible with all the 4.4.x ROMs out there.

Recommended ROMs at this time are Carbon and MoKee.

This is not just tweaked stock kernel, you get everything at once. All the features you are used to from 4.2.x EliteKernel are already implemented and should work, so roll up your sleeves and start looking for bugs :D

You get the idea ;)

There's a couple of problems that will have to be addressed in the future, for example I kept the HTC Power Saving mode support in there, but there's now no way to easily toggle it.

~ Enjoy :)
[HTC One X+] Super-Android:
Its a great news that you started developing for aosp roms too.. Just a question, how to enable power saving and Dt2w mode if I am on Carbon rom?
[HTC One X+] reaper90:
What kind of powersaver do you mean?

As for dt2w, there's an entry in /sys/androi_touch to enable it, i'll update my userinit.sh script later and add those lines to enable dt2w.

[MENTION=853294]nik3r[/MENTION]:

new 4.4 kernel works great so far, everything's smooth and snappy!

edit: seems like i also have to change some of the default values of my userinit.sh script.
[HTC One X+] Elibl:
Hi i'm the maintainer of paranoid. How do you think I'm using an older device tree?
[HTC One X+] reaper90:
I'm sorry, my mistake, just saw it's the same. It's just because you called it AOSPA-legacy tree, so i thought it's differnt.
[HTC One X+] Elibl:
FYI [MENTION=853294]nik3r[/MENTION] this commit https://github.com/niker/elitekernel_oxp_kk/commit/0324fc16a5e18a35bc9a429b75b3f87126621076# reverts a lot of useful implementations like for example fast charge...

Just a heads up when I have some time I'll also work on the kernel but not before september...

But your work looks cool looking forward to may implement it to paranoidandroid
[HTC One X+] nik3r:
I re-add all that and more in the last commit, there should be everything I care about unless there are bugs I haven't yet discovered.
[HTC One X+] Elibl:
Ah ok nice sorry didn't had a look at that last commit ^^
[HTC One X+] nik3r:
Elite Power Saving is released

This simple APK will switch EPS on/off and change it intelligently if not needed.

- toggles CPU power saving on/off when tapped

- forces full power when charging

- restores EPS off charger

- restores last settings after reboot

http://elite-force.eu/emoxp/EPSSwitch.apk

(link up - please redownload if you got this before last edit)

For newbies, EPS basically limits CPU to 1150MHz @ 3 cores and disables min frequency constraints (like when playing audio). This is aiming to save extra chunk of battery life on the go and decrease temperatures when playing games.

(Works with any kernel with EPS support, even stock Sense kernel)

~ Enjoy :)

NOTE: May contain unspecified number of bugs :D
[HTC One X+] k1moe:
hi :) thanks a lot for your awesome kernel. works great.

but after flashing version 15.06. and 28.06. i got no signal and no wlan. what should i do?

edit: device is permanently in flightmode and cant switch off?!
[HTC One X+] nik3r:
Make sure you have your busybox updated to latest (via busybox app) and reboot. Or try to reflash your ROM without wipe, that sounds like permission problem.
[HTC One X+] k1moe:
thaaanks mate :) reflashing the ROM has fixed the problem - now ill test your new kernel :)
[HTC One X+] morbvamp:
Sorry if this may sound obvious, but is BusyBox required too for the 4.4.x kernel? :confused:
[HTC One X+] chrigel2000:
Thank you for your awesome Work!! Kernel works perfect for me! and the ESP Switch App is very nice, is it possible to make an Widget with Colors for show if the EPS is activ or not?
[HTC One X+] nik3r:
That was the original idea but this was way faster to do for now. Maybe later I'll add a widget that shows status.

You probably already have the latest version, you wouldn't have wi-fi otherwise ;) But it is one of the possible issues that would prevent module injector from working properly so I mentioned it.
[HTC One X+] morbvamp:
I'm getting constant freezes when the governor is set to smartmax. I got a black screen after trying to wake phone or when I tried to open instagram. It just froze up.

Setting the governor to mokee's default OnDemand, it works just fine
[HTC One X+] nik3r:
Smartmax is pretty aggressive, we have seen a few chips that didn't handle it well.

You could try to overvolt your CPU slightly using Easy Userinit by reaper90 in second post extras. Try +25 mV if it stabilises.

Or you could play with up/down rate tunables to make the scaling less aggressive. Or just stick with ondemand, but I would also set it in userinit. Anything in userinit script overrides kernel settings immediately on boot. Tools with GUI may take minutes to actually apply the settings.
[HTC One X+] morbvamp:
Unfortunately, overvolting didn't work for me so I'll stay with ondemand for the moment.

Thank you!
[HTC One X+] nik3r:
You can still try something like

echo "90000" > /sys/devices/system/cpu/cpufreq/smartmax/down_rate
echo "60000" > /sys/devices/system/cpu/cpufreq/smartmax/up_rate

Just add this to the userinit script and see if it fixes things, it leaves twice the time for voltages to settle when you switch frequencies.
[HTC One X+] aardappel12:
The 4.4.x elitekernel is working fine on the latest cm11 nightlies, thanks for this!

It's smooth, even on 'powersaving' mode.
[HTC One X+] Super-Android:
Hi nik,

I am on latest nightly release of Carbon rom and using you r kernel.. I am experiencing google play service battery drain, Google play service is keeping my device awake all the time.. Any idea how to get rid of this?

I hace turned off google now and turned off location service. Please do let me know in case you have any insights on this.
[HTC One X+] nik3r:
I have the same "problem", the battery is still good but Google Play Services => SystemUpdateService drained 7% of battery over today. I'll look into it, there's also some problem with memory management that drains battery, I'll look into this in next update.

But knowing the battery could still last 2 days with all these issues, gives me hope to break my personal record and manage 4 days on single charge :D

There's a possible workaround:

use some app that can handle BroadcastReceivers for apps (like launching on startup/connectivity change etc.)

Look for GooglePlayServices and there will be one startup item disabled, so ENABLE it and reboot. It is supposedly bugging out, because the service is not running, causing a permanent partial wake lock, because something it looking for it.

This is a ROM issue though.

More info related to this http://review.cyanogenmod.org/#/c/49329/
[HTC One X+] reaper90:
New version of userinit.sh is online, just some minor changes to fit newer kernel defaults. Also I added enable/disable DT2W script line, but i think it only works on 4.4 kernel.
[HTC One X+] rickydci:
Note that there's an update for play services rolling out now, and it is said that brings minor fixes including a possibile solution for battery drain.

New version is 5.0.84.
[HTC One X+] nik3r:
EliteKernel KitKat (4.4.x) 140702 is released

Cleanup and some battery savings.

Changes:

- disabled KSM, running both KSM and zCache at the same time caused battery drain

- fixed LED multiplier

- enabled some BT protocols I forgot like HCI

Don't forget you can now switch power saving on/off using EPS Switch APK in optional downloads, works better than HTC original.

~ Enjoy :)

EDIT: I managed to workaround the wakelock bug in Google services in the kernel, will test and upload tomorrow...
[HTC One X+] BeNeDeLuX:
I'm unable to install/update a App from store. Error: Unable to install to USB storage or SD card. Install failed.

Tested on Carbon Nightly 4.4.4 and Kernel 140702

Gesendet von meinem One X+ mit Tapatalk
[HTC One X+] nik3r:
I've seen this happen when there was a rogue .odex file, like from the Lucky Patcher.
[HTC One X+] Phoenix09:
I had this and all I did was add my Google account and try to install some apps from Play, flashed kernel from the ROM zip and works fine

it only happens with paid apps
[HTC One X+] nik3r:
Yeah I see it now, perhaps something wrong with secure store. I'll take a look tomorrow.
[HTC One X+] BeNeDeLuX:
Installed MoKee Rom with full wipe on this Kernel and have always blackscreens. The phone locks itself and i try to wake it up via the power button. But only the soft keys lights up. The display itself is still dark. Just for info.

Gesendet von meinem Nexus 7 2013 LTE mit Tapatalk
[HTC One X+] morbvamp:
:p

ps: I flashed CarbonRom and blackscreens are gone. It works like a charm! The only issue remaining for me is the error I get when trying to install paid apps from playstore.
[HTC One X+] backb0ne5p1d0r:
Weird

I'm running Mokee ROM (latest stable release) and its working perfectly fine with this kernel. Using 1500 MHz as Max cpu frequency. And SMARTMAX governor. Oh and I even undervolted it -25 mV and its still running great
[HTC One X+] nik3r:
New version

EliteKernel KitKat (4.4.x) 140705 is released

Fixed all known bugs and compiled with Linaro for extra speed. All battery drain should be eliminated so prepare for some epic uptimes ;)

Also EPS Switch has a minor fix in on boot restore so update the APK if you use it.

Changes:

- boot image cleanup to hybrid between Carbon and MoKee

- workaround for google service battery drain

- fixed installation of paid apps from Play Store

- compiled with Linaro toolchain for extra optimizations

- updated EPS Switch APK to restore last known state after boot instead of last saved state

~ Enjoy :)
[HTC One X+] Warcliffe:
Thank you mate :) I will test it now :)

Edit 1 : no i have installed Nova Prime (payd app) without problems ;)
[HTC One X+] Ranomez:
I will test the new kernel and EPS switch now, on the older versions the cpu still got to my maximum frequency from time to time when power saving mode was on, hope it's fixed now
[HTC One X+] jizang:
Is the kernel for the Sense Version Updates too? If i look at the Name the last time it was updated 28th june
[HTC One X+] reaper90:
Nothing has changed lately, it's just a new 4.4 kernel with same features as 4.2 kernel.
[HTC One X+] nik3r:
This was like that in last 4.2 as well. It was not intended, but I kept it for now. This boost to maximum that bypasses EPS only happens on some touch events and only lasts 1.2s

So it has the nice side effect of making initial reactions with EPS a bit snappier. Not all bugs are bad you know :D

I will look at this later in the next stage, it is probably a side effect of the LP core lock changes.
[HTC One X+] dipack95:
Hey nik3r!

Nice work on this custom kernel! :)

But I do have a few problems with it.

1. Randomly, my notification tones, and music, start stuttering, and breaking up. Do you know whats the cause of this?

2. Also, when I tried to flash the stock boot.img back, there would be no Wifi and Signal on my phone. Can you tell me how to go back to stock kernel from the KK Elite Kernel?

I'm running, the 23-06-2014[Latest Nightly] Carbon, and the 05-07-2014 KK Elite Kernel

Thanks in advance :)
[HTC One X+] reaper90:
reflash rom without wipe after flashing stock boot.img
[HTC One X+] nik3r:
1) no idea on this one, sound works great for me

2) the bundled boot.img has no kernel module injector, that means you need to also reflash the ROM without wipe or push the modules manually when you want to switch to it.

Heh, beat me to it, I'm still in bed so typing slower :P
[HTC One X+] dipack95:
Yeah, I tried following the same method, with no results. The ROM simply would not boot. In the end, I had to restore a three day old nandroid backup.
[HTC One X+] Ranomez:
Aah, ok, anyway great work on the kernel, my phone now feels much faster than with the stock PA kernel.

Also a question: does this kernel have double tap 2 wake support (that is one of the features I really miss from the blade kernel) and if yes how do I activate it cause I tried the command that activated it on the blade kernel and it gives me "Permission Denied" and if not do you plan to add it?
[HTC One X+] nik3r:
Dt2w it's implemented and the Advanced settings app in carbon shows it but it didn't work for me, probably some permission problem with selinux.

Btw I reverted to stock kernel like 10 times yesterday without any problems, just fastboot the kernel img, go to recovery, reflash the same ROM. Done.
[HTC One X+] reaper90:
yes it has dt2w support, check my userinit.sh script (in my signature) to enable it
[HTC One X+] Ranomez:
Ok, thank you, I was on the old version of your script and that didn't have the dt2w line, also may I ask if you know if this kernel also has the wake gestures extension or only s2w and dt2w? (I ask because I want to use this: http://repo.xposed.info/module/com.ceco.wakegestures )
[HTC One X+] reaper90:
no, just s2w and dt2w
[HTC One X+] Ranomez:
Ok, thank you again, also you should make your script installer start adb as root (I had to do it before it was able to set the permissions and owner for the file).

---------- Post added at 11:37 AM ---------- Previous post was at 11:17 AM ----------

@reaper90 I can't seem to enable dt2w, I installed your latest script and I saw I had no dt2w so I went ahead and tried the command in terminal and it gave me a "No such file or directory" error, any idea?
[HTC One X+] reaper90:
the path should be right, but i just tested and for me the entry has no effect (dt2w doesn't work)...
[HTC One X+] k1moe:
Maybe ROMproblem?! I got the same problem on my LG P880 and now on the HOX+ with our favorite kernel..

with carbon works great [emoji7]
[HTC One X+] Ranomez:
Yah, I rebooted the phone and then didn't get that error again but still no dt2w unfortunately, maybe there are some other things that need to be set after enabling it also?
[HTC One X+] reaper90:
I guess it is due to nik3rs s2w implementation from 4.2 kernel, maybe there was something erased/overwritten in 4.4 kernel.
[HTC One X+] el-Loko:
Is it possible to change cpu frequency for screen off? I'm on mokee. When I change the performance settings for min and max it switches back to standard.

Problem in detail: I'm tracking my bike rides with endomondo. Every kilometer it tells me the elapsed time, but it stutters really bad.

I can't even not change the governor, it also switches always back to standard (smartmax).
[HTC One X+] morbvamp:
You should donwload and install the Easy Userinit by reaper90 : http://xdaforums.com/showpost.php?p=49574056&postcount=1578

There you'll have the commands to change governor and frequencies.
[HTC One X+] jizang:
Can someone give a short tutorial to install the userinit, and what is the best setting to reduce heat. I am on latest carbon Rom 4.4.4 with elitekernel
[HTC One X+] reaper90:
as already said, you can use my script, there's an option to increase screen off frequency cap, you may want to try the next two steps (640000 or 760000). this should be enough i think.

undervolting can help, but your phone may be unstable if voltage is too low. the only other way is capping cpu at lower frequencies.
[HTC One X+] Ranomez:
The latest kernel has some headset sound problems with Paranoid Android, the sound is really odd and getting stuck every second when trying to listen in the headset and also after connecting and disconnecting the headset the same kind of sound is produced by the speakers until after a reboot, I didn't try headset on the version before the last version but the version before that one was working right and also I'm pretty sure it's the kernel re-flashing the ROM with the stock boot.img solved the issue.
[HTC One X+] nik3r:
New version

EliteKernel KitKat (4.4.x) 140709 is released

Besides the changes below I tried to force my phone to use the yellow LED and it worked.

It is far from practical implementation and I'm not sure it's worth the effort modifying the messy LED drivers.

But the important part is we were lied to - we do have a yellow LED and it's beautiful :D

(amber + green = yellow, it's possible to trigger them both to mix them in driver)

I might revisit this later if I'm really bored.

Changes:

- fixed DT2W support

- performance tweaks

~ Enjoy :)
[HTC One X+] el-Loko:
Not charging while tirned off

hohoho... for calibration just used my mobile till its turned off by itself. then plugged it in for nearly 4 hours and let it be turned off. the led was still red so i turned it on. i was surprised what i saw: 2%!!!

puhhh... thats not much!?

hmm... had 050714, will flash now the new version and test the same maybe tomorrow.
[HTC One X+] fvdheide:
How to enable DT2W? I installed latest kernel, but DT2W doesn't work.
[HTC One X+] avivhaiser:
I think that it /might/ depend on the rom that you are using. You need to activate it in the ROM, I know that there is a place to activate it in viperx+ and carbon but i havent tried the others.
[HTC One X+] fvdheide:
I's using Mokee 4.4.4. ROM .. it's supposed to be supported .. i tried to use Easy Userinit.sh V8 with latest Elitekernel, but it doesn't work
[HTC One X+] nik3r:
Install userinit with

echo 1 > /sys/android_touch/s2w_allow_double_tap

reboot and you can check if it took by running this from terminal

cat /sys/android_touch/s2w_allow_double_tap

Carbon has a settings app for this and it works for me, though I'm not using it.
[HTC One X+] fvdheide:
I tried to install userinit.sh v8, but i get errors .. see attached screenshot .. am i doing anything wrong?
[HTC One X+] reaper90:
Probably missing root permissions for adb, you can enable it in developer options.
[HTC One X+] fvdheide:
Yep, i enabled root permissions for adb and now userinit.sh script works .. but still no DT2W ;) .. (S2W works fine)

Update: userinit.sh still doesn't work! There doesn't seem to be a /data/local folder to copy userinit.sh to .. permission denied ;-(
[HTC One X+] anonymous-_:
Stupid question Ithink but where can I found the Carbon Rom? Can't find it in the Rom section..

I found Only MoKee Rom and no other 4.4 rom ...
[HTC One X+] avivhaiser:
it is under Original android development not android development :)