yashsingh1/xdaforums huggingface dataset:
[Android Software Development] eng.stk:
Indeed I forgot to attach ;p

But its similar to the same I posted earlier, just with another tunable.

The paths its the more important :)
[Android Software Development] apb_axel:
No problem thanks for the feedback :). Question though the /sys/module/lm3630_bl/parameters/min_brightness (integer) what are the min/max values? 0-100?
[Android Software Development] txuki2005:
Hello [MENTION=5658634]apb_axel[/MENTION]!!!

Here I am again, i have another idea to add to your great tool, Can you add the function "calibrate battery" on tools section??

Anyway, miles thanks for your great work and constancy.

see you!!

;)
[Android Software Development] Nekator:
+1

sent from my paranoid N4
[Android Software Development] apb_axel:
Is that the one where you delete the batterystats.bin file?
[Android Software Development] txuki2005:
Yeah!!! And explain on popup that "Push calibrate button when battery 100% charge"...then push button to delete and another popup say "Now unplug charge and reboot phone (It is recommended to discharge the battery empty and re-charging uncut up to 100% for the first time)"

Also you can input text say "only reecommended when you flash a fresh ROM or your battery is not calibrate"

:good:
[Android Software Development] eng.stk:
YEah I guess, but would make more sense 0-50? So light makes some auto switch, if auto is 100 it's stuck lol
[Android Software Development] apb_axel:
Sure no problem, I'll add it for next release ;).
[Android Software Development] apb_axel:
Ok no problem :)
[Android Software Development] osm0sis:
Google's engineers debunked this as a myth quite some time ago and the only real recommendation that can be found is never touching that file. :p
[Android Software Development] apb_axel:
Yeah I knew about that, but I read that it does not improve battery life just help report the correct battery percentage in OS. Dunno if it's true or not.
[Android Software Development] osm0sis:
Charging to 100% and then discharging to 0% does that too, and you leave your battery history intact. It was removed as an option from recoveries like CWM and TWRP on Google's recommendation that it was pointless and may do more harm than good to mess with that file. :)
[Android Software Development] txuki2005:
:laugh::laugh::laugh::laugh::laugh::laugh:

Yeah maybe yes or not, but this method result to me to calibrate real battery´s porcetage.

So, yo can also add text "own risk" :laugh::laugh::laugh::laugh:
[Android Software Development] osm0sis:
Or, you can just know about it and do it yourself manually, at which point you've certainly accepted the risk. :p
[Android Software Development] txuki2005:
​

:p
[Android Software Development] apb_axel:
Lol true, it's probably best if I don't add this in the script. I don't want to start a war on this :p
[Android Software Development] donteo:
One question from starter in synapse !

How i can delete all setting of the synapse :) i clean cache but nothing change :(
[Android Software Development] apb_axel:
Clear Data ;)
[Android Software Development] donteo:
So if i clear data everything go to default ? profiles cpu gpu ?
[Android Software Development] apb_axel:
No you'd have to clear data and then restart the device then everything should be default.
[Android Software Development] gorilla p:
I created Battery/Balanced/Performance profiles for Hells Doctor. However I noticed when changing (or restoring) a profile, the governor and max off screen freqs are not changing.

