yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] galakanokis:
I do feel like the levels are a bit lower, I use to set headphone volume to 3 or 4 previously (old implementation) but now I am around 8 to get an equivalent level. I have not played with Headset gain, assumed it was for bluetooth or soemthing else.
[Nexus 5 Original Android Development] creeve4:
After reading franco's commit message for sound control, I'm a little confused:

What does he really mean?

1. A value of 1 for headset gain/volume will increase the gain and any values greater that 1 will then decrease the gain

or

2. All values for headset gain/volume will decrease the gain

This could be part of the problem I was experiencing. I'll do some more experimenting tonight.
[Nexus 5 Original Android Development] galakanokis:
All values will decrease. I think it is an attempt to lower the noise floor to reduce the noise level but it will ultimately reduce the overall level as well. I would only play with it if you have your headphone volume up to high and it is introducing noise/static.
[Nexus 5 Original Android Development] creeve4:
[MENTION=4684315]flar2[/MENTION] Is it possible to adjust this so that the headset gain can be increased?
[Nexus 5 Original Android Development] fantamadnesss:
For me the audio feature works well, maybe not effective as faux but still good. Using EX Kernel Manager!
[Nexus 5 Original Android Development] onesolo:
I have set speaker sound to a value, on EX Kernel Manager, but everytime I reboot, that option reset to 0 (zero).

Any ideas?!
[Nexus 5 Original Android Development] looney_tkp™:
sometimes my kernel settings get stuck and i can't make changes to certain settings...what causes that pls ?
[Nexus 5 Original Android Development] flar2:
Never heard of that. Can you explain?
[Nexus 5 Original Android Development] looney_tkp™:
Like temperature throttle is Elementalx, even when i change it to stock it still stays on elementalx

and hotplugging is mpdecision, when i change it to custom hotplugging it still stays on mpdecision

even changing of cpu frequencies... now when i turn on powersave instead of the frequencies reducing to 1267ghz its goes to 720mhz and gets stuck there till i reboot before it increases to 2200ghz

this happened sometime ago and i reflashed my rom..it just started happening about an hour ago

i hope this is clear enough [emoji4]
[Nexus 5 Original Android Development] creeve4:
Following these steps I am able to create bugs with franco's sound control on EX 6.11:

Scenario 1:

1. Turn off "set at boot" for all sound control settings and reboot

2. Plug in headphones or connect phone via 3.5 mm cable to speakers

