yashsingh1/xdaforums huggingface dataset:
[HTC One X+] nik3r:
Guys you will love the features I'm brewing right now (especially maxwen ;) )

1) I have taken over HTC power saving, making it so that media playback will not apply the min CPU cap when power saving is enabled. This changes in realtime as you flip the switch. So basically if you are on the go and want to play music and not worry about battery, you just enable power saving and your music should eat a lot less battery. The price of course is occasional sound crackling if you have heavy apps running in the background. When the power saving is disabled, you will get a min CPU limit while playing audio, like HTC intended. If you use PowerAMP, you can pretty much eliminate the cracking sound by increasing the buffer size to huge.

2) I am just modding S2W in a way that you no longer need to start at a specific point. You can pretty much start anywhere on the button panel and slide the required distance in the correct direction (about 40% works nicely, but I'll possibly set it a bit less). I have unlocking done, just need to finish locking and stress test it :)

Just thought you would like to know, cool stuff ahead :D
[HTC One X+] baste07:
Wow cant wait
[HTC One X+] nik3r:
New release

EliteKernel 121210

has been released

S2W has a new free swipe motion detection algorithm by yours truly. The point of origin no longer matters and sensitivity has been increased slightly.

You can now use HTC Power Saving to underclock to 1.15GHz and allow CPU to go all the way down to 51MHz no matter what, saving you the precious bit of power on the go. It can also be used to reduce temperatures and battery drain for games that do not require the full power, 4x 1.15GHz is not exactly shabby performance :D

Please note that I discovered SetCPU and other tools that directly set CPU frequencies do not work, they in fact make things very unpredictable, because they can only set frequencies on cores, that are currently active. None of them do as far as I know.

I am forcing my own settings on boot which is:

CORE:FREQ
0:1300
1:1600
2:1500
3:1400

Since the cores always activate in order of priority 0-3-2-1, that means every additional core will have 100MHz better speed than the last one, reducing heat of 2 cores, giving you the extra bit of boosts when all are active.

Changelog for 121210

- S2W free swipe algorithm

- HTC Power Saving feature now underclocks to 1.15GHz and allows CPU to go all the way down to 51MHz when playing audio (this may cause crackling noises but saves battery while playing)

- fixed per-core async CPU settings. Be aware that SetCPU and similar progs will break this, they are not designed for tegra drivers. Nothing is -.-'

~ Enjoy
[HTC One X+] sffmandrake:
hi,

There's a little error in the oxp_flash_kernel.dat(121210), kill-server then reboot bootlader work here ;)

- S2W free swipe algorithm works great, thx
[HTC One X+] nik3r:
EliteKernel 140401 is released

Sorry it took so long since I compiled this, I wanted to test it for a week ;)

Changes:

- optimized for more screen-on time in power saving mode

- changed to dual core @ 1.3GHz max

- negligible change in actual performance

This gave me extra ~15% of total battery life (about 20%/day with light usage)

~ Enjoy
[HTC One X+] ChefChaudart:
your camera is ok ?
[HTC One X+] nik3r:
Yup no problems, just cold-stated in 2s.
[HTC One X+] ryaneu:
Is the change to dual core the only difference between this and the previous kernel?

Do you still recommend to update if I want to stick to quad core @ 1.5GHz?
[HTC One X+] reaper90:
Dual Core limit is only for powersaving mode, so you still have your quad core when PS mode is disabled (or CPU option is unchecked).
[HTC One X+] kuro_neko:
I have tried the latest kernel - 140401 - on ARHD8.

But it seems that my battery drain a lot faster, using stock ~6hrs, now ~4hrs.

The only settings been changed Smartmax, load_stats, sio, GPU Scalling ON

rq_stats caused my device to lag terribly.

Could it be I am missing any installation step (i just follow .bat file) or should i try previous version as per suggested in the first page?
[HTC One X+] haighpaul:
Same here. 140401 seems to drain faster than previous when phone mostly on standby.
[HTC One X+] nik3r:
Only thing that changed between last two versions is in power saving mode. If you don't have power saving enabled, it's identical.

I'm out of town for work and the battery time is pretty good for me. I noticed some slowdowns on just 2 cores but nothing unbearable, I simply turn off PS when I need extra speed, it's one tap.
[HTC One X+] aliko007:
+1 ....

I noticed some lags also .... but the battery life is awesome :good:
[HTC One X+] dttung80:
Yes, i have some lags too. :(

Back to the 140317 more power. :)
[HTC One X+] nik3r:
Well it was worth a shot ;)

