yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] flar2:
Update!!!

I removed fauxsound, as it has been buggy for months. As I explained earlier, I've replaced it with franco's sound control. It's simple and it works, so why re-invent the wheel? I made a small change to sound control so if all values are set to 0 it will not access the sound registers at all. That should alleviate any noise that people hear with sound control + v4a and other sound mods.

EX Kernel Manager version 2.44 (released today) or later supports the new sound settings.

Download

ElementalX-N5-6.11

Changes:

-remove fauxsound

-add sound control (@franciscofranco)
[Nexus 5 Original Android Development] rhamej:
In the new sound control page, the first two options are headset. Is that intentional?
[Nexus 5 Original Android Development] flar2:
Wait for the update, I released it a few hours ago.

Without the update, the new sound control won't work properly.
[Nexus 5 Original Android Development] xmaciek82x:
This is me right now:

I'm using ElementalX with Atoms and V4A. No more issues!!!!!! Thank you very much. Sending a donation right now. Won't be too much but I'll send another one late February.
[Nexus 5 Original Android Development] Bob V:
[MENTION=4684315]flar2[/MENTION] - am a bit unclear about the Nexus 5 new sound control in the latest ElementalX version 6.11 (which I just downloaded and flashed).

Up to now have been using ElementalX w Cataclysm on the Nexus 5 w/ fine results. Initially, I found the stock sound levels on the N5 too low/soft for my tastes, so was happy to install the Faux Sound app from play store, which worked seamlessly to boost the levels with your Elementalx kernel (that is, up to the last version - 6.10).

To my dismay, faux sound doesn't work with version 6.11. I get a message: "This kernel is NOT SUPPORTED.Ask developer to patchOPEN SOURCE Sound Control Code to their kernels." (He gives the github address.) I understand you've removed it. What I don't understand is what you've replaced it with. How can one boost the stock levels, as was possible with FauxSound heretofore? Or must one do it solely with the kernel manager? If you could set me straight, I'd appreciate it. Thans for all your work.

Bob V
[Nexus 5 Original Android Development] nathanchance:
He replaced it with Franco's controls. You can try using an app like Kernel Adiutor to see if that will work. Otherwise, EXKM will be the way to go unless he provides the sys paths.
[Nexus 5 Original Android Development] RusherDude:
Hi [MENTION=4684315]flar2[/MENTION], on v6.11 on a n5 on 6.0.1 mmb29s im still having the problem where the camera launch gesture is always resetted to "disabled" after a reboot, even if the set on boot option is enabled (and this option remains enabled after the reboot).

There is any way to force this setting to be always enabled even after a reboot?

Thanks a lot!

---

EDIT: Seems to be fixed after updating the ElemX app to the latest version of today.

Thanks!!

---

