yashsingh1/xdaforums huggingface dataset:
[Android Software Development] apb_axel:
I think I found out why gamma is not showing in Synapse, ElementalX loads gamma controls as an optional module on boot at the same time UKM configures available settings. Can you try hitting the "Restart Synapse" button inside the app in gamma tab and see if the options appear?
[Android Software Development] aviz1911:
Hey [MENTION=5658634]apb_axel[/MENTION] i have a small request. Rather than having sweep2wake features combined into a single toggle switch, can you divide them.

Like sweep2wake and sweep2sleep one switch and only sweep2sleep one switch( like in trickster mod app )

Thanks
[Android Software Development] fr3quency:
I hope he doesn't. Its better to group same stuff or else it will become chaos itself.
[Android Software Development] aviz1911:
Ahh cmmon dude, a small toggle for s2s is not a world war :p
[Android Software Development] boardlord:
Unfortunately no joy ?

Edit: just for the heck of it, I changed the SELinux state to permissive too, but gamma still failed to make an appearance.
[Android Software Development] carlese:
Come on mate, release the headphone and the X and V fix, can't wait for perfection :P
[Android Software Development] buru898:
Come on mate, shut up.
[Android Software Development] carlese:
Calm your tits mate, the post was ironic and apb_axel knows we are all waiting for his goodies patiently ;)
[Android Software Development] apb_axel:
I have it like that because on some kernels there is no toggle for sweep2sleep and the app would display an error that file is not found, using individual toggles is easier to code in Synapse :).
[Android Software Development] apb_axel:
Hmm when you flashed the kernel did you activate gamma control in aroma installer? If you did the only other thing I can think of is that elementalX is using different sysfs settings than the ones I'm using, do you happen to know where the gamma settings are located?
[Android Software Development] apb_axel:
I know guys I'm sorry for the delay, I've been working with [MENTION=3685904]ak[/MENTION] on bringing full support for the OPO and we're really close. But don't worry lots of new goodies are coming :D.
[Android Software Development] boardlord:
The module "msm_kcal_ctrl" is initialized on boot, and I *think* that settings are here: /sys/module/msm_kcal_ctrl/

I zipped the folder and attached it :)

Edit: I also attached the file "99elementalx" that resides in etc/init.d/
[Android Software Development] apb_axel:
From the looks of it it's not possible to control gamma in nexus 7 via shell only through faux app :(, I was looking around and found this http://xdaforums.com/showpost.php?p=50491720&postcount=1705
[Android Software Development] hoangtungst:
Can I use this for franco kernel ?

neXus⁴
[Android Software Development] apb_axel:
Yes
[Android Software Development] ak:
Wow .... i think when opo ukm will be ready ... you have to create a thread into Android Develop General ... your work is supergood, universal and free :angel:

thanks man for your hard work here.
[Android Software Development] boardlord:
Thanks for checking it out anyway :)
[Android Software Development] apb_axel:
Thank you my friend, this project is as much mine as yours so I appreciate all your help and wisdom :D.
[Android Software Development] osm0sis:
Definitely just contact a Mod and have them move the whole thread to Android Development General. Could do that right now if you like, since it's certainly outgrown the "Nexus 4" section. :) :good:
[Android Software Development] apb_axel:
Cool didn't know you could do that, I think it's about time to move on to a bigger world. :D. If it's not any trouble you can contact the mod :good:.
[Android Software Development] osm0sis:
I think it needs to be the OP, so they don't think someone's trying to pull some shenanigans. ;)
[Android Software Development] apb_axel:
Lol I understand, do you happen to know the name of the Mod so I can contact him/her?
[Android Software Development] osm0sis:
Just use the button to Report your own post (probably the "Cool didn't know you could do that" one will work as a request) and choose "Move post/thread", that should direct it correctly and put it in their queue. :)
[Android Software Development] apb_axel:
So which thread is more convenient from here? http://xdaforums.com/android
[Android Software Development] osm0sis:
I've always liked the Hacking section, but you could just as easily put it in Software. Take a look in them and see where you think it'd fit in best.

