yashsingh1/xdaforums huggingface dataset:
[Android Software Development] ak:
I think you have to post on G+ page of the developer @AndreiLux.

https://plus.google.com/communities/108137360526908770337?partnerid=gplp0

---------- Post added at 02:51 PM ---------- Previous post was at 02:07 PM ----------

@apb_axel

Hi my friend i have switched to franco/savoca sound control but i have some errors, can you check if this tunables are ok:

root@bacon:/sys/devices/virtual/misc/soundcontrol # cat highperf_enabled
cat highperf_enabled
0

root@bacon:/sys/devices/virtual/misc/soundcontrol # cat mic_boost
cat mic_boost
0

/system/bin/sh: cat: power: Is a directory
1|root@bacon:/sys/devices/virtual/misc/soundcontrol # cat speaker_boost
cat speaker_boost
0

root@bacon:/sys/devices/virtual/misc/soundcontrol # cat volume_boost
cat volume_boost
0

root@bacon:/sys/devices/virtual/misc/soundcontrol # pwd
pwd
/sys/devices/virtual/misc/soundcontrol

thanks a lot

ak
[Android Software Development] apb_axel:
UKM problem, which device & kernel?
[Android Software Development] apb_axel:
That S2W+S2S profile isn't available in your kernel, that's why it doesn't save.
[Android Software Development] apb_axel:
Weird, I'm running HellsDoctor right now and don't have those issues. Can you check which settings Synapse is telling you that are changing?
[Android Software Development] apb_axel:
Hello my friend, sure I'll have a look :).
[Android Software Development] Poesini:
Hey [MENTION=5658634]apb_axel[/MENTION] , hello :)

I have seen in the newest edition of UKM (3.4b1) or the newest AK kernel (Sensei 35_b12) that there is this thing of Krait C-States...

I google'd but I didn't find anything useful... Maybe you care to explain? What happens if we disable/enable them?

Thanks man :cool:
[Android Software Development] apb_axel:
Sure, this is from faux123 himself, hope it helps ;):
[Android Software Development] Poesini:
Yeah, I read that, but maybe I didn't make myself clear...

What effects on performance/battery do we get from disabling/enabling them?

i.e. If I disable all but C3 do I get better battery or stuff like that?
[Android Software Development] apb_axel:
Oh ok, from my experience if you disable all but C3 it gives better battery because device sleeps faster but there is a slight performance drop when devices wakes up (usually 1-3 lag). I usually tick all of them or just untick C1 so it can use sleep states better with almost no lag.
[Android Software Development] ak:
the new version work without problems.

[MENTION=5658634]apb_axel[/MENTION]

can you add also under sound this tunables if present the path:

root@android:/ # cat sys/module/snd_soc_wcd9320/parameters/high_perf_mode
cat sys/module/snd_soc_wcd9320/parameters/high_perf_mode
0

sorry

for the continuous requests.

ak
[Android Software Development] ak:
I have found the problem of apply/cancel messages ... For me is related to DNS ... If I open synapse after connection to 3g data net I have to reapply conf because my config change from 0.0.0.0 to x.y.z.v.

ak@a0001
[Android Software Development] der_sascha:
hi i amon latest code blue kernel

Why is speaker sound drain not changing and saving by using synapse?
[Android Software Development] ak:
Can you explain with some Infos?

I don't understand what is the problem.

ak@a0001
[Android Software Development] der_sascha:
Every time when I make speaker loudness higher and save. It go back to stock loudness
[Android Software Development] ak:
Do you have fauxapp or others kernel manager installed?

ak@a0001
[Android Software Development] Failyx:
Can confirm [MENTION=4729456]der_sascha[/MENTION] s issue. Have it too.
[Android Software Development] der_sascha:
I don't have any other apps installed
[Android Software Development] apb_axel:
No problem my friend, I've already added it and I'm sending you a new test version later today :).
[Android Software Development] apb_axel:
Ok I'll add a notifier to avoid this in the future :good:.
[Android Software Development] shadeMe:
Is the /proc/sys/vm/extra_free_kbytes tunable already exposed to UKM/Synapse? I can't seem to find it in the app. If it isn't, could I request that it be?
[Android Software Development] apb_axel:
It wasn't exposed, but now it is ;).
[Android Software Development] shadeMe:
Many thanks :) By the way, I noticed something in the GPU section when using the Ultimate Unleashed Kernel - The GPU voltage sliders are always set to 1200mV. I'm using the latest build of the kernel (83u) - Could this be a UKM issue?
[Android Software Development] ak:
No ... Have you cleared data?

