[L Speed] gerardo87:
I'm seeing just two problems that I haven't see it before:

1- wifi sleeper (mine SM-N910F galaxy note 4 seems not compatible)

#!/system/bin/sh

# Copyright (C) 2016 Paget96

#=======================================================================#

# This program is free software: you can redistribute it and/or modify

# it under the terms of the GNU General Public License as published by

# the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

# This program is distributed in the hope that it will be useful,

# but WITHOUT ANY WARRANTY; without even the implied warranty of

# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License along with this program. If not, see .

#=======================================================================#

LS=/data/data/com.paget96.lspeed/files/logs/LS00Wifi_Sleeper.log

unixComm=/data/data/com.paget96.lspeed/files/binaries/busybox

if [ -f $LS ]; then

$unixComm rm -rf $LS;

fi;

$unixComm echo "# L Speed log" | $unixComm tee -a $LS

$unixComm echo "" | $unixComm tee -a $LS

$unixComm echo "Activating wifi sleeper.." | $unixComm tee -a $LS

# wifi_idle_wait value = 30 seconds

sqlite=/system/xbin/sqlite3

wifi_idle_wait=30000

if [ -e /data/data/com.android.providers.settings/databases/settings.db ]; then

if [ -e $sqlite ]; then

RETURN_VALUE=$($sqlite /data/data/com.android.providers.settings/databases/settings.db "select value from secure where name='wifi_idle_ms'")

if [ "$RETURN_VALUE" = '' ]; then

$sqlite /data/data/com.android.providers.settings/databases/settings.db "insert into secure (name, value) values ('wifi_idle_ms', $wifi_idle_wait )"

else

$sqlite /data/data/com.android.providers.settings/databases/settings.db "update secure set value=$wifi_idle_wait where name='wifi_idle_ms'"

fi

$unixComm echo "Wifi sleeper is activated.." | $unixComm tee -a $LS

else

$unixComm echo "Wifi sleeper cannot be activated because your device doesn't have sqlite3 binary.." | $unixComm tee -a $LS

fi

else

$unixComm echo "Wifi sleeper cannot be activated because your device doesn't support it.." | $unixComm tee -a $LS

fi

2-kernel sleepers (seems to be not applied)

#!/system/bin/sh

# Copyright (C) 2016 Paget96

#=======================================================================#

# This program is free software: you can redistribute it and/or modify

# it under the terms of the GNU General Public License as published by

# the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

# This program is distributed in the hope that it will be useful,

# but WITHOUT ANY WARRANTY; without even the implied warranty of

# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License along with this program. If not, see .

#=======================================================================#

LS=/data/data/com.paget96.lspeed/files/logs/LS00Kernel_Sleepers.log

unixComm=/data/data/com.paget96.lspeed/files/binaries/busybox

if [ -f $LS ]; then

$unixComm rm -rf $LS;

fi;

$unixComm echo "# L Speed log" | $unixComm tee -a $LS

$unixComm echo "" | $unixComm tee -a $LS

$unixComm echo "Applying kernel sleepers.." | $unixComm tee -a $LS

# Kernel sleepers

if [ -e "/sys/kernel/debug/sched_features" ]; then

$unixComm mount -t debugfs none /sys/kernel/debug

$unixComm echo "NO_AFFINE_WAKEUPS " > /sys/kernel/debug/sched_features

$unixComm echo "ARCH_POWER " >> /sys/kernel/debug/sched_features

$unixComm echo "CACHE_HOT_BUDDY " >> /sys/kernel/debug/sched_features

$unixComm echo "NO_DOUBLE_TICK " >> /sys/kernel/debug/sched_features

$unixComm echo "NO_FORCE_SD_OVERLAP " >> /sys/kernel/debug/sched_features

$unixComm echo "GENTLE_FAIR_SLEEPERS " >> /sys/kernel/debug/sched_features

$unixComm echo "NO_HRTICK " >> /sys/kernel/debug/sched_features

$unixComm echo "LAST_BUDDY " >> /sys/kernel/debug/sched_features

$unixComm echo "LB_BIAS " >> /sys/kernel/debug/sched_features

$unixComm echo "NO_LB_MIN " >> /sys/kernel/debug/sched_features

$unixComm echo "NO_NEW_FAIR_SLEEPERS " >> /sys/kernel/debug/sched_features

$unixComm echo "NO_NEXT_BUDDY " >> /sys/kernel/debug/sched_features

$unixComm echo "NONTASK_POWER " >> /sys/kernel/debug/sched_features

$unixComm echo "NO_NORMALIZED_SLEEPERS " >> /sys/kernel/debug/sched_features

$unixComm echo "NO_OWNER_SPIN " >> /sys/kernel/debug/sched_features

$unixComm echo "RT_RUNTIME_SHARE " >> /sys/kernel/debug/sched_features

$unixComm echo "START_DEBIT " >> /sys/kernel/debug/sched_features

$unixComm echo "TTWU_QUEUE " >> /sys/kernel/debug/sched_features

$unixComm echo "NO_WAKEUP_OVERLAP " >> /sys/kernel/debug/sched_feature

$unixComm echo "WAKEUP_PREEMPTION " >> /sys/kernel/debug/sched_features

$unixComm echo "Kernel sleepers applied" | $unixComm tee -a $LS

else

$unixComm echo "Kernel sleepers not applied" | $unixComm tee -a $LS

fi

Any help is appreciated [emoji4]

Inviato dal mio SM-N910F utilizzando Tapatalk