Permalink
Browse files

Moved DIDLE enabler to screenstate scaling (cleaned), redone permissi…

…ons, added cleaning, public beta 5
  • Loading branch information...
1 parent f26fcf3 commit 4553a36594f35847c610cc5041c6e3677ecfa82c @Tk-Glitch Tk-Glitch committed Feb 21, 2012
@@ -185,9 +185,6 @@ static const struct attribute_group modemctl_group = {
.attrs = modemctl_attributes,
};
-/* declare mailbox init function for xmm */
-extern void onedram_init_mailbox(void);
-
static void xmm_on(struct modemctl *mc)
{
dev_dbg(mc->dev, "%s\n", __func__);
@@ -196,8 +193,6 @@ static void xmm_on(struct modemctl *mc)
/* ensure pda active pin set to low */
gpio_set_value(mc->gpio_pda_active, 0);
- /* call mailbox init : BA goes to high, AB goes to low */
- onedram_init_mailbox();
/* ensure cp_reset pin set to low */
gpio_set_value(mc->gpio_cp_reset, 0);
if(mc->gpio_reset_req_n)
View
@@ -104,7 +104,7 @@ REL=CM9-${target}-Glitch-$(date +%Y%m%d.%H%M).zip
cp $formodules/fs/nls/nls_utf8.ko system/lib/modules/nls_utf8.ko
cp S99screenstate_scaling system/etc/init.d/ || exit 1
- cp S98rfkill_didle system/etc/init.d/ || exit 1
+ #cp S98rfkill_didle system/etc/init.d/ || exit 1
if [ "$target" = fascinatemtd ] ; then
cp 90call_vol_fascinate system/etc/init.d/ || exit 1
@@ -4,8 +4,7 @@
# original by 'FloHimself'(florian.schaefer@gmail.com)
# modifications by 'zacharias.maladroit' and 'well.heeled.man'
-# Further modifications by Efpophis (billcrossley@gmail.com)
-# soon: an app to control my extra options
+# Further modifications by Efpophis (billcrossley@gmail.com) and TkGlitch (Ti3noU@gmail.Com)
# as it turns out, I get better battery life without this running
# at all. Maybe the thing polling constantly is draining
@@ -42,54 +41,8 @@ do
if [ $AWAKE = "awake" ]; then
echo $AWAKE_GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- # adjust some stuff based on what gov we're using
- case "$AWAKE_GOVERNOR" in
-
- # =========
- # Smartass settings (restore defaults while awake)
- # =========
- 'smartass')
- # default = 70
- echo "70" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/max_cpu_load
-
- # default = 35
- echo "35" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/min_cpu_load
-
-
- # these are the defaults
- echo "800000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/up_min_freq
- echo "400000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_max_freq
- ;;
-
- # =========
- # Ondemand settings [restore defaults while awake]
- # =========
- 'ondemand')
-
- # default value = 55
- echo "55" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
-
- # default value = 40000
- echo "40000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
- ;;
-
- # =========
- # Conservative settings [SavagedZen (which is smartass-like) governor-like] (conservative AWAKE_GOVERNOR)
- # =========
- 'conservative')
- # default = 80
- echo "75" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold
-
- # default = 20
- echo "30" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold
-
- # default = 5
- echo "50" > /sys/devices/system/cpu/cpufreq/conservative/freq_step
-
- # default = 78124
- echo "80000" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate
- ;;
- esac
+ # DIDLE enabler
+ echo 0 > /sys/devices/platform/bt_rfkill/rfkill/rfkill0/soft
AWAKE=
fi
@@ -107,66 +60,8 @@ AWAKE=
echo $SLEEP_GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- case "$SLEEP_GOVERNOR" in
-
- # =========
- # Conservative settings [very conservative](conservative SLEEP_GOVERNOR)
- # =========
- 'conservative')
- # default = 80
- echo "90" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold
-
- # default = 20
- echo "50" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold
-
- # default = 5
- echo "10" > /sys/devices/system/cpu/cpufreq/conservative/freq_step
-
- # default = 78124
- echo "500000" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate
- ;;
-
-
- # =========
- # Smartass settings (slightly more battery friendly than Glitch Kernel defaults - peformance penalty unclear)
- # =========
- 'smartass')
- # default = 70
- echo "50" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/max_cpu_load
-
- # default = 35
- echo "30" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/min_cpu_load
-
-
- # these are the defaults
- echo "800000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/up_min_freq
- echo "400000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_max_freq
- ;;
-
- # =========
- # Ondemand settings [more aggressive power savings vs. standard ondemand]
- # also less responsive, but we don't need responsiveness when the screen is
- # off.
- # =========
- 'ondemand')
-
- # default value = 55
- echo "98" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
-
- # default value = 40000
- echo "300000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
- ;;
-
- #==========
- # Powersave settings - nothing here is relevant since powersave sticks to
- # the lowest allowable freq. Note that this gov will
- # probably be WORSE on power than conservative.
- #==========
- 'powersave')
- # nothing to do here
- ;;
-
- esac
+ # DIDLE enabler
+ echo 1 > /sys/devices/platform/bt_rfkill/rfkill/rfkill0/soft
# Finishing.
@@ -38,6 +38,7 @@ delete("/system/etc/init.d/S98edt_tweaks");
delete("/system/etc/init.d/s99acidext4tweak");
delete("/system/etc/init.d/00remount");
delete("/system/etc/init.d/02Transform");
+delete("/system/etc/init.d/S98rfkill_didle");
delete("/system/etc/init.d/01acid_sysctl");
package_extract_dir("script", "/tmp/script");
set_perm(0, 0, 755, "/tmp/script/cleaningmodules");
@@ -71,7 +72,7 @@ package_extract_dir("system/", "/system/");
set_perm(0, 1000, 0777, "/system/bin/logcat-on");
set_perm(0, 1000, 0777, "/system/bin/logcat-off");
set_perm(0, 0, 0777, "/system/bin/sysinit");
-set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
+set_perm_recursive(0, 2000, 0777, 0777, "/system/etc/init.d");
show_progress(0.200000, 10);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
View
@@ -1,21 +1,18 @@
#!/system/bin/sh
-# DIDLE Enabler script
-
(while [ 1 ];
do
-
AWAKE=`cat /sys/power/wait_for_fb_wake`;
if [ $AWAKE = "awake" ]; then
- sleep 2 && echo 0 > /sys/devices/platform/bt_rfkill/rfkill/rfkill0/soft
-
+ sleep 2;
+ echo 0 > /sys/devices/platform/bt_rfkill/rfkill/rfkill0/soft
AWAKE=;
fi;
SLEEPING=`cat /sys/power/wait_for_fb_sleep`;
if [ $SLEEPING = "sleeping" ]; then
- sleep 2 && echo 1 > /sys/devices/platform/bt_rfkill/rfkill/rfkill0/soft
-
+ sleep 2;
+ echo 1 > /sys/devices/platform/bt_rfkill/rfkill/rfkill0/soft
SLEEPING=;
fi;
done &);

0 comments on commit 4553a36

Please sign in to comment.