Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,664 Members 42,990 Now Online
XDA Developers Android and Mobile Development Forum

[ZIP] Synapse + Script => Universal Kernel Manager v3.3.2

Tip us?
 
apb_axel
Old
(Last edited by apb_axel; Yesterday at 09:14 PM.) Reason: v3.3.2
#1  
apb_axel's Avatar
Senior Member - OP
Thanks Meter 1,900
Posts: 640
Join Date: Jan 2014
Talking [ZIP] Synapse + Script => Universal Kernel Manager v3.3.2

Hello and welcome! So I started this because I hated having to have a different app to change some of the kernel settings and having init.d scripts for each kernel was a hassle to me, plus some users were having trouble with so many options available so I created this for all those who like to flash & test different kernels like me. I would like to dedicate this project of mine to my friend @ak for all the help and patience he has, he truly is a great dev and we owe him for some of the best kernels available for the Nexus 4.

So how this works is on every boot the script verifies all the tunables it finds specific for the kernel you have at the moment and generates the necessary files so it can be read & displayed on Synapse. Don't feel bad if you don't see all the listed options, it's just your kernel doesn't have those available.

In time I will be adding more scripts so we can have most, if not ALL tunables I can cram into. Hope you like it!

Screenshots:
Click image for larger version

Name:	Screenshot_2014-05-17-18-11-27_framed.jpg
Views:	11048
Size:	172.9 KB
ID:	2749503Click image for larger version

Name:	Screenshot_2014-05-17-18-11-51_framed.jpg
Views:	9621
Size:	134.4 KB
ID:	2749505Click image for larger version

Name:	Screenshot_2014-05-17-18-12-15_framed.jpg
Views:	8988
Size:	148.8 KB
ID:	2749506Click image for larger version

Name:	Screenshot_2014-05-17-18-12-41_framed.jpg
Views:	8583
Size:	130.2 KB
ID:	2749507Click image for larger version

Name:	Screenshot_2014-05-17-18-13-05_framed.jpg
Views:	8293
Size:	145.9 KB
ID:	2749508Click image for larger version

Name:	Screenshot_2014-05-17-18-13-21_framed.jpg
Views:	8182
Size:	126.6 KB
ID:	2749512Click image for larger version

Name:	Screenshot_2014-05-17-18-13-45_framed.jpg
Views:	7966
Size:	123.9 KB
ID:	2749513Click image for larger version

Name:	Screenshot_2014-05-17-18-13-58_framed.jpg
Views:	7891
Size:	163.2 KB
ID:	2749514Click image for larger version

Name:	Screenshot_2014-05-17-18-14-11_framed.jpg
Views:	7909
Size:	157.2 KB
ID:	2749515

So what you need:
Quote:
-Root (obviously)
-Working Busybox
-Your ROM has to support init.d scripts
-Synapse
Download Links:
Universal Kernel Manager v3.3.2
Synapse Google Play Link
UKM Uninstaller


To install:
Quote:
-Reboot in recovery
-Flash the .zip (No cache/dalvik wipe necessary)
-Install Synapse
-You're done!

Features:
 

Info
  • General
  • Model Number
  • Android Version
  • Kernel Version
  • ROM Description
  • ROM Version
  • ROM Build Date
  • SOC Binning
  • Last KMSG

Status
  • Battery Temperature
  • CPU Temperature
  • Memory
  • Uptime
  • Unused CPU States
  • Time in state for CPUs
  • Kernel Wakelocks

CPU
  • Live CPU Frequency
  • CPU Min Frequency
  • CPU Max Frequency
  • CPU Max Screen Off Frequency
  • CPU Multicore Power Saving

CPU Governor
  • CPU Governor Options
  • CPU Governor Tunables

