JoeSchubert / kernel_adiutor

This project is a manually uploaded fork of Grarak's Kernel Adiutor (for searching reasons)

Home Page:http://forum.xda-developers.com/android/apps-games/kernel-adiutor-mod-singularity-kernel-t3333549

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hima Hotplug strings

yarpiin opened this issue · comments

if [ -d "/sys/kernel/hima_hotplug" ]; then
$BB echo '{ SPane:{
title:"Hima Hotplug"
}},'
if [ -f "/sys/kernel/hima_hotplug/hima_hotplug_active" ]; then
HIMAN=$BB cat /sys/kernel/hima_hotplug/hima_hotplug_active
$BB echo '{ SCheckBox:{
label:"Hotplug Enabled",
description:"Hotplug Driver ported from HTC m9.",
default:'$HIMAN',
action:"generic /sys/kernel/hima_hotplug/hima_hotplug_active"
}},'
fi
if [ -f "/sys/kernel/hima_hotplug/current_profile_no" ]; then
HP=$BB cat /sys/kernel/hima_hotplug/current_profile_no;
$BB echo '{ SOptionList:{
title:"Hotplug Style",
description:"Sets how hotplug drives cpus.",
default:'$HP',
action:"generic /sys/kernel/hima_hotplug/current_profile_no",
values:{
1:"Power Save", 0:"Balanced", 2:"Performance"
}
}},'
fi
if [ -f "/sys/kernel/hima_hotplug/min_cpus_online" ]; then
CPU=$BB cat /sys/kernel/hima_hotplug/min_cpus_online
$BB echo '{ SSeekBar:{
title:"Minimum CPUs online at anytime",
min:1,
max:8,
step:1,
default:'$CPU',
action:"generic /sys/kernel/hima_hotplug/min_cpus_online"
}},'
fi
if [ -f "/sys/kernel/hima_hotplug/max_cpus_online" ]; then
CPU=$BB cat /sys/kernel/hima_hotplug/max_cpus_online
$BB echo '{ SSeekBar:{
title:"Maximum CPUs online at anytime",
min:1,
max:8,
step:1,
default:'$CPU',
action:"generic /sys/kernel/hima_hotplug/max_cpus_online"
}},'
fi
if [ -f "/sys/kernel/hima_hotplug/def_sampling_ms" ]; then
DS=$BB cat /sys/kernel/hima_hotplug/def_sampling_ms;
$BB echo '{ SSeekBar:{
title:"Defer Sampling",
min:0,
max:100,
unit:" ms",
step:1,
default:'$DS',
action:"generic /sys/kernel/hima_hotplug/def_sampling_ms"
}},'
fi
fi`

This is mine settings from UKM if possible please add it into KA

Works ok !! Great job :)

Taken care of here:
#57