Is it just me having this issue?
[Android Software Development] scarcry:
Now that you mention it I think I've seen that behavior too. I'm currently on ukm 2.4 though due to 2.5 giving some odd errors regarding gamma profiles (Google stock was the default and I couldn't choose any other profile).

beamed from my Google NeXuS⁴ powered by AK kernel
[Android Software Development] shaggydiamond:
My cpu max freq won't stick! I am underclocking it to get better battery life. But when I open synapse again in 30 min it is back to 1.5ghz.

I'm on latest Hells Doctor CM with Tardis, and also got UKM v2.1

This is so frustrating!:rolleyes:

Edit> I am about to update UKM to 2.5

Will report later

PS: Synapse app isn't showing itself properly. I think cause of my 36 navbar dpi

Any fix? besides changing dpi to normal:P
[Android Software Development] eep2378:
I moved all my gamma profiles into the synapse folder with root explorer. Reboot and only the included profiles are there. Is there another way to add more gamma profiles so they can be selected from within the app?

Sent from my Nexus 5
[Android Software Development] EotT:
[MENTION=4362467]gorilla p[/MENTION]

You are not alone. I noticed this too. The Settings that are not always correct when restoring a profile on my device:

cpu governor (always?)

I/O sheduler (sometimes)

GPU governor (almost always)

USB fast charge (always)

C-states : C2 (almost always) (I don't know if the other states are correctly restored, because I kept the default values)

The other settings are correct.

This is with UKM v2.5, but I also noticed this with previous versions.
[Android Software Development] Sir_gpm:
what does this means?, it appear every time I start the app.

Enviado desde mi Nexus 4 mediante Tapatalk
[Android Software Development] Pollie81:
when do you open the app? right after a reboot? you need to wait after a reboot for synapse to apply the saved settings.

Verstuurd vanaf mijn Nexus 4 met Tapatalk
[Android Software Development] apb_axel:
True, I tested and got the same results. I'll try and fix it thanks for the feedback :)
[Android Software Development] apb_axel:
If that happens go to /sdcard/Synapse/gamma_profiles and delete the file there. After that open Synapse and press the Restart Synapse button in gamma to load the new profiles.
[Android Software Development] apb_axel:
There's something resetting your settings, probably another kernel manager. I'm running it fine for while now.
[Android Software Development] apb_axel:
You need to save the profiles inside the faux/franco file that's included there. You just could just copy the values and paste it inside the file but it's in a special order, if you need to know the order just let me know,
[Android Software Development] apb_axel:
I'll have a look at these and see if I can fix it :).
[Android Software Development] txuki2005:
For me, Synapse run like a charm without any problems.

Only waiting for any fix to make more exactly frequency view, maybe.

:P
[Android Software Development] EotT:
Ok, thanks! What I don't understand is that it is not always happening. At the moment, I have no clue why it is happening.
[Android Software Development] apb_axel:
The thing is Synapse has no actual way of saving profiles, what I'm doing is basically a hack to save the databases and then later restore them. There are a number a thing that could be happening behind the code that the script is not taking into account but if I find out I'll fix it ;)
[Android Software Development] EotT:
Great! Good luck! :good:
[Android Software Development] cerberusiscute:
Hey guys, I am running on a N5 and using dirty unicorns ROM. I am using the code_blue kernel as well. I am noticing that my gamma settings are not sticking. I'm not too worried about the cpu setting because I can set those myself with something like trickster. I know this question had been asked before, but I was curious to see if there a fox for anyone, but especially the N5.

Thanks,

cerberusiscute

---------- Post added at 04:50 PM ---------- Previous post was at 04:49 PM ----------
[Android Software Development] apb_axel:
What do you mean gamma settings are not sticking, that when you apply it doesn't do anything?
[Android Software Development] shaggydiamond:
The only other performance manager is the built in PAC performance manager. And I denied it root rights:rolleyes:

Any suggestions on how I can try to make it stick?

I have already wiped data for synapse. uninstalled and reinstalled ukm.

Then reinstall synapse.

I'm not using profile restores btw, I change the settings myself.

It is just the cpu max freq that doesn't stick.

EDIT : Okay I've now spotted the governor specific cpu freqs.

I changed them around and I think everything is supposed to be working as it it should be
[Android Software Development] cerberusiscute:
I mean that they aren't sticking after reboot/applying after boot is finished.
[Android Software Development] apb_axel:
I don't think Synapse is the issue here, maybe try setting the CPU Max Freq manually through terminal emulator and see if it resets, if it does than there's some app changing it.

su
echo xxx > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
[Android Software Development] apb_axel:
I haven't actually tested gamma profiles since I don't have a Nexus 5, but looking at the code I copied exactly the same as the Nexus 4 and it works for me. Can someone else confirm if gamma profiles for the Nexus 5 aren't being applied automatically after reboot?
[Android Software Development] shaggydiamond:
Thanks, but I found out my cpu governor specific settings were interfering with the other cpu freq settings (sliders) so I had to manually enter the max active and inactive freq.

The max was clocked at 1.5ghz so I think that was the problem.

I think everything is under control now. I can't believe I missed those settings :silly:

It's just that I didn't have to deal with those settings before and it worked out fine until some update of synapse a few weeks ago.

Ah well.

Everything is working as it should be now:good::good:
[Android Software Development] apb_axel:
Glad everything worked out in the end :).
[Android Software Development] apb_axel:
Anything else you guys need?, I'm planning to release a new version tomorrow with mainly fixes and a few requested features. ;)
[Android Software Development] fr3quency:
Just a reminder for how many mV we have undervolted. The number must be shown(it's not shown now) or we will forget. :P
[Android Software Development] apb_axel:
Already done. ;)
[Android Software Development] Derpinson:
I just installes this, and i'm amazed how good this is!