I've got some in each. There appears to be a fair bit of overlap, honestly.
[Android Software Development] d13guit0:
Could be the best place ist here, don't you think?

http://xdaforums.com/android/software
[Android Software Development] apb_axel:
HUGE update is here, I know late but better than never right?. All previous issues with OnePlus One are fixed except voltage settings, still will display errors but don't fret ak & me are working on it to fix it completely. Speaking of which I would like to give a big thank you to [MENTION=3685904]ak[/MENTION] for all his help on bringing full support for the OnePlus One, I don't own the device so I depend on him completely for tests :highfive:. As always remember to hit that thanks button and happy flashing! ;)

By the way, soon I will ask a mod to help us move this thread to a more "appropriate" section, stay tuned :fingers-crossed:.
[Android Software Development] carlese:
Headphone bug on nexus 5 still not fixed.. X and V bug not fixed too.. [emoji24] good job by the way!
[Android Software Development] manueltts:
3.0 running great here! Only issue (idk if ukm or kernel related) is that I can't access Autosmp options (see attachment). Using [MENTION=1316336]defconoi[/MENTION]'s Ultra Kernel for L-port (43u_r2), on L-port latest version.

This project is amazing. Thank you for your work and courage.

Cheers!
[Android Software Development] defconoi:
Same problem here:
[Android Software Development] eng.stk:
Headphone PA gain works fine here mate (from -6 to 6), maybe use UKM uninstaller and flash again v3.0

the v and x every time in startup I think it's a Synapse bug (or just the way it is). But yeah, it's annoying
[Android Software Development] carlese:
Ok i cleared synapse data and deleted the folder, rebooted and now it works :)

[MENTION=5658634]apb_axel[/MENTION] maybe this could help.. I am having the X and V bug, I choose my settings and press V, then close the app (even from most recents), open it again and I see that the problem is the min cpu frequency that is grey.. I have to always apply it.. Can you have a look?

It looks like the min free won't stick, sometimes I see 300, other times 1190.. Maybe [MENTION=3873953]eng.stk[/MENTION] could help too.. Using latest r247, blueactive governor..

See screenshot..

Good work mate!
[Android Software Development] Kaotiko77:
All works fine here
[Android Software Development] eng.stk:
That's cpu-boost working. It changes temporarily the min freq, but it goes to 300MHz auto.

You see that change on freq because you touch screen when enter the app and it reads a different freq value;)

I use smpboot on cpu.-boost in latest beta now and min freq stays put.

btw [MENTION=5658634]apb_axel[/MENTION], when I enter synapse for the first time, headphones PA value is set to 6, it should be all zeros by default (I don't have anything setting that value)

EDIT: I think it's the headphone PA values that are keeping the V and X to come up, because it always boot with value 6.

After set it to 0, and if I open app after no V adn X anymore
[Android Software Development] carlese:
For me, headphones value sticks everytime.. It's the change in min freq that causes the X and V.. Will see with the last beta if it does the same..
[Android Software Development] eng.stk:
Already told you, on my Code_Blue beta no min freq changes, because I tweaked cpu-boost.

Values stick on sound, but if you reboot the default value of headphone PA which UKM sets it's 6 and it should be 0 (obviously don't use synapse set values on boot option)

I found the issue: UKM is setting headphone PA as 54 54 for zero, but it's not.

On my phone, if I boot without any control apps, the value is 36 36.

Because BASE_HP_PA_GAIN=54; #Nexus 5

When you do this if [ "$PATH" == "/sys/kernel/sound_control_3/gpl_headphone_pa_gain" ]; then

C=$((BASE_HP_PA_GAIN - C));

$BB echo $C;

C is not 54 but 36, so you do 54-36=18, that's why it sets 6, the max allowed (18 which corresponds to a different value than 6)

Do you agree with me [MENTION=5658634]apb_axel[/MENTION]?

It's easy, just change BASE_HP_PA_GAIN=36; #Nexus 5 and default:2 like bellow: (I think this are just init values right? Or are they absolute zeros?)