Hotplug
  • MPDecision (Qualcomm)
  • Intelliplug (faux123)
    • ECO Mode
    • Snakecharmer
    • Intellithermal
  • MSM MPDecision (show-p1984)
    • Screen off Single Core
    • Min CPUs
    • Max CPUs
    • Idle Frequency
    • Event Boost
  • MSM Hotplug (myfluxi)
    • Min CPUs
    • Max CPUs
    • Max CPUs Boosted
    • Boost Lock Duration
    • Down Lock Duration
    • History Size
    • Update Rate
    • Fast Lane Load
    • Offline Load
    • Suspend Frequency
  • Auto Hotplug (Thalamus)
    • Disable Load Threshold
    • Enable Load Threshold
    • Enable All Load Threshold
    • Min Sampling Rate
    • Sampling Periods
    • Min Online CPUs
    • Max Online CPUs
  • Dynamic Hotplug (stratosk)
    • Minimum Online CPU
    • Maximum Online CPU
    • Up Threshold
    • Up Timer Control
    • Down Timer Control
  • Alucard Hotplug (Alucard)
    • Hotplug Enable
    • Sampling Rate
    • Max Cores Limit
    • Max Cores Limit Sleep
    • CPU Down Rate
    • CPU Up Rate
    • Hotplug Loads
    • Hotplug RQs
    • Hotplug Frequencies
  • Mako Hotplug (franciscofranco)
    • Cores on touch
    • First Level
    • Suspend Frequency
  • CPU Boost Driver
    • Boost
    • Sync Threshold
    • Input Boost ms
    • Input Boost Frequency

CPU Voltage
  • Global Voltage
  • Frequency Voltage
    • AK
    • Faux
    • Semaphore

I/O Control
  • Read-ahead Size
  • I/O Scheduler
  • General I/O Tunables
  • I/O Scheduler Tunables

GPU
  • Live GPU Frequency
  • GPU Max Frequency
  • GPU Governor
  • Simple Governor Tunables
  • Interactive Governor Tunables

Gamma
  • Faux Gamma Profiles
  • Faux Gamma Tunables
  • Franco Gamma Tunables
  • Motley Gamma Tunables
  • LCD Backlight Tunables

Sound
  • Faux Sound Profiles
  • Faux Sound Tunables
  • Franco Sound Tunables

Speaker
  • Faux Speaker Profiles
  • Faux Speaker Tunables

Memory
  • Z-RAM
  • Virtual Memory

Wake Control
  • Apply at init.d
  • DoubleTap2Wake
  • Touch Wake
  • Sweep2Wake
  • Sweep2Sleep
  • Power Key Suspend

Miscellaneous
  • TCP Congestion Control
  • Temperature Control
  • Temperature Limit Minimum Frequency
  • Power Suspend State
  • FSYNC
  • Dynamic FSYNC
  • Vibrator Strength
  • USB Fast Charge
  • OTG
  • Battery Life Extender
  • Touchscreen Accuracy Filter
  • LED Control

Advanced
  • C-States
  • Kernel Samepage Merging (KSM)
  • Ultra Kernel Samepage Merging (UKSM)
  • Gentle Fair Sleepers
  • Low Memory Killer

Build.Prop
  • Wifi Scan Interval
  • VM Heapsize
  • Allow Purgeable Assets
  • DNS Tweaks

Tools
  • Toggle Bootloader Lockstate
  • Toggle Bootloader Tamper Flag
  • Toggle SELinux Status
  • Preferred Network Mode
  • Kernel Image Managment (Backup, Restore)
  • Log Creation (logcat, dmesg, last_ksmg)
  • Reboot

Profiles

Changelog:
 