but accidently i deleted some Gamma profiles and i'm having a hard time getting them back :/
[Android Software Development] fr3quency:
Make a backup, copy the backup.tgz from your phone to your PC, delete the synapse folder, go into recovery, reinstall the mod and you are good yo go. :)

Sent from my Nexus 4
[Android Software Development] apb_axel:
You could just delete the gamma file located in /sdcard/Synapse/gamma_profiles and when you enter the app again it will re-create the file to start from scratch ;).
[Android Software Development] Mademos:
Greetings and thanks for your work. I'm looking for a way to add the Hospital profile to synapse. I've been trying to figure out how to transfer the values from the xls but all I managed was to just stare vacantly on the numbers. Can anyone give me a hand?
[Android Software Development] apb_axel:
Hospital profile? You mean gamma profiles? :confused:
[Android Software Development] Mademos:
Re: [ZIP] Synapse + Script => Universal Kernel Manager v2.5

Yes. Sorry. It's a gamma profile.

hospital349 250 250 255 22 22 22 2 2 2 0 0 0 0 0 0 7 7 7 7 7 7 2 2 2 7 7 7 0 0 0 0 0 0 0 0 0 7 7 7 7 7 7 7 7 7 7 7 7

This is what I see in the fauxdisplay.txt (from the same app).

Edit

This is from Franco

38.Hospital349

250 250 255 0 0 0 119 119 119 119 119 119 7 7 7 22 2 119
[Android Software Development] carlese:
Having these odd problems with the latest ukm, synapse, code blue kernel 179 beta, purity rom by CI3kener and of course nexus 5.. I am new in this topic so please be gentle.. BTW this app is a masterpiece!
[Android Software Development] apb_axel:
Oh ok, depending if your kernel has faux or franco you do this:

Go to /sdcard/Synapse/gamma_profiles/ -> faux or franco file

Open the corresponding file and paste it like this order at the end of the file (note for each value there's a space):

For faux:

Hospital349 kcal kgamma_b kgamma_g kgamma_r

For franco:

Hospital349 kcal red_greys red_mids red_blacks red_whites green_greys green_mids green_blacks green_whites blue_greys blue_mids blue_blacks blue_whites contrast brightness saturation

Or the easiest way is to load the gamma profile with another app and just save it in Synapse. ;)
[Android Software Development] apb_axel:
Did those errors appear when you opened the app (without editing anything) or when you changed those options?
[Android Software Development] carlese:
They appeared when I changed an option.. For color profile when I select a profile it shows the errors but applies the profile anyways, but when I select power suspend it won't work..

The option for backlight dimmer doesn't work even on startup..
[Android Software Development] apb_axel:
Alright I think I found out the cause, should be fixed for the next version. Thanks for the feedback :)
[Android Software Development] carlese:
Maybe this could help even more.. i wrote to eng.stk in his thread and, as far as the powersuspend is concerned he wrote this:

and

Don't know what that means but I'm here to help since your app and script can control everything I need :)
[Android Software Development] apb_axel:
Thanks, I'll have to find out if via script I can tell if a tunable is in kernel mode or user mode. :confused:
[Android Software Development] Mademos:
Done. Thanks. If anyone is interested,

Paste in gamma profiles file of synapse

Hospital 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

TheKang 24/6 build

AK 320 + UKM 2.5

Philz 6.47.6
[Android Software Development] apb_axel:
Looks good, I'll keep it in my gamma profiles. Thanks! :)
[Android Software Development] apb_axel:
Sorry for the delay guys I was sick these last couple of days, but I felt better today and pushed a new update. This version has mainly fixes for Nexus 5 users but also a new feature so save CPU global voltage settings. Also very good news you can now restore profiles correctly and all saved parameters should be set (including CPU Governor, GPU Governor & IO Scheduler), just make sure to update Synapse to latest version in Play Store. Enjoy! ;)

Download: Universal Kernel Manager v2.6
[Android Software Development] Mademos:
Thanks for the update. Got a small problem with the CPU Multicore power saving though.

I used your uninstaller to remove the previous version before installing the new one.

------------------------

TheKang 24/6 build

AK 320 + UKM 2.5

