yashsingh1/xdaforums huggingface dataset:
[HTC One X+] djgodlike:
Not sure why but every other kernel seems to have freezeproblems.. Tried latest elite kernels and speedy's. Even stock viper results in no WiFi etc.. Now back on EX4, this one only seems to reboot once a week but for me the most stable and best performing. Tried a fresh Viper install with EX9 a couple weeks ago, freezes. So i think i keep EX4 for now :)
[HTC One X+] reaper90:
Set max_cpus to 1 and enable power saving mode or even set scaling_max_frequency to 1000000 and you will have a cool but probably very slow phone...

You can't thange the way the SoC works! The only way to reduce heat output is to reduce CPU cores used and maximum clock speed (and thus voltages), but why would you buy a quadcore smartphone then???

---------- Post added at 11:34 PM ---------- Previous post was at 11:30 PM ----------

EX11 solved the freezing problem for me. The only thing that may cause instabilities is voltage, but this did only cause random reboots and no freezes. Depending on your cpu variant, you may already be undervolt by (-)25/50 mV when using default settings which can be too much for some SoC with worse build quality.
[HTC One X+] tecno321:
which application use to regulate the CPU and all management functions? I"m on ARHD. [MENTION=853294]nik3r[/MENTION] may you helpme?

you use userinit.sh script?
[HTC One X+] nik3r:
Actually limiting CPU to one core will not be as effective. One core at 1.5GHz heats up far more than two cores at 910MHz.

I recommend to just trigger Power Saving, it will limit your CPU to 1.15GHz and 3 cores, that should drastically reduce the heat without any significant dip in performance. No need for any 3rd party app too.

Just remember there are 3 factors that contribute to heat the most:

CPU - power saving should reduce that significantly

LCD - with smartdimmer on this kernel, I'm going as low as 25min 115max (out of 255) for auto brightness for winter time.

Battery charging - while charging the overall temperature will raise significantly
[HTC One X+] jizang:
Are These scripts compatible with this Kernel and arhd 8?

http://xdaforums.com/show...php?p=40519583

http://xdaforums.com/show...php?p=40437397
[HTC One X+] reaper90:
I know that power is proportional to voltage^2, so keeping the voltages low is the best thing to do. But also from my experience on stock kernel, only allowing two cores (on 1.3 GHz) reduced heat output even more. Also that 1x1GHz was meant to be sarcastic ^^

First you ask how to reduce heat output and now you want to use performance scripts? This is just not possible! Under heavy load you have to chose between performance and termperatures, there's no way to keep Tegra3 cool when there's high load on all cores at maximum frequency.

As for the scripts:

They won't do much except probably causing instabilities on because they undervolt your phone by -75 mV. Also they're simply not necessary (in my opinion) because this kernel already gives better performance than stock kernel.
[HTC One X+] Tazmaniiac:
I'n summing up my my problems again to make it more clear:

When flashing the kernel the batchfile says device not detected before it starts to flash, then the 4 "ok" appear, after that the phone reboots but stucks in bootloop.