Quote:
v3.3.2
Lowered CPU voltage step
Increased max sleep for KSM & UKSM
Added Optimize Databases tool
Added Drop Caches tunable (Clear VFS Caches)
Added Vibrator support for OPO
Added support for devices with auto PowerAmp
Added additional gamma profiles for N5
New Blu_Plug hotplug & updated AutoSMP tunables
Added support for LG Optimus G, LG G Pad 8.3 & Nexus 7 2012
Fixed derp on action for powersaver_mode (Blu_plug)
Fixed echo write error when setting CPU frequencies
Fixed derp on wildcard for gee variants
v3.2
Fixed Intelliplug 5.0 tunable errors
Fixed GPU voltages with uV values
Disabled toggle switch between s2s/s2d
Fixed write error invalid argument display message
Apply value of 1 to kcal_ctrl if it exists
Added back s2s, removed unnecessary notifiers
Added High Performance Mode sound tunable
Added descriptions for Memory & Advanced options
New Laptop Mode (Auto FS Writeback Delay Mode) tunable
v3.1
Fixed default headphone_pa_gain for Nexus 5.
Fixed voltage write error for certain kernels.
Fixed wake write error when applying profile.
Added support for OnePlus One device (bacon).
Added default screen for non-supported devices.
Added kcal (independent) & kcal_min tunables.
Added additional wake toggles (DoubleTap2Wake profiles, DoubleTap2Wake Feather, Sweep2Wake profiles, OPO touchpanel).
Added tool to Clear Synapse Data internally.
New AutoSMP, MSM Limiter & Intelliplug 5.0 hotplug tunables.
Minor bug fixes.
v3.0
New USB Fast Charge & BLX for N7
Added additional wake settings
Load default mako config if device not supported
Fixed device parameters for OnePlus One
Set new device specific parameters for GPU & Bin
Create dynamic device parameters for Bin Settings
Create dynamic device parameters for GPU Settings
Support for kernels with basic speaker settings
Fixed Franco hotplug, New AutoSMP hotplug
Fixed incorrect device detection for fauxsound
Fixed creation of Logs folder only when needed
Minor bug fixes
v2.9
Added new gamma profiles
Fixed headphone gain for Nexus 5
Fixed gamma profiles for Nexus 5
Fixed incorrect product device for Oneplus One
Misc bug fixes
v2.8
Fixed more config.json errors for Nexus 5
Added Default Custom Profiles (to avoid reset)
Added better permissions for init.d wake toggles
More Code optimization
Added support for Oneplus One (let's go @ak)
v2.7.2
Add new hotplug, misc & advanced tunables (thanks to @ak)
Few bug fixes
v2.7
Attempt to fix gamma invalid argument error
Several bug fixes
General code optimization
Added additional log mode
Added Power Suspend Mode
Added New Intelliplug tunables
v2.6
Fixed invalid argument error
Fixed config.json generate with duplicate GPU freq
Fixed several tunable parameters
Additional mount parameters for wake options
Merged CPU Gov tab with CPU tab
Added CPU Global Volt file to save values
v2.5
Fixed JSON configuration parsing failed for certain kernels.
Fixed Fast Charge Level & Touchscreen Accuracy.
Fixed init.d permissions & owner for Wake toggles.
Fixed N5 Power Key Suspend tunable.
Fixed Preferred Network Mode & Added Log Mode in tools.
Added N5 Franco Gamma Profiles, Fixed Permissions in gamma files.
Added Device Hostname & Wireless Port in build.prop.
Modified notifiers for better performance.
New Intelliplug Tunables.
New MSM Hotplug Tunables.
New MSM MPDecision Tunables.
Disabled CPU Frequency Display (for now).
v2.4
Fixed Wake Notifier bug.
Added Temp Threshold, New Faux Fast Charge.
Added GPU Min Freq.
Ability to set CPU settings for all Cores.
Increased CPU Frequency Poll (download the latest Synapse!).
Added Custom Gamma Profiles (Faux & Franco).
Added MSM Hotplug Load Levels, Fixed Fast Lane Load values.
v2.3
Integrated sqlite3
Fixed Interactive GPU (for good this time)
Added New Semaphore Tunables
Added Franco Hotplug Tunables
Added ability to apply wake options at init.d
Added UKSM Tunables
Added LED Control Tunables
v2.2
Fixed TWRP flash error
Fixed GPU Settings for supported devices
Fixed certain Hotplug settings not displaying
Fixed Live Wakelocks for devices without file
Added Interactive GPU tunables
Added Preferred Network Mode
v2.1
Lowered CPU & GPU refresh rate to display correct CPU & GPU frequency (tested with perfmon)
Fixed Restore Profiles (now checks .tgz first)
Fixed default CPU & GPU values in device config
Fixed incorrect devices parameters in live action
Added Power Suspend State (N5)
Fixed Franco Gamma, Added Franco Sound Tunables
v2.0
No longer N4 exclusive.
Re-coded entire script to support other devices (N4, N5 & N7 for now).
All commands are now called from internal busybox.
Optimized code (faster & less CPU usage).
Added Kernel Image Management (Backup, Restore & Delete).
Added Live Kernel Wakelocks.
v1.7
Integrated busybox for better support
Better way to fix permissions in CPU Frequencies
Fixed Faux Gamma Custom Profiles Link
Fixed Uptime, Unused, Time in State, CPU Freq & Bootloader displays
Fixed Bootloader Lock State. Added Tamper Flag & SELinux Toggles
Added Alucard & CPU Boost Hotplug
Added Allow Purgeable Assets (build.prop)
v1.6
Fix Conservative GPU governor error
Attempt to fix permissions in CPU Frequencies before opening app
Fixed MSM Hotplug display for HellsCore & HellsDoctor users
Added ability to name your backup in Profile
Added Semaphore Hotplug Tunables
Added New Tools Section (Bootloader Lock Status, Log Creation, etc.)
Added Franco Gamma Tunables, New Faux Gamma Profiles
Added Semaphore CPU Voltage Tunables
Added TouchScreen Accuracy Filter Tunables
v1.5
Better UCI support on certain ROMS
Fixed default CPU scaling & New CPU multicore tunable
Fixed display issue in live unused & time in states
More build.prop tweaks, New DNS tweaks
More MSM Hotplug & New Auto Hotplug Tunables
Added LCD Backlight
Added Temperature Limit Minimum Frequency
v1.4
Fixed permission issues in files
Added Fahrenheit Temps, CPU time in state
Added build.prop tweaks
Added Intellithermal Settings
Fixed ondemand sampling_rate_min error
v.1.3
Fixed interactive boostpulse error
Added Global CPU Offset Voltages
Added Faux Sound Settings
Added Live Status
v1.2
Added Faux Gamma Profiles & Tunables
Added Faux Speaker Profiles & Tunables
v.1.1
Fixed CPU live label
Added Profile Settings (For backup & restore)
v1.0
Initial Release


Thanks:
@ak - for his help in getting this started.
@AndreiLux - for his awesome app Synapse.
@osm0sis - for his ideas on the Galaxy Nexus.

GitHub is Here:
UKM

Any suggestions, bugs or others settings you need just let me know.

Code:
Please rate the thread and don't forget the THANKS button below! :D
Device: Google Nexus 4 - 16GB
ROM: CyanogenMod 11

Check out my projects:
  • UKM: Universal Kernel Manager, the most complete kernel manager for the Nexus 4, Nexus 5, Nexus 7 (2013) & OnePlus One.
The Following 175 Users Say Thank You to apb_axel For This Useful Post: [ Click to Expand ]
 
apb_axel
Old
(Last edited by apb_axel; Yesterday at 04:09 AM.) Reason: Tested Kernels & F.A.Q.
#2  
apb_axel's Avatar
Senior Member - OP
Thanks Meter 1,900
Posts: 640
Join Date: Jan 2014
Supported devices:
Quote:
Nexus 4
Nexus 5
Nexus 7 (2012 & 2013)
OnePlus One
LG Optimus G
LG G Pad 8.3
Tested kernels:

Should work on any kernel, but my personal tested kernels & confirmed by other users are the following:

Quote:
Nexus 4:
AK
Faux
Matr1x
HellsCore
HellsDoctor
Semaphore
moob
dimfish
Aufa
Zulfa
Furnace

Nexus 5:
Code Blue
Uber
ElementalX

Nexus 7:
AK

OnePlus One:
AK
F.A.Q.

No UCI support detected? Check the following:

a) Does your ROM support init.d scripts?, IF it doesn't try this,

