yashsingh1/xdaforums huggingface dataset:
[HTC One S] ryanshew:
He's on 1.09 hboot. Just Make a nandroid first and flash the zip in recovery...but then again, if you're selling the phone in a couple days, why bother.

HTC_One_S | S-OFF | Root_Box | Bubba_3.7b_SoftOV
[HTC One S] leohdz148:
Yea, I am gonna put it up for sell in a couple of days is what I meant to post, I was tired and my mind was a little confused, but for now I was just gonna play around with this kernel and see how the phone reacts to it, but no worries I don't wanna mess up this phone its already good and running smooth so ill just stick with that for now :)

Sent from my HTC One S
[HTC One S] Daalgo:
After few days of testing, rocksolid Kernel !

Best idea to include the disable max screen off frequency option. No random app issues anymore after long deep sleep state.

s2w works like a charm.

Good job !
[HTC One S] :
Hi,

I installed this Kernel with disabling s2w, but it's still activated. In elementalx.conf s2w is 0 but I can s2w to wake up the phone. I reinstalled 4.2 but the problem is still there.

TWRP: 2.4.2

s-on
[HTC One S] flar2:
What ROM are you using? Some have settings for s2w built in that will override my settings. Another possibility is an app like Kernel Tuner, which might be set to enable it.
[HTC One S] :
I'm using viper 2.1. And I have installed kernel tuner. But I don't think that it is a problem with the Rom or an app, because with 4.0 everything was fine on the same Rom and the same kernel tuner version. I just installed 4.0 with a full wipe but there is no improvement.

Btw: I'm always flashing boot.img with fastboot.
[HTC One S] flar2:
You still have to run the installer if you fastboot, or you won't get the proper config files.

The init script for elementalx is /etc/init.d/89elementalx. This script needs to run at boot. You can tell if it's running or not by looking at /data/local/tmp/elementalx.log. It will have a time stamp and list some settings that are applied. If you don't have this file, or the time stamp is not the same as your last reboot, then the init script is not running.

I'm also pretty sure that Viper has a setting for sweep2wake. You should make sure it's set to disable sweep2wake
[HTC One S] k1llacanon:
Why does it say in kernal tuner sweep2wake isn't supported?
[HTC One S] flar2:
Because the sweep2wake settings are in a different location on this phone.
[HTC One S] :
I did run the aroma installer too. I did a reboot and the time stamp is correct. I can't find an option for s2w in venom tweaks too.

I really don't know what to do. Is there any other opportunity to disable s2w?
[HTC One S] flar2:
change /sys/android_touch/sweep2wake to 0

You can navigate to it with file explorer or do it directly in terminal like so:

echo 0 > /sys/android_touch/sweep2wake

On Viper for my phone (One XL) the setting is in Venom Tweaks, under the lockscreen tab.
[HTC One S] Gw4nM4n:
miror

all file miror seem dead

could not download

get this {"INFO":"failed posted hashcheck","SOLUTION":"please make sure you have javascript enabled for androidfilehost.com. Hit the back button, enable javascript and try again please. we promise we are probably not doing anything nefarious. maybe. no promises though."} from server
[HTC One S] :
Hm, there is no sweep2wake in sys/android_touch/. There is also no s2w option in the lockscreen tab. I think its only visible if s2w is activated in aroma.
[HTC One S] flar2:
Changed to a new host, download link should work now.

There's no /sys/android_touch/sweep2wake?

There should be. If there isn't, that's a huge bug that I'm surprised nobody brought up before.
[HTC One S] Wel1973:
I think it's really a different route. So ... would not find it. Must be android_key, not android_touch. Aren' t you??

Hope I'm not wrong ..:)

Greetings.

Sending from my SkyDragon v2.1 using Tapatalk2
[HTC One S] :
Thank you! Android_key is wright. I did turn off s2w now, but if I reboot the phone its back again and I have to disable it again.
[HTC One S] flar2:
Thanks, I'll probably have to alter the init script to change android_key instead of android_touch

I'm working on too many devices these days and can't even remember what's what :eek:
[HTC One S] Wel1973:
Lol!! I am sure of it.. :laugh:

Continue being employed at these magnificent Kernels....