you can try to untick set on boot, reboot and verify the sliders.

---------- Post added at 08:06 AM ---------- Previous post was at 08:06 AM ----------

@apb_axel

i have send you a PM.
[Android Software Development] shadeMe:
Yeah, I have. Also tried a clean flash of the kernel and UKM. The sliders are at the max value even when I disable the Set on Boot option.
[Android Software Development] der_sascha:
Is there new version which fix the speaker drain problem?
[Android Software Development] trjlive:
I don't understand what you mean by "speaker drain". Perhaps there is a translation problem? Because the term "speaker drain" doesn't make sense in English language.

Please describe what is actually occurring that you think is a problem. I can tell you that I am using UKM and Synapse on my Nexus 5 with CodeBlue kernel and have absolutely no problems with speaker or volume levels.
[Android Software Development] janres155:
Guys, I think I already managed to stick the value of speaker gain with the fauxsound engine. After applying the values for the gain controls. Try this:

echo 2 > /sys/kernel/sound_control_3/gpl_sound_control_locked

2 will make the gain controls stick, but be sure to echo 0 if you are going to make changes again.

Regards
[Android Software Development] der_sascha:
I mean the loudness of the part on the button of the device. Its the part where the sound comes out when phone is ringing
[Android Software Development] trjlive:
Ok I think you are meaning the "speaker gain" settings, not "speaker drain". That's what had me confused a bit, the term "drain" would be used when talking about the device battery, like "battery drain". But with speakers, the settings controlling the volume increase would be called "speaker gain". :)

I just looked at my Sound settings in Synapse, and the settings all seem to be applying and sticking just fine. I tried the "Quality", "Loudness" and "LG_Stock" profiles, and all 3 made changes and the settings were still there even after a reboot. So are they not staying set for you?
[Android Software Development] ralpheboyo:
Def does not stick after a reboot for me... N5,custom slim, code blue kernel... Currently using faux ? for the time being... Will do log on the next try...
[Android Software Development] der_sascha:
Yes sorry I mean speaker gain sorry. Thanks for correction. On code blue kernel for nexus 5 I am not the only guy with this problem by using synapse. Is there an other way to high up the speaker gain?
[Android Software Development] trjlive:
Hmm... ok we have similar setups, except I'm using the stock KTU84P ROM on my N5, CodeBlue kernel, latest UKM and Synapse. I also have a Nexus 7 (2013) that's running stock KTU84P, latest ElementalX kernel, UKM and Synapse, and the audio tweaks also stick after reboots. So both my devices have stock ROMs, maybe that has something to do with it?
[Android Software Development] der_sascha:
I am on paranoid saber droid remix
[Android Software Development] trjlive:
I've used Viper4Android audio mod on many devices with good results, and it works just fine alongside UKM and Synapse. It has lots of audio tweaks including gain control, and can also be set independently for different outputs (different gain settings for bluetooth than for headphone jack, for example). I'm not sure why you're having the issues with Synapse audio settings on your N5, are you by chance using a custom ROM? I'm using stock ROM, rooted, also with Code Blue kernel and audio settings stick. But maybe try the V4A audio mod and it might do what you're wanting. I use the audio gain for only the headphone jack since I plug it into my car's AUX input, and this way I can boost the volume level a bit (3.5dB).

Edit: Ok I see your previous post, you're on a custom ROM also, like [MENTION=264345]ralpheboyo[/MENTION]. I wonder if the fact I'm using the stock KTU84P ROM makes a difference. Seems to be the main difference between your N5 and my N5.
[Android Software Development] der_sascha:
Thank you for this information will this mod use much battery drain?
[Android Software Development] trjlive:
When you install the V4A mod, you also have to install the audio driver (follow the steps in the app), and you choose the audio quality you desire. I recommend the high or super quality, but the better the quality, the more battery drain will occur. I use the High quality, as I can't tell any difference between high and super, and I did notice the super quality increased battery consumption a bit. Though neither option is what I would call a "battery hog", it might be an additional 1-2% per hour while listening to music. So it is measurable, but not significant.

Edit: You'll also notice the V4A app has lots and lots of options and settings (you might need to toggle the UI mode to advanced in the app to enable all the options) and can seem quite overwhelming. But the thread I linked you to, the people in the thread are very helpful and can guide you through getting it set up the way you desire. So don't be afraid to ask questions in that thread. :)
[Android Software Development] der_sascha:
OK I will try. Thanks a lot
[Android Software Development] janres155:
Try this: http://xdaforums.com/showpost.php?p=55254487&postcount=1608
[Android Software Development] Grondinm:
i'll just leave this here for anyone interested