Same thing when I flash the boot.omg with Venom Kernel Flasher, I also tried different USB ports and updated Google USB Drivers with SDK Manager (hope that's what nik3r meant with USB Drivers)

At the moment I'm using the ViperX+2.0.2

Rom with SpeedyKernel (if that helps)
[HTC One X+] reaper90:
The "error: device not detected" is due to "adb reboot bootloader" command, so the device will reboot into bootloader if it isn't already. In case it is already or adb command didn't work, you will get this message. As long as the 4 okays are there, it should have worked, maybe some incompatibilities between viperX+ rom and latest elitekernel? Or do you use any startup scripts (init.d or userinit.sh)? Also did you try installing latest HTC sync (which also installs drivers) and then uninstall HTC sync again (keeping the drivers)?
[HTC One X+] nik3r:
I have no idea what your problem is, I recommend to nandroid backup in recovery and try a full wipe to another ROM. It may or may not be something the ROM does or some mod you installed or possibly an unresolvable permissions problem in modules. Formatting /system /data /cache from recovery should clear that.

And yes the "error" you are getting is simply the flashing script trying to reboot to fastboot if you are not in it yet, obviously it will fail if you are. It even says so:

Attempting to enter bootloader if device is ON...

Good luck
[HTC One X+] saitch76:
I'm not getting any superuser notifications since installing EX11. Flashed EX4 and problem is resolved.
[HTC One X+] schinge:
I had the same problem today - reflashed the superuser app, reinstalled busybox 1.22.1 and after a reboot it works again.
[HTC One X+] saitch76:
Thanks. I'm still finding EX4 smoothest of all so think I will stick with it.
[HTC One X+] Tazmaniiac:
Excuse me for that dumb mistake I made, I tried to flash the 4.1.x Kernel all the time because I immediately went to "Stable downloads" after reading "Experimental dl's". Flashing worked fine and so do wifi, radio etc., ty for the kernel and your help :good:
[HTC One X+] saitch76:
Superuser is now broken on EX4. nik3r do you know what's causing this? Everything was fine before I flashed EX11.
[HTC One X+] nik3r:
Go to recovery-advanced and fix permissions.

If that won't help uninstall superuser app and reinstall it from market, let it update the binary. Also install the busybox updater app from market and update busybox binary to latest version and reboot.

This has happened to me in the past but completely unrelated to the kernel, just some bug or permission problem within the superuser app.
[HTC One X+] saitch76:
Thanks. Looks like it's an issue with the recent Superuser update.
[HTC One X+] saitch76:
Figured it out. It's a problem with this app:

https://f-droid.org/repository/browse/?fdid=de.j4velin.systemappmover

which seems to break superuser.
[HTC One X+] djgodlike:
I have CPU variant 4 and tried EX11 even without undervolting and ondemand govenor.. But doesnt work out for me. Still freezes and reboots. Maybe time to do a clean install again, but not sure if this helps for my HTC one x-

Now stable on EX4, only some issues (dropping connection) with this kernel and pairing my parrot Bluetooth carkit.. :(
[HTC One X+] tecno321:
I have an issue, when I turn off screen the 3 Red keys continues illuminated, that happened in arhd and Viper when use custom kernels. Any ideia?

Enviado do meu HTC One X+ através de Tapatalk
[HTC One X+] nik3r:
Disable the screen-off animation, there's a reason it's disabled by default even in CM.
[HTC One X+] ryaneu:
nik3r.

I know the main objective of your kernel is to get optimum or maximum power saving.

But can you please advise me what are the kernel settings I can do to get back the performance and smoothness equal or better than stock kernel?

I noticed that your kernel is still not running as smooth as stock and there is a delay when opening apps. I still find that stock kernel is smoother and performing better.
[HTC One X+] nik3r:
Disable power saving and use interactive governor if you need extra performance for whatever reason. Or just use stock kernel really, you would be better off if you don't mind the extra heat.

For me EX11 is as smooth as stock on ARHD even in power saving. And I get more stable framerate in 3D games for some reason, probably because the CPU doesn't need to throttle at all.

When it comes to scrolling smoothness it all comes down to what crap is running on the background I guess, app list or gallery can be stuttering on stock kernel as well for no apparent reason.
[HTC One X+] reaper90:
Did you try this in /data/local/userinit.sh?

echo 0 > /sys/kernel/tegra3_dvfs/cpu_millivolts

This will get you back to variant 4 default voltages. Even a variant 4 SoC can be sensitive to undervolt, so i'd think it's worth a try.
[HTC One X+] tecno321:
How you check variant?

Enviado do meu HTC One X+ através de Tapatalk
[HTC One X+] reaper90:
check /sys/kernel/debug/t3_variant and then the line cpu_process_id
[HTC One X+] tecno321:
Thank you, variant 3 in my phone. Board date: 8/2013

Enviado do meu HTC One X+ através de Tapatalk
[HTC One X+] djgodlike:
Thanks mate! Trying EX11 with your script for a day now. Only freezed for about 20secs a minute after boot, maybe cause of loading the script? Till now very fast without any freezes or reboots even in powersave mode. Fingers crossed..

Is it possible to use software like Viper Tweaks to change govenor and min max settings when using your script? Or is it better to disable those and only change settings in the script..
[HTC One X+] reaper90:
The script only applies settings once on/after every boot. You can still change these with apps later. But make sure that there are no apps trying to change settings on boot, depending on the delay, they may override the script settings!
[HTC One X+] reaper90:
[MENTION=853294]nik3r[/MENTION]:

I already mentioned some time ago, that there's maybe something wrong with the gpu_quick_oc switch, forcing the GPU to run full 600MHz all time when set to 1. Although i know it probably doesn't make a big difference in battery life, because GPU is only used when screen is on, i still think it is a bug. It doesn't matter if i turn it on or off, as soon as gpu_quick_oc is used, the GPU is forced to run at maximum speed. I discovered this by using my userinit.sh script, even when forcing a "0" to that file again, the GPU speed is 520MHz all the time, it does not go down to 200MHz like it does when i do not touch that file after boot. Same thing with the gpu_oc entry, when setting the values from gpu_quick_oc switch or returning to default values, it always runs at maximum allowed speed.

I checked this using trickster mod, maybe there's another way to prove my theory in case trickster mod doesn't show the right information?
[HTC One X+] JaffaTB:
i am randomly getting "no service" when using my phone with EX11, the only way to get it back is to turn airplane mode on then off again, viper 2.02
[HTC One X+] shark.jd:
Same issue with EX11 (default settings). And phone is still a little bit laggy. No problem with stock kernel (except battery drain). :( I am still waiting for stable release (for me ofc), because I love your kernel.
[HTC One X+] nik3r:
There's something fishy in EX11, I am *sometimes* getting 0,5-2s wake up delay before the display turns on.

First I thought this has something to do with memory management or zcache restoring stuff into memory on wake (like any form of swap would lag and it can't be avoided) but now I'm not so sure.

I noticed that the CPU scaling is stuck at constant 475MHz when the screen is off. When the screen is on, it goes all the way to 51MHz in idle, very weird since there are no limits imposed. This is obviously a smartmax bug since ondemand doesn't have this problem. It doesn't have a huge battery effect since 475MHz is still a LP core but it has some and it may be the source of wakeup lags I am getting.

So a question for everyone using ondemand instead on EX11, do you experience this weird delay on wakeup as well? It's not even 50% of the time but I am seeing that behaviour couple of times a day.
[HTC One X+] saitch76:
Yep. Tried EX11 for 2 days and went back to EX4 because of that very problem.
[HTC One X+] phikal:
Yep, wakeup delay a couple of times on ondemand and interactive too.

No black screens anymore though. :)
[HTC One X+] nik3r:
Good to know it's not smartmax gov exclusively.

BTW if you use CPU Spy you will probably see that deep sleep is broken, it's idling at 51MHz but never really sleeps. Could have been broken for a long time, so expect some more battery savings in next version.

I just tested a deep sleep fix successfuly but it might have re-introduced the freezing problems again, it never happened for me so I can't tell. I'll try to test as much as I can and release it for you to try tomorrow.
[HTC One X+] ryaneu:
Currently I'm using ondemand governor.

Tested using CPU spy and indeed it shows that CPU does not go to deep sleep mode.
[HTC One X+] nik3r:
EliteKernel 140207 is released

This is experimental, that means don't trust it until you extensively test it!

Changes:

- updated smartmax version back for further testing

- fixed deep sleep problems

- cleanups and performance tweaks

- this version is rock-solid for me, so I moved the 4.2.2 kernel from EX versioning to simply datestamped Stable Candidate

Please test this with default settings and smartmax first, I want to make sure this works for most people.

~ Enjoy
[HTC One X+] _ ReivaX _:
Is it possible to include the dt2w on your kernel? It's very useful.

Sent from my ViperedHOX+
[HTC One X+] nik3r:
Maybe but definitely not enabled by default, I kinda hate it because I don't use any lockscreen (sorry maxwen lol)
[HTC One X+] Thermaltake868:
Did you maybe tried to fix that what reaper90 told you in previous page ?

Btw I installed this new kernel so far it's good, but will see in few days.
[HTC One X+] reaper90:
Sadly, the freezes are back for me, at least i can make them happen after reboot, so i'm pretty sure they will also occure randomly...

Let me know if i can test anything for you.

---------- Post added at 08:37 AM ---------- Previous post was at 08:34 AM ----------

If you mean the GPU oc thing, then i think it's less important at the moment. I will reupload a new version of the script that skips this line by default, so those who really want it can enable it for themselves.
[HTC One X+] nik3r:
Didn't have time yet for the GPU.

I'm compiling again with the older smartmax, check back in 3 minutes ;)

EDIT: uploaded go ahead, only change is downgraded smartmax version, identical settings on it.
[HTC One X+] reaper90:
Download link? Or is it the same?

edit: nevermind, got it
[HTC One X+] nik3r:
http://elite-force.eu/emoxp/oxp_elitekernel_140207_2.zip

subtle change lol

Only disadvantage of using a datestamp instead of version numbers.. try to release twice on the same day...
[HTC One X+] reaper90:
Flashed, but have to go now, will report back as soon as possible. First boot was fine though!
[HTC One X+] PDSPL:
Hi. Got a real strange issue here. Tried to install latest EliteKernel (130413) yesterday; flash seemed succesful however stuck on HTC bootscreen. Then flashed the first release EliteKernel (121125); stuck on HTC bootscreen. Then flashed SpeedyKernel2.5; boots normally. Then flashed SpeedyKernel3.5; boots normally. Then flashed EliteKernel 130413 again; stuck om HTC bootscreen. Got really annoyed and went back to stock kernel; boots normally. Has anyone got any idea's because I'd really like to give EliteKernel a try but somehow my HOX+ won't accept it????

My HOX+:

International ENRC2B_U

ARHD8.0 stock BootIMG

TWRP 2.6.3.0

CIDnum HTC__E11

HBoot 1.72.0000

Radio 3.12404.171.33
[HTC One X+] nik3r:
Use the experimental branch starting with 14 (this year). The older stable versions are for Android 4.1.x
[HTC One X+] PDSPL:
Ok, that did the trick. Thanx!

---------- Post added at 10:01 AM ---------- Previous post was at 09:57 AM ----------

Any supplementary actions you'd suggest after flashing your kernel?
[HTC One X+] reaper90:
Works fine, wasn't able to make it freeze after several reboots!

Is the updated smartmax (which is causing the freezes for some) the latest from maxwens Blade kernel? because i never had this problem when i tried some of the AOSP (4.3) roms that used Blade kernel before HTC released 4.2.2 kernel source...
[HTC One X+] nik3r:
Yup, that's the one, I had to use the version from my 4.1.x kernel. It works fine for me though, must be device specific or combination of factors.
[HTC One X+] reaper90:
still very strange issue , but i'm fine as long as it works for me. Thanks! :)

---------- Post added at 12:34 PM ---------- Previous post was at 12:11 PM ----------

userinit.sh updated! Using gpu_oc setting forces GPU to run maximum clock all the time when screen is on (0 => 520MHz; 1 => 600MHz). Those who want to use it anyway will need to remove the "#" in front of the script line.
[HTC One X+] phikal:
Trying latest version now, I noticed that every time after flashing phone feels snappy and crispy but after a couple of days it gets sluggish.

On smartmax its worse then on other governors but on the other governors it happens too. Maybe the zram or zcache has something to do with that ?
[HTC One X+] saitch76:
Have you tried using fstrim?
[HTC One X+] phikal:
Nope, but will try that ! :good:
[HTC One X+] aliko007:
+1 I thought this has something to do with memory management also coz it get down to 100mb and the lag is here .. when u clear the app in task manger the phone is back again 2 response :confused:
[HTC One X+] nik3r:
Update, it should go away.
[HTC One X+] djgodlike:
Had many freeze issues before i used reaper90's script. Now only random, maybe once a day with EX11 smartmax. It freezes for a about 2 minutes, then black screen and reboot.. But at least its much less buggy as before using the script. Had also more leggs after a couple (like phikal), but not after using the script. Now trying ondemand... Gonna try the new update soon.

Im on viper 2.0.2 CPU id 4
[HTC One X+] Thermaltake868:
I use ondemand since EX10 I think, and didn't have any freeze since then.
[HTC One X+] adamkx7xdesire:
I have never any unexpected reboot or freeze on EX11

and I'm using modified reaper90's script which is down here:

#!/system/bin/sh
sleep 20s
echo 1 > /sys/android_touch/sweep2wake
echo 325 > /sys/android_touch/s2w_min_distance
echo 9 > /sys/android_touch/s2w_register_threshold
echo 0 > /sys/devices/platform/htc_battery/fast_charge
echo 1 > /sys/devices/tegradc.0/smartdimmer/enable
echo noop > /sys/block/mmcblk0/queue/scheduler
echo 512 > /sys/block/mmcblk0/queue/read_ahead_kb
echo 50 > /sys/class/leds/button-backlight/button_brightness
echo 1500000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 51000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 0 > /sys/module/cpu_tegra/parameters/enable_oc
echo smartmax > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo load_stats > /sys/devices/system/cpu/cpuquiet/current_governor
echo 4 > /sys/devices/system/cpu/cpuqiet/tegra_cpuquiet/max_cpus
echo 1 > /sys/devices/system/cpu/cpuqiet/tegra_cpuquiet/min_cpus
echo 340000 > /sys/module/snd_soc_tlv320aic3008/parameters/audio_min_freq
echo 640000 > /sys/module/cpu_tegra/parameters/suspend_cap_freq
echo 2 > /sys/module/cpu_tegra/parameters/suspend_cap_cpu_num
echo -25 > /sys/kernel/tegra3_dvfs/cpu_millivolts
sleep 30s
echo 1 > /sys/android_touch/s2w_allow_stroke

And I also don't understand the problem with DeepSleep... for me it's working fine.

And yes I've noticed that gpu locks on max freq

And yes sometimes wake up is a bit slow... :(
[HTC One X+] djgodlike:
Thanks for sharing your script settings..

No deep sleep problems here either..
[HTC One X+] nik3r:
Interesting I didn't have that deep sleep entry at all on EX11, sleeping on cable or battery and multiple reboots and governors it was just missing.

When I made the changes in 140207 it turned up at first try.
[HTC One X+] reaper90:
take a look at may latest script update ;) using the GPU oc switch no matter what setting causes the GPU to run at maximum allowed frequency, so i commented it out by default and added a comment for it.
[HTC One X+] adamkx7xdesire:
Does anyone has very long start up of camera from lock screen after wake up? This is the most annoying thing for me xD it took up to 10s for me. Launching camera from app drawer isn't fast either :(
[HTC One X+] djgodlike:
That is unfortunately a Sense 5 thing. At least thats what i have been told..
[HTC One X+] baste07:
What does that mean?
[HTC One X+] nik3r:
So I guess I will merge these experimental changes into the mainline and go on from there. The battery life is awesome now compared to stock. 28 hours without charge, been watching some YouTube, played a bit of earth and legend, about 40 minutes of calls, some browsing and I'm still at 10% :)

Sent from my Desire Z powered by EliteMod.
[HTC One X+] Notechis:
Sounds perfect. Thx for that

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] baste07:
I smell a new non experimental release :) or will it be the same
[HTC One X+] TAGTRAUM:
Adoptable for One X???....Question because of One X+ based ROM perfectly run on One X :cyclops:
[HTC One X+] nik3r:
Use the source, Luke...

(updated git, merged all experimental changes)
[HTC One X+] ulukai3:
Successfully installed your kernel and ARHD 5.1. Would like to ask if the optimizations in your kernel should work without problems with Core control (http://xdaforums.com/showthread.php?t=1652136). I would like to try to disable two cores in hope of getting another extra bit of battery life. If it should work with your kernel, should I disable cores 3 and 4 or some other?

Another question, kernel as such doesn't have any settings inside android, right? I mean any kind of settings regarding governors and such.

If there are no settings, should utilities which can limit CPU frequencies work with your kernel? Again, I would like to try and limit the frequency to something like 1.4-1.5GHz for another bit of battery life.

Thanks.
[HTC One X+] nik3r:
What you say the kernel already does automatically.

95% of the time it only uses one core and the first core is clocked at 1.3GHz maximum if you don't touch anything. Secondary core is at 1.4GHz and the other two cores are at 1.5GHz when they operate, so you should only get a boost if you really need it. In benchmarks it scores very similar to stock with all at 1.7GHz, but the temps are a lot lower.

I wouldn't bother with SetCPU except for troubleshooting. Once you change anything, you will synchronize the frequencies among all cores, actually hurting your battery/performance ratio. Also no other governor than ondemand works reliably, thank nVidia for that.
[HTC One X+] ulukai3:
Ok, thanks for the explanation and I'm more then happy to leave things at default and not to have to mess with the phone more.

Just to clarify, 1,3GHz, 1,4GHz and 1.5GHz are hardcoded by you and they will never go more (which I wouldn't mind)?
[HTC One X+] nik3r:
The cores should be set like that at boot time and unless you specifically set another min/max in setCPU for example they should stay that way. No guarantees though, the tegra drivers are a bit dodgy when it comes to settings actually stick forever :/
[HTC One X+] ulukai3:
Again, thanks. Looking forward future updates :good:
[HTC One X+] nik3r:
New version is coming as soon as I test the stability.

1) I managed to lower the default power output of wifi adapter by 30% (battery saving with negligible signal drop)

2) I managed to disable the perflock for USB cable connection (faster charging while connected to PC, not restricted to only 2 cores while connected)

3) I managed to disable special treating for vibration events, vibrations will no longer ramp up the CPU unnecessarily

4) I modified the S2W in a way that will momentarily ramp up the CPU to 475MHz once you wake up the phone. This greatly increases wake/unlocking speed and should eliminate music lag on wake.

Stay tuned :)
[HTC One X+] nik3r:
New version

EliteMod 121209

has been released

Merging the experimental branch with mainline kernel and introducing even more battery saving features.

Changelog for 121209:

- reverted all the edits to tegra drivers to try a more subtle approach

- switched to SLUB memory allocator

- decreased default wifi power to save battery

- removed tegra drivers CPU hardcoding for: USB plugged in CPU speed, vibrations CPU ramp up, 2 cores only on USB

- decreased media playback perflock to 102MHz minimum

- modified S2W to ramp up the CPU momentarily on wake

Enjoy :)
[HTC One X+] Amroo1988:
Does it work with stock rom ?

what about GPU and lag in games ?

Thanks 4 ur efforts :good:​