It does not worry you're welcome any more.
[HTC One S] teamet:
Vsync is off according to kernel tuner. How do I turn it on?
[HTC One S] Mr.Nigma...:
It is ON but not read properly by kernel tuner. :P
[HTC One S] flar2:
Okay, I fixed the init script. The link is the same, but any downloads after now will have the correct sweep2wake settings.
[HTC One S] Mr.Nigma...:
One question! I am using elementalx 4.2 the best kernel so far! And i overclocked mine to 1.8ghz 850mv gpu oc! Running smooth! Yesterday ia was playing real racing 3 no lags xtra high graphics but after 20 min of game play the phone cpu reached the temp 65°c! Is it safe to play again? Or it will damage my phone!
[HTC One S] Evil-Monkey:
The way I looked at it, idle your engine at a high RPM long enough, eventually you'll blow the engine.

Elemental normally makes my phone run hot on default settings, within the hour my phone starts to burn up so I took a break from it and went to stock but I feel my phone has sentive taste on the kernels.

echó en Android
[HTC One S] flar2:
Your phone will reduce its clockspeed when it gets hot and shut down automatically if it gets dangerously hot.

No need to worry.
[HTC One S] ryanshew:
As long as you don't float the valves, run low on oil, or run dirty oil, you should be fine.:)

HTC_One_S | S-OFF | ViperOneS_2.2.0 | Black-Blue_Sense_Theme | ElementalX_4.2
[HTC One S] Sneakyghost:
I've had an emergency shutdown two days ago from overheating in my car (my fault) and after that, it was totally cache corrupted and needed fixing up in some aspects.

Wasn't fsync supposed to offer some kind of journaling/security for this?

I think i need to understand that better because i was totally surprised by the effects that had.
[HTC One S] k1llacanon:
'I think I need to understand that better'-wow I thought you know everything? That's how you act anyway
[HTC One S] DrRyder:
When you enable fsync in the kernel flash in Aroma, it tells you that sudden power loss can cause data corruption. That's why I have it off cause when I had it on, I was having issues with text messages disappearing completely and other weird things.
[HTC One S] flar2:
It is normal and safer to have fsync enabled. Disabling fsync is an old performance tweak, I'm not sure how much of a difference it makes on flash memory but I have the option because some people want it. Whether it's enabled or disabled won't cause any day to day problems.

As for corruption after thermal shutdown, I don't know exactly what happens when the device shuts down. I don't know if it just turns off suddenly, or if it shuts down gracefully. A sudden shutdown is probably not the reason for corruption though. If your cpu was actually hot enough to shut down, it was probably making lots of errors which could corrupt the data in memory or anything being written to disk while it was overheating. Heat causes all kinds of problems in any electronics.
[HTC One S] touch of jobo:
fsync is not the same as journaling. Journaling is an FS feature that writes stuff to the volume that can be used to detect and recover from unclean unmounts. fsync is an OS level call that forces flushing buffers to the device immediately. disabling fsync may boost performance by not flushing buffers, but could also introduce hangs.lags when buffers fill up. Assuming that fsync is used properly, it's not wise to disable it and it will probably not give much gain.

But as long as your device is stable, disabling fsync does not cause corruption.

In my experience, undervolting can cause corruption. Data being read or (worse) written can get damaged 'in transit'. It wouldn't surprise me that high temperature can have this effect too.

Also, this it the kind of thing where not all chips are baked equally. I am on my 2nd OneS (1st one was stolost) and this one gets unstable when I undervolt. My old one I could pretty much starve and it wouldn't skip a beat even at high clocks.

-Jobo
[HTC One S] Sneakyghost:
Ok thanks for the explainer guys.

Especially on the fsync feature. I was under the impression it was another term for the ext4 journaling function.

I totally agree on the undervolting as source for corruption theory as I already had similar and reproducible experiences.

However, the (corruption through) thermal shutdown had never been an issue on my HD2's, which is the reason why it surprised me so much here. I expected the system to cope with it, e.g. in the sense that a shutdown would have been initiated earlier, before it reaches temperatures that cause instability.

Which brings me to my final question: can the emergency shutdown routine be manipulated in the kernel or is that entirely a hard-coded thing outside the kernel code?
[HTC One S] flar2:
Of course undervolting can cause data corruption. Any setup that is less than 100% stable is at risk of data corruption.

For thermal protection, some kernel devs add it in the kernel. Mine use the thermal daemon included with the ROM. You can manipulate it by editing /etc/thermald.conf and setting a lower temperature threshold. Adding it directly in the kernel is meant to reduce the overhead of having a daemon running. Either way, it will throttle the cpu when it gets to certain temperature thresholds, and shutdown when it reaches the final threshold. If the heat is simply ambient heat, such as in a parked car, no amount of throttling the cpu will prevent the continued buildup of heat and it will reach the shutdown temperature. Throttling does nothing to stop it.
[HTC One S] Sneakyghost:
Sh!t. Sounds kinda logical. Thought it rather worked like initiating a graceful shutdown before it reaches a critical stage independent of the source of the temperature. Like if the internal sensor reads a a continually rising temperature it would trigger a graceful shutdown sequence shortly before reaching the