EDIT2: The problem is back there again after next reboot :(
[Nexus 5 Original Android Development] creeve4:
Where can I find more information about Franco's sound control? I've searched his kernel thread and googled, but I'm not finding much. His code on Github is also lacking in comments.

I would like to know more about how it works (I've tried reading the code, but I'm not getting it), what the values are, etc.
[Nexus 5 Original Android Development] hjjiang:
Hey any ez way to get V4A working with enforce SELinux and elemental x? Can I flash this? http://xdaforums.com/google-nexus-5/themes-apps/v4a-viper4android-fx-flashable-zip-t3201840
[Nexus 5 Original Android Development] BelzIgoh:
You can check this thread.

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

Im using V4A from that thread and work great.
[Nexus 5 Original Android Development] bmccoy11:
+1, I'd like to be able to adjust the digital/analog gain like I could with fauxsound.
[Nexus 5 Original Android Development] spdrosin:
I hope this update will fix that random sound bug: after a phone reboot or in the middle of playing a game sound was not working at all and after a couple of minutes/hours(?) was back there all of a sudden.
[Nexus 5 Original Android Development] BreckZeBoulay:
[MENTION=4684315]flar2[/MENTION] :

I use MultiRom on my N5.

- primary rom is AOSP without Google Services

- secondary rom is stock Google rom

My idea is to buy EX Kernel Manager using secondary rom (with Playstore), copy the apk and then manual install of the apk in primary rom.

Is it possible ?
[Nexus 5 Original Android Development] Steve46xda:
Hi guys, last night I flashed ElementalX over Cataclysm..I noticed a high battery drain (I didn't enabled DT2W and S2W)...can you please help me telling what should I do in order to maximize battery life? Is there a post/thread with some setup of governor, frequencies, voltages, etc...so that I can apply them to my phone?

Thank you in advance!
[Nexus 5 Original Android Development] till22:
If you use the same Google account you can install it on various devices (I have it installed on 3), but you can't copy the .apk and use it with a different account because it checks the licence upon install (and a few times later on, but nobody but [MENTION=4684315]flar2[/MENTION] knows when exactly :p).
[Nexus 5 Original Android Development] magnamentis:
just make sure that all kernel settings are default to begin with and let it settle 1-2 days, it will eventually be ok because the kernel does not cause drain, using it over 3 years on several devices and the culprits are usually apps that perform first events. one example, not saying it's that but as an example would be media scanning which depending on media on device can take a lot of time and consume 5-10% battery during the first few minutes and there are other similar tasks where the app (user apps mostly) have to establish proper "relationship" with the new environment. that was laymen talk which should make it easy to understand LOL
[Nexus 5 Original Android Development] Steve46xda:
Thank you very much! Do you think that acting on voltages, frequencies, governor, ...I will be able to improve batterylife? Can you please tell how should I set those parameters in order to get maximum batterylife while keeping performances?
[Nexus 5 Original Android Development] nathanchance:
Stock values are what that is aimed for, the perfect balance of battery and performance. You can tweak towards one or the other but the default is what you want if you want both honestly.
[Nexus 5 Original Android Development] ekowwillis:
Kernel panic

Never had a kernel panic for a long time until a few hours after flashing EX 6.11.

I couldn't capture any log because it was out of nowhere. Monitoring the phone now for any logs.

But just to to do the ff:

1. inform [MENTION=4684315]flar2[/MENTION], may be something in recent update.

2. All others can watch out, it might happen to you.
[Nexus 5 Original Android Development] grep_i:
Thanks for the warning can you tell some specifics about your configuration like unsupported rom or stock, recovery and version, etc.

Purely based on you not being very specific I would say you messed something up yourself.

If you really want [MENTION=4684315]flar2[/MENTION] to solve anything you really need to be more specific or in possession of some log files.

Now it's like 'something could be wrong, can you please fix anything'.

I tried to install it myself and it worked flawless as usual.

Installing custom kernel is always at your own risk so actually it is a little bit meaningless to warn people that this could happen.

A better contribution would be to be very specific about your own case and ask for help.

Try to recall all your steps and post it here it might be someone can help you out.

Maybe your English is not that good you're saying never had for a long time.

Either you did had one once a long time ago or you never had one and this is your first.
[Nexus 5 Original Android Development] magnamentis:
of course you will be able to exchange battery life for performance. what we get out of the box is very well balanced and to get significant better battery life you'd definitely have to trade in performance and undervolting, whenver it was thoroughly tested, did either have no significant effect and at times even negative effects. then there are battery saving features built into the kernel which you can activate with the EX app.

what could give you better battery would be max idle frequency, boost frequency, boost time and the likes, just don't set on boot before you're sure and always make a nandroid before trying extreme settings. always keep in mind that boot process is one of the more demanding ones, hence it can happen that you device will work well and won't get out of a bootloop due to the heavy load on boot.

in short, yes you can play, but with care and consider the side effects because there are no miracles related to the laws off physics, work need power, less power = less work done (simply said) LOL
[Nexus 5 Original Android Development] ekowwillis:
1. I'm on Stock 6.0.1 MMB29S with Cataclysm Mod (Cataclysm for Nexus 5[Jan 05 - Stable])

2. Was on EX 6.10 and only upgraded this morning

As for steps I was upgrading Chrome Beta when it happened.

NB:

I only had kernel panic when I was on EX versions lesser than 6.0 on Lollipop But I haven't had any since upgrading to Marshmallow and EX version 6.0 and above.
[Nexus 5 Original Android Development] magnamentis:
all this can be avoided and accelerated if you will take a kernel log when it happens the next time while it's well possible that it was a one time event. the kernel as such does not have this kind of issues and without kernel log nobody can say anything but to guess and ask for more input.

kernel logs are now in sys/fs/pstore
[Nexus 5 Original Android Development] Progressive82:
Nice update. People hear me good during call. Nice. Thank you.
[Nexus 5 Original Android Development] xmaciek82x:
Flar2,

Quick update. Unfortunately I celebrated too early. Even with .11, static is there. All happens when CPU goes down to 300MHz. I tried adding more volts around 300Mhs but didn't help. If my min CPU is 422Mhz then static is not present but as soon as I reboot, the 422Mhz setting sticks EXKM but CPUs still go down to 300Mhz. I also played around with the new Volume settings and doesn't change anything with the static issue. At this point thanks for the great kernel but something with my phone/headphones/audio apps won't let me run it as a daily. You been very helpful trying to resolve the issue but no luck. Unfortunately I'll need to run a different kernel since I listen to music all the time at work.
[Nexus 5 Original Android Development] techinv:
Have you tried different governor options in EXKM? I've been experimenting a bit with this since there is a lot of new development in the Viper space. I've found that the ElemX governor setting results in moderate to heavy popping while listening to audio processed through V4A + Dolby/Atmos/DD. Using ondemand or userspace governor setting eliminates the popping on my device. A workaround I guess, but pretty easy to use.
[Nexus 5 Original Android Development] BabboDemonio:
Hi [MENTION=4684315]flar2[/MENTION], are you going to make the editing of sound parameters in elementalx.conf possible? Thanks
[Nexus 5 Original Android Development] HiM@L:
this will really help.
[Nexus 5 Original Android Development] xmaciek82x:
Thanks. Changing governors sometimes helped. I really want to run ElementalX governor since the others are just regular, unmodified governors. I'll try again in the near future. I was getting the popping noise when even disabling V4A and not installing Dolby/Atmos/DD which is odd. I have some cheap headphones somewhere, I'll try them next time I install this kernel again and see what happens.
[Nexus 5 Original Android Development] Jack_92:
Hi, I've a request

I use elementalx on my nexus5 and it works very fine :). I'm not an expert but I would to know if it is possible to add smartassv2 governor in this kernel. I read that this governor combines performances and battery saving and I would try it with elementalx :) is it possible?

Thanks, have a nice day!
[Nexus 5 Original Android Development] Arstoien:
It's often asked in kernel threads to add some governors. The thing is, the kernel devs heavily customise the default (or most/all) governors they provide in the kernel, and if you try one governor on one kernel and (seemingly) the same governor on another kernel, you may see different results. So don't go by the governor name as much as comparing real life performance/battery with the default governor. Also the devs usually decline requests for adding X and Y governors – as heads up.
[Nexus 5 Original Android Development] flar2:
Fauxsound is buggy on this device and I finally decided to do something about it. You can still change the sound levels, just not with the fauxsound app. You can use my app or other apps or edit values directly.

They are all here and take values from 0 to 20.

/sys/class/misc/soundcontrol/

It's a sysfs interface for changing the values of hardware registers that control gain for various things like the speakers, headphones, mic, etc. It requires a bit of reverse engineering to find the registers that correspond to each component, and the correct values for adjusting the gain. On this device, the values also have to be locked, because the hardware constantly tries to reset to its own values. Faux's and franco's drivers do the same thing, just one is implemented a lot more cleanly and works with less fuss.

No, sorry. The installer is already complicated enough and apps are a much better/easier way to do it. Or see above for sysfs paths.

I will see if this can be added, but this knob was the most problematic with fauxsound. It would never stick.

Hmm, I'll check into it.

You will need Google services and your Google account as it is a paid app and it is tied to the purchasing account. But otherwise you can install on as many devices/ROMs as you want.

This kernel is extremely stable and nothing significant changed in the latest version. You should never have reboots. And if you do, it's an isolated thing, not something that would occur regularly or affect many users.

No, I don't add strange governors from years ago. The default governor is the best balance.
[Nexus 5 Original Android Development] flar2:
Thanks for the followup. Perhaps it's the max screen off frequency, try changing it to max. The stock ondemand governor is also not too bad. It's a bit harder on battery but performance is excellent.
[Nexus 5 Original Android Development] hjjiang:
thanks for the link! i flashed V4A+Atmos and it works great!
[Nexus 5 Original Android Development] Bob V:
Thank you for your answer, [MENTION=4684315]flar2[/MENTION]. Just needed to know whether/how I could simply boost the N5 volume in lieu of using fauxSound.

FWIW, I purchased that app a long while ago as a result of someone's recommendation in this thread. Who could know it would turn out to be so buggy?

Should have waited, and instead purchased your own kernel manager app when it came out – which includes all these sound controls, as well as all the other tweaks that, honestly, I don't need. Will probably wind up doing just that. Again, thanks...

Bob V
[Nexus 5 Original Android Development] Tarcis:
off topic, trying to delete post.

Sorry

Hi flar, congrats on the great project, maybe(most definatelly) this isnt a problem you can solve with your code, but I don´t know what else to do. Maybe some gurus here can help me also.

I know this is not really elementalx related but if anyone could help get me on the right place that would be enough and I would be thankfull.

BTW, this problem also happened to me with stock everything, no root, no kernel, no nothing (except oem unlock).

Sometimes (not everytime, but a lot of times, so it´s bothering) when I click a media (photo or video) in whatsapp, and I press the back button, whatsapp freezes for about 30 seconds, I can pull the drawer and use the phone normally, but if I try to use whatsapp, it just hangs there and eventually comes back. This started happening with Lollipop and older versions of whatsapp, but it´s still bothering me even after a clean flash and Im now on 6.01 with Elemental X 6.11 on my Nexus 5. I´ve tried diferent default media players but same thing happens. I contact whatsapp and at first they blamed my phone being modified (rooted), but it happened after a clean stock flash also. Please can anyone help me diagnose this?

I saved a video of the problem so you can see what I mean: https://plus.google.com/+TarcísioLopesGFC/posts/2fum2Nd2RY5
[Nexus 5 Original Android Development] joeyfong:
Deleted
[Nexus 5 Original Android Development] creeve4:
I've been playing around with the new (to this kernel) sound control and I have one more question:

Is Headset Volume really Headset Gain? I.e. it adjusts the gain of audio output by the phone.
[Nexus 5 Original Android Development] marcusva79:
What value is everyone putting there sound to? I have mine at 2 and didn't really hear a difference.
[Nexus 5 Original Android Development] grep_i:
It's sound more that you have kernel panic due to chrome beta in combination with cataclysm rom.

Is it for instance still possible to boot to recovery.

My guess would be to remove the chrome package through ADB.

adb shell "pm list packages - f"

To find the name of the package

adb uninstall packagename
[Nexus 5 Original Android Development] occtec:
I usually set mine to 8 :)
[Nexus 5 Original Android Development] jazzh:
Someone already asked the same, but I didn't quite get it !?!