{ SSeekBar:{

title:"Headphone PowerAmp (Left & Right)",

min:-6,

max:6,

default:2,

action:"soundfaux /sys/kernel/sound_control_3/gpl_headphone_pa_gain",

But this C=$((BASE_HP_PA_GAIN - C)); and so on must be tweaked so the value sticks

To resume: 6 is 32 32, 2 is 36 36 (default on boot), 0 is 38 38 and -6 is 44 44

I guess N5 has a little boost on start by default (at least it makes sense, that's why I had that on Trickster too)
[Android Software Development] ak:
[MENTION=3873953]eng.stk[/MENTION]

voltage control works with n5?

can you post cat of your voltage table (UV_mV_table) and config.jason?

i have a problem with oneplusone and i want to compare with n5.

thanks a lot
[Android Software Development] eng.stk:
Yes works fine, use UV_mV_table voltage and you're set.

shell@hammerhead:/ $ cat /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
cat /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
300mhz: 700 mV
422mhz: 725 mV
652mhz: 730 mV
729mhz: 740 mV
883mhz: 760 mV
960mhz: 770 mV
1036mhz: 780 mV
1190mhz: 800 mV
1267mhz: 810 mV
1497mhz: 845 mV
1574mhz: 860 mV
1728mhz: 885 mV
1958mhz: 920 mV
2265mhz: 975 mV
[Android Software Development] ak:
@eng.stk

do you have also config.jason?

@apb_axel

the problem, can be related to array used for the cpuwrite routine?

into kernel code i have:

char size_cur[8];
[Android Software Development] eng.stk:
It's attached...
[Android Software Development] ak:
thanks a lot. :good:
[Android Software Development] apb_axel:
From the screenshot the AutoSMP accepts Y/N, I thought it was 0/1 can anyone confirm?
[Android Software Development] apb_axel:
I thought on Nexus 5 headphone pa gain goes from -6dB (60 60 in sysfs) to 6dB (48 48 in sysfs), so that would be 54 as 0. But no problem I can change the default to 36 if that fixes the issue.
[Android Software Development] apb_axel:
It's the same array, works for N4 & N5. I think there's an issue with OnePlus One kernel. Maybe we can use another commit for voltages?
[Android Software Development] mammenj:
Its 0/1 if I am not mistaken :fingers-crossed:

and from the error show in screenshot it is trying to cast a string to integer, therefore its expecting a number rather than string
[Android Software Development] apb_axel:
Exactly, in Synapse I programmed as 0/1 but it's reading a string so it has to be Y/N.
[Android Software Development] apb_axel:
New Link!

By the way guys the thread was moved to Android Software Development! Huge thanks to [MENTION=4478812]ApriliaM3[/MENTION] for the assistance :D.

Update your favorites! http://xdaforums.com/android/software/zip-synapse-script-universal-kernel-t2736986
[Android Software Development] mixtapes08:
After installing the latest ukm script then a restart my phone boot into google logo then restart itself again. Then I shut it down then phone boots up just fine. Then I tried a restart again same thing happen. I can only boot it completely by shutting it down completely. I deleted the ukm filder inside /data then it restarts just fine. Weird. Anyone experiencing this kind of behavior?

Sent from my Nexus⁴
[Android Software Development] apb_axel:
Weird, you can try UKM uninstaller first to clean files and then try latest version.
[Android Software Development] mixtapes08:
I'll try it later. I need to sleep for now. Good thing I boot this one up. I need an alarm clock. Lol

Sent from my Nexus⁴
[Android Software Development] eng.stk:
Yeah but it is not enough, I tested.

if you change BASE_HP_PA_GAIN=36 and use default:0 it's wrong, because 36 is 2

If you use BASE_HP_PA_GAIN=36 and default:2, the value echo'd to filesystem is 4db.

EDIT: it's a 2dB delta using your formula

In order to both UKM value and filesystem is correct, it must be BASE_HP_PA_GAIN=38 and default:2, because we are saying 38 is root level (0dB), but we start at level 2dB (36)

Tested and all fine now.
[Android Software Development] manueltts:
Ok, I'm quite ignorant on this. But if this is useful sys/module/autosmp/parameters/enable says 'Y' inside.
[Android Software Development] apb_axel:
Ok I'll make the changes :good:
[Android Software Development] apb_axel:
Exactly what I wanted to see, as I thought it's a Y/N value so I'll make the change in UKM. Thank you very much :highfive:.
[Android Software Development] Penacal:
Got this error in SlimKat stock kernel on my nexus 4.
[Android Software Development] ak:
I have tried with another implementation but i have the same error.

I have also installed kernel from other devs and i have saw the same problem.

voltages are read correctly, but when i try to write new settings i have the error reported.

---------- Post added 7th August 2014 at 12:48 AM ---------- Previous post was 6th August 2014 at 11:59 PM ----------

[MENTION=5658634]apb_axel[/MENTION]

I have made another test: voltages are read/write correctly after change, i have checked with trickster, but when you made apply you have the write error from the app.

So seems the voltage script work correctly.

ak@onepone
[Android Software Development] d13guit0:
How can I add msm_limiter in the new UKM?
[Android Software Development] blackdale:
I seems can't edit build.prop area, whenever I change it, it returns back to default . I'm using PA 4.5 along with Franco r210. Any advise?
[Android Software Development] ak:
@apb_axel

for oneplusone can you add also compatibility when the model number is named "One"?

thanks a lot

---------- Post added at 09:18 AM ---------- Previous post was at 09:16 AM ----------

you can clone UKM github, and then you can add all you want.

if you want some infos you can use these links:

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

https://github.com/AndreiLux/Synapse

https://github.com/AndreiLux/Synapse/wiki

if you want test live use this:

https://github.com/anarkia1976/AK-tools/tree/master/synapse-win

only for windows.

[MENTION=5658634]apb_axel[/MENTION]

There is a possibility to add kcal control for onepone?

Like in trickster.

Thanks a lot
[Android Software Development] chikimonke:
On SlimKat for OPO the model is shown as" One A0001" any chance of adding that variant as well? I've tried to get a hold of [MENTION=4790322]kufikugel[/MENTION] about it, but life seems to be happening for him again. Thanks.
[Android Software Development] apb_axel:
Can you post here output of the following code:

getprop ro.product.device
[Android Software Development] chikimonke:
Interesting, actually comes out as "bacon"
[Android Software Development] apb_axel:
Ok, I'll add it to device list. Thanks :).
[Android Software Development] R-Rizzo:
Did you make this change yet? I'm just making sure I didn't miss an update.
[Android Software Development] apb_axel:
Not yet, but new version is coming soon ;),
[Android Software Development] R-Rizzo:
Woot. Gracias
[Android Software Development] d13guit0:
The OPO's ro.product.device is A0001 and bacon is the ro.cm.device

I'm trying to apply a lock to the max freq but don't find TVE way [emoji24] please, any help is welcome...

This is what I want to do
[Android Software Development] Jansxel:
Is Supported Devices Its Only Working?
[Android Software Development] apb_axel:
Yes only for those devices for now.
[Android Software Development] fabry83:
Hi to all! I run AK kernel with synapse+ukm. So this is th point: how can I leave the original color profile of ak? Because when I reboot, synapse change the color profile and I don't like it, but I love the original one..

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Android Software Development] ak:
You can select pa half breed profile.

ak@onepone
[Android Software Development] fabry83:
This is why we love you!

Grazie AK sei un mito!

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Android Software Development] eng.stk:
[MENTION=5658634]apb_axel[/MENTION]

