Modified script to support nightmare, darkness and alucard_hotplug!
Fixed cpu_up_rate,cpu_down_rate,up_freq,down_freq,up_load,down_load for hotplugging!
Fixed new hotplug system! otherwise can make problem with intelli_plug!
Reduced the OOM limit to 82MB free, was 130MB waste of ram.
Revert "ReEnabled discard on all EXT4 partitions! (Trimming) some how it's was lost!"

DISCARD is not supported on new EXT4 Drivers, and not needed.

4>EXT4-fs (mmcblk0p12): mounting with "discard" option, but the device does not support discard
6>EXT4-fs (mmcblk0p12): mounted filesystem with writeback data mode. Opts: noauto_da_alloc,journal_async_commit,discard
6>EXT4-fs (mmcblk0p9): recovery complete
4>EXT4-fs (mmcblk0p9): mounting with "discard" option, but the device does not support discard
6>EXT4-fs (mmcblk0p9): mounted filesystem with writeback data mode. Opts: noauto_da_alloc,journal_async_commit,discard

This reverts commit cbfc9f154b8fb04baaddd37d2f47cd171ef379f9.
Allow access to rfkill
Changed CPU set to new multi cpu gov define. TNX to @Alucard24

Now CPU gov will be set on 2 cores! and not for cpu0 only.
Fixed ROOT set to disable for 4.3 ROMS.

if using ADB for something, need to type su in adb to get access!

that what i call CM crap.
Cleaned install script.
And Dori said there will be ROOT for 4.3 and others, and it was as promissed!

In 4.3 ROM need to set ROOT to disabled in settings > developer options

Then SuperSu 1.65 will be activated on next boot!
Run ROOT install and load early on boot + cleanups.

Disbaled use of 4.3 Build In ROOT till CM will make it usable for all.
After Reading info about admin_reserve_kbytes

admin_reserve_kbytes

The amount of free memory in the system that should be reserved for users
with the capability cap_sys_admin.

admin_reserve_kbytes defaults to min(3% of free pages, 8MB)

That should provide enough for the admin to log in and kill a process,
if necessary, under the default overcommit 'guess' mode.

Systems running under overcommit 'never' should increase this to account
for the full Virtual Memory Size of programs used to recover. Otherwise,
root may not be able to log in to recover the system.

How do you calculate a minimum useful reserve?

sshd or login + bash (or some other shell) + top (or ps, kill, etc.)

For overcommit 'guess', we can sum resident set sizes (RSS).
On x86_64 this is about 8MB.

For overcommit 'never', we can take the max of their virtual sizes (VSZ)
and add the sum of their RSS.
On x86_64 this is about 128MB.

Changing this takes effect whenever an application requests memory.

=============

we use the 'guess' overcommit, so 8mb is what we should have.
Revert "Changed CPU set to new multi cpu gov define. TNX to @Alucard24"

This reverts commit 16d4fcfacb9976c7fa9f9828ccc4f753c0d2c518.

We have found that we cant use that function, and must use the original.

Reverting to restore stability in gov change.
Removed Scary CPU GOV from Stweaks. it's broken and old.
Fixed MEM allocation for SAMMY ROMS. and Frandom perm fix.
Improved Profiles RESET on need, and profiles change script. + small restore

restored randomize_va_space 2 for SAMMY it's needed for system.

When i will update something important in scripts that needs profile
reset i will rise the MAGIC number by 1 and all that will install kernel
we have profile reset on boot for one time only!
Profiles reset bug fix :)
Reduced Voltage for CPU Group 1 by -25mv and fixed terrble error on low freqs!

Voltage was too high! 12** and not 10** OPPS!
Reworked ROOT install for 4.3 ROM that installed as SEC ROM + Cleaning.
Added busfreq_up_threshold_sleep tunning to STweaks to help with wakeup.