http://xdaforums.com/nexus-5x/help/cataclysm-thread-closed-t3301984
[Nexus 5 Original Android Development] techinv:
I don't use PushBullet, and sorry that this is off-topic for Elemx thread, but someone posted this in the Q&A forum today:

"Cataclysm development halted indefinitely: Dear users, after spending over four years on this project almost daily, apparently i'm still questioned over the originality of it.

I came to the conclusion that this is not fun anymore and i don't really deserve this attitude, so i've decided to spend my time on something else from now on.

If you feel offended by this decision and you've donated in the past 2-3 months (unfortunately paypal logs don't go over), feel free to send me the transaction id and i'll charge it back, like already did for the donations received today to cheer me up.

Thank you for the great moments spent together.

Cheers, atl4ntis."

Sucks........
[Nexus 5 Original Android Development] Progressive82:
[MENTION=4684315]flar2[/MENTION] Sorry for long catlog. Camera doesn't open now but phone vibrate one time while in charging, airplane mode, screen off, elementalx powersaving mode.

pastebin
[Nexus 5 Original Android Development] spdrosin:
Nope, that bug still there.

Anyone else facing Cataclysm+ElementalX random "sound offs" ?
[Nexus 5 Original Android Development] flar2:
I can't reproduce this. Why don't you just turn off the camera gesture?