I really enjoy the extra battery (lots of navigation/maps in new city) but Tegra obviously wasn't meant to run with only 2 cores, it makes all the software problems we have all the more prominent.

It works great until the cell tower or wifi signal changes/switches, but it can completely hang for a few seconds in that situation. Sadly this is a driver issue and incompetent programming on nVidia side and I don't think we will ever get a fix.

So if you don't really NEED the extra battery I recommend to downgrade, or just use power saving mode only when you really need it, there is no other difference.
[HTC One X+] aardappel12:
Tbh, works fine in both modes for me. You've done a great job on the last update and I thank you for that.
[HTC One X+] nik3r:
I thought so too when I was at home or nearby (tested this for a whole week before release), but travelling a lot on foot and bus the driver issues in radio really start to show, taking all of CPU when switching cell towers. It can bring google maps to its knees for a few seconds at a time randomly, I'm not saying 4 cores don't do that but the wait is observably shorter. As is the battery life of course :D
[HTC One X+] ryanjsoo:
It would probably be better to lower the clock speed to around 1ghz but enable all four cores, there would be greater performance and less heat due to lower voltages and less leakage, etc. Can you stagger each core frequency? for example core 1 and 2 at 1.2ghz then 3 and 4 at 1 ghz or lower just to supplement the dual core when needed.
[HTC One X+] reaper90:
Afaik Tegra3 uses only one voltage rail to power the cpu cores, so it probably doesn't make a big difference in battery to clock some cores higher/lower than others.

I can only recommend to use your device as intended with all four cores if you want more performance and only use powersaver when gaming or when you know you're gonna need some more time until next charge. Why the hell would you buy a quad core device and then limit it to 2 cores permanently? doesn't make any sense to me ;)