Hey mate can you add cpufreq msm_limiter to next build?

/sys/kernel/msm_limiter/limiter_enabled (1/0)
/sys/kernel/msm_limiter/resume_max_freq (freq)
/sys/kernel/msm_limiter/suspend_defer_time (int)
/sys/kernel/msm_limiter/suspend_max_freq (freq)
[Android Software Development] apb_axel:
Sure no problem, is that implementation from neobuddy89?
[Android Software Development] d13guit0:
Oh many thanks bros! Just what I was looking for [emoji6]
[Android Software Development] eng.stk:
Yep!

Send me a beta later for testing sound stuff and that if you want
[Android Software Development] apb_axel:
Sure thing :).
[Android Software Development] ak:
The same for me.
[Android Software Development] apb_axel:
So after moving the thread to Android Software Development a few people have flashed UKM expecting it to work for any device and are greeted with LOADS of errors, of course for those who don't like to read the OPs :p I've added a new screen with only one tab with no tunables whatsover :cool:.
[Android Software Development] apb_axel:
Of course! In a few I'll be sending you a beta :D.
[Android Software Development] ak:
this is amazing

you are my hero
[Android Software Development] scarcry:
it's a sad thing "drastic" steps like these have to be taken just because peeps can't be arsed to read :( but kudos to you [MENTION=5658634]apb_axel[/MENTION] for putting in the work

Sent from my stormtrooper n5 powered by Android L
[Android Software Development] d13guit0:
It's possible to have a beta to test on G2 and Oneplus Darknel kernel?
[Android Software Development] savoca:
Hai, I made some stuff and can you please support? :) (all mako)