b) Check in /system/xbin if the uci file exists. IF it doesn't exists you can try reflashing the .zip or run the following in terminal emulator:
Quote:
su
ln -s /data/N4UKM/uci /system/xbin/uci
c) Check the permissions of /system/xbin/uci AND /data/N4UKM/uci, it should be 755 or 777. IF it isn't you can try reflashing the .zip or run the following in terminal emulator:
Quote:
su
chmod 755 /system/xbin/uci
chmod 755 /data/N4UKM/uci
d) Check the config.json file in /data/N4UKM/, if the file is blank you can try generating the file again with the following in terminal emulator:
Quote:
su
uci reset
uci
IF NONE OF THE ABOVE WORKED FOR YOU send me a screenshot of your terminal emulator running the following command to determine your issue:
Quote:
su
uci reset
uci
e) Some steps to fix most common issues when coming from another kernel and UKM is still installed: (thanks to gorillap)

Step 1 - go to settings>Apps>Synapse - force close - Clear data - ReOpen Synapse
If this doesn't work
Step2 - go to settings>Apps>Synapse - force close - Clear data - Uninstall Synapse. Reinstall Synapse in play store
If this doesn't work
Step3 - go to settings>Apps>Synapse - force close - Clear data - Uninstall Synapse. Delete Synapse folder. Reboot to recovery. Reflash kernel, Reflash UKM. Install Synapse
If this doesn't work, request support in thread.
Device: Google Nexus 4 - 16GB
ROM: CyanogenMod 11