Battery life with four cores is already much better than with stock kernel (at least for me).
[HTC One X+] ryanjsoo:
Just a suggestion, I was curious with the staggered frequency but that has cleared things up, loving this kernel by the way, great battery life and performance is much improved over stock, moving over to an m8 but i`ll miss this phone dearly especially with all the awesome work nik3r did with it, thanks
[HTC One X+] nik3r:
EliteKernel 140420 is released

Approaching the problem from the other direction - more cores on lower overall frequency. So far so good, will see how the battery does in a long run.

Changes:

- tweaked CPU core scaling (load_stats) to prefer at least 2 cores when screen is on and something is happening

- changed power saving cap back to triple core @ 1.15GHz max

~ Enjoy
[HTC One X+] dttung80:
Big like. :)
[HTC One X+] saitch76:
Latest version is noticeably better in terms of lag. I'm not seeing much difference in battery :)
[HTC One X+] dttung80:
I think 1703 is best. :)
[HTC One X+] Thermaltake868:
Got froze today, first time in a long long time here is log:
[HTC One X+] nik3r:
com.nvidia.NvCPLSvc

I don't know what kind of tegra tweaking app is this but it's a prime culprit.
[HTC One X+] Thermaltake868:
I don't have any kind of tweak. ROM is by Venom I do everything in Venom Tweak.
[HTC One X+] nik3r:
No idea then, other than this there's nothing out of the ordinary.
[HTC One X+] Thermaltake868:
hmm me neither.
[HTC One X+] 00mpollard:
Not had any problems on Venom. Have you got the settings at default or have you disabled pspmgr and custom set anything?
[HTC One X+] reaper90:
in case you mean pnpmgr (hotplugging) it doesn't do anything because nik3r removed it. this kernel uses cpuquiet instead of "normal" hotplugging.
[HTC One X+] 00mpollard:
I must be getting old, way over my knowledge and understanding but thank you for clarifying!

All part of the learning curve :)
[HTC One X+] reaper90:
Took me quite a while to gather all this knowledge about tegra and kernel stuff, but there are still a lot of things i don't know/understand. I also don't know exactly how this works, just read about it somewhere. It's supposed to enable or disable cpu cores way faster than default hotplugging.
[HTC One X+] nik3r:
New version

EliteKernel 140601 is released

I'm finally back in town, so let's put my experiences with using this phone as a lifeline on the go to work ;)

Don't mistake lags after turning on wi-fi for this problem, it's mostly your apps syncing stuff causing that one.

Also be aware these changes to driver code may have introduced unexpected quirks, if you see something strange happening with your cell data connection, try to downgrade first.

Changes:

- experimental tweaks to GSM/Wi-fi code to reduce or eliminate the massive lags when switching cells

- tweaked CPU scaling in smartmax+load_stats for better performance/battery ratio

- prefers 2 cores for light load, 3 cores for medium load, 4 for heavy load as it should be

~ Enjoy
[HTC One X+] reaper90:
Thanks! and nice timing :D just reverting back to ARHD after trying some of the 4.4 roms^^

edit:

first impression: Performance seems to be a bit better than before. Wasn't bad at all before, but feels smoother now.

Can't say anything about the GSM cell switching performance drop except that connection works fine until now. Is this something that could have affected audio playback on low power core too? I'm just wondering because even with wifi disabled, all recent apps killed and only least amount of background services running, i still got some lags/stutters but completely random at time. Sometimes i can be on the way for half an hour with hardly any issues and then all of a sudden it starts to go crazy...
[HTC One X+] nik3r:
In theory it could have contributed, only real-life tests will tell.

Just keep in mind I only fixed the most obvious offenders, there may be more problems in the two drivers that I missed. But I'm pretty confident some of the code I changed could completely clog the CPU for a few seconds, that code is now replaced with nicer behaving alternatives.
[HTC One X+] reaper90:
Increasing screen off frequency cap above 475MHz will allow activation High Performance cores when needed thus definitely increases battery usage while screen i off. But i'm using similiar settins because i hate lags on audio playback...

In case you still have audio lags with 340MHz audio min frequency and 760MHz max screen-off frequency (i hope you don't use powersaver mode for cpu all the time because then the audio min frequency value is ignored) you may want to try adding this line to the script:

echo 0 > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/lp_up_delay

This setting delays activation of high performance cores, setting this to 0 should allow instant activation of high performance cores when needed. Tested this for a week now and i think it helps reducing audio lags, but would be nice to hear your feedback on this.
[HTC One X+] Belzebuth.:
Thank you... I added this line to script...

I will try by disabling the 750 ms buffer in PowerAmp (necessary for the moment against lag)...

I will send you my feedback in a few days...;)
[HTC One X+] MahanAir:
Double Tap 2 Wake

how can i configure this kernel for Double Tap 2 Wake?

PLS HELP
[HTC One X+] nik3r:
you can't
[HTC One X+] saitch76:
I'm noticing my HOX+ getting hot with the screen on for more than a couple of minutes with this version.
[HTC One X+] ChefChaudart:
Hello,

I´m on latest Viper.

When I run the camera, phone becomes very slow. Nearly unresponsive, and very hot :D

I restored a TWRP backup, but the kernel is still there :p

How can I revert back to original kernel ( with modules )

Regards
[HTC One X+] backb0ne5p1d0r:
Use ViperX+ kernel n recovery flasher..

It's on the ViperX+ ROM thread.
[HTC One X+] ChefChaudart:
I used it.

but after rebooting, it was still mentioning "Elite Kernel" :confused: and still no modules :crying:

A re-tried a second time my TWRP backup, and now it seems to be returned to normal.

One X+ kernels are definitely not for me :)
[HTC One X+] Belzebuth.:
Using the same Viper ROM, and no problems like that here...;)

Try to reflash the Kernel...;)

---------- Post added at 06:53 PM ---------- Previous post was at 06:25 PM ----------

Feebback send in PM...;)
[HTC One X+] Phoenix09:
I had exactly the same problem a few months ago, ended up going back to stock kernel, for some reason it's perfectly fine for me with the previous version (not flashed latest yet)
[HTC One X+] akpe:
I had the same issue with ViperX+ camera with almost all the kernels, Elite, ViperX+ stock (the one by Sebastian FM) and Speedy. I did not try with stock kernel, I mean the unmodified one yet because I ran out of time for experimentation. Long story short, I don't think it's a kernel issue. Nor a camera app issue since I pushed the camera.apk from ARHD and the problem remained.

For some reason, an app, a tweak, or something else is preventing my device/camera from working perfectly with ViperX+, I can only narrow it down to either a) so many pictures and media on my storage (over 5gb) or b) generally my internal storage having about 10gb free... It;s a shame really since I love the tweaks on ViperX, but with ARHD and stock kernel the smoothness is fantastic, battery life is so-and-so.

As soon as I get some time to experiment I will try EliteKernel again, I can imagine the result will be nothing short of epic.
[HTC One X+] ashishchandra:
CPU app to change the Settings

Which CPU app to change the settings as op say no SetCPU ??
[HTC One X+] akpe:
I'm personally using tegra overclock in ARHD, although it's a paid app. I had also used older versions of HOX Control in the past but this app has been abandoned and taken over by another dev and it's still in development.
[HTC One X+] reaper90:
SetCPU works with this kernel as far as i tested, i think this warning is still from the earlier days of tegra3. But i recommend using PerformanceTool. It allows to change many of the specific settings of this kernel. It was made for maxwens Blade kernel, but the features are almost the same here, so it works perfectly fine. just don't use the 3 provided profiles, as they're from blade kernel and not the elitekernel defaults.

Tegra overclock doesn't work well on this kernel, at least for me. I think it's meant for stock Tegra3 kernels, but this one is modified quite heavily.
[HTC One X+] nik3r:
I'm quite disappointed with the last version, how is your battery life guys?

It may be because I'm on FUP now and it's damn hot in here which broke my usual usage patterns. I'm thinking about falling back to 140317 and re-doing all the newer changes, all versions since then feel like I screwed up something :D
[HTC One X+] reaper90:
Not sure about battery life, since my usage patterns vary very much from day to day, but i think it is a bit worse too. Performance was good in latest version though.

The only thing that's still bugging me, is audio screen off lag, which i'm still trying to eliminate without using extremely high screen off cap frequencies. Also i found out that your smartmax settings cause lags on music even at 1GHz cap (no matter if 2 or 4 cores), so i think it just doesn't ramp up fast enough above ideal frequencies, but that's just my personal experience. Was using values from maxwens blade kernel lately and it was a bit better, but still had to use 760 or even 910 MHz screen off cap to eliminate stutterings completely.
[HTC One X+] nik3r:
I'm trying a little experiment with second core activation having no delay, combining 140307 with only the fixes in last version seem to be much snappier.

Is there a tweak to actually allow second core when sleeping? I mean one that works :D

I think that raising the min freq would help audio more than raising the max freq.
[HTC One X+] reaper90:
I thought device isn't "sleeping" when playing music? i just read somewhere ( i think blade kernel thread) that higher frequencies than LP cap allows normal cores, i don't know exactly how it is implemented.

Also i use 340MHz audio min frequency.
[HTC One X+] nik3r:
By sleep I mean screen off.

I will rewrite the scaling so that screen off will allow 2 cores when audio is playing and 1 core otherwise, that should eliminate all the lags even if you use 51-475MHz scaling.

I might disable it later for power saving mode but the power consumption needs to be tested first, it might not be necessary.
[HTC One X+] saitch76:
I think latest version has more lag and gets hotter quicker. Haven't had any wake up problems though so have stuck with it.
[HTC One X+] nik3r:
EliteKernel 140608 is released

To my knowledge nobody has tried something like this to beat the audio lags, it could have negative impact on battery life during screen-off music playback. As for how big an impact, we shall see ;)

Please remove your custom min/max frequencies while testing this, if I'm correct the defaults should do just fine.

Your screen off settings were previously ignored on LP core, so setting higher sleep min/max will actually work now. That means it WILL drain your battery if set too high. Try to stay at 475MHz or lower per core.

Changes:

- hybrid between 140317 and 140601

- experimental fix for audio lags

- LP core will not activate until music stops playing and will allow up to 2 cores when needed

- tweaked core scaling to de-emphasise 4th core in most situations to reduce heat outside power saving

- removed 80ms activation delay for 2nd core

~ Enjoy

EDIT: Found a bug where CPU sometimes gets stuck at max 2 cores permanently

EDIT: There, fixed in revision #2 (or is it... nope :D)

EDIT: 3rd time is the charm, right?
[HTC One X+] reaper90:
Should i wait some more time, or is it now safe to flash? :p :D
[HTC One X+] nik3r:
Lol yeah I was so certain I squashed that bug the first time :D

Just tested r3 and all cores were restored.
[HTC One X+] reaper90:
So far new version works fine regarding audio playback! Removed all my cpu tweaks from userinit.sh and tried forcing it into stuttering by opening some apps and connecting/disconnecting to WiFi. It was very easy to get lags/stutters by this, but i wasn't able to get a single one yet (using stock htc music player and PureXAudio mod)!

Thanks for working on this issue, i think i'm not the only one appreciating this solution! Will give some feedback on battery life too as soon as i can! :)
[HTC One X+] akpe:
Reaper, I guess your userinit.sh script will have no compatibility issues with the new version, right?

Gonna flash this ASAP, only thing keeping me from elitekernel was the stuttering issue.
[HTC One X+] reaper90:
Should still work, though i don't use it like it is provided because i don't need all the descriptions and lines with stock values^^
[HTC One X+] nik3r:
Okay today only 40% of battery lost after a work day, not bad considering how hot it is :)

However I will probably reinstate the 80ms delay for second core re-activation to save a bit more. Looks like the audio lags were actually the 70-ish ms delay required to enter/exit LP core so it's unlikely to be affected by G core activation delay.

Unless you were able to force it to lag on this version...
[HTC One X+] JaffaTB:
i got severe lags on my phone while music was playing, the music never skipped it just took ages for the screen to come on and do anything unless i stopped the music first
[HTC One X+] Thermaltake868:
Phone gets extra hot during recording of full HD video.
[HTC One X+] reaper90:
But you'll stay with preventing low power core while playing music?

Only had one single lag/stutter last week during several hours of music playback, but that was probably due to some background process load, because UI was laggy too before i turned screen off. So I'd say it works perfectly fine!
[HTC One X+] nik3r:
I already did it on mine, comparing if there's a huge difference for battery/performance. And no I will keep the music playback as it is in last release.

Currently ~35% of battery per whole day but the weather cooled down a bit, it could have some impact.

EDIT: Now that I don't have to work around the audio lags I was able to make some nice improvements in potential battery life while improving general smoothness at the same time. I'll probably post the new version tomorrow, some tests and fine-tuning are still needed ;)
[HTC One X+] nik3r:
EliteKernel 140615 is released

So I spent the saturday tweaking the CPU scaling and testing in various scenarios and this is what I came up with. It might not be the perfect balance but it does what I intended.

1) prefer 2 cores even on lighter loads

2) do not hesitate enabling second core, but do hesitate with 3rd one and only use 4th core sparingly for ultra high loads

3) ramp the cores down early but never go below 640MHz @ 2 cores during user input and 1.2s after

4) try to keep screen-off freqs at 340MHz or below but allow second core and up to 475MHz for audio playback

Changes:

- tweaked default CPU scaling for better battery/smoothness ratio

~ Enjoy :)

UPDATE: Battery life seems awesome, about 0.8% per hour in standby using wifi.
[HTC One X+] saitch76:
Tested 140615 today. No stutters on audio and works the best of all versions to date with ReadItToMe. Battery life noticeably affected. I'm using Neutron as my music player which is more of a battery hog so that might be affecting battery life.

General performance is excellent with no visible lags all day.
[HTC One X+] reaper90:
latest version is good, no audio playback lags at all (wifi/mobile connection on and no need to kill any background task)! performance is a little bit worse, but i'm fine with it, battery life is much better for me while screen is on!
[HTC One X+] nik3r:
Try todays version again, it's the same thing just with different compiler flags, I made the last one optimize for size by accident between the tests, this should make it a bit smoother.
[HTC One X+] rickydci:
Link Update

Well.. Thank You! You updated your work the day I decided to turn back to a custom kernel for my ARHD... Wonderful!

But,

it seems

you have not updated the link. I still find 140614 version :D
[HTC One X+] nik3r:
Nope it's correct - 140617
[HTC One X+] rickydci:
SORRY! You're right.. browsing from Citrix at work causes me some cache problems!! :silly:
[HTC One X+] nik3r:
No problem, I've been there before :D
[HTC One X+] Phoenix09:
no problems playing music with latest version :D

I even lowered my minimum audio frequency back to 102MHz and max screen off to 475MHz
[HTC One X+] fvdheide:
is it necessary to install the tweaks again after installing the newest kernel?
[HTC One X+] nik3r:
No
[HTC One X+] avivhaiser:
First of all thank you for the great kernel!

After using speedy kernel for several months I decided to use your kernel and I love it .

But I have a question, is the default governor "smartmax"? I tried to find more info about it but couldn't find much besides the fact that it is somewhere in between smartass and ondemand; If it is the default is there any particular reason for it?

Thanks in advance,

Aviv
[HTC One X+] nik3r:
Maxwen made it specifically for X+ and it's the best from both worlds, responsive and great battery life. Why not use it as default ;)
[HTC One X+] avivhaiser:
I am using it :P. Just wondered if there is any extra info. But awesome. Just one more question, how do I know how many cores are activated atm? I read through this thread for 3 months or more and I noticed that in every update you change the amount of (min/ max?) active cores.