http://xdaforums.com/showpost.php?p=55256115&postcount=142
[Android Software Development] apb_axel:
For those who are having trouble with fauxsound not sticking I think it might be rom related, can anyone with these issues try with fauxsound app or trickstermod and see if it sticks? There should be no reason for these settings to not stick I'm running CM11 M9 for a whole month with various kernels and never had this problem.
[Android Software Development] janres155:
I only had this problem with the speaker gain, but I solved it by echo 2 > /sys/kernel/sound_control_3/gpl_sound_control_locked

After this, no problem already but be sure to echo 0 if going to make some changes with the gain controls.

I noticed this with the fauxsound app, it echo 2 for the gpl_sound_control_locked.
[Android Software Development] osm0sis:
That's interesting.

When it keeps reverting is it at 0? What would 1 do?
[Android Software Development] janres155:
If you have the fauxsound app, you try ticking the set on boot option. The lock value will be 2 from 0. I dont know what the value of 1 will do, but I already tried it before and speaker gain doesn't stick.

I think 0 is for do not lock the values.
[Android Software Development] apb_axel:
Weird trickstermod only accepts 0/1 on that tunable :confused:. Anyways I'll expose this option in Synapse to lock it & see if it works for other users. Thanks for the help :).
[Android Software Development] apb_axel:
Really? Fauxsound sets it to 2 on boot?
[Android Software Development] janres155:
The default value of gpl_sound_control_locked is 0. If you have fauxsound app and then tick set on boot to on, gpl_sound_control_locked will be set to 2 not 1.

You try editing the file gpl_sound_control_locked and set it to 2. Then try changing values of gain controls using synapse, the valued will not be changed.
[Android Software Development] apb_axel:
Alrighty, I'll try doing this in Synapse for next release :good:. Still don't know why trickstermod sets it to 1 :eek:
[Android Software Development] janres155:
I think most people relate 0 is for OFF and 1 is for ON. :)

Btw, I think there is really a purpose for the value of 1 for the lock and still need to be figured out.
[Android Software Development] Mademos:
Axel, just a heads up, the hospital349 gamma profile seems to be configured in the same way as google stock.

This is only for faux gamma (tried on hells core b52 and defcon). I had the profile saved from before, the colors are as they should be.

Also tried in on franco gamma and it seems fine.

Sent from my Nexus 4
[Android Software Development] der_sascha:
Cant wait for the update which fix the speaker gain problem!
[Android Software Development] bart.found:
hi [MENTION=5658634]apb_axel[/MENTION] I'm on latest slimkat with defoconoi kernel and when I try to check init.d and touch wake I get an error.. what should I do?
[Android Software Development] osm0sis:
[MENTION=5658634]apb_axel[/MENTION] [MENTION=3685904]ak[/MENTION] [MENTION=4167023]AndreiLux[/MENTION]

Any of you guys have a working example for Synapse's notify:[ { on:SET ?

I'm trying to make adjusting zram options automatically reset zram to 0 and refresh so that they can all be applied at once.

notify:[
{ on:SET,
do:[ @ACTION 0, SET @SAVED, REFRESH ],
to:"zram zram0"
}
]

Doesn't do anything. :confused:
[Android Software Development] apb_axel:
Just tried it and it works fine for me and also checked the file and its different from Google_Stock

Hospital349 250 250 255 134 0 119 119 0 22 2 119 7 2 134 0 119 119 0 22 2 119 7 2 134 0 119 119 0 22 2 119 7 2

Google_Stock 255 255 255 364 32 35 116 0 31 16 80 51 3 332 64 68 118 1 0 0 48 32 1 332 64 68 118 1 0 0 48 32 1
[Android Software Development] apb_axel:
Soon ;).
[Android Software Development] apb_axel:
It's a rom issue, you need to set permission to 775 on folder /system/etc/init.d. After that it should work.
[Android Software Development] apb_axel:
Haven't actually tried it yet, been wondering for a while how it works too. But I think the variables are from the current element, so for example if I wanted to set zram which is another action element different from the one I'm using to let's say 500 mb, then the variable SET pass that value to action element you want (don't quote me on that just how I think it works :p).

notify:[
{ on:SET,
do:[ @SET, REFRESH, APPLY ],
to:"zram zram0"
}
]

So it does on setting of the current element, it would pass that same value to action zram zram0 and then refresh & apply.
[Android Software Development] osm0sis:
Thanks! Yeah that's tricky!

Ended up ditching the @ variables since zram's default is set to 0, so I can just use RESET. So depending on whether the tunable value persists through the zram reinit I've added:

notify:[
{ on:SET,
do:[ RESET, APPLY, REFRESH ],
to:"zram zram0"
}
]

Gets the job done. :) :good:

Only problem is Synapse then turns Z-RAM off at boot because of the notify triggering. It does them in order though, so I think I can just reorder them with the tunables above the disk size and be okay.
[Android Software Development] bart.found:
Permissions are already set to 775.. Any other suggestion? ;)
[Android Software Development] apb_axel:
Yep I also believe that it runs in order.
[Android Software Development] apb_axel:
Also check owner, should be root:root and you have to mount /system as RW as well.
[Android Software Development] Grondinm:
so am i missing something...synapse is not detecting blue_plug for me...my kernel is based on code_blue and synapse fine all other options but not blue_plug...is this known or is it me...
[Android Software Development] chikimonke:
Is this with your build that includes UKM? If so, did you try flashing UKM on its own to see if it shows up? This may very well be the behavior I was talking about before.
[Android Software Development] Grondinm:
It is with my build but as far as I can tell by having looked at the ukm files it does not search for blug_plug...
[Android Software Development] osm0sis:
By "An ACTION is an action, outside of the DOM" I think [MENTION=4167023]AndreiLux[/MENTION] means it has to be backticked, so if you're right about the variables only being for the element the notify/listen is nested in, then we could do a listen for an event that effects the tunable and have it do: [ `@ACTION @SAVED`, APPLY, REFRESH ], to apply the saved value back to itself. Testing now. :silly:
[Android Software Development] chikimonke:
Then [MENTION=5658634]apb_axel[/MENTION] may need to add it in.
[Android Software Development] bart.found:
Apb... Believe me! I checked all permissions.. All were already correct.. So I didn't change anything.. BUT AFTER THIS IT WORKED :confused: I don't know why, but now it works

Thank you
[Android Software Development] apb_axel:
It is already included in UKM it searches for the directory /sys/module/blu_plug/parameters.
[Android Software Development] chikimonke:
[MENTION=842211]Grondinm[/MENTION] try flashing the zip and see if it's fixed.
[Android Software Development] Grondinm:
sorry i missed that...time to investigate
[Android Software Development] osm0sis:
Nope, still neither direct or backticked seems to work. I'd love clarification/examples on both questions; no luck with SET @SAVED in listen either, so hopefully Andrei drops by at some point. :confused: :good:

Not sure if you thought of this yet [MENTION=5658634]apb_axel[/MENTION], but I just figured out a cool way to turn a script into a checkbox using exit codes. Here's an example using frandom:

if [[ ! -z $1 ]]; then
case $1 in
1)
chmod 666 /dev/frandom /dev/erandom;
mv /dev/random /dev/random.orig;
mv /dev/urandom /dev/urandom.orig;
ln -s /dev/frandom /dev/random;
ln -s /dev/erandom /dev/urandom;
;;

0)
mv /dev/random.orig /dev/random 2> /dev/null;
mv /dev/urandom.orig /dev/urandom 2> /dev/null;
;;
esac;
fi;

test ! /dev/random -ef /dev/frandom;
echo $?;

You just need some kind of external sign the changes are active that you can test against at the end. :D :cowboy:
[Android Software Development] Grondinm:
would anyone running any rom with code_blue kernel do me a favor...post a screen shot of your hotplug screen...

Thank you
[Android Software Development] Grondinm:
thanx guys...so no issue all the options are present...i though it should have a selection listing blu_plug as active or something...:good:
[Android Software Development] tiness:
I am running your build with your kernel and blue_plug is present and tick by default
[Android Software Development] Grondinm:
see that's odd...my recent build(not published) that i cleaned flashed does not have the check box but all the other options are present....
[Android Software Development] tiness:
Was it present for you on your previous "the one I'm using" build??

Or maybe another clean flash will fix it...
[Android Software Development] Grondinm:
i though i remebered seeing it....but really as long as it works...i'm building again the will be published so we shall see....
[Android Software Development] apb_axel:
Nice! Definitely gonna try this :D.
[Android Software Development] apb_axel:
Check if the following path exists which let's you enable or disable blu_plug:

/sys/module/blu_plug/parameters/enabled
[Android Software Development] Grondinm:
i figured it was something like that missing...it is not there....kinda odd that's the only one not being created...it's on by default so i'm happy
[Android Software Development] orbital_71:
If kernel are not synapse support can still be use?

Sent from my SM-N9005
[Android Software Development] youlun.zhai12:
Translation