3. Play some music (I've sued Spotify and Google Music)

4. Set media volume to maximum

5. Open EX Kernel Manager

6. Increase Headset Volume

7. Decrease Headset Volume

Result:

6. Volume increases

7. Volume does not decrease

Scenario 2:

1. Turn off "set at boot" for all sound control settings and reboot

2. Plug in headphones or connect phone via 3.5 mm cable to speakers

3. Play some music (I've sued Spotify and Google Music)

4. Set media volume to maximum

5. Open EX Kernel Manager

6. Increase Headphone Volume to 4

7. Increase Headset Volume to 4

8. Decrease Headphone Volume to 0

9. Decrease Headset Volume to 0

Result:

6. Volume increases

7. Volume does not change

8. Volume decreases

9. Volume increases

Scenario 3:

1. Turn off "set at boot" for all sound control settings and reboot

2. Plug in headphones or connect phone via 3.5 mm cable to speakers

3. Play some music (I've sued Spotify and Google Music)

4. Set media volume to maximum

5. Open EX Kernel Manager

6. Increase Headset Volume to 4

7. Increase Headphone Volume to 4

8. Decrease Headphone Volume to 0

9. Decrease Headset Volume to 0

10. Unplug headphones, then replug and play music

Result:

6. Volume increases

7. Volume increases

8. Volume decreases

9. Volume does not change

10. Volume decreases

These are a few of the examples of the bugginess of franco's sound control.
[Nexus 5 Original Android Development] occtec:
Just wondering if there is any specific order in flashing this kernel over the stock kernel included in chroma?

Edit: Chroma has SuperSU 2.67 baked in.
[Nexus 5 Original Android Development] nathanchance:
Nope, just flash EX over the stock kernel, it works with any SuperSU.
[Nexus 5 Original Android Development] occtec:
Thanks man, I knew you'd reply, lol...

Just wanted to be sure ;)
[Nexus 5 Original Android Development] grep_i:
Make sure that the stock kernel included in chroma is not an custom kernel otherwise flashing this kernel could give you problems.

I know from experience that the default kernel used in chroma used to be Franco kernel I'm not sure if that is still the case.

So make sure you are on Google Android stock kernel before flashing ElementalX
[Nexus 5 Original Android Development] occtec:
Nah, all good never had an issue before ;)
[Nexus 5 Original Android Development] looney_tkp™:
i think chroma has its own kernel

it would be unsafe to flash this kernel on chroma rom
[Nexus 5 Original Android Development] occtec:
I've flashed it without any issues and like I mentioned above, never had any issues before ;)
[Nexus 5 Original Android Development] flar2:
The boot.img is not enough, the problem with some roms is that they remove the mpdecion and/or powerhal, which elementalx expects to be there. I don't know if chroma does this or not.
[Nexus 5 Original Android Development] flar2:
I looked at this in-depth, and the headset_gain settings screws everything up. If you never touch that it works correctly.

I also looked at the fauxsound mod, and the equivalent setting, headset PA gain, also doesn't work correctly. In the faux mod, PA gain has an effect, but it's very inconsistent. It doesn't even work correctly with faux's app.
[Nexus 5 Original Android Development] Hatshipuh:
Chroma has stock kernel ever since 5.1, hence the occational posts why notification light isn't working.
[Nexus 5 Original Android Development] creeve4:
Thanks for checking this out. I tried reading through the code, but I don't know enough to understand everything that is going on.
[Nexus 5 Original Android Development] NinetoFive:
Last post I could find related to this was someone back in lollipop. I'm also running latest versions of Catalysm+ElementalX

Does anyone experience consistent crashes with some apps after a few minutes of running?

For instance, after watching youtube for a few minutes, my phone becomes to become quite laggy and then it just crashes. Consistently happens, usually after less than 5 minutes of watching. Some other video services or games do this as well, so it leads me to think it has something to do with the phone heating up and and being throttled and crashing. I left all ElementalX settings at default though

If I don't do anything intensive, the phone will be fine for days at a time. I don't even know how to diagnose this
[Nexus 5 Original Android Development] looney_tkp™:
[MENTION=4684315]flar2[/MENTION]

i found out what caused that problem

i updated busybox and it installed into system/bin instead of system/xbin...

i later installed into xbin and it returned back to busybox 1.23....and i could make chnges again

p.s..updating busybox into xbin doesnt stick, it still returns 1.23 after reboot, and in system/bin where it sticks, i cant make chnges to kernel
[Nexus 5 Original Android Development] grep_i:
Is it possible you have no systemless root.

I have busybox 1.24.1 installed in 'su/bin'
[Nexus 5 Original Android Development] looney_tkp™:
i have systemless root, and busybox 1.24.1 can be installed in system/bin..but it messes up my root as in certain apps cant have root access, and some parts of ex kernel manager dont work

and when i install in system/xbin it installs and works but after a reboot is returns back to 1.23.1
[Nexus 5 Original Android Development] grep_i:
Try su/bin you have after all systemless root so don't try to keep using system.

Try and see if this solves your issue.
[Nexus 5 Original Android Development] pierrebe:
I downgraded to 6.09 (https://www.androidfilehost.com/?fid=24369303960683007) because the sound through headphones was bad and low under 6.11.

The difference is easy to hear! For me Franco sound is much better than fauxsound.
[Nexus 5 Original Android Development] flar2:
What parts of EX Kernel Manager don't work?

I think something is wrong with your setup, everything works for me with or without busybox.

I think you have it backwards.

Anyway, fauxsound will return in 6.12, but with improvements.
[Nexus 5 Original Android Development] Gordietm:
Any recommendations on i/o scheduler, I have governor on elementalx and I noticed the default scheduler was deadline. I've changed it to fiops. But what would be best for a nexus 5?
[Nexus 5 Original Android Development] flar2:
I found the issue with crackling and popping while using viper4android has nothing to do with the sound drivers.

The governor is staying on min freq while playing audio and it's causing those glitches. The reason I couldn't reproduce is because this doesn't happen using the default setup with mpdecision. It happens if you choose custom hotplugging.

The good news is, I can fix it that too. Then there won't be anymore issues with audio. I'm also going to update the sound screen in EXKM.
[Nexus 5 Original Android Development] magnamentis:
it really depends on usage a bit but then FIOPS is a good choice, NOOP is second choice for my while on some devices like the nexus 6 it's recommended to stay with default (deadline) to help avoid RRs. the RR history of the "6" is long and there is no once and for all workaround but for me they have stopped ever since going back to deadline, raising readahead to 2048 and overvolting by 10mA, while i'm not saying that one of those is the sole and only solution. deadline however seems to be a must there, hence i consider deadline as very safe, which is perhaps the reason why it's the default scheduler.
[Nexus 5 Original Android Development] marcusva79:
Saweet an update. Looking forward to it. Using the Franco apk should it be okay to adjust sound settings when you update to 6.12 or is it ideal to get EX apk?
[Nexus 5 Original Android Development] flar2:
You'll need the EX app, as I am reverting to faux driver. EX app handles both, and it will also handle the headphone power amp gain correctly (meaning it won't keep resetting and it will apply on boot).
[Nexus 5 Original Android Development] marcusva79:
Okay for sure. Will be getting the app today when the new release is out. Thanks Flar2 for keeping this gadget alive. :cyclops:
[Nexus 5 Original Android Development] flar2:
Update!!!

Fauxsound is back, and it's fixed and cleaned up. No more worries about settings reverting, and the headphone power amp gain works correctly now.

I also fixed a problem with crackling and popping sounds during music playback when using Viper4Android. I can make slight adjustments if it still occurs, but I tested it pretty thoroughly, so it should all be gone. Should be snappier when using the custom hotplugging too.

Download

ElementalX-N5-6.12

Changes:

-revert to fauxsound

-fix audio glitches
[Nexus 5 Original Android Development] marcusva79:
App bought.
[Nexus 5 Original Android Development] creeve4:
[MENTION=4684315]flar2[/MENTION]

When you have time, will you please look into patching adbd so that it can run as root?
[Nexus 5 Original Android Development] flar2:
I'm very busy, I need to stick to the projects I've already started.

Why do you need this anyway? I use adb shell as root all the time.
[Nexus 5 Original Android Development] wangdaning:
I thought adbd was default accessible on all N5 EX kernels, am I missing something (could be, haven't went to MM yet, I am slow).
[Nexus 5 Original Android Development] grep_i:
It is accessible if you are referring to the post of creeve4 he wants to use the command adb root which is equivalent with going to custom recovery and then use adb because then it is automatically in adb root mode
[Nexus 5 Original Android Development] wangdaning:
But isn't that the same as adb on a rooted device, which you would need for adbd insecure anyway. I guess I was/am just confused what was being asked.
[Nexus 5 Original Android Development] looney_tkp™:
Guys, am sure this is answered somewhere on the forum but i can't find it so please pardon me for asking

what is insecure kernel ? i see it when flashing through Aroma installation
[Nexus 5 Original Android Development] wangdaning:
Insecure allows you to run adb shell su in the rom. This does vary, and it may do other things, not sure. That is basically the jist of it, lets you execute su shell commands in the operating system. I think supersu has relied on insecure boot.img for a while to get binaries into the system. I am sure those that know more than me can go deeper.
[Nexus 5 Original Android Development] looney_tkp™:
ok so its advisable to enable insecure kernel when flashing ?

i disabled it when flashing 6.12 cos i had no idea what it was
[Nexus 5 Original Android Development] wangdaning:
If you want to run shell su commands I guess, yes.
[Nexus 5 Original Android Development] BabboDemonio:
Sorry for the little off topic but I read that the update of elementalx fixed the behavior of viper4android so I installed it on pure nexus rom but it doesn't seem to work. Does the rom have to support it? Thanks
[Nexus 5 Original Android Development] nunoleite46:
Running 6.12 over stock + cataclysmMod. Thanks
[Nexus 5 Original Android Development] magnamentis:
you can upgrade / update LOL

http://xdaforums.com/general/rooting-roms/info-cataclysm-mod-dead-t3307703#post65178534
[Nexus 5 Original Android Development] spdrosin:
Have been using ElementalX for months with Cataclysm.

Now that Cataclysm is over and jumped to PureNexus would this kernel be a good recommendation? Are there any people here using that combo? Thanx in advance.
[Nexus 5 Original Android Development] magnamentis:
sure, shoot ahead, sent PM as well
[Nexus 5 Original Android Development] vickyjusme:
I flashed 6.12 express over 6.11, now I am hearing low sound from my right headphones. tried it on my brothers phone and it works well. Can someone help me?
[Nexus 5 Original Android Development] flar2:
No don't click it, you don't need it. It actually doesn't do anything.
[Nexus 5 Original Android Development] creeve4:
How are you able to use adb shell to push files to /system?

D:\Downloads>adb shell
shell@hammerhead:/ $ su
1|shell@hammerhead:/ $ mount -o remount,rw /system
mount: Permission denied
255|shell@hammerhead:/ $

I'm running stock (factory image) 6.0.1. I want to be able to push files to /system because I am working on a few (Calendar and Messaging) apps that I am building from source and it's much more convenient to be able to quickly push them to system for a quick test as I make changes.

Edit: adb shell is now working in root mode, I forgot that I had not granted su permissions to my PC yet. How to you push files with adb shell?
[Nexus 5 Original Android Development] yerfenuj:
Hi ex kernel. I did dirty flash my pure nexus rom and ex kernel after. Tried to edit mixer paths to boost speaker and headset volume. Did it twice but nothing happens. Speaker volumes still the same. Any help guys?
[Nexus 5 Original Android Development] flar2:
The sound works perfectly, I've been testing it all week. This is due to settings somewhere. Please use EX Kernel Manager and get rid of faux sound or other apps. Other apps are still going to be wonky with sound settings.
[Nexus 5 Original Android Development] flar2:
I just push things to sdcard and move them from there if I need to.
[Nexus 5 Original Android Development] TJKV:
You can't push directly to /system. Push files to either /tmp or /sdcard and then run 'adb shell', su, mount system as rw, then move them over to the right place.
[Nexus 5 Original Android Development] grep_i:
No it is somewhat the same but not completely although your device is rooted you still run adb in user mode.

To use root open an shell in adb and use the su command like the following to mount your devices /system:

adb shell

su

mount -o rw,remount /system

If you have never done this before it is possible that your su app will ask if you want to give adb shell root rights.

Accept it and your good to go.
[Nexus 5 Original Android Development] creeve4:
I noticed that the default value for Headphone power amp gain is 2. Is this the device default or faux's default?
[Nexus 5 Original Android Development] flar2:
Device default
[Nexus 5 Original Android Development] deelan_chan:
I'm using Chroma rom with Elementalx 6.12 and I'm still experiencing the frequent crackling and popping sound. Is it possible to adjust this to remove the sound.

btw thanks for the hard work developer ^_^
[Nexus 5 Original Android Development] flar2:
The sound driver is not the cause.

Try raising the min cpu frequency and see if it goes away
[Nexus 5 Original Android Development] BirchBarlow:
Hello all, it's been a while since I've been on the forums. Anyway I have a question about systemless root. It says to flash SuperSU then flash ElementalX, but I thought for systemless root you had to flash the kernel before SuperSU. So I flashed ElementalX then I flashed SuperSU (I forced systemless with "echo SYSTEMLESS=true>>/data/.supersu") and so far everything seems okay. Why is it advised to flash SuperSU before ElementalX and are there any negative implications to doing it in the reverse? Thanks.
[Nexus 5 Original Android Development] magnamentis:
because SSU will make a backup of your kernel (so to say) and if you flash a new kernel before SSU it will revert to the last used. this is in simple words while there were more detailed replies by [MENTION=6842057]nathanchance[/MENTION] in this or the EX for N6 thread.
[Nexus 5 Original Android Development] flar2:
You might not be running ElementalX.

Basically it's not that different from the past. You root your phone, and then flash ElementalX. Once your phone is rooted, don't flash SuperSu again or it will revert to the previous kernel (I don't know why Chainfire chose to do that, must be a failsafe or something).
[Nexus 5 Original Android Development] BirchBarlow:
Interesting, that might have happened but I have no way of knowing because I ended up flashing ElementalX again shortly after rooting as the ElementalX app prompted me to update to 2.12. I never noticed if it reverted back to stock after rooting, but I'll have to remember for the future.
[Nexus 5 Original Android Development] nunoleite46:
Why? Everything is working :)
[Nexus 5 Original Android Development] magnamentis:
oho.... sorry, i only said you can, not that you have to ;) of course you can stay with that version as long as you like, i just wanted to let you know that all is working perfectly well with mmb29q as well, quasi as a service for an old fellow :laugh:
[Nexus 5 Original Android Development] nunoleite46:
Nice, i will upgrade to 29q This week. My N5 cant live without cataclysmMod. Thank you
[Nexus 5 Original Android Development] Kalenji:
[MENTION=4684315]flar2[/MENTION] The cleaned up faux is amazing, fixed all the issues I had with ite kudos!

Btw a while ago someone was talking about interactive governor, are you still keen on adding it? I have some tweaked interactive settings from while I used franco that I wanted to try on ex :)
[Nexus 5 Original Android Development] zymphad:
[MENTION=4684315]flar2[/MENTION], I'm trying to build Beanstalk (CM-13) with your kernel. What changes do I need to make for it work with CM-13? This is for personal use. Any help would be great.
[Nexus 5 Original Android Development] flar2:
Interactive causes some weird conflict with multirom that I don't have time/desire to figure out. Elementalx gov is very tweakable and works great on this device.

