Permalink
Browse files

+ merge / testing

  • Loading branch information...
1 parent a60d5de commit 283629bc760b347f0a4c33f709c155ebf90fec17 menadwork GmbH committed May 18, 2012
View
940 init.b2g

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -13,7 +13,7 @@ case "${chargecurrent}" in
echo "650 450 450" > /sys/devices/virtual/misc/charge_current/charge_current
;;
2)
- echo "650 650 450" > /sys/devices/virtual/misc/charge_current/charge_current
+ echo "700 650 500" > /sys/devices/virtual/misc/charge_current/charge_current
;;
3)
echo "650 650 650" > /sys/devices/virtual/misc/charge_current/charge_current
@@ -1,10 +1,10 @@
GPUFREQ1=100
-GPUFREQ2=200
+GPUFREQ2=160
GPUFREQ3=267
GPUVOLT1=900
GPUVOLT2=950
GPUVOLT3=1000
-GPUTHRESHOLD1UP=65
+GPUTHRESHOLD1UP=85
GPUTHRESHOLD2DOWN=40
GPUTHRESHOLD2UP=85
GPUTHRESHOLD3DOWN=50
@@ -22,7 +22,7 @@ logger=on
secondcore=hotplug
scheduler=sio
scaling_governor=ondemand
-scaling_max_freq=1000000
+scaling_max_freq=1200000
scaling_min_freq=100000
load_l1=30
load_h0=35
@@ -31,13 +31,16 @@ min_rq=1
freq_min=800000
install_root=on
mov_hysti=5
-suspend_freq=500000
-vibrator_level=3
+suspend_freq=800000
+vibrator_level=4
user_gamma_adjust=-5
-blnww=on
-cpustepcount=18
+blnww=off
+cpustepcount=6
notification_enabled=off
notification_timeout=0
led_timeout=0
bln_effect=0
touchkey_brightness=2700
+led_fadeout=off
+led_on_touch=off
+cpu_undervolting=-50
@@ -16,13 +16,13 @@
<seekBar description="Minimum CPU Speed (default is 100)"
name="scaling_min_freq" action="generic /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq" unit="Mhz" min="100000" reversed="false" step="100000" max="1500000"/>
<seekBar description="second core will be enabled when the load goes above this threshold (default is 30)"
- name="load_h0" action="generic /sys/module/stand_hotplug/parameters/load_h0" unit="%" min="0" reversed="false" step="1" max="35"/>
+ name="load_h0" action="generic /sys/module/stand_hotplug/parameters/load_h0" unit="%" min="0" reversed="false" step="1" max="35"/>
<seekBar description="second core will be disabled when the load goes below this threshold (default is 20)"
- name="load_l1" action="generic /sys/module/stand_hotplug/parameters/load_l1" unit="%" min="0" reversed="false" step="1" max="35"/>
+ name="load_l1" action="generic /sys/module/stand_hotplug/parameters/load_l1" unit="%" min="0" reversed="false" step="1" max="35"/>
<seekBar description="(default is 2)"
name="min_rq" action="generic /sys/module/stand_hotplug/parameters/min_rq" unit="" min="0" reversed="false" step="1" max="2"/>
<seekBar description="(default is 20)"
- name="load_rq" action="generic /sys/module/stand_hotplug/parameters/load_rq" unit="%" min="5" reversed="false" step="1" max="35"/>
+ name="load_rq" action="generic /sys/module/stand_hotplug/parameters/load_rq" unit="%" min="5" reversed="false" step="1" max="35"/>
<seekBar description="Sets hot plug sampling intervals for screen-on state (default is 100)"
name="rate" action="generic /sys/module/stand_hotplug/parameters/rate" unit=" jiffies" min="50" reversed="false" step="50" max="1000"/>
<seekBar description="Sets the frequency below which second core will not be turned on, regardless of thresholds. (default: 100000)"
@@ -58,17 +58,23 @@
name="sched_mc" action="generic /sys/devices/system/cpu/sched_mc_power_savings" unit="" min="0" reversed="false" step="1" max="2"/>
</settingsPane>
- <!--settingsPane description=""
- name="CPU Stepping Settings">
- <spinner description="This setting will change CPU step count, Steps are in MHZ (Restart required)." name="CPU Step Count" action="generic /tmp/cpustepcount">
- <spinnerItem name="5 (1200->200-5-Steps)" value="5"/>
- <spinnerItem name="6 (1400->200-6-Steps)" value="6"/>
- <spinnerItem name="7 (1500->200-7-Steps-default)" value="7"/>
- <spinnerItem name="8 (1600->100-8-Steps)" value="8"/>
- <spinnerItem name="9 (1600->50-9-Steps)" value="9"/>
- <spinnerItem name="18 (1500->25-17-Steps)" value="17"/>
+ <settingsPane description=""
+ name="CPU Step Count + Undervolting">
+ <spinner description="This setting will change CPU step count (Restart required)." name="CPU Step Count" action="generic /tmp/cpustepcount">
+ <spinnerItem name="6 (1200-1000-800-500-200-100MHz)" value="6"/>
+ <spinnerItem name="7 (1400->100-7-Steps)" value="7"/>
+ <spinnerItem name="8 (1500->100-8-Steps)" value="8"/>
+ <spinnerItem name="9 (1500->100-9-Steps)" value="9"/>
+ <spinnerItem name="15 (1500->100-15-Steps)" value="15"/>
</spinner>
- </settingsPane-->
+ <spinner description="Sets the CPU undervolting value which will be apploed during boot time only. It will not have any effect until you restart your device. Remember: if you change this value and your device doesn't boot you will have to reset extweaks settings using CWM recovery. This value will be applied to all CPU steps before any script or app execution. If you use any script or voltage control app this setting may be overriden by those." name="CPU Undervolting" action="generic /tmp/cpu_undervolting">
+ <spinnerItem name="No Undervolting" value="0"/>
+ <spinnerItem name=" -25 mV" value="-25"/>
+ <spinnerItem name=" -50 mV" value="-50"/>
+ <spinnerItem name=" -75 mV" value="-75"/>
+ <spinnerItem name="-100 mV" value="-100"/>
+ </spinner>
+ </settingsPane>
</settingsTab>
@@ -183,6 +189,8 @@
<spinnerItem name="30 sec" value="30000"/>
<spinnerItem name="60 sec" value="60000"/>
</spinner>
+ <checkbox description="Led fadeout effect. If you are on a Samsung ROM, you need to set touchkey leds to always on or always off and use led timeout in ExTweaks." name="led-fadeout" action="generic /sys/class/misc/notification/led_fadeout" label="led-fadeout"/>
+ <checkbox description="Selecting this will activate turning touckey leds on when you touch the screen (only when led timeout is enabled)." name="Leds on with touch" action="generic /sys/class/misc/notification/led_on_touch" label="led-on-touch"/>
<button description="Use this button to test bln. BLN will be active after you turn the screen off." name="Test BLN" action="test-bln" label="Test BLN"/>
<seekBar description="Controls touchpad led voltage level (default: 3000)"
name="Led Voltage Level" action="generic /sys/devices/virtual/sec/sec_touchkey/touchkey_brightness" unit=" mV" min="2500" reversed="false" step="50" max="3300"/>
@@ -218,7 +226,7 @@
</spinner>
<spinner description="Charge current setting" name="Charge Current" action="chargecurrent">
<spinnerItem name="AC:650mA, Misc,USB:450mA (Stock)" value="1"/>
- <spinnerItem name="AC:650mA, Misc:550mA, USB:450mA" value="2"/>
+ <spinnerItem name="AC:700mA, Misc:650mA, USB:500mA" value="2"/>
<spinnerItem name="All:650mA (risky for USB ports)" value="3"/>
</spinner>
<button description="If you think that the fuel gauge chip is behaving weird use this button to reset it. Give it a few hours after you reset the gauge. It may still show you funny values for those period, then the battery percentage should be fine." name="Reset Fuel-Gauge Chip" action="reset-fuelgauge" label="Reset Fuel-Gauge Chip"/>
@@ -1,8 +1,8 @@
GPUFREQ1=100
GPUFREQ2=160
GPUFREQ3=267
-GPUVOLT1=900
-GPUVOLT2=950
+GPUVOLT1=950
+GPUVOLT2=1000
GPUVOLT3=1000
GPUTHRESHOLD1UP=85
GPUTHRESHOLD2DOWN=50
@@ -11,13 +11,13 @@ GPUTHRESHOLD3DOWN=70
GPUSTAYCOUNT1=2
GPUSTAYCOUNT2=1
GPUSTAYCOUNT3=1
-min_bl=50
+min_bl=30
min_gamma=0
-max_gamma=20
+max_gamma=24
rate=100
enable_mask=3
sched_mc_power_savings=0
-chargecurrent=1
+chargecurrent=2
logger=off
secondcore=hotplug
scheduler=sio
@@ -31,13 +31,16 @@ min_rq=2
freq_min=500000
install_root=on
mov_hysti=5
-suspend_freq=500000
-vibrator_level=3
+suspend_freq=800000
+vibrator_level=4
user_gamma_adjust=0
-blnww=off
-cpustepcount=18
-notification_enabled=off
-notification_timeout=0
-led_timeout=0
-bln_effect=0
+blnww=on
+cpustepcount=15
+notification_enabled=on
+notification_timeout=20
+led_timeout=60
+bln_effect=1
touchkey_brightness=3000
+led_fadeout=on
+led_on_touch=off
+cpu_undervolting=0
@@ -31,13 +31,16 @@ min_rq=2
freq_min=300000
install_root=on
mov_hysti=3
-suspend_freq=500000
+suspend_freq=800000
vibrator_level=4
user_gamma_adjust=0
-blnww=off
-cpustepcount=18
-notification_enabled=off
-notification_timeout=0
-led_timeout=0
+blnww=on
+cpustepcount=15
+notification_enabled=on
+notification_timeout=30
+led_timeout=30
bln_effect=1
touchkey_brightness=3000
+led_fadeout=on
+led_on_touch=off
+cpu_undervolting=0
@@ -58,7 +58,7 @@ on post-fs-data
insmod /system/lib/modules/Si4709_driver.ko
# mount param.lfs
- insmod /lib/modules/j4fs.ko
+ insmod /lib/modules/j4fs.ko
mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
# GPS
@@ -61,7 +61,7 @@ on post-fs-data
insmod /system/lib/modules/Si4709_driver.ko
# mount param.lfs
- insmod /lib/modules/j4fs.ko
+ insmod /lib/modules/j4fs.ko
mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
# GPS
Binary file not shown.
View
Binary file not shown.
@@ -216,6 +216,8 @@ then
then
echo "70" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;
echo "60000" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate;
+ echo "60" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;
+ echo "100000" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate;
echo "2" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor;
echo "15" > /sys/devices/system/cpu/cpufreq/ondemand/down_differential;
fi;
View
@@ -14,7 +14,6 @@ ccxmlsum=`md5sum /res/customconfig/customconfig.xml | awk '{print $1}'`
if [ "a${ccxmlsum}" != "a`cat /data/.siyah/.ccxmlsum`" ];
then
rm -f /data/.siyah/*.profile
- rm -f /data/.siyah/.active.profile
echo ${ccxmlsum} > /data/.siyah/.ccxmlsum
fi
[ ! -f /data/.siyah/default.profile ] && cp /res/customconfig/default.profile /data/.siyah
@@ -25,31 +24,30 @@ fi
read_defaults
read_config
+//cpu undervolting
+echo "${cpu_undervolting}" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
+
//change cpu step count
case "${cpustepcount}" in
- 5)
- echo 200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
-# echo 1200 1000 800 500 200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
- ;;
6)
- echo 200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
-# echo 1400 1200 1000 800 500 200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
+ echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
+ echo 1200 1000 800 500 200 100 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
;;
7)
- echo 200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
-# echo 1500 1400 1200 1000 800 500 200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
+ echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
+ echo 1400 1200 1000 800 500 200 100 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
;;
8)
echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
-# echo 1600 1400 1200 1000 800 500 200 100 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
+ echo 1500 1400 1200 1000 800 500 200 100 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
;;
9)
echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
-# echo 1600 1500 1400 1200 1000 800 500 200 100 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
+ echo 1500 1400 1200 1000 800 500 300 200 100 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
;;
- 18)
+ 15)
echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
-# echo 1600 1500 1400 1300 1200 1100 1000 900 800 700 600 500 400 300 200 100 50 25 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
+ echo 1500 1400 1300 1200 1100 1000 900 800 700 600 500 400 300 200 100 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
;;
esac;
View
@@ -39,15 +39,12 @@ if [ "$?" == "1" ]; then
mv /res/misc/cyano/init.smdk4210.rc.2 /res/misc/cyano/init.smdk4210.rc
mv /init.rc.2 /init.rc
mv /init.miui.2 /init.miui
+ mv /init.b2g.2 /init.b2g
fi
/sbin/busybox mount -t ext4 /res/dev/system /system
-#Copy new Kernel modules to system/lib/modules
-rm -f /system/lib/modules/*
-cp /lib/modules/* /system/lib/modules/
chmod 755 /system/lib/modules/*
-#Now we using correct modules.
if [ -f /system/recovery.cpio.gz ];
then
@@ -57,7 +54,9 @@ fi;
AOSP=0
MIUI=0
+B2G=0
+[ -d /system/b2g ] && B2G=1
[ -f /system/framework/framework2.jar ] || AOSP=1
[ "`/sbin/busybox grep Slim /system/build.prop`" ] && AOSP=1
[ "`/sbin/busybox grep -i aosp /system/build.prop`" ] && AOSP=1
@@ -71,10 +70,18 @@ MIUI=0
[ "`/sbin/busybox grep -i =MIUI /system/build.prop`" ] && MIUI=1
[ -f /system/framework/framework-miui.jar ] && MIUI=1
+
+if [ "$B2G" == 1 ];
+then
+echo 0 > /proc/sys/kernel/rom_feature_set
+mv /init.b2g /init.rc
+exec /sbin/init.b2g
+fi;
+
if [ "$AOSP" == 1 ];
then
echo 1 > /proc/sys/kernel/rom_feature_set
-cp /res/misc/cyano/sql/libsqlite.so /system/lib/
+cp -a /system/lib/sql/libsqlite.so /system/lib/
chmod 0644 /system/lib/libsqlite.so
/sbin/busybox umount /system
exec /sbin/init.cm
View
@@ -0,0 +1,6 @@
+#!/sbin/busybox sh
+
+rm /init
+mv /innt /init
+cd /
+exec /init

0 comments on commit 283629b

Please sign in to comment.