Sweep2Dim

/sys/android_touch/sweep2dim (1/0)
/sys/module/sweep2wake/parameters/up_kcal (1 - 255)
/sys/module/sweep2wake/parameters/down_kcal (1 - 255)

dt2w profile

/sys/android_touch/doubletap2wake (1/2/3/4/0)

dt2w feather

/sys/android_touch/doubletap2wake_feather (50 - 2560)

kcal min

/sys/devices/platform/kcal_ctrl.0/kcal_min

s2sonly by setting sweep2wake to 2 on mako

/sys/android_touch/sweep2wake (1/2/0)
[Android Software Development] apb_axel:
G2 is not supported :confused:.
[Android Software Development] apb_axel:
No problem, I have a few of these already but I'll be happy to add the rest :).
[Android Software Development] d13guit0:
It's supported but we're making some changes for new revision and I'm very excited with msm_limiter :D
[Android Software Development] ak:
You need a team for support all devices ...

ak@onepone
[Android Software Development] d13guit0:
You Need help
[Android Software Development] apb_axel:
I agree, I think I'll release beta versions & stable versions in the future.
[Android Software Development] d13guit0:
When do U think will have next revision? [emoji7]
[Android Software Development] defconoi:
[MENTION=5658634]apb_axel[/MENTION] got the new Intelliplug 5.0 ported over to mako by [MENTION=3795148]neobuddy89[/MENTION]

Can you throw this in Synapse? :)

# Neobuddy Intelliplug options
# profile selections for full_mode_profile
# 0 balanced 4 cores (default)
# 1 performance 4 cores
# 2 conservative 4 cores saves battery
# 3 disable
# 4 Tri
# 5 Eco
# 6 Strict
# runthreshold default is 722
# hystersis choice 0 thru 16 default is 8
# max_cpus_online <---
# cpus_boosted = max cpus boosted
# max_cpus_online_susp = max cpu's while suspended
echo "1" > /sys/kernel/intelli_plug/intelli_plug_active
echo "0" > /sys/kernel/intelli_plug/parameters/full_mode_profile
echo "4" > /sys/kernel/intelli_plug/max_cpus_online
echo "1" > /sys/kernel/intelli_plug/min_cpus_online
echo "3" > /sys/kernel/intelli_plug/cpus_boosted
echo "1" > /sys/kernel/intelli_plug/max_cpus_online_susp
echo "722" > /sys/kernel/intelli_plug/parameters/cpu_nr_run_threshold
echo "8" > /sys/kernel/intelli_plug/parameters/nr_run_hysteresis

Also Here are the AutoSMP Hotplug by [MENTION=4203114]mrg666[/MENTION] settings that are missing from Synapse:

echo 1 > /sys/module/autosmp/parameters/enabled
echo "972000" > /sys/kernel/autosmp/conf/cpufreq_down
echo "1242000" > /sys/kernel/autosmp/conf/cpufreq_up
echo 3 > /sys/kernel/autosmp/conf/cycle_down
echo 1 > /sys/kernel/autosmp/conf/cycle_up
echo 4 > /sys/kernel/autosmp/conf/max_cpus
echo 1 > /sys/kernel/autosmp/conf/min_cpus
echo "100" > /sys/kernel/autosmp/conf/delay
echo 1 > /sys/kernel/autosmp/conf/scroff_single_core
[Android Software Development] ak:
ASMP tunables will be inside the new UKM release, for the first question apb_axel only be able to answer, but he is working hard for a problem with one + one.
[Android Software Development] onukomer:
HTC One M8 support Please :(
[Android Software Development] ak:
what is the device type?
[Android Software Development] onukomer:
HTC M8 İnternational

2.50GHz Qualcomm Snapdragon 801

using HTC Sense based ROM

Thx
[Android Software Development] d13guit0:
What's inside your build.prop on the line ro.product.device ?
[Android Software Development] onukomer:
sorry,

ro.product.name=htc_europe
ro.product.device=htc_m8
ro.product.board=MSM8974
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
ro.product.locale.language=en
ro.product.locale.region=US
ro.board.platform=msm8974
ro.build.product=htc_m8
ro.build.description=2.22.401.4 CL365360 release-keys
ro.build.changelist=365360
ro.build.fingerprint=htc/htc_europe/htc_m8:4.4.3/KTU84L/365360.4:user/release-keys
ro.build.characteristics=default
ro.build.project=M8_UL_K44_SENSE60_MR:385388
ro.build.sku=HTC Europe
ro.product.version=Android Revolution HD 10.2 by mike1986
ro.build.languageremove=0
ro.build.sense.version=6.0
ro.build.version.htcsdk=HTCExt:HTCExtension_Sense60_443_1;SDK:6.25;hdkbase:19.2
keyguard.no_require_sim=1
[Android Software Development] apb_axel:
As [MENTION=3685904]ak[/MENTION] said AutoSMP tunables are already added in the next release and I'll try and see if I can add new intelliplug features today :).
[Android Software Development] apb_axel:
Without a dev who knows very well the HTC M8 and helps beta test it it's very hard for me to support it since I don't own the device. :(
[Android Software Development] onukomer:
thx my friend.

i was test it now (when i wait for your reply) and it works! i have cleared cache and flash UKM remove tool than re flash tool and install synapse, all is work!

except my kernel is not supported features :) :)

thx man, for everything...
[Android Software Development] apb_axel:
No problem, do you have any errors in the app with the default options you have? If it's very similar to mako config I can maybe support HTC M8 in the future.
[Android Software Development] defconoi:
hey did some work for you, check my code, may have missed something, works good for me though ;)

[MENTION=3795148]neobuddy89[/MENTION] Intelliplug 5.0 added

https://github.com/ion-storm/UKM/commit/ba006fb20830cbbf9c67257aa3481c6510c4f3a0

---------- Post added at 02:24 PM ---------- Previous post was at 01:42 PM ----------

Ya I derped and put max cores online twice, will recommit
[Android Software Development] apb_axel:
Thanks I'll look it over :good:.
[Android Software Development] fr3quency:
Now if only we had an ak-based kernel (at least) compatible with CM11 that had the AutoSMP hotplug, thatwouldbeawesome.jpg

Sent from my Nexus 4
[Android Software Development] chikimonke:
[MENTION=3685904]ak[/MENTION] kernel is compatible with CM11, just not CM11S.
[Android Software Development] fr3quency:
I know but read the next sentence. ?

Sent from my Nexus 4
[Android Software Development] chikimonke:
Ha, sorry, I'm stuck in OPO mode, forgot that this thread wasn't in a OPO specific forum. My bad.