I have no idea
[Nexus 5 Original Android Development] zymphad:
I noticed you did have a CM branch, was that merged into your MM6 branch?
[Nexus 5 Original Android Development] paul222008:
Im on cm13 nightly with SUv2.66 and ELementalX6.11 installed can i flash the 6.12 update directly?
[Nexus 5 Original Android Development] paul222008:
Thank you :)
[Nexus 5 Original Android Development] magnamentis:
yes, always
[Nexus 5 Original Android Development] winamp26:
hi

after flash last version on my nexus 5, in settings "Revoke usb debugging authorizations" removed.

how to solve it?
[Nexus 5 Original Android Development] grep_i:
I have version 6.12 of ElementalX kernel flashed on stock firmware 6.0.1 build MMB29Q.

AND STILL HAVE THIS OPTION.

This must be something else than kernel related.

If you still believe it is kernel related and I'm totally wrong try to downgrade the kernel to 6.11 or flash stock kernel to see that it fix your problem.

Otherwise try reinstalling your rom whichever one you used and see if the option is there to begin with.
[Nexus 5 Original Android Development] BIade:
This is a ROM thing, not a Kernel one. I have it almost everytime, i try a "deodexed" ROM. Try running this kernel on a odex or more stockish rom.
[Nexus 5 Original Android Development] sjknight413:
Anyone know why SuperSU 2.67 will only flash over elementalx 6.12 in 'system mode' and not systemless?
[Nexus 5 Original Android Development] flar2:
It depends on what you flashed ElementalX over
[Nexus 5 Original Android Development] sjknight413:
The January 5th build of cataclysm which was flashed after a clean format of /system. I'm on TWRP 3.0 if that makes a difference?