I've never been able to reproduce any sound issues. The sound mods in the kernel should be completely harmless. They simply change a number in a hardware register. Everything else about sound in this kernel is stock. Essentially, if you leave the sound settings alone, the codepath is identical to stock.
[Nexus 5 Original Android Development] Progressive82:
camera gesture is already disable in exkernel manager. Enabled in stock instead. I try to disable it in stock.
[Nexus 5 Original Android Development] Progressive82:
...and what do you say about powerHAL error in logcat?

Edit: powerHAL error comes with custom hotplug (without modification). It doesn't happen with mpdecision.
[Nexus 5 Original Android Development] chazall1:
My sound functions fine. I had issues with flauxsound in your kernel. Thanks for better sound intagration.
[Nexus 5 Original Android Development] flar2:
It's normal without mpdecsion
[Nexus 5 Original Android Development] BIade:
Hello master! I got a strange wish, and thought maybe you might help me?

First of all:

I love ElementalX! Can't live without your Kernel anymore!

Most awesome feature is DT2W on bottom half screen WITH timeout. SOO NICE

Thank you soo much for your work!!!

My Question: (very offtopic - I will delete this on your wish)

Is it somehow possible, to keep the function of "ok google" active for the time DT2W is active?

"Ok google" on screen off is possible during charging. (Because of the battery drain, i think its not available when not charging)

