[G1 Android Development] kb7sqi:
user.conf howto/hints

Hi all,

I guess I need to clear this up a bit more. Here's the "sample" user.conf file that's sitting in /system/. If you copy this file to your /system/sd & edit accordingly, it'll provide all the extras you're wanting. First off, like any hero build, etc, /system/sd is your ext2/3 partition on your card. If you're not comfortable w/ using command line stuff, then hook it up to your PC/Mac, etc. Use adb pull /system/user.conf to your current directory, edit the file, & use adb push user.conf /system/sd/ to push it back to your phone. Everything is turned on by replacing a 0 w/ a 1. You want auto apps2sd? Set apps2sd=1. Once you reboot, the phone will automatically push all your apps out to /system/sd & create the links required. If you want to enable compcache, set compcache_en=1 and edit it accordingly. The "renice" option is something that was based off work created by Mike Taylor & then added to Enomther's Rogers build. The script is pretty much identical to his /system/bin/expprid script. If you enable the it, w/ renice=1, then it'll be kicked off on boot up. I hope this clears things up. Take care. :)

# General parameters

general{

apps2sd=0	# Using modified a2sd script, set if you want apps2sd!

CONF_FILE="/system/sd/user.conf"	#location of user.conf

permission_fix=0 # perform permission fix at start up (this parameter sets to 0 after script is executed)

renice=0	# Set this if you want to run /system/bin/prid script

}

#compcache related parameters

compcache{

compcache_en=0	# enable(1) or disable(0) compcache

cc_disksize=32	# Ram swap disksize - any number between 1 to 95 should work; default is 1/4 of the RAM (24)

cc_memlimit=16	# Limit the memory usage for backing swap (cc .5x known issue-defaults to 15% of total RAM)

cc_backingswap_en=0	# enable(1) or disable(0) backing swap

cc_backingswap=/dev/block/mmcblk0p3 # pointing to the backingswap partition device, swap

cc_swappiness=30 # default 60

}

#create swap file for compcache or linux swap

swap_file{

swap_file_en=0	# set to 1 to create swap file

# set to 0 to del the swap file

linux_swap_file_size=32	# swap file size in MB

linux_swap_file=/system/sd/swap.file	# pointing to the swap file location ( must be /system/sd/)

}

#Linux swap parameters

#

# linux swap can only be enabled if cc_backingswap_en is set to "0"

#

linux_swap{

linux_swap_en=0	# enable(1) or disable(0) linux swap

linux_swap_partition=/dev/block/mmcblk0p3 # swap partition device

swappiness=30 # default 60

}

#virtual memory

sys_vm{

sys_vm_en=0	# enable(1) or disable(0) virtual memory configurations

page_cluster=0	# default 3, (0 since CM3.9.6+)

laptop_mode=0	# default 0

dirty_expire_centisecs=3000	# default 3000

dirty_writeback_centisecs=500	# default 500

dirty_background_ratio=5	# default 5

dirty_ratio=10	# default 10

}

#cpu clock

proc_cpu{

proc_cpu_en=1	# enable(1) or disable(0) user cpu configurations

# freqency options

# 19200

# 122880

# 128000

# 245760

# 384000

# 528000

scaling_min_freq=245760	# default 245760

scaling_max_freq=384000	# default 528000

sampling_rate=2000000	# default 2000000 depending on kernel version

powersave_bias=200	# default 0, (200 since CM3.9.6+ )

up_threshold=40	# default 40, percent cpu usage before going up a speed step

}

# custom shell commands, these commands run last

custom_shells{

#echo "Hello!!!" # example

#echo "You can create your own cmmands here" # example

}