download:deadline-iosched.ko
sio-iosched.ko
2012年12月25日 星期二
2012年12月24日 星期一
flipout(rooted) overclock and drop voltage
insmod /system/lib/modules/overclock.ko[1] omap2_clk_init_cpufreq_table_addr=0xc00505b4
unstable
[update]
echo 50 > /proc/overclock/max_vsel
echo 800000 > /proc/overclock/max_rate
echo "1 600000" > /proc/overclock/freq_table
echo "2 400000" > /proc/overclock/freq_table
echo "3 300000" > /proc/overclock/freq_table
echo "4 200000" > /proc/overclock/freq_table
echo "1 200000000 20" > /proc/overclock/mpu_opps
echo "2 300000000 25" > /proc/overclock/mpu_opps
echo "3 400000000 30" > /proc/overclock/mpu_opps
echo "4 600000000 40" > /proc/overclock/mpu_opps
reference:[1]milestone-overclock
2012年12月22日 星期六
steam on debian wheezy(x86_64) with ATI HD4650, play TF2.
2012年12月21日 星期五
2012年10月21日 星期日
2012年10月10日 星期三
2012年10月5日 星期五
My Openbox theme 'TheLunarCycle' with LXDE
about designed concept:
iconify-> show the lunar eclipse
max-> show half moon
max_toggled-> show full moon
close->show sun
close_hover:
iconify-> show the lunar eclipse
max-> show half moon
max_toggled-> show full moon
close->show sun
close_hover:
iconify_hover:
max_toggled(left to right, Lunar eclipse, Full moon, Sun):
max(left to right, Lunar eclipse, Half Moon, Sun):
max_hover:
max_toggled_hover:
Download:
TheLunarCycle.obt
TheLunarCycle.obt
2012年9月10日 星期一
flipout (rooted), conservative and powersave module of cpufreq
flipout has no compiled conservative and powersave of cpufreq in kernel.
but we can use compile kernel for modules.
module files:
cpufreq_conservative.ko
cpufreq_powersave.ko
BTW: flipout must be rooted.
but we can use compile kernel for modules.
module files:
cpufreq_conservative.ko
cpufreq_powersave.ko
BTW: flipout must be rooted.
2012年7月23日 星期一
asus rt-n16 pppoe with jdownloader reconnect
#!/usr/bin/expect
spawn telnet 192.168.1.1
expect login:
send admin\r
expect Password:
send admin\r
send "killall pppd &\r"
send "nohup /usr/sbin/pppd file /tmp/ppp/options.wan0 nodetach &\r"
send exit\r
interact
save as a script file, than jdownloader can use it to reconnect.
2012年6月1日 星期五
CM7 OMAP3 libaudio.so alsa-sound
BoardConfig.mk:
BOARD_USES_ALSA_AUDIO := true
BUILD_WITH_ALSA_UTILS := true
reference:http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1.1_PortingGuides
2012年5月30日 星期三
2nd-init recovery can't mount sdcard
check /dev/block/mmcblk0 has exists
if not exists
# cd /dev/block/
# mknod mmcblk0 b 179 0
# mknod mmcblk0p1 b 179 1
reference:http://forum.cyanogenmod.com/topic/33179-problems-installing-71-recovery-cant-mount-sdcard/
if not exists
# cd /dev/block/
# mknod mmcblk0 b 179 0
# mknod mmcblk0p1 b 179 1
reference:http://forum.cyanogenmod.com/topic/33179-problems-installing-71-recovery-cant-mount-sdcard/
2012年3月12日 星期一
xt502 CM7 z71 phone driver
when xt502 with CM7, the device become to z71 phone,
XP can't recognition the driver,
so we can use Google USB Driver package to install the driver.
1. download android SDK
2. use Android SDK Manager
3. in Extras, install Goole USB Driver package
4. the driver data will generated at extras directory
5. edit android_winusb.inf
the drive identify should be VID_0489&PID_C001
add to x86 or amd64
;Z71
%SingleAdbInterface% = USB_Install, USB\VID_0489&PID_C001
%CompositeAdbInterface% = USB_Install, USB\VID_0489&PID_C001&MI_01
;
6.install android_winusb.inf
XP can't recognition the driver,
so we can use Google USB Driver package to install the driver.
1. download android SDK
2. use Android SDK Manager
3. in Extras, install Goole USB Driver package
4. the driver data will generated at extras directory
5. edit android_winusb.inf
the drive identify should be VID_0489&PID_C001
add to x86 or amd64
;Z71
%SingleAdbInterface% = USB_Install, USB\VID_0489&PID_C001
%CompositeAdbInterface% = USB_Install, USB\VID_0489&PID_C001&MI_01
;
6.install android_winusb.inf
2012年2月16日 星期四
tuning MB511 with sysctl
# white /system/etc/sysctl.conf
kernel.threads-max=4096 #max threads, smart phoen really use really use so much threads?
vm.swappiness = 0 #MB511 can't use swap, so...
vm.dirty_expire_centisecs=0
vm.dirty_writeback_centisecs=0
vm.min_free_kbytes = 4096 #keep minimum of 4MB idle space
vm.dirty_ratio = 90
vm.dirty_background_ratio = 70
vm.vfs_cache_pressure = 10
vm.panic_on_oom = 2
vm.oom_kill_allocating_task = 1 #use android memory manager
kernel.panic = 5 #Enabling kernel panic reboot
kernel.shmmax = 2147483648 #256MB
kernel.shmall = 16777216 #16MB
#userinit.sh
sysctl -p
echo "1536,2048,4096,8192,16384,24576" > /sys/module/lowmemorykiller/parameters/
minfree #use android memory manager
JUST FOR FUN!!
kernel.threads-max=4096 #max threads, smart phoen really use really use so much threads?
vm.swappiness = 0 #MB511 can't use swap, so...
vm.dirty_expire_centisecs=0
vm.dirty_writeback_centisecs=0
vm.min_free_kbytes = 4096 #keep minimum of 4MB idle space
kernel.panic = 5 #Enabling kernel panic reboot
kernel.shmmax = 2147483648 #256MB
kernel.shmall = 16777216 #16MB
#userinit.sh
sysctl -p
echo "1536,2048,4096,8192,16384,24576" > /sys/module/lowmemorykiller/parameters/
minfree #use android memory manager
JUST FOR FUN!!
2012年2月14日 星期二
tuning MB511
#write in userinit.sh
#use cgroup tuning cpu tasks, default init.rc can't write
busybox mkdir -p /dev/cgroup/cpu
busybox mount -t cgroup cgroup -o cpu /dev/cgroup/cpu
echo "/system/local/sbin/cgroup_clean" > /dev/cgroup/cpu/release_agent
busybox mkdir -m 0777 /dev/cgroup/cpu/bg_root
chown root.root /dev/cgroup/cpu/bg_root/tasks
chmod 0777 /dev/cgroup/cpu/bg_root/tasks
echo "500" > /dev/cgroup/cpu/bg_root/cpu.shares #root can get 50% cpu time?
busybox mkdir -m 0777 /dev/cgroup/cpu/bg_non_interactive
chown system.system /dev/cgroup/cpu/bg_non_interactive/tasks
chmod 0777 /dev/cgroup/cpu/bg_non_interactive/tasks
echo "200" > /dev/cgroup/cpu/bg_non_interactive/cpu.shares #system can get 20% cpu time ?
echo "1" > /dev/cgroup/cpu/notify_on_release
echo "1" > /dev/cgroup/cpu/bg_root/notify_on_release
echo "1" > /dev/cgroup/cpu/bg_non_interactive/notify_on_release
nice logcat > /system/sd/swap/$(date +%Y%m%d-%H).log & #save log
nice /data/local/Clear.sh &
nice /data/local/SCgroupTask.sh & //60s update tasks
#Clear.sh
#!/system/bin/sh
while [ true ]
do
echo 'start'
for file in `find /system/sd/logs -mtime +3 -name '*.log' -print 2>/dev/null`
do
rm $file
done
sleep 24h
done
#SCgroupTask.sh
-----
while [ true ]
do
ps | grep root | awk '{print $2}' > /dev/cgroup/cpu/bg_root/tasks #add root tasks to cgroup
ps | grep system\ | awk '{print $2}' > /dev/cgroup/cpu/bg_non_interactive/tasks #add system tasks to cgroup
sleep 60s
done
JUST FOR FUN!!
2012年2月10日 星期五
Android Install APK has out of memory on a 32784-byte allocation
Add(change) dalvik.vm.heapsize=48m to /data/local.prop or /system/build.prop
2012年1月31日 星期二
訂閱:
文章 (Atom)