Flashed in this order, cata>ex>SuperSU
[Nexus 5 Original Android Development] flar2:
I don't know what each ROM comes with.

If that build of cataclysm had a patched sepolicy, then you will get system root instead of systemless.
[Nexus 5 Original Android Development] nathanchance:
Which it does.
[Nexus 5 Original Android Development] sjknight413:
Hmm I'm unsure too.

The previous build of cataclysm flashed systemless absolutely fine, seems unlikely he'd modify the sepolicy for the final build. I need to find a new rom to jump ship to anyway so I guess I'll have to deal with it for the minute. Thanks for the help though, 6.12 is great!

On a side note, does anybody have any recommendations for a rom to switch to now cataclysm is dead? One that works well with EX and systemless root!
[Nexus 5 Original Android Development] looney_tkp™:
so how do i know i have systemless root or system root ?
[Nexus 5 Original Android Development] nathanchance:
He did, he changed it in December actually. You don't really need systemless root if the ROM supports system root. Pure Nexus is solid if you want to give that a test.

SuperSU > Settings > Install SuperSU into /system. The secondary text will mention which one you have.
[Nexus 5 Original Android Development] grep_i:
Stock rom will do all that
[Nexus 5 Original Android Development] phantom146:
Greetings [MENTION=4684315]flar2[/MENTION]

Can you please explain to me extensively what optimal_freq and sync_freq is? I just wanna be sure about everything before i touch it. Any help would be appreciated ;)

Btw is it ok if i put those two tunables to 0 frequency?
[Nexus 5 Original Android Development] magnamentis:
he will certainly confirm but obviously the optimal settings are the default settings, else he would have set it up optimal LOL (JK)

so default is optimized balanced and if you make changes you will trade one thing for another, i.e. battery for performance or vice versa and eventually battery or performance for stability etc. further one has to know that not all hardware components are identical. PSV/ASV can differ widely and hence what's possibly perfect for me could bootloop on yours or vice versa. hope that was a fair explanation :) enjoy

EDIT: the later exspecially applies for cpu parameters and voltage settings
[Nexus 5 Original Android Development] phantom146:
Thanks for the reply and being chuck norris today ill try to make it 0 or play with it ;) lets see what will happen lol
[Nexus 5 Original Android Development] simplicio11:
CM 13.0-20160108 (hammerhead)+ ElementalX 6.12 + ExManager 2.51 when I tap on sound setting, app force closed.
[Nexus 5 Original Android Development] flar2:
What did you tap exactly? And did you send a crash report? Is it reproducible? If it doesn't offer to send a crash report, can you send a logcat?