Philz 6.47.6
[Android Software Development] carlese:
I still have the same problems with color profile and powersuspend :(
[Android Software Development] apb_axel:
Can you open that file and tell me the contents inside? It's in /sys/devices/system/cpu/sched_mc_power_savings.
[Android Software Development] apb_axel:
The invalid argument error? I'm guessing It has to be something related to the permission of those files. Check out the /sys/kernel/power_suspend/power_suspend_state file and see what permissions it has.
[Android Software Development] Mademos:
1

------------------------

TheKang 24/6 build

AK 320 + UKM 2.5

Philz 6.47.6
[Android Software Development] carlese:
rwrwrw except the version file which has rrr
[Android Software Development] apb_axel:
Send me your config.json file located in /data/UKM so I can have a look.
[Android Software Development] gorilla p:
Awesome job [MENTION=5658634]apb_axel[/MENTION]

Everything is working well with the profile import/restore functions. That will make a lot of people happy. I just created 3 new profiles for Hells Doctor to celebrate our newfound success.
[Android Software Development] tusshar.gaba:
gamma profiles on my mobile are not sticking ..even after turning screen off and on ...google stock it says every time i apply
[Android Software Development] apb_axel:
Check to see if you have a gamma file in /sdcard/Synapse/gamma_profiles.
[Android Software Development] Mademos:
Bah. I don't think I can send an attachment. Still a 'new member'. Cant even reply to a post before i wait for 10 minutes.

Edit

Nevermind. Done. Just remove the .apk :P

------------------------

TheKang 24/6 build

AK 320 + UKM 2.5

Philz 6.47.6
[Android Software Development] tusshar.gaba:
there is only one file franco_N5 ....how to add files and get more files ???

edit : after putting some files from franco directory to synapse/gamma profile ..i can now switch profiles but i m gettings this error ...but why ..
[Android Software Development] eng.stk:
Just tried v2.6 and all bugs are fixed: msm_hotplug and cpu-boost all work, gamma and backlight dimmer also, sched_mc_power_savings works for me too.

A question: gamma profiles read the default values from kernel or does it apply Google stock by default if no other profile is selected?

I say this because my kernel by default has other profile not Google stock, and it seems Google stock is loaded even if I don't change anything from kernel default.

The default option on gamma profile should be none (just read values from kernel) if the user doesn't select any profile.

Also, we should be able to disable Logger with default config:

You used Neobuddy config module_param(log_mode, uint, S_IWUSR | S_IRUGO) wich has 3 int values (0 - Enabled, 1 - Auto Suspend, 2 - Disabled), but normal options should be available too: module_param(enabled, uint, S_IWUSR | S_IRUGO) (1 - Enabled, 0 - Disabled)

The buggy powersusupend: you have 3 possible values. In kernel mode (0) and lcd hooks (2), your app should not have a on/off, because it's auto on/off.

You should have on/off only in user mode (1) and probably a box to select mode (0,1 or 2). Keep in mind that some kernels only use option 0 and 1.

#define POWER_SUSPEND_AUTOSLEEP	0	// Use kernel autosleep as hook
#define POWER_SUSPEND_USERSPACE	1	// Use fauxclock as trigger
#define POWER_SUSPEND_PANNEL	2	// Use display pannel state as hook

EDIT: Looks like gamma gives an error when apply profile after all, check screenshot

EDIT 2: I checked some missed tweaks no intelliactive (and some guys use them also on INteractive). SOme values should be able to use array of int instead of int

write /sys/devices/system/cpu/cpufreq/intelliactive/above_hispeed_delay "20000 1400000:40000 1700000:20000"
write /sys/devices/system/cpu/cpufreq/intelliactive/target_loads "85 1500000:90 1800000:70"
write /sys/devices/system/cpu/cpufreq/intelliactive/min_sample_time "40000 1700000:80000"
write /sys/devices/system/cpu/cpufreq/intelliactive/timer_rate "40000 500000:30000 1700000:20000"
write /sys/devices/system/cpu/cpufreq/intelliactive/timer_slack "-1 800000:30000 1100000:40000 1700000:20000"

Hope it helps :highfive:

Very nice job mate, keep up.
[Android Software Development] carlese:
Hi mate, what happens if you save a color profile? I get red errors but when I open the app again the profile is applied.. Same thing for backlight dimmer and powersuspend.. What could it be? I am using your kernel of course..
[Android Software Development] eng.stk:
Read my edit about gamma...

backlight is working fine, powesuspend some changes must be made in order to make it work nicely.

Post errors to dev, screenshots and logs ;)
[Android Software Development] carlese:
Ok backlight confirmed working.. About gamma I already posted some screenshot, the problem is still there with 2.6.. Let's hope for a fix.. This app is awesome!
[Android Software Development] tusshar.gaba:
whenever i open synapse ...there is always a tick and cross option on top of it ..if i wrongly press the tick icon ..all the settings gets reverted to default ..if i press cross option then settings do not change ..i never saw this on any other kernel manager like franco kernel updater and faux kernel ...its a bit buggy i thought ...the settings should be on the right path whenver one opens this app again n again ...