Thanks for your great work!! It's really an useful kernel manager! But it's a little difficult for people from non-English countries to use this wonderful app. So..many users in my country want to use translated version.( They cannot understand those strings so that they feel confused about manage the kernel.)
[Android Software Development] AndreiLux:
With it being an action outside the DOM means that it is not an action that is saved or interacts with the normal lifecycle of the app. It's a standalone shell command that gets executed and the app is not aware of it unless you specifically make an element refresh itself if it has been affected by that action.

The action variables inside the notifiers are simple replacement tags, you don't have to backtick anything, the replacement happens outside the shell before it gets executed.

do: [ `@ACTION @SAVED`, APPLY, REFRESH ]

is not a correct syntax. An action should be a string command, so something like

do: [ "echo @ACTION @SAVED >> /sdcard/actionlog", APPLY, REFRESH ]

https://github.com/AndreiLux/Synaps...apse/lib/ActionValueNotifierHandler.java#L199

The variables are always from the source element of the event. For example if you define a notifier on an element, it will consider that element's variables in the replacement. If you define a listener to multiple elements, then each of those element's variables will be replaced in the command whenever they fire an event that is listened to.

In the case above if you define a notifiers on action "zram 500", then it will result in a command "echo zram 500 >> /sdcard/actionlog", and after that do an apply and refresh in that sequential order.
[Android Software Development] osm0sis:
That's awesome! Thanks for the insight! My only other question is how SET works as a do: event. I thought I could use it like SET @SAVED.
[Android Software Development] jumpy_goat:
Thanks for the hard work :)
[Android Software Development] AndreiLux:
I document what each action does for each element in the Wiki. It's mostly

SET : Triggered and propagated from UI when value is changed.

Which means it's only a one-way event. versus

REFRESH : Will refresh the action-value from the action. Triggered and propagated from application life-cycle.

Which means it's a two-way event.

So basically SET doesn't do anything inside of a do:{...} . If you want to set a value of another element then I suggest doing that via a custom action like in my previous post and then send a REFRESH to that element.
[Android Software Development] apb_axel:
Makes sense, much clearer now. Thanks :).
[Android Software Development] apb_axel:
Most likely it will work even if it's not tested. Try it worse case it doesn't work and you uninstall or you let me know and I'll fix it ;)
[Android Software Development] apb_axel:
Translation is coming but not yet, I need to make it at least 99% stable first and a lot of things could change.
[Android Software Development] Gips3yD4ng3r:
It says here that you need a rom that supports init. d scripts, my questions is does the stock rom with code blue support this zip/app
[Android Software Development] ak:
You have to check if codeblue check and create init.d when you flashing it.
[Android Software Development] orbital_71:
Tried on temasek kernel getting error on synapse not working

Sent from my SM-N9005
[Android Software Development] BelzIgoh:
[MENTION=5658634]apb_axel[/MENTION], can u add these parameters for brand new dual thermal mitigation system (Unleashed Kernel).

/sys/module/msm_thermal/core_control
/sys/module/msm_thermal/core_control/cpus_offlined
/sys/module/msm_thermal/core_control/enabled
/sys/module/msm_thermal/thermal_stats
/sys/module/msm_thermal/thermal_stats/statistics
/sys/module/msm_thermal/parameters
/sys/module/msm_thermal/parameters/core_limit_temp_degC
/sys/module/msm_thermal/parameters/freq_control_mask
/sys/module/msm_thermal/parameters/immediately_limit_stop
/sys/module/msm_thermal/parameters/limit_temp_degC
/sys/module/msm_thermal/parameters/core_temp_hysteresis_degC
/sys/module/msm_thermal/parameters/thermal_limit_high
/sys/module/msm_thermal/parameters/temp_hysteresis_degC
/sys/module/msm_thermal/parameters/core_control_mask
/sys/module/msm_thermal/parameters/freq_step
/sys/module/msm_thermal/parameters/thermal_limit_low
/sys/module/msm_thermal/parameters/intelli_enabled
/sys/module/msm_thermal/parameters/poll_ms
[Android Software Development] apb_axel:
Can you post a screenshot of the error?
[Android Software Development] apb_axel:
Sure no problem ;).
[Android Software Development] gamerman123x:
Does anyone else get this problem. When I turn my screen on/off or close the app this value in the screenshot gets changed any idea using uber kernel nexus 5.
[Android Software Development] osm0sis:
It should probably be excluded. It's not a tunable, just a "status report" of bfq. :)

https://github.com/bsmitty83/DirtyV...yV/res/synapse/config.json.generate.scheduler