critical stage.

So if it's only thermald.conf doing this I think that is what Zarboz had enabled in his kernel and tunable via kernel tuner, right? Does it make sense to you to add that to your kernel too? I mean so that it works with kernel tuner?
[HTC One S] flar2:
Zarboz uses showp-1984's thermal control in his kernels, though I'm not sure it would have helped you. I try not to draw attention to settings like this because somebody looking for extra performance will edit the values to pretty much disable thermal protection and wreck their phone. The intent of these is to prevent damage to the hardware. Like I said before, whenever there is excessive heat, there is a risk of data corruption, but at least your phone is not physically damaged.
[HTC One S] Sneakyghost:
That's a good attitude however i prefer education over "control" so i am totally happy to understand what things do and if i then decide to wreck my phone by abusing a certain setting despite knowing its adverse effects its my fault only and i know it.

But i also know that this way of thinking cannot be assumed for many people you also serve with your kernel. So i respect that decision, however i wish to state that i would like to have it different :D
[HTC One S] flar2:
I'll consider it, I've been planning to add a couple more things to this kernel.
[HTC One S] iangelo:
Flar2, first of all thanks for your work, as well as, for your prompt reply to all questions asked.

I am using ElementalX since v2.5 with absolutely no problems.

A few questions concerning zram :

In OP under "What is zRam", it's written :

"...zRam works best with low minfrees and high swappiness."

How low should be minfrees and how high should be swapiness ?

Also, "free" command reports 102.392 kB of swap and there should be two blocks of zRam ( zram0 and zram1 in /dev/block/ ), is this right ?

I am a little bit confused, because Kernel Tuner ( which I have not used for creating zRam ) reports, as per picture attached.

Does this refer to swap file that Kernel Tuner will create if swap file is created ? ( although this question should be placed in Kernel Tuner thread ).

Thanks in advance.
[HTC One S] a_person:
zRam

Running stock 4.1.1, zRam is enabled in elementalx.conf, but if I type free into terminal, swap size is 0. I guess this means zRam is not working? Is this a known issue on stock rom, or is there likely to be an app that interferes with it?

Thanks
[HTC One S] nihS:
my wifes phone is s-on i managed to install the kernel but now wifi is stuck on 'enabling wifi' .. -.- does anyone know how to fix it without doing the s-off thingy? Hboot is below 2.00 i think and i am on viper rom 'jellybean' please help me :) ..thanks in advance :)

Gesendet von meinem GT-I9001 mit Tapatalk 2
[HTC One S] Rampage:
You have to flash the WiFi partitions.

You can find them here:

http://xdaforums.com/showthread.php?t=1998270

Flash the sense version, flash it in the recovery and in the aroma installer you have to select the WiFi fix.

Gesendet von meinem HTC One S mit Tapatalk 2
[HTC One S] k1llacanon:
In elemental configuration file my powersave bias is 50 on kernal tuner it's 58 which is used?
[HTC One S] donb123:
latest energy rom

Didn't work. I ran the Aroma install from CWP and took all the defaults. After the white HTC screen it hangs...

Edit: Probably cause Energy is ICS not JB.. sorry
[HTC One S] rc420head:
Can't seam to get elemental 4.2 to boot on t-mobile jelly bean 4.1.1 (united 1.5 Rom version)? Is it not compatible with it?

Or is my phone just being picky?
[HTC One S] DirtySant0:
By installing this kernel and not changing any features or anything, would I gain anything from it compared to the stock tmobile USA jellybean kernel? Not really worried about OC but I am looking for better performance and longer battery life .
[HTC One S] Fruktsallad:
Well, I can tell you my system went from being almost unusably sluggish in stock to über-smooth with this kernel. It won't hurt you to try. :p
[HTC One S] Evil-Monkey:
Yup! Every kernel is like all radios. Some might work for ha, some won't. Example, my phone does not play nice with elemental. But bulletproof and it are homies now. I don't get it but I'm not worried to much.

