2012年12月25日 星期二

flipout(rooted) I/O scheduler recompile module of deadline and sio(update)

download:deadline-iosched.ko
                sio-iosched.ko

2012年12月24日 星期一

flipout(rooted) overclock and drop voltage


insmod /system/lib/modules/overclock.ko[1] omap2_clk_init_cpufreq_table_addr=0xc00505b4
echo 50 > /proc/overclock/max_vsel
echo 800000 > /proc/overclock/max_rate

echo "1 600000" > freq_table
echo "2 400000" > freq_table
echo "3 200000" > freq_table
echo "4 125000" > freq_table


echo "1 125000000 16" > /proc/overclock/mpu_opps
echo "2 200000000 20" > /proc/overclock/mpu_opps
echo "3 400000000 30" > /proc/overclock/mpu_opps
echo "4 600000000 40" > /proc/overclock/mpu_opps

unstable[update]


echo 52 > /proc/overclock/max_vsel
echo 875000 > /proc/overclock/max_rate

echo "1 675000" > /proc/overclock/freq_table
echo "2 475000" > /proc/overclock/freq_table
echo "3 275000" > /proc/overclock/freq_table
echo "4 200000" > /proc/overclock/freq_table


echo "1 200000000 18" > /proc/overclock/mpu_opps
echo "2 275000000 22" > /proc/overclock/mpu_opps
echo "3 475000000 32" > /proc/overclock/mpu_opps
echo "4 675000000 42" > /proc/overclock/mpu_opps

[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



2012年12月22日 星期六

steam on debian wheezy(x86_64) with ATI HD4650, play TF2.

add i386 architecture
#dpkg --add-architecture i386

use "Steam installer for Debian"[1]
#./steam_bootstrap.sh

use LD_DEBUG=libs to check i386 libs
# LD_DEBUG=libs steam

use ATI closed driver[2]

the question of "GL_EXT_texture_sRGB_decode", solved[3]

reference:[1]
               [2]
               [3]

2012年12月21日 星期五

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_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:



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.

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年5月30日 星期三

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

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!!

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
find /system/sd/swap -mtime +3 -name "*.log" -exec rm -rf {} \ #del over 3 days 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日 星期五

2012年1月31日 星期二