Since your idea of having a timeout for a batterydraining-thing is THE solution, i thought maybe you know how to achieve it for "ok google".

Gratefully

Blade
[Nexus 5 Original Android Development] xmaciek82x:
Hi flar2. I had the static noise when using ondemand governor as well. I ask played around with screen off, as well as not using the ElementalX cpu mod from Aroma settings. Pretty much I tried to keep the settings as close to stock governor as possible. Static was just always there. I guess whatever changes you added to all governors around 300mhz is causing this. Sorry, but I'm not a developer so can't provide much technical feedback.
[Nexus 5 Original Android Development] rubaboo:
I'm on Franco currently, and would like to switch back to ElementalX. Which partitions do I need to reflash from stock before I install ElementalX?

Edit: I also have systemless root and Xposed, if that matters.

Thanks!
[Nexus 5 Original Android Development] flar2:
system and boot
[Nexus 5 Original Android Development] nathanchance:
Should need just the boot.img, since Franco's kernel doesn't modify /system. You can flash the system.img to be super safe though. You will want to flash boot.img, SuperSU then EX.
[Nexus 5 Original Android Development] rubaboo:
Shouldn't SuperSU come after EX?
[Nexus 5 Original Android Development] nathanchance:
Technically, it can. However, it is recommended to have SuperSU patch the stock boot.img because SuperSU backs up the unpatched kernel before patching it. EX is in the AnyKernel format so it doesn't override these changes like kernels with a full boot.img.
[Nexus 5 Original Android Development] flar2:
If you do that, the most likely outcome will be that SuperSU restores a previously backed up boot.img.

As a rule of thumb, root before flashing EX

I've made no changes affecting that in recent versions of the kernel.
[Nexus 5 Original Android Development] t3al:
Hello, I had a huge drain today morning (without using the phone) and can't find the issue.

This is the first time this happens. Wakelock detector shows normal results.

From what I remember the only thing that got updated today was EXKM.

Any ideas or someone with a similar issue?
[Nexus 5 Original Android Development] flar2:
Probably Google or Facebook keeping it awake.

99% of the time this is fixed by rebooting.
[Nexus 5 Original Android Development] magnamentis:
facebook alone is responsible for 10 of the 23% awake anything but normal and it's a known battery hog anyways.

further make proper stats because they are somehow not consistent and difficult to read. charge the phone to full and leave it overnight and first thing in the morning take shots of the stats. WLD has it's advantages but there are way better battery monitioring apps. i'm as well using WLD but complementary. BBS and Battery Monitor Widget Pro proved more info and especially you'd be better of with mA reading instead of only %.
[Nexus 5 Original Android Development] galakanokis:
Life got so much better when I dumped facebook from my phone and so did my phone's performance and battery life.
[Nexus 5 Original Android Development] t3al:
Thanks, but I think you are missing the point. It's not that I installed Facebook last night, hence the drain. I've been using those exact apps for as long as I remember, but this drain never happened before.

[MENTION=4684315]flar2[/MENTION] you said a reboot might fix this. I did that already, will leave the phone to fully charge and report back if I see it again.