see in the screenshot ..i applied the speaker output to 8 ..but when i open app it fall backs to 0 and shows the point on the applied settings ..but if i mistakenly press the tick icon ..the settings changed to default ..
[Android Software Development] apb_axel:
Thanks, I checked and everything seems ok. I'm also on AK and don't have this error, maybe try pressing the Restart Synapse button to refresh the config file.
[Android Software Development] apb_axel:
Check to see the permission of the franco_N5 file in /sdcard/Synapse/gamma_profiles you should have it rw.
[Android Software Development] apb_axel:
No it doesn't apply the Google_Stock in gamma it's just a default, I'll just add a Custom value to avoid confusion.

In regards to the logger is there anyway via script that I can tell if it's Neobuddy or normal config? That way I know which options I can present in the app.

And the powersuspend how can I tell via script if that option is in kernel mode or user mode? I tried looking for a way but did not find anything.

Thanks for the help in making this better. :)
[Android Software Development] apb_axel:
Whenever you open the app if it detects if any of your last saved values changed it presents you the tick (to accept the new changes) or the cancel (to revert back to your previous settings). That could only happen if there's another app that's reverting or changing your settings. Hope it helps :).
[Android Software Development] eng.stk:
Sure, it's easy.

On powersuspend you check version on /sys/kernel/power_suspend/power_suspend_version

If it's version:1.2 you got 0,1 values. If it's version:1.3 you got 0,1,2 values.

To check powersuspend mode read /sys/kernel/power_suspend/power_suspend_mode. If it's 0 or 2 it's auto mode, i can't turn on/off.

You just need on/in user mode (1). You should have a command to change mode (echo 0,1 or 2 in /sys/kernel/power_suspend/power_suspend_mode to change mode)

To check logger version, you just need to check if the tunable name, has I wrote before.

If it's /sys/module/logger/parameters/log_mode you're on Neobuddy version.

Normal version uses /sys/module/logger/parameters/enabled

Thanks, just trying to help :good:
[Android Software Development] apb_axel:
Now that's what I'm talking about, crystal clear. I will make this changes for the next version, thanks a lot :D
[Android Software Development] eng.stk:
No prob, just trying to hit your hall of fame :silly:
[Android Software Development] apb_axel:
Hey [MENTION=3873953]eng.stk[/MENTION] quick question. In version:1.3 of power suspend state what are the 0,1,2 values? 0 = Disabled, 1 = Enabled, 2 = ?. Everything else is done as you explained so I'll probably release a beta version for you Nexus 5 users to test if everything is working fine, if it is I'll start working on gamma. :)
[Android Software Development] eng.stk:
/sys/kernel/power_suspend/power_suspend_mode in v1.3 can have 0,1,2 has I stated above

/sys/kernel/power_suspend/power_suspend_state changes dynamically when you choose mode on the tunable above (I don't think you need to echo this tunable with kernel (0) and LCD mode (2) )

I'm not sure how this behaves in user mode, because I only use kernel mode in my kernels. Perhaps when you choose user mode (1), you can enable(1) disable (0), so has I said, only makes sense on/off trigger to user mode
[Android Software Development] MementoMoriM:
Thanks for the app&work?

Enviado desde la muerte a través de un Nexus 4
[Android Software Development] TheKnux:
[MENTION=5658634]apb_axel[/MENTION] So I upgraded to a N5 from an N4 and I've been using UKM with Synapse since your early releases. However, I've never seen this before. Any suggestions?

Sent from my 1961 XP-755
[Android Software Development] apb_axel:
Can you send your config.json file located in /data/UKM
[Android Software Development] TheKnux:
I found it, I just don't know how to send it. PM me with your email I guess?

Sent from my 1961 XP-755
[Android Software Development] apb_axel:
You can just change the extension to .zip and upload it here.
[Android Software Development] gorilla p:
Whenever I've gotten that, I uninstalled synapse, deleted synapse folder, rebooted to recovery, flashed latest UKM and then reinstalled Synapse. Problem was always solved.