This kernel has a bunch of cool features that has nothing to do with OC. (wish my phone wasn't lame)

I suggest you read some and try it out.

echó en Android
[HTC One S] Fruktsallad:
Indeed! These kind of inter-device variations really defy logic, but looking at how different users' phones behave to the exact same setup, there actually seems to be something to it...

Glad that my phone isn't lame. ;)
[HTC One S] gnowak84:
And does it require any extras to allow init.d script set it? I'm sure your configuration script is ok, but I still have "swep to call from inside a pocket" set to "1".
[HTC One S] joemanbui:
great work. kernel works perfectly!
[HTC One S] dragonblade1214:
I was wondering the same thing. I installed a older version of this kernel a while back and set default clock speed to 1.7 instead of stock's 1.5 and I noticed it was buttery smooth on my GoSMS (which is usually sluggish). The thing that worries me though is sacrificing significant battery life when I can deal with GoSMS's (and other apps') sluggish-ness on a daily basis with a decent amount of patience. Can anyone comment if battery life actually miraculously gets better or does a take a hit? If so, by how much?

I understand a lot of people use kernel tuner to counteract the higher clock speeds, but I don't really want to deal with random shutdowns because I'm comfortable with how stable a stock kernel is. Just want to see if I can install this kernel with default settings and then go from there.

Thanks in advance! Especially to anyone who can provide as much detail as possible.
[HTC One S] flar2:
You will likely get better battery life than stock even if you overclock this. There are other performance optimizations as well.
[HTC One S] naudmick:
Flar, no update BulletProof and ElementalX program ?
[HTC One S] flar2:
I'm going to update them, I just haven't had time.
[HTC One S] dragonblade1214:
Thanks for reply flar. Could you explain exactly how it would still do well for battery life and also the optimizations that you're referring to?
[HTC One S] d@rklink:
Would it be okay to use this kernel on a stock, rooted device? I just ran the 3.14 RUU on my TMobile One S (still have unlocked bootloader and S-OFF) and wanted to flash a custom kernel. I won't be overclocking. I had issues with the Bulletproof kernel yesterday after I flashed the zip to disable S2W. The phone would just boot loop and never load the OS.
[HTC One S] f10a:
Sorry if this has been covered already buy do I need to be s-off to install this kernel? I'm rooted, s-on, unlocked, with stock tmo jb rom.
[HTC One S] flar2:
That's strange, Bulletproof should "just work"

Is it only after flashing the disable s2w script that it didn't work?

Some people have had problems installing this with s-on. So s-off is highly recommended. It's pretty easy to get s-off on this phone
[HTC One S] flar2:
I've added many performance tweaks to the kernel and it's built with a compiler optimized for this phone's exact architecture. I've also added some battery optimizations from Code Aurora Forum, which is where linux for qualcomm chips is developed. Check the changelog for details. This kernel also allows various degrees of undervolting.

So yes, if you choose your settings wisely and test, you can have both better performance and better battery life than the stock kernel.
[HTC One S] dragonblade1214:
Thank you for the prompt reply flar and please excuse my noobish-ness with the subject of kernels.

I just installed Elemental 4.2 with the default settings so I was wondering if this will already prove to be better than stock?

And lastly, if you or anyone else could provide some advice on how to tweak settings for performance and battery, that would be great. I've never really used kernel tuner so I just need a bit of help getting started. Either that or if you could recommend settings when installing the kernel. After that, I'll be happy to experiment and share my thoughts.

Cheers.
[HTC One S] flar2:
I try to set up the kernel so you can choose settings in aroma and not have to use kernel tuner or other apps, but at the beginning you need to tweak your voltages and frequencies to find what works best on your phone.

Most people can undervolt a bit. HTC has this phone set to apply a minimum voltage of 1150. This is the vanilla option in my installer. If you don't choose vanilla there is a setting that allows you to choose a minimum voltage. Try lower voltages for better battery life. If you have random reboots, especially with the screen off, you'll know you're undervolting too much. There is also a screen off max setting, try that. Again, if you have reboots, you may have to reinstall without a screen off max.

When overclocking, go up one frequency step at a time. Do some benchmarks, if your scores are low, or it crashes, you've overclocked too much. Basically any reboots or weird behaviour is usually due to going too far with overclocking or undervolting.
[HTC One S] flar2:
No idea why it wouldn't work. Maybe uninstall it and reinstall.
[HTC One S] cat2115:
I'm on ASBS v3.0 ROM and after flashing Elemental, cpu1 is offline. I went into CPW Tweak and increase cpu1 to 1728MHz but it's didn't stay at that level. It default back to 1134MHz. The main page of Kernel Tuner said CPU1 offline. Is this normal or not? ROM not compatible or I did it wrong?

I flash rom w/flash gui, then full wipe w/twrp v2.2.2.0 then flash the rom, then flash Elemental then reboot.

see pic

Edit:

If I disable Power Saver, CPU Tweaks is now on 1728Mhz for both CPU0 & CPU1. And Kernel turner main page still said CPU1 offline and CPU0 at 384000. Is this okay?
[HTC One S] flar2:
CPU1 is normally offline, it only comes on if there is work for it to do. A lot of people wonder about that, and there are a bunch of dual core mods out there to force it on all the time, but I don't recommend them.

If the max is changing to 1134, you probably have power saver switched on.

Another note about power saver mode ( I think it might have been mentioned earlier in this thread): If you switch power saver "on" the max cpu frequency changes to 1134MHz. When you switch power saver back "off" your max cpu might revert to 1512MHz, which is the default stock frequency. You can change it back to whatever you want with kernel tuner, no frills, etc. If you reboot the max cpu frequency will return to your original custom setting.
[HTC One S] bgmarian:
dont work with this [ROM]{S4}[ JAN-6]=UPDATED=Jellybean_Nonsense Build 3|Sense Free|4.1.1 :(
[HTC One S] dr_rick13:
tried it today with Nonsense.. it works with OC too.
[HTC One S] Darknites:
Flash the rom then flash the first zip rootrider talks about here and then the kernel zip.
[HTC One S] AmazerG:
Does this kernel support callrecorder??
[HTC One S] dr_rick13:
I have this kernel working with Nonsense JB, and works fine but when I try to make it 1890 Mhz, my phone freezes and restarts.. but it works fine with 1.7.. any ideas?
[HTC One S] flar2:
No

You just can't overclock that high. Most people are reporting that they can't overclock as high with the module as they can with a true custom kernel.

Next version of this will have some voltage options, you might be able to run higher with some extra voltage.
[HTC One S] dr_rick13:
Thanks man.. other than, everything is good, getting almost a day and half of battery with 4+ hours screen time and its pretty stable. Thanks for the work.
[HTC One S] ickedmel:
When this kernel flashes successfully what kernel version should it show in about phone? Is it the same as stock kernel or ?
[HTC One S] rootrider:
Yes.

It's the modules, that make the difference. It' a modded stock kernel.
[HTC One S] yz250il:
I'm on TD-9.1.0 works great!

Thanks!
[HTC One S] RockR172:
Dunno why, overclocking doesn't seem to work on my phone. Running Blackout Ville+, but only stock frequencies appear in the SetCPU app. I checked in the elementalx.conf in /system/etc and it does have line 'FREQ=1728'.

Also have the modules in /lib/modules... Hboot 1.06 btw.

Dunno what em doing wrong..
[HTC One S] Darknites:
Flash the first zip here.
[HTC One S] maluus:
I had a question: is it possible to remove all the other files and only flash wp_mod? and if it is then may supersu work without problem?
[HTC One S] _-..zKiLLA..-_:
Would this kernel have better battery life than Jelly Bams stock kernel? (with the same clocks)
[HTC One S] Darknites:
This not for AOSP roms.
[HTC One S] _-..zKiLLA..-_:
oops didnt notice

hows battery life compared to stock senses kernel? lol
[HTC One S] Darknites:
Seemed about the same but didn't really test it for that.
[HTC One S] d@rklink:
Yeah. Everything was fine with Bulletproof until I flashed the disable S2W zip file. I dont like S2W because my phone screen will constantly turn on as the phone is in my pocket which was causing really bad battery drain when running AOSP ROMs. I konw I can set the file in andoid_touch to 0 to disable it, but it re-enables after each boot.

I like the Aroma installer for the ElementalX kernel, I just wanted to make sure it was okay to flash on a stock ROM (especially since I dont plan on overclocking).
[HTC One S] Mr.Nigma...:
can anybody post 3d antutu results? cause i only get around 2900-3000 no matter oc or not. why is this? in stock i used to get 3400-3500
[HTC One S] Arijum:
You shouldn't trust in any benchmark results because they only measure the cold 3d-2d performances, without any relation to the relevant specs of the CPU.

The S4 is an brilliant chip which offers perfect hidden features (fast charging, Iow battery consumption, GLONASS...)
[HTC One S] anant210:
Mine is 3670 with viper 2.2 and Elemental X 4.2 with 50 mv undervolt and 1.5 ghz
[HTC One S] Mr.Nigma...:
ps

only 3d or 2d included? 0_o

ps: 50 mv undervlt from 800mv or from 1100mv (stock)