Check out my projects:
  • UKM: Universal Kernel Manager, the most complete kernel manager for the Nexus 4, Nexus 5, Nexus 7 (2013) & OnePlus One.
The Following 25 Users Say Thank You to apb_axel For This Useful Post: [ Click to Expand ]
 
chewu.pg
Old
(Last edited by chewu.pg; 30th April 2014 at 09:17 PM.)
#3  
chewu.pg's Avatar
Senior Member
Thanks Meter 58
Posts: 209
Join Date: Sep 2013
Location: Podgorica
I cannot get cpu settings to show... Btw awsome work hpe to see it get even better

Edit: oops i am on stock rom so i cannot use this, realised just now ... Is there any way to add init.d support to stock ROM?
Sent from my Nexus 4 using Tapatalk
The Following User Says Thank You to chewu.pg For This Useful Post: [ Click to Expand ]
 
apb_axel
Old
#4  
apb_axel's Avatar
Senior Member - OP
Thanks Meter 1,900
Posts: 640
Join Date: Jan 2014
Quote:
Originally Posted by chewu.pg View Post
I cannot get cpu settings to show... Btw awsome work hpe to see it get even better

Edit: oops i am on stock rom so i cannot use this, realised just now ... Is there any way to add init.d support to stock ROM?
Sent from my Nexus 4 using Tapatalk
There is an app that can help you get init.d support to stock ROM, try it out and let me know if it works: http://forum.xda-developers.com/show....php?t=1933849
Device: Google Nexus 4 - 16GB
ROM: CyanogenMod 11

Check out my projects:
  • UKM: Universal Kernel Manager, the most complete kernel manager for the Nexus 4, Nexus 5, Nexus 7 (2013) & OnePlus One.
The Following User Says Thank You to apb_axel For This Useful Post: [ Click to Expand ]
 
Kaotiko77
Old
#5  
Kaotiko77's Avatar
Member
Thanks Meter 31
Posts: 57
Join Date: Jan 2013
The .zip works fine on PSXv4.0.4 & ak Exodus 227

Enviado desde mi Nexus 4 mediante Tapatalk
The Following User Says Thank You to Kaotiko77 For This Useful Post: [ Click to Expand ]
 
AndreiLux
Old
(Last edited by AndreiLux; 30th April 2014 at 10:09 PM.)
#6  
AndreiLux's Avatar
Senior Member
Thanks Meter 13,622
Posts: 2,759
Join Date: Jul 2011

 
DONATE TO ME
Good work.

Glad to see that you took full advantage of the capabilities of the app. Also very happy to see that you took advantage of the notifiers for the global voltage slider in exactly the way that I intended them, although that I would have done the behaviour a bit different, but that's a choice of preference.

Let me know on Github on any wishes/comments/feedback.

Ideally in the future I was planning to do a sister-app which does a configuration-injection much like you do, but for global device compatibility, and self-contained. Sadly it's a lot of work and needs to be maintained, hope I can do it by this summer. Goal is to basically annihilate other apps such as Trickster and all other custom kernel configs apps.
The Following 8 Users Say Thank You to AndreiLux For This Useful Post: [ Click to Expand ]
 
chewu.pg
Old
#7  
chewu.pg's Avatar
Senior Member
Thanks Meter 58
Posts: 209
Join Date: Sep 2013
Location: Podgorica
Quote:
Originally Posted by apb_axel View Post
There is an app that can help you get init.d support to stock ROM, try it out and let me know if it works: http://forum.xda-developers.com/show....php?t=1933849
Worked!! Thank you so much, its so awsome and first thing i did after, is uninstall trickster... still need to keep fauxclock for color presets but i hope it will come to this app the time passes... Also noticed that synapse boot failed toast massage, so will try restarting few times to see if set on boot works

Sent from my Nexus 4 using Tapatalk
The Following User Says Thank You to chewu.pg For This Useful Post: [ Click to Expand ]
 
apb_axel
Old
#8  
apb_axel's Avatar
Senior Member - OP
Thanks Meter 1,900
Posts: 640
Join Date: Jan 2014
Quote:
Originally Posted by AndreiLux View Post
Good work.

Glad to see that you took full advantage of the capabilities of the app. Also very happy to see that you took advantage of the notifiers for the global voltage slider in exactly the way that I intended them, although that I would have done the behaviour a bit different, but that's a choice of preference.

Let me know on Github on any wishes/comments/feedback.

Ideally in the future I was planning to do a sister-app which does a configuration-injection much like you do, but for global device compatibility, and self-contained. Sadly it's a lot of work and needs to be maintained, hope I can do it by this summer. Goal is to basically annihilate other apps such as Trickster and all other custom kernel configs apps.
Thanks for the kind words! That sister-app sounds awesome if you need anything just let me know.
Device: Google Nexus 4 - 16GB
ROM: CyanogenMod 11

Check out my projects:
  • UKM: Universal Kernel Manager, the most complete kernel manager for the Nexus 4, Nexus 5, Nexus 7 (2013) & OnePlus One.
The Following User Says Thank You to apb_axel For This Useful Post: [ Click to Expand ]
 
apb_axel
Old
#9  
apb_axel's Avatar
Senior Member - OP
Thanks Meter 1,900
Posts: 640
Join Date: Jan 2014
Quote:
Originally Posted by chewu.pg View Post
Worked!! Thank you so much, its so awsome and first thing i did after, is uninstall trickster... still need to keep fauxclock for color presets but i hope it will come to this app the time passes... Also noticed that synapse boot failed toast massage, so will try restarting few times to see if set on boot works

Sent from my Nexus 4 using Tapatalk
I'm glad it worked for you. That synapse boot failed happens mainly the first time you boot up, it should go away on another reboot and let it set the auto settings or just apply any settings to dismiss it.
Device: Google Nexus 4 - 16GB
ROM: CyanogenMod 11

Check out my projects:
  • UKM: Universal Kernel Manager, the most complete kernel manager for the Nexus 4, Nexus 5, Nexus 7 (2013) & OnePlus One.
 
Kaotiko77
Old
#10  
Kaotiko77's Avatar
Member
Thanks Meter 31
Posts: 57
Join Date: Jan 2013
Now I see Backup & restore page is lose for me

Ultraspeedy n⁴ powered by PSX v4.0.4 & AK EXODUS v227

The Following User Says Thank You to Kaotiko77 For This Useful Post: [ Click to Expand ]
Tags
kernel manager, kernel tuner, kernel tweaker
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes