power governance-screenstate_scaling - Desire Android Development

thanks to flohimself & mmaacc for explaining the way to do it ... i have come out with a signed.zip to flashed your rom ... it will only work with rom that can initiate
scripts in init.d (most of the a2sd rom have this feature)
Do be aware that some Rom already have implemented this features ... do check your rom first
this is best combine with the undervolt kernel
http://forum.xda-developers.com/showthread.php?t=775997
u need a clockmod or amonRA recover to flash this ... DO A NANDROID first ...
my suggestion,
1. Flash undervolt
2. Flash power governance
enjoy ....
to make sure if the modules work correctly
do lsmod on adb shell
Code:
sh-3.2# lsmod
tun 10766 0 - Live 0xbf076000
ext4 210756 0 - Live 0xbf033000
jbd2 50170 1 ext4, Live 0xbf01d000
cfq_iosched 17976 0 - Live 0xbf012000
cpufreq_powersave 668 1 - Live 0xbf00c000
cpufreq_interactive 2368 0 - Live 0xbf006000
perflock_disable 752 0 - Live 0xbf000000
when u on off your screen u should have this when doing adb logcat | grep screen
Code:
[email protected]:~$ adb logcat | grep screen
I/power ( 3017): *** set_screen_state 0
D/SurfaceFlinger( 3017): About to give-up screen, flinger = 0xb4978
I/screenstate_scaling( 6378): *** sleeping ***: switching CPU frequency governor to -> powersave
I/power ( 3017): *** set_screen_state 1
I/screenstate_scaling( 6525): *** awake ***: switching CPU frequency governor to -> ondemand

terima kasih...!

segatamat said:
terima kasih...!
Click to expand...
Click to collapse
no problem

Related

compcache - working on emulator

I've seen a few people trying compcache and failing horribly, but it seems to work for me.
Build instructions, still raw, not tested on actual device only on emulator (left my phone at work...). I've only tested for a few minutes, but I've seen none of the "horrible crashing the second I swapon" I've seen reported elsewhere.
NOTE THAT /data IS A DUMB PLACE TO PUT KERNEL MODULES, but it's on the emulator for me so I couldn't care less, and that location was rw to begin with
Code:
cd ~/compcache
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- KERNEL_BUILD_PATH=/home/neuron/android-kernel/new/goldfish
emulator -avd CupcakeVM01 -kernel arch/arm/boot/zImage show-kernel -shell
#In compcache directory:
adb push sub-projects/allocators/xvmalloc-kmod/xvmalloc.ko /data
adb push ramzswap.ko /data
#In kernel directory:
adb push lib/lzo/lzo_compress.ko /data
adb push lib/lzo/lzo_decompress.ko /data
#Download and push busybox:
http://benno.id.au/blog/2007/11/14/android-busybox
adb push busybox /data
adb shell
insmod xvmalloc.ko
insmod lzo_decompress.ko
insmod lzo_compress.ko
insmod ramzswap.ko
chmod 744 /data/busybox
cat /proc/devices
- mknod with same block device id
/data/busybox mknod /dev/ramzswap0 b 254 0
#missing priority, wont be needed unless you have swapper too
/data/busybox swapon /dev/ramzswap0
# cat /proc/swaps
Filename Type Size Used Priority
/dev/ramzswap0 partition 23540 204 -1
# cat /proc/ramzswap
DiskSize: 23544 kB
NumReads: 12
NumWrites: 42
FailedReads: 0
FailedWrites: 0
InvalidIO: 0
PagesDiscard: 0
ZeroPages: 3
GoodCompress: 97 %
NoCompress: 2 %
PagesStored: 39
PagesUsed: 8
OrigDataSize: 156 kB
ComprDataSize: 28 kB
MemUsedTotal: 32 kB
I just built this (with some tips from cyanogen) for the compcache author, so he could have a way of reproducing the problem locally to solve it, but I cant seem to find any problem .
I've tested opening a ton of apps, switching between em, and suspending the phone.
Tested on :
cupcake 1.5 emulator
kernel goldfish 2.6.27
latest compcache (not svn)
armv5 compiler
Very basic quick copy&paste info on kernel choice:
Code:
mkdir ~/android-kernel
cd ~/android-kernel
wget http://www.codesourcery.com/sgpp/lite/arm/portal/package3696/public/arm-none-linux-gnueabi/arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 -O arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
tar xjf arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
export PATH=~/android-kernel/arm-2008q3/bin:$PATH
> >> git clone git://android.git.kernel.org/kernel/common kernel-common
> >> cd kernel-common
> >> git branch goldfish origin/android-goldfish-2.6.27
> >> git checkout goldfish
make goldfish_defconfig ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig
- enable loadable modules + lzo
make zImage ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
make modules ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
Well thats a big WTF. I can 100% confirm that it does not work on a regular G1, on neither the 2.6.27 nor the 2.6.29 kernel. Guess the compcache author needs to get himself a G1
Could be an issue with one of the kernel modules that isn't on the emulator I suppose.
On a bright note I can throw in that GoodCompress stays fairly high when swapping between normal android apps, so when we do get it working it's gonna be good
//edit, cyanogen can you send me your kernel .config and any custom patches? And what kernel tree/compiler are you on?
It could be compiler related.
nurre said:
Could be an issue with one of the kernel modules that isn't on the emulator I suppose.
On a bright note I can throw in that GoodCompress stays fairly high when swapping between normal android apps, so when we do get it working it's gonna be good
//edit, cyanogen can you send me your kernel .config and any custom patches? And what kernel tree/compiler are you on?
It could be compiler related.
Click to expand...
Click to collapse
I use the CodeSourcery toolchain to compile kernels. Right now I'm using the android-msm-2.6.29 branch from Android GIT (with all the new camera stuff reverted because it's broken). The only patches I have applied are the Synaptics multitouch patch and the mtd6 enabler patch. I'm attaching the config from my running device.
Thanks, if I dont toy with this tonight I will do tomorrow
On a side note, doing free -m on a 94mb memory device and seeing 120mb used and free memory available is nice
this would be a revolutionary hack for our devices if we can get this to work, I may go ahead and try compiling it when im free today
I would love to see this working. An additional 20megs or so of free RAM would make a huge difference.
defconoi said:
this would be a revolutionary hack for our devices if we can get this to work, I may go ahead and try compiling it when im free today
Click to expand...
Click to collapse
The question is when not if
//edit, hell if we cant get it to work for long enough I'll start a donate poll for "buy the compcache developer a rooted G1"
http://code.google.com/p/compcache/issues/detail?id=33
reported upstream, now waiting for more info (until I get impatient and start trying myself )
Someone using cyan 3.5 try this if your feeling adventurous. This is sortof a todo list for myself of **** to try. First commands did work for me however, no reboots.
insmod xvmalloc.ko
insmod ramzswap.ko disksize_kb=100
/data/busybox free
cat /proc/swaps
cat /proc/ramzswap
All reports ok, catting ramzswap actually shows GoodCompress 84%, so it is in use.
Things worth testing:
- higher disksize_kb
- if higher disksize_kb fails, try freeing memory before inserting the module and enabling swap (can use a combination of ps and kill to find the memory hoggers).
- echo 100 > /proc/sys/vm/swappiness
//edit, to be specific I'm running cyan 3.5.1 without squashfs.
ok so I couldn't leave this alone, it works with higher swap size as well, but I got a crash after torturing it for a while. Gonna look into it more tomorrow.
Code:
<4>[ 316.945526] send sigkill to 568 (app_process), adj 14, size 4436
<4>[ 324.601165] select 612 (app_process), adj 15, size 4411, to kill
<4>[ 324.601196] send sigkill to 612 (app_process), adj 15, size 4411
<6>[ 346.488891] binder: release 134:323 transaction 6478 in, still active
<6>[ 346.489135] binder: send failed reply for transaction 6478 to 194:505
<6>[ 346.744750] binder: 194 invalid dec strong, ref 1079 desc 17 s 0 w 1
<6>[ 346.754028] binder: 423 invalid dec strong, ref 8585 desc 17 s 0 w 1
<6>[ 346.760559] binder: 585 invalid dec strong, ref 9347 desc 17 s 0 w 1
<6>[ 348.089965] request_suspend_state: wakeup (0->0) at 341189074786 (2009-06-28 19:54:03.283935557 UTC)
<3>[ 348.092315] init: untracked pid 371 exited
<3>[ 348.093719] init: untracked pid 383 exited
<3>[ 348.094207] init: untracked pid 390 exited
<3>[ 348.094635] init: untracked pid 414 exited
<3>[ 348.133636] init: untracked pid 190 exited
<3>[ 348.133911] init: untracked pid 273 exited
<3>[ 348.134277] init: untracked pid 621 exited
<3>[ 348.140106] init: untracked pid 266 exited
<3>[ 348.140563] init: untracked pid 352 exited
<3>[ 348.160003] init: untracked pid 194 exited
<3>[ 348.160461] init: untracked pid 423 exited
<3>[ 348.160705] init: untracked pid 585 exited
<6>[ 381.844940] request_suspend_state: wakeup (0->0) at 374944049146 (2009-06-28 19:54:37.038909917 UTC)
<6>[ 384.697967] binder: release 112:127 transaction 10775 in, still active
<6>[ 384.698333] binder: send failed reply for transaction 10775 to 645:653
<6>[ 385.784729] htc-acoustic: open
<6>[ 385.845764] htc-acoustic: mmap
<6>[ 385.846740] htc-acoustic: ioctl
<6>[ 385.846954] htc-acoustic: ioctl: ACOUSTIC_ARM11_DONE called 678.
<6>[ 385.849548] htc-acoustic: ioctl: ONCRPC_ACOUSTIC_INIT_PROC success.
<6>[ 385.849792] htc-acoustic: release
<6>[ 385.890563] snd_set_device 1 1 1
<6>[ 385.901885] snd_set_volume 0 0 5
<6>[ 385.903289] snd_set_volume 1 0 5
<6>[ 385.912017] snd_set_volume 3 0 5
<6>[ 385.913360] snd_set_volume 2 0 5
<6>[ 386.833923] snd_set_volume 256 0 5
Doesn't seem to work for me. Running cyan 3.5.1 nosquash
Do you need to include these modules?
lzo_decompress.ko
lzo_compress.ko
Code:
# lsmod
lsmod
ramzswap 9648 0 - Live 0xbf007000
xvmalloc 5192 1 ramzswap, Live 0xbf000000
# busybox free
busybox free
total used free shared buffers
Mem: 97848 96272 1576 0 260
Swap: 0 0 0
Total: 97848 96272 1576
# cat /proc/swaps
cat /proc/swaps
Filename Type Size Used Priority
# cat /proc/ramzswap
cat /proc/ramzswap
DiskSize: 100 kB
NumReads: 0
NumWrites: 0
FailedReads: 0
FailedWrites: 0
InvalidIO: 0
PagesDiscard: 0
ZeroPages: 0
GoodCompress: 0 %
NoCompress: 0 %
PagesStored: 0
PagesUsed: 0
OrigDataSize: 0 kB
ComprDataSize: 0 kB
MemUsedTotal: 0 kB
#
nurre said:
Someone using cyan 3.5 try this if your feeling adventurous. This is sortof a todo list for myself of **** to try. First commands did work for me however, no reboots.
insmod xvmalloc.ko
insmod ramzswap.ko disksize_kb=100
/data/busybox free
cat /proc/swaps
cat /proc/ramzswap
All reports ok, catting ramzswap actually shows GoodCompress 84%, so it is in use.
Things worth testing:
- higher disksize_kb
- if higher disksize_kb fails, try freeing memory before inserting the module and enabling swap (can use a combination of ps and kill to find the memory hoggers).
- echo 100 > /proc/sys/vm/swappiness
//edit, to be specific I'm running cyan 3.5.1 without squashfs.
Click to expand...
Click to collapse
slightly carried away there and forgot you actually need the swapon instructions as well:
Code:
cat /proc/devices
- mknod with same block device id
busybox mknod /dev/ramzswap0 b 253 0
sync; sync
busybox swapon /dev/ramzswap0
adb logcat info of the device failing would save me some time debugging this
Got it working. I tried with a 16meg ramzswap and it worked for a while then I get crashing apps left and right and finally the phone reboots.
I'm not sure if its related to compcache or not because I experienced the same issue using a regular swapfile on the ext2/3 partition. It took a while for it to crash though. With compcache I can get it to crash in about 10min.
If I used a swap partition, I didn't see any crashes.
Dave
nurre said:
slightly carried away there and forgot you actually need the swapon instructions as well:
Code:
cat /proc/devices
- mknod with same block device id
busybox mknod /dev/ramzswap0 b 253 0
sync; sync
busybox swapon /dev/ramzswap0
adb logcat info of the device failing would save me some time debugging this
Click to expand...
Click to collapse
nurre said:
slightly carried away there and forgot you actually need the swapon instructions as well:
Code:
cat /proc/devices
- mknod with same block device id
busybox mknod /dev/ramzswap0 b 253 0
sync; sync
busybox swapon /dev/ramzswap0
adb logcat info of the device failing would save me some time debugging this
Click to expand...
Click to collapse
Attached you'll find a logcat of 3.5.2 cm build with compcache and apps crashing, hope this helps.
The author has a posted a new version, and it works on android!
I've been testing it and it works. Go try it out.
http://code.google.com/p/compcache/issues/detail?id=33
http://compcache.googlecode.com/issues/attachment?aid=-8516568331917785992&name=arm_test1.tbz2
these modules are compiled for cyanogen's .29 kernel.
copy xvmalloc.ko and ramzswap.ko to /system/sd
Add these lines to your userinit.sh
make sure to disable the sdcard swap..
insmod /system/sd/xvmalloc.ko;
insmod /system/sd/ramzswap.ko;
busybox mknod /dev/ramzswap0 b 253 0;
echo 60 > /proc/sys/vm/swappiness;
swapon /dev/ramzswap0;
What exactly is compcache?
Testing. So far so good! Using cyan 3.6.4.1...
persiansown said:
What exactly is compcache?
Click to expand...
Click to collapse
It uses part of your RAM as a swapfile by using compression, which effectively increases the size of you RAM.
The thinking is that compressing/decompressing from RAM is still faster than swapping to a flash device.
I'm eager to try this out on jachero, but the kernel is slightly different than cyanogen's so these modules don't work. daproy or somebody else has to recompile these modules for that kernel.
But its working pretty well on cy's image. The browser will stay in memory if I load up other apps, and I can't really see a big degradation in performance.

[MOD]user configurable userinit.sh V0.1.5.3 for CM. [UPDATED 9/05]

The purpose of this script to allow user to define their own set of configuration in a easier way. You can play with the parameters (user.conf)
to find out what suits you best.
Please check the third post for change log and rom compatibility list
Code:
echo "Usage:"
echo "/system/sd/userinit.sh [-s|-c config.file|-i]"
echo
echo "Default:"
echo "Sets system configuration based on the paratermers"
echo "that listed in /system/sd/user.conf"
echo
echo " -s: check configuration status and cross"
echo " verifiction with user configurations "
echo " -c config.file: use user parameters that defined"
echo " in config.file "
echo " -i: Current system settings and info "
Install using ADB:
Code:
adb push userinit.sh /system/sd
adb shell chmod 755 /system/sd/userinit.sh
adb push user.conf /system/sd
adb shell chmod 755 /system/sd/user.conf
adb shell reboot
Install using terminal emulator
download the file and unzip it to your sdcard
Code:
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/userinit.sh /system/sd
cp /sdcard/user.conf /system/sd
chmod 755 /system/sd/user.conf
chmod 755 /system/sd/userinit.sh
reboot
testing via ADB
Code:
adb shell sh /system/sd/userinit.sh -s
testing via terminal emulator
Code:
su
sh /system/sd/userinit.sh -s
Expected output for compcache 0.5
Code:
=== CompCache status ===
CompCache version 0.5
Compcache enabled
CompCache: DiskSize 32768(system) 32768(user)
CompCache: cc_swappiness - 30(system) 30(user)
=== CompCache status output ===
DiskSize: 32768 kB
NumReads: 1
NumWrites: 11
FailedReads: 0
FailedWrites: 0
InvalidIO: 0
PagesDiscard: 0
ZeroPages: 1
GoodCompress: 70 %
NoCompress: 0 %
PagesStored: 10
PagesUsed: 4
OrigDataSize: 40 kB
ComprDataSize: 10 kB
MemUsedTotal: 16 kB
the (system) beside the number means the value is gather from system and user means from user.conf
example out for compcache 0.6+
Code:
=== CompCache status ===
CompCache version 0.6+
Compcache enabled
CompCache: DiskSize 32768(system) 32768(user)
CompCache: cc_swappiness - 30(system) 30(user)
=== CompCache status output ===
DiskSize: 32768 kB
NumReads: 1
NumWrites: 3
FailedReads: 0
FailedWrites: 0
InvalidIO: 0
PagesDiscard: 0
ZeroPages: 0
GoodCompress: 100 %
NoCompress: 0 %
PagesStored: 3
PagesUsed: 1
OrigDataSize: 12 kB
ComprDataSize: 0 kB
MemUsedTotal: 4 kB
This is the default user.conf. By default, the 32MB of compcache is enabled.
Code:
# General parameters
general{
apps2sd=0 # this is useless here, require a modified a2sd script
CONF_FILE="/system/sd/user.conf" #location of user.conf
media2sd=1 # moves the medias to sd if /system/sd/media exists
permission_fix=0 # perform permission fix at start up (this parameter sets to 0 after script is executed)
odex_auto=0 # perform auto create or del odex for applications installed or removed within 3 days
odex_apk=0 # creates odex for apk that does not have odex yet (this parameter sets to 0 after script is executed)
odex_all=0 # creates odexes for all apks (this parameter sets to 0 after script is executed)
}
#compcache related parameters
compcache{
compcache_en=1 # 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= # 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=0 # 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=528000 # 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
}
To enable linux swap
Code:
linux_swap_en=1
To enable virtual memory configurations
Code:
sys_vm_en=1
To enable CPU related configurations
Code:
proc_cpu_en=1
some sample configurations
To use only linux-swap
-set compcache=0
-set cc_backingswap_en=0
-set linux_swap_en=1
To use only compcache without backing_swap
-set compcache=1
-set cc_backingswap_en=0
-set linux_swap_en=0
-set cc_disksize=32 (32*1024 = 32768kb = 32MB)
-set cc_memlimit=0
To use compcache with backing_swap
-set compcache=1
-set cc_backingswap_en=1
-set linux_swap_en=0
-set cc_disksize=0
-set cc_memlimit=8
To use compcache with linux swap
-set compcache=1
-set cc_backingswap_en=0
-set cc_disksize=32
-set cc_memlimit=0
-set linux_swap_en=1
originally posted by uwonsum
To use compcache + backingswap with swap file
-set swap_file_en=1
-set linux_swap_file_size=32
-set linux_swap_file=/system/sd/swap.file
-set cc_memlimit=8
-set cc_backingswap=/system/sd/swap.file
To use compcache with linux swap file * Does not work
-set swap_file_en=1
-set linux_swap_file_size=32
-set linux_swap_file=/system/sd/swap.file
-set compcache=1
-set cc_backingswap_en=0
-set cc_disksize=32
-set linux_swap_en=1
-set linux_swap_partition=/system/sd/swap.file
Click to expand...
Click to collapse
Equivalent user.conf settings to CM 3.9.10+ compcache default settings
Code:
compcache_en=1
cc_disksize=24
cc_backingswap_en=0
Please do not use notepad to edit the user.conf or userinit.sh because you could end up some funny error due to format differences between unix and windows. A good example of unix format compatible editor for windows is notepad++
If you had any problem with the script please post the error log. This way its much easier to identify the problem
If there any other parameters/configurations that you wish to add, msg me! I will try to add them when i got time.
Which version of CM will this work for? The stable ones of the experimental also
If you upgrade from V0.1.1 to V0.1.3+ make sure you reboot your phone after install.
ROM compatibility list report by users
CM 3.6.8.1 tested by Me
CM 3.9.2 tested by MrBlueEyez
CM 3.9.3 tested by Me *requires couple lines of hacking to a2sd , Detailed instruction please see http://forum.xda-developers.com/showpost.php?p=4246619&postcount=36
CM 3.9.4 tested by sacredsoul, ShatBag1105
CM 3.9.5 tested by ShatBag1105, me
CM 3.9.6 tested by sacredsoul, uwonsum
CM 3.9.7 tested by uwonsum
Known issues
To work with CM3.9.3, couple lines of hacking to a2sd is required, Detailed instruction please see http://forum.xda-developers.com/showpost.php?p=4246619&postcount=36
~ CC backingswap with swapfile does not work
Application upgrade or reinstall may causing force close as the odex file is incompatible. Please rerun the script to create the new odex.
Change log
version 0.1.5.3
* fix missing cc_swappinessmissing in user.conf
version 0.1.5.2
* fix && error at line 649
version 0.1.5.1
* auto rebuilds the odex if the application is reinstalled or upgraded
* removes odexes if application is uninstalled
version 0.1.5
* fix permission for applications
* rebuild/create odexes
* custom user shell command support in user.conf
version 0.1.4.1
* Fix linux swappiness overwrites cc_swappiness value
* Fix duplication of mkswap for swap file
* Fix status output function turns off swap file/partition
version 0.1.4
* add userinit.sh symbolic link to system/bin/userinit
* support swap file for linux swap
version 0.1.3.7
* enables user configuration output with minor output tweaks
* fix typo in user.conf
version 0.1.3.6
* fix blank proc_cpu status output
* disable user configuration output
version 0.1.3.5
* disable sys_vm and proc_cpu by default
* some minor output tweaks
version 0.1.3.3
* Add up_threshold suggested by smeat @ #202
* Turn off Compcache/linux swap when compcache_en/linux_swap_en is set to 0
* Linux swap swappiness error message fix
Changes in v0.1.3.2
* auto detection for compcache version which means cc_version is no longer required. Detection method provided by uwonsum
Changes in v0.1.3.1
* Display cc_version for status check
Changes in v0.1.3
* support compcache version 0.6, make sure you set cc_version=0.6 in your user.conf file
* fix unable to remove kernel module errors
* fix compcache status check error
I haven't personally test the script with CM 3.9.6 yet.
Changes in v0.1.1
* fix file not found issue when the script is not executed from "/" directory
* -i only display the system information instead setting the parameters before display it
Changes in v0.1
* introduce cc_swappiness (replacement of compcache swappiness in user.conf) to fix swappiness overwrite issues.
* Fix backing swap issues
* Fix "cat /proc/ramzswap0" report not found issues
* Fix compcache detection error
thanks to uwonsum for pointing out these issues
I used the file from the thread for 3.6.7. whould u say urs is better. Even with my g1 overclocked and with compcache and it still lags little bit. Seedy for the find question u clearly state that its for 3.6.8.1. Was his wondering if it works with the experimental becuase not haveing compcache is a deal breaker.
Edit: are you sure about the experimental version because he said he is using a new kernal. S
Tried the script and my Android on CM 3.9.2 works smoothly. Checked with free on Terminal, seems to swap nicelly. What i don't get is the configuration... I downloaded the userinit.sh and user.conf, pushed to /system/sd and did the chmod stuff...
Do i have to change my user.conf to change the configuration? And what configuration works best for 3.9.2?
Nice work though! Finally after 5 months i had the guts to root and update SPL, recovery and mod my phone. Want to get the best out of it!
Ok, with the file in this post you have a compcache actived in swap partition without swap in CM ROM, thats correct?
And fixt the clock of CPU in MAX=528 and MIN=245, if i want to manage CPU status with set CPU what lines must to delete?
I only want to activate compcache in my 32mb swap partition, no swap, no CPU overcloack...
Thanks for your help and sorry for my english
For some reason this is the only one that word on the experimental builds...the others didn't work well even tho it said good compress 74 percent all the time..i would go to "tunewiki" cause that thing is the biggest memory hog, play some music see if it would load fast and then press back to go to the playlist...w/ compcache and swap off it would just go to a black screen and ask to wait or force close...but when the userinit stuff worked it would play stuff fast and go to the playlist without a hitch and no wait time...aka no killing the task in the background because of low memory....hurray..my compcache is working again..it might have had something to do w/ a .conf file...the others didn't have that file....hmmm, anyways thanks huanyu for this and whoever started playing w/ compcache in the first place!!! ha...
huanyu said:
The purpose of this script to allow user to define their own set of configuration in a easier way. You can play with the parameters (user.conf)
to find out what suits you best.
I have only test it with stable version of CM 3.6.8.1.
the by default, the 32MB of compcache is enabled. It should just work after you push the files to /system/sd
If there any other parameters that you wish to add, msg me! I will try to add them when i got time.
Click to expand...
Click to collapse
Very very nice, you basically re-wrote the whole thing from your original. Great work and thanks!
edit: The minimum usable cpu frequency is 128000, anything lower will cause the phone to freeze once power plug is removed.
here the available options:
19200
122880
128000
245760
384000
528000
I don't get it...what's the point of a config file for a config file?
jus to clairify to test it the command should be
adb shell /system/sd/userinit.sh -s
Click to expand...
Click to collapse
instead of
adb shell chmod 755 /system/sd/userinit.sh -s
Click to expand...
Click to collapse
ah wat the duece, double post
alapapa said:
I don't get it...what's the point of a config file for a config file?
Click to expand...
Click to collapse
There is a good reason to have a user config file for an init script.
One simple example; the previous less functional script had options to enable compcache and linux-swap. If you wanted just linux-swap, you would have to go into the init script and edit out the lines you don't want and then add lines you do want--this makes things a little confusing for some users. With user config file, you simply set one to 0 and the other to 1. You could call this encapsulation.
Soo what are the commands to do these while on the phone
i can get the files into the phone but im not at home so i cant use my ADB
Tested with CM 3.9.2 and this works wonderfully.
fallinprince said:
Soo what are the commands to do these while on the phone
i can get the files into the phone but im not at home so i cant use my ADB
Click to expand...
Click to collapse
Check this out. May be huanyu will consider adding these steps...
I had compcache working with 3.9 and upgraded to 3.9.1 then 3.9.2 and it stopped working somewhere in that time frame. I searched and tried two other userinit.sh files from other threads, including one that was supposed to work regardless of the kernel and couldn't get it to work again.
Threw these files on my sdcard, remounted system/sd, copied them over. Changed permissions, ran it manually and it worked fine. Rebooted to test and it worked perfect.
I spent about 2 hours yesterday searching through posts and trying to get this working again. Found this one today and not a single issue, thanks
fridlack said:
Ok, with the file in this post you have a compcache actived in swap partition without swap in CM ROM, thats correct?
And fixt the clock of CPU in MAX=528 and MIN=245, if i want to manage CPU status with set CPU what lines must to delete?
I only want to activate compcache in my 32mb swap partition, no swap, no CPU overcloack...
Thanks for your help and sorry for my english
Click to expand...
Click to collapse
if you don't wanna to enable CPU overclock or change the virtual memory configuration, you can basically set the follows
sys_vm_en=0
proc_cpu_en=0
Click to expand...
Click to collapse
Can I have your opinions on which is the best option in the performance point of view. I have a swap partition. Should I enable backing swap or the swap partition? Thanks!
If you could maintain a version numbered system for your compcache scripts that would rock, so every time you modify it and we try different setups we could know which "version" we like and use that one....I would love this...I never know what i'm getting w/ all these compcache/swap scripts..but this is the best working one by far..and which roms it works w/...like tested w/ 2.4.1 kinda stuff...IDK just some random thoughts....and would love to see a maintained compcache thread!!!
Ok I tried but hanged at the G1 screen for 3.9.3. Apparently, the exit command have to be removed from the userinit.sh. I removed the last "exit;" in the file but still got stuck. Any idea guys?

[REF][DEV] Tweaks for i9003 list [UPDATE]

This is a list of all threads avaiable to our phone, using for ROM developer too...
i decided to post in general, becouse this is not developer threads, developer threads are done from developers and i'm a human no developer.
Adrenaline Shot v14 Universal ​What do these tweaks do?
the first improve is under /system/bin, replace 2 bin with leaked from ICS 4.0 , with GREAT EPIC improvement , 2 bins 're app_process and system_server.
app_process executes, and executes a runtime environment for a dalvik class
The system server is the core of the Android system and as described in the boot sequence post it is started as soon as Dalvik is initialized and running.
like all tweaks , this will add some /system/etc/init.d script , if kernel supports of curse
( for everyone using Gentoo, know init.d too )
the first one is 00remount
Code:
#!/system/bin/sh
#Partition mounts by Dsexton702
mount -o remount,noatime,nobh,nodiratime,nodelalloc,noauto_da_alloc,barrier=0 /system /system
mount -o remount,noatime,nobh,nodiratime,nodelalloc,noauto_da_alloc,barrier=0 /cache /cache
mount -o remount,noatime,nodiratime,delalloc,noauto_da_alloc,barrier=0 /data /data
This script will (re) mount the EXT4 partitions with some "tweaks", like noatime, nodiratime,delalloc and soso.. , speed increased in R/W
the second is 01kerneltweak
Code:
mount -t debugfs none /sys/kernel/debug
echo NO_GENTLE_FAIR_SLEEPERS > /sys/kernel/debug/sched_features
unmount /sys/kernel/debug
using NO_GENTLE_FAIR_SLEEPERS as schedule features, nothing to hard
the third 02journaling
provide to delete cache if its too big
the 4th is 03sysctl
Code:
#!/system/bin/sh
sysctl -p
This is simply call to sysctl ( parameters settings under linux kernel ), its under kernel tweak
the 5th is 04sysctltweaks
this will set a lot of utils things about kernel and its driver ( like governor ) , if people using ondemand it will set ondemand/up_threshold to 65 ( more responsive , but increase battery drain ) and ondemand/sampling_rate to 30000 ^^
05sdcardspeedfix
fixing READ_AHEAD_KB , suggest it will increase sdcard speed ( not too much )
06zipalign
provide to zipalign all /data/app/*.apk files, anything know to apk files are zip archive contains a lot of things, zipalign optimize this archive , major info at developer.android.com/guide/developing/tools/zipalign.html
07vacuum
this provide to "VACUUM" all *.db ( see SMS's DB, etc ... ) to rebuild all *.db better, increase performance too!
08ramscript
i never will use this, this is not designed for our phone IMHO it can be replace with superchanger ( see after )
/system/lib/libsqlite*
will replace sqlite's lib for better performance, sqlite has sync and async method, this will disable sync , theorically it will double the performance in I/O
/system/xbin
it simply provide a sqlite3 bin and zipalign bin, nothing tweaks
Click to expand...
Click to collapse
Thunderbolt tweaks ( this is not avaiable, i upload some script i've download a time ago )​/system/etc/init.d
s78enable_touchscreen_1
Code:
#!/system/bin/sh
#Touchscreen
#Configure touchscreen sensitivity
#Sensitive(Chainfire)
echo 7035 > /sys/class/touch/switch/set_touchscreen;
echo 8002 > /sys/class/touch/switch/set_touchscreen;
echo 11000 > /sys/class/touch/switch/set_touchscreen;
echo 13060 > /sys/class/touch/switch/set_touchscreen;
echo 14005 > /sys/class/touch/switch/set_touchscreen;
this is IMHO the best script i've ever seen , this will increase sensitivity of touchscreen
07sqlite_optimize
this will vacuum and re-index all db, better than Adrenaline's 07vacuum IMHO
S70darky_zipalign
Another zipalign script, useless
*bolt_siray*
this is not developer for our phone, this will working only with adeguate kernel ( we haven't )
S98CFS
it will provide a lot of tweaks using sysctl and kernel proc/ interface
S98system_tweaks
this is a lot of script unify in one script
i edit this to be "better" with our phone, i delete re-mount runtime , adrenaline's 00remount do it better
and modify this part:
Code:
# ==============================================================
# smartassV2
# ==============================================================
if [ -e /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq ]; then
echo "800000" > /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq;
if [ "`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq`" -eq 300000 ]; then
echo "300000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
else
echo "300000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
fi;
echo "800000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_wakeup_freq;
echo "85" > /sys/devices/system/cpu/cpufreq/smartass/max_cpu_load;
echo "75" > /sys/devices/system/cpu/cpufreq/smartass/min_cpu_load;
echo "300000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_down_step;
echo "0" > /sys/devices/system/cpu/cpufreq/smartass/ramp_up_step;
fi;
to have a correctly step for our processor
​
"after applied this , my phone morth into blonde, blue eyes galaxy Supersayan [cit.]
THIS IS THE ONLY MEMORY Manager, this provide a better ram manager by android, anyone know that Random Access Memory contains a kernel and all APP run, kernel are loaded in lowest address possible , and all app are loaded when open, android usually doesn't close this, for better speed when you re-open its, but if you have small RAM ( 512 MB too ) this will cause a lot of problem , superchange fix it!
i suggest to use 512HP Balanced ( or Performance ) with Bulletproof launcher + OOM FIX, Nullify lag work too
HOW INCLUDE THIS INTO MY ROM?
Poseidons ROM include this by ****ty init.d script, i suggest to delete and re-apply
if you are not ROM Developer is simple, download latest avaiable by link i provide at top and with ROOT-enabled ( check su ) and Script Manager ( or terminal emulator -> # su -> sh script_location ) follow the scripts guide, remember, using this can cause ( 0.01% ) bootloops, i suggest to use local.prop and init.rc integration
if you are a ROM Developer is more complicated than simple user, for stick you can use:
init.d script ( like poseidons )
local.prop and init.local.rc ( suggest ) under /data
build.prop
init.d script ( i do not see this, for me is the worst way to get it )
init.local.rc:
create a /data/init.local.rc contains
* This is for 512HP-Performance + Bulletproof
Code:
write /sys/module/lowmemorykiller/parameters/adj 0,3,6,10,12,15
write /sys/module/lowmemorykiller/parameters/minfree 2048,3584,19200,23040,24320,32000
# V6 SuperCharger, OOM Grouping & Priority Fixes created by zeppelinrox.
# SuperMinFree Calculator & MFK Calculator (for min_free_kbytes) created by zeppelinrox also :)
#
# See http://goo.gl/krtf9 - Linux Memory Consumption - Nice article!
# See http://goo.gl/hFdNO - Memory and SuperCharging Overview ...or... "Why `Free RAM` Is NOT Wasted RAM!"
# See http://goo.gl/4w0ba - MFK Calculator Info - explanation for vm.min_free_kbytes.
#
# DO NOT DELETE COMMENTS. DELETING COMMENTS WILL BREAK UNINSTALL ROUTINE!
#
# BEGIN OOM_MEM_Settings
setprop ro.FOREGROUND_APP_MEM 2048
setprop ro.VISIBLE_APP_MEM 3584
setprop ro.PERCEPTIBLE_APP_MEM 1024
setprop ro.HEAVY_WEIGHT_APP_MEM 19200
setprop ro.SECONDARY_SERVER_MEM 19200
setprop ro.BACKUP_APP_MEM 23040
setprop ro.HOME_APP_MEM 1024
setprop ro.HIDDEN_APP_MEM 23040
setprop ro.EMPTY_APP_MEM 32000
# END OOM_MEM_Settings
# BEGIN OOM_ADJ_Settings
setprop ro.FOREGROUND_APP_ADJ 0
setprop ro.VISIBLE_APP_ADJ 3
setprop ro.PERCEPTIBLE_APP_ADJ 2
setprop ro.HEAVY_WEIGHT_APP_ADJ 4
setprop ro.SECONDARY_SERVER_ADJ 6
setprop ro.BACKUP_APP_ADJ 7
setprop ro.HOME_APP_ADJ 0
setprop ro.HIDDEN_APP_MIN_ADJ 9
setprop ro.EMPTY_APP_ADJ 15
# END OOM_ADJ_Settings
write /proc/sys/vm/min_free_kbytes 15360
write /proc/sys/vm/oom_kill_allocating_task 0
write /proc/sys/vm/panic_on_oom 0
write /proc/sys/vm/overcommit_memory 1
write /proc/sys/vm/swappiness 0
write /proc/sys/kernel/panic_on_oops 1
write /proc/sys/kernel/panic 30
# End of V6 SuperCharged Entries.
or build.prop way ( need a supplie init.d script )
i9003 tweaks​
01loopy
this will make phone more smoothness by renice ( change priority ) the main process will run
i suggest to set your launcher process here like:
Code:
### Launcher apps ###
renice -19 `pidof com.sec.android.app.twlauncher` # TouchWiz Launcher
renice -19 `pidof org.adwfreak.launcher` # ADW Launcher Ex
renice -19 `pidof org.zeam.core` # Zeam launcher
renice -19 `pidof info.tikusoft.launcher7`# Launcher 7
PART2
95allinone
This will provide a complete collection of tweaks avaiable, i hate this becouse, a lot of tweaks here are not implemented correctly , like:
Code:
#Part below here edited by me (changed values) Credits to Juwe11
if [ -e /sys/module/lowmemorykiller/parameters/adj ]; then
echo "0,1,2,4,6,15" > /sys/module/lowmemorykiller/parameters/adj
fi
if [ -e /sys/module/lowmemorykiller/parameters/minfree ]; then
echo "2560,4096,5632,10240,11776,14848" > /sys/module/lowmemorykiller/parameters/minfree
fi
if [ -e /proc/sys/vm/swappiness ]; then
echo "20" > /proc/sys/vm/swappiness
fi
zOOM zOOM :
Code:
echo "2560,4096,5632,10240,11776,14848" > /sys/module/lowmemorykiller/parameters/minfree
This is the same things that do superchanger, but this will be wrost for our phone IMHO
Code:
echo "20" > /proc/sys/vm/swappiness
the right value ( in my cases ) is 0, i haven't swap of anyway we dont have to have a swap!
Zipalign Runtime, it will just implemented by a lot of script, this is also the wrost IMHO zip align script i've never seen
Code:
for k in $(busybox mount | grep relatime | cut -d " " -f3) ; do
sync;
busybox mount -o remount,noatime $k;
done;
this will break 00remount script
Code:
for i in /sys/block/*/queue/scheduler ; do
echo "noop" > $i;
done;
if kernel support i suggest deadline
Code:
# Tweak kernel VM management
echo 0 > /proc/sys/vm/swappiness
echo 10 > /proc/sys/vm/dirty_ratio
echo 4096 > /proc/sys/vm/min_free_kbytes
??? WHAT? again?
Code:
echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "cfq" > /sys/block/mmcblk0/queue/scheduler
see upper
Code:
echo "deadline" > /sys/block/mmcblk0/queue/scheduler
What? another change?
this is good:
Code:
# Copyright @ CRANIUM ROM
echo "500" > /proc/sys/vm/dirty_expire_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs
echo "0" > /proc/sys/net/ipv4/tcp_timestamps;
echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse;
echo "1" > /proc/sys/net/ipv4/tcp_sack;
echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle;
echo "1" > /proc/sys/net/ipv4/tcp_window_scaling;
echo "5" > /proc/sys/net/ipv4/tcp_keepalive_probes;
echo "30" > /proc/sys/net/ipv4/tcp_keepalive_intvl;
echo "30" > /proc/sys/net/ipv4/tcp_fin_timeout;
echo "404480" > /proc/sys/net/core/wmem_max;
echo "404480" > /proc/sys/net/core/rmem_max;
echo "256960" > /proc/sys/net/core/rmem_default;
echo "256960" > /proc/sys/net/core/wmem_default;
echo "4096,16384,404480" > /proc/sys/net/ipv4/tcp_wmem;
echo "4096,87380,404480" > /proc/sys/net/ipv4/tcp_rmem;
#End Cranium Tweaks
Conclusion: 95allinone is simply a addiction of all tweaks avaiable in one script without any review and improves for our phone ( in this case, this work ), this will only increase the boot time and break others tweaks installed ( some )
99V6_Superchanger
DO NOT USE THIS, THIS IS EPIC FAIL INIT.D SCRIPT!
Code:
mount -o remount,rw /system
mount -o remount,rw /dev/block/mtdblock3 /system
mount -o remount,rw /dev/block/mtdblock6 /system
*facepalm*
in my terminal:
Code:
# su
# ls -la /dev/block/mtd*
ls: /dev/block/mtd*: No such file or directory
anyway this is not init.d script, this is v6 script , this is not compatible with init.d ,
PART3
Build.prop and android params
Listed partial by TheFrankestain, thanks
* YOU MUST ADD IT AT BOTTOM OF /system/build.prop and delete cache and reboot*
Code:
ro.ril.hsxpa=2
This will enable High-Speed_Downlink_Packet_Access and High-Speed Uplink Packet Access ( HSDPA and HSUPA )
Code:
ro.ril.gprsclass=10
gprs class, see this LINK
Code:
ro.ril.hep=1
0 meaning off, 1 activated
Code:
ro.ril.enable.dtm=0
Dual Transfer Mode , set 1 only if your network support it
Code:
ro.ril.hsdpa.category=8
Folllow this ( thanks to tnpapadakos )
Code:
#ro.ril.hsdpa.category :
# Cat 1 = 1.2 Mbit/s
# Cat 2 = 1.2 Mbit/s
# Cat 3 = 1.8 Mbit/s
# Cat 4 = 1.8 Mbit/s
# Cat 5 = 3.6 Mbit/s
# Cat 6 = 3.6 Mbit/s
# Cat 7 = 7.2 Mbit/s
# Cat 8 = 7.2 Mbit/s
# Cat 9 = 10.1 Mbit/s
# Cat 10 = 14.0 Mbit/s
# Cat 11 = 0.9 Mbit/s
# Cat 12 = 1.8 Mbit/s
# Cat 13 = 17.6 Mbit/s
# Cat 14 = 21.1 Mbit/s
# Cat 15 = 23.4 Mbit/s
# Cat 16 = 27.9 Mbit/s
# Cat 19 = 35.3 Mbit/s
# Cat 20 = 42.2 Mbit/s
# Cat 21 = 23.4 Mbit/s
# Cat 22 = 27.9 Mbit/s
# Cat 23 = 35.3 Mbit/s
# Cat 24 = 42.2 Mbit/s
# Cat 25 = 46.8 Mbit/s
# Cat 26 = 55.9 Mbit/s
# Cat 27 = 70.6 Mbit/s
# Cat 28 = 84.4 Mbit/s
Code:
ro.ril.enable.a53=1
a53 enabling
Code:
ro.ril.enable.3g.prefix=1
1 will show 3g prefix next to network signal
Code:
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
bitmask &
Code:
ro.ril.hsupa.category=6
See this:
Code:
#ro.ril.hsupa.category :
# Cat 1 = 0.73 Mbit/s
# Cat 2 = 1.46 Mbit/s
# Cat 3 = 1.46 Mbit/s
# Cat 4 = 2.93 Mbit/s
# Cat 5 = 2.00 Mbit/s
# Cat 6 = 5.76 Mbit/s
# Cat 7 = 11.5 Mbit/s
Code:
net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,16384,256960
Redefinite TCP Standard size packet, it will increased overall speed
Code:
ro.ext4fs=1
will set ext4fs prop to android system, increased performance if you are under ext4
Code:
persist.sys.purgeable_assets=1
More speed!
Code:
persist.sys.shutdown.mode=hibernate
NOT COMPATIBLE FOR OUR PHONE, we have not hibernate shutdown mode
Code:
ro.ril.disable.power.collapse=0
is ultra-battery-life mode, when phone're sleeping
Code:
ro.ril.enable.cnap
Celler name presentation
Code:
debug.sf.hw=0
Render with GPU Apps ( see last #3 post for better info )
Code:
pm.sleep_mode=1
Permits better sleep mode ( battery ++ )
Code:
wifi.supplicant_scan_interval=150
Android ( when wifi on ) periodically scan for new network, you can set time between its for better battery when wifi on
Code:
windowsmgr.max_events_per_sec=150
Increase the max events record by windows manager , better scroll
Code:
debug.performance.tuning=1
video.accelerate.hw=1
GPU Tune for scrolling performance
Code:
debug.sf.nobootanimation=1
for me, not work, it will theorically disable boot animation for faster boot
Code:
ro.HOME_APP_ADJ=1
USE ONLY IF YOU DONT USE SUPERCHANGER
Code:
ro.lge.proximity.delay=25
mot.proximity.delay=25
decrease proximity delay for better experience
Code:
ro.sf.lcd_density=240
Simply not sense
Code:
ro.kernel.android.checkjni=0
disable check jni
Code:
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000
increase media quality
WHICH GOVERNOR DO U USE?​( ref: Simba501 )
SEE THIS
Anyway i suggest:
- Smartassv2 if you want performance over less battery
- InteractiveX if you want battery over less performance
CAN ANY KERNEL DEVELOPER INCLUDE LULZACTIVE CPUFREQ-DRIVER IN OUR KERNELS? ITS THE PERFECT GOVERNOR , EITHER FOR BATTERY AND PERFORMANCE
EGL TWEAK!​Android header said:
Code:
#
# One line per configuration, of the form:
#
# D I TAG
#
# D: display (0: default)
# I: implementation (0: software, 1: hardware)
# TAG: a unique tag
#
# The library name loaded by EGL is constructed as (in that order):
#
# /system/lib/egl/libGLES_$TAG.so
# /system/lib/egl/lib{EGL|GLESv1_CM|GLESv2}_$TAG.so
#
in the stock ROM the egl.cfg is:
Code:
0 0 android
0 1 POWERVR_SGX530_125
what's meaning?
simply using cpu ( with gpu too ) to render all apps and system
if you modify to:
Code:
0 1 POWERVR_SGX530_125
it will use overall GPU render only, more fast and imho better Battery life because, CPU in our cases with overclock consume more than GPU
See original post: http://forum.xda-developers.com/showpost.php?p=14323192&postcount=8
Wow!! very good thread!! I am setting up a custom rom, could u tell me what of these could give my rom a better battery life? Thank u man!
luiseteyo said:
Wow!! very good thread!! I am setting up a custom rom, could u tell me what of these could give my rom a better battery life? Thank u man!
Click to expand...
Click to collapse
Battery life is influence by:
Running Apps
Governors do you use
Memory Manager ( #1 addicted )
If you set /etc/init.d script to set conservative governor and implemented v6 without any stupid app like facebook or bloatware samsung, and your battery seems infinite
in the past i used SCH Rom , its used only v6 and most important tweaks , without any stupid bloatware, battery seems very infinite ^^ like 2% in 5 hours under 2G network
Ok, sorry for my noob question but I am learning a lot of things this days.. where can I find a tutorial about how to set a governor or a frecuency by default in my kernel? Thank u very much
luiseteyo said:
Ok, sorry for my noob question but I am learning a lot of things this days.. where can I find a tutorial about how to set a governor or a frecuency by default in my kernel? Thank u very much
Click to expand...
Click to collapse
I'm noob too
for frequency are too kernel releated to be generalized,
or if you using XDA_Bam kernel
39frequency
Code:
#!/system/bin/sh
echo "300" > /sys/power/overclock_opp1
echo "600" > /sys/power/overclock_opp2
echo "800" > /sys/power/overclock_opp3
echo "1000" > /sys/power/overclock_opp4
anyway you can create init.d script like
40governorbattery
with:
Code:
#!/system/bin/sh
echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
and see if it stick ^^
Hi.
Are there codes that can remove or dissable the TouchUI aka TouchWiz interface on the i9003 and just use the android deffult launcher?
Another thing something that will easy-up my ram usage and allow more usable ram?
If so how do i implement them?
I just want to add a cool sound and audio tweaks using MagaBassBeats_Mod
First download the MagaBassBeats_Mod_9003.zip file from the xda forum.
Now copy it to the sdcard.
Reboot to the recovery mode.
Now select install from zip file and chose internal sdcard.
Search for the zip file, hit power button, and chose yes.
That's it now you can enjoy a great sound quality.
details from here

[MOD] FaaastJB v2.5 A13 Allwinner with Jelly Bean 4.2.2 by Toxicro

MAKE BACKUP - using Uberizer option i/3
Caution: don't flash this on KB901 with TS ft5x_ts
Rebased the whole ROM on various builds of JB 4.2.2 to run smooth without tweaks:
- cleaned up
- rooted
- adb enabled by default
- replaced the default launcher with GO Launcher HD
- adapted to accept my custom modules TS
lsmod on default ROM:
Code:
device 26862 0 - Live 0x00000000
rtl8150 10305 0 - Live 0x00000000
mcs7830 7581 0 - Live 0x00000000
qf9700 9152 0 - Live 0x00000000
asix 24601 0 - Live 0x00000000
sun5i_csi0 34042 0 - Live 0x00000000
sp0838 19927 1 - Live 0x00000000
camera 53105 1 sun5i_csi0, Live 0x00000000
videobuf_dma_contig 6243 1 sun5i_csi0, Live 0x00000000
videobuf_core 20242 2 sun5i_csi0,videobuf_dma_contig, Live 0x00000000
cedarx 11869 0 - Live 0x00000000
mali 200007 29 - Live 0x00000000
ump 34213 11 mali, Live 0x00000000
nand 225000 8 - Live 0x00000000
Partitions on default ROM:
Code:
[email protected]:/ # busybox df -h
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 176.8M 68.0K 176.7M 0% /dev
tmpfs 176.8M 0 176.8M 0% /mnt/asec
tmpfs 176.8M 0 176.8M 0% /mnt/obb
/dev/block/nandd 503.9M 398.1M 105.9M 79% /system
/dev/block/nande 1.2G 103.7M 1.1G 9% /data
/dev/block/nandh 315.0M 5.2M 309.8M 2% /cache
/dev/block/vold/93:72 1.1G 48.0K 1.1G 0% /mnt/sdcard
/dev/block/vold/93:72 1.1G 48.0K 1.1G 0% /mnt/secure/asec
[email protected]:/ # cat /proc/partitions
cat /proc/partitions
major minor #blocks name
93 0 16384 nanda
93 8 16384 nandb
93 16 32768 nandc
93 24 614400 nandd
93 32 1228800 nande
93 40 16384 nandf
93 48 32768 nandg
93 56 327680 nandh
93 64 262144 nandi
93 72 1171456 nandj
DOWNLOAD ROM:
- New Version v2.5 -
4shared.com - FaaastJB-v2.5
mediafire.com - FaaastJB-v2.5
- Old version v2 -
4shared.com - FaaastJB-v2
mediafire.com - FaaastJB-v2
By default Touch Screen DON'T work
STEP BY STEP FOR INSTALLING TS MODULES:
You need to have ADB installed before proceed
1. Flash FaaastJB with Livesuit 1.11
2. Wait for tablet to boot and load
3. Connect your tablet to PC
4. Extract all content from TS MODULE archive to a directory
5. Execute run.bat
6. After press any key dialog the tablet will reboot
7. That's all folks
If you don't know what TS driver to use try Uberizer option k/22 and use command "lsmod" on original working ROM.
I recommend try all archives and test both TS and gsensor for better result, don't stop at the first working TS try more.
OLD TS from FaaastJB 4.1.1 don't work here
DOWNLOAD TS MODULE
* Single TS MODULE
- ekt3632.ko aka elan
- gt811_ts.ko
- gt828_ts.ko+mc32x0.ko
- gt811_ts.ko+dmard06.ko
- gsl1680.ko
- ft5x_ts.ko
- goodix_touch.ko
- gslx680.ko+mxc622x.ko
- ssd253x-ts.ko+dmard06.ko
- gslx680.ko
- gsl1680.ko+dmard06.ko
- ft5x_ts.ko
- gt828_ts.ko+mxc622x.ko
- zet6221.ko
- zet6221.ko+multiple gs
- ekt3632.ko aka elan
- ektf2k.ko aka ekt3632+mma7660
- ssd253x-ts.ko+dmard06.ko+mma7660.ko
- elan_ts+mxc622x
- goodix811.ko+mxc622x.ko
- ssd253x-ts.ko
* USERS TS MODULE
- gls1680+dmard06+mc32x0 - Thx to meatsos
- mg8698s+mxc622x+sp0838 - Thx to leoZ
- gt828_ts+mma7660 - Thx to goosen999
* Multiple TS MODULE
- TS: ft5x_ts, goodix_touch, ssd253x-ts, zet622x, byd693x-ts, gt82x, gt811, pixcir_cxx, gslx680, st1536_ts, elan_ts+ GS: bma250, mma7660, dmard06, mma8452, mxc622x, afa750
- ft5x_ts, goodix_ts, gslX680, nt11003+mxc32x0
- ft5x_ts, ssd253x-ts, gt811_ts, sitronix_i2c_touch+dmard06+mma7660
- ft5x_ts, goodix_touch, ssd253x-ts, zet622x, byd693x-ts, gt82x, gt811, pixcir_touch_811, gsl1680, st1536_ts+mxc622x
- aw5306_ts.ko-pixcir_ts.ko-gt811.ko-gsl168x.ko-sichuang.ko-ft5x_ts.ko+mma7660
- gt811_ts.ko-A13_gslX680.ko-ft5x_ts.ko+mxc622x
- S710TAB - ft5x_ts.ko-gt811.ko-gslX680.ko+mxc622x
* SPECIAL TS MODULE
- Ainol Novo7 Legend
- Multiple TS/GS: gslX680-ft5x_ts-gt818_ts-gt811_ts-zet6221+bma250-mma7660-dmard06-mma8452-kxtik-mxc622x-afa750-mma865x-lis3dh-mc32x0 after you use this module you will need to reflash ROM again if not works.
If you have found a TS and have reverse axes or screenshift i recommend to use this tools or try TSCalibration
More application for calibration need more people to test and confirm is working Touch Recalibrate
If you have inverted gsensor you will need to edit this file /system/usr/gsensor.cfg look for your gsensor name and play with this:
Code:
gsensor_direct_x = false
gsensor_direct_y = true
gsensor_direct_z = false
gsensor_xy_revert = false
Camera sux anyway on this tablet so no support.
Don't forgot to make BACKUP of default ROM
For backup i recommend Uberizer option i/3.
This devices can't be bricked but if you don't find the right ROM they don't work correctly so if you don't know what your doing don't try it.
I recommend this ROM for people who don't have a working TS.
- If you recommend this ROM and want to post links on other sites please redirect to this thread not personal sharing.
- I am not responsible for any damage you make to your tablet using this ROM
If you like this ROM please consider to make a small donation
mod edit
thanks a lot for ur rom I have a question actually my tablet is not recognized by live suit and I can find any drivers for my tablet do we require to install drivers on computer for it ?
I present you the most wanted tools for A13 tablets.
CAUTION: This tool don't work on multiple TS modules
*DOWNLOAD TOOLS :
4shared.com - scrip-bin.rar
mediafire.com - script-bin.rar
*HOW TO USE:
First of all extract the folder script-bin from archive you just downloaded to C:\
Now go to C:\script-bin directory and from there execute the wanted tools
Your tablet need to be rooted and adb enabled in order to use this fixes.
*FIX SCREEN SHIFT
- execute screenshift.cmd from C:\script-bin directory and follow the numbers
1. Pull script.bin from tablet
2. Transform script.bin to script.fex
3. Change lcd parameters to resolve screen shift
4. Transform script.fex to script.bin
5. Push scrip.bin to tablet
6. Reboot tablet
- on step 3 you will see current settings and most of the first 4 choice will fix your display, if not try the rest
*FIX INVERTED AXES
- execute changexy.cmd from C:\script-bin directory and follow the numbers
1. Pull script.bin from tablet
2. Transform script.bin to script.fex
3. Revert X axe
4. Revert Y axe
5. Revert X_Y axe
6. Transform script.fex to script.bin
7. Push scrip.bin to tablet
8. Reboot tablet
- on steps 3, 4 and 5 you will see the current settings and you need to choose to reverse
*TIPS:
- if you want to fix faster just copy your original script.bin to C:\script-bin and by executing one of the program you can find actual settings then after you know your setting just reuse program from first step
- you have x,y,xy try all combination: 0,0,0 - 0,0,1 - 0,1,0 - 0,1,1 - 1,0,0 - 1,0,1 - 1,1,0 - 1,1,1
If you like this TOOLS please consider to make a small donation
toxicro said:
You need to install drivers from LiveSuit and then your tablet will be see it from pc.
Click to expand...
Click to collapse
thanks a lot sir will try it besides I am using version 1 of faaastjb rom that's awesome thanks lot for both of the roms
Thank you very much, if is not too much to ask, can you provide me with a link of how to do everything you comment on the main post? I'm new with this tablet but i need it to run an apache server just for demos for my clients. Thanks a lot!
touch screen not work. please help.
install Jelly Bean 4.2.2 by Toxicro but touch screen not work. please help.
Backup Dump Rom Link
http://www.4shared.com/rar/Rp9scuCk/BackupROM.html
Using touch screen module with your rom
Hi Toxicro,
I'm trying (and failing) to use your rom in combination with the touchscreen drivers of my currently working rom.
I have used the lsmod command (sufficient?) to find which of the drivers/modules are used on the working rom and I have extracted these .ko and .idc files.
I had your 2.5 rom installed and copied/pushed these files to the vendor\modules and usr\idc folders but the touchscreen won't function.
Can u help me with this? Am I missing something? I'm not that great at linux but I know some basics and i'm able to use ADB.
Hope you can help.
Cheers,
Alchedin
Alchedin said:
Hi Toxicro,
I'm trying (and failing) to use your rom in combination with the touchscreen drivers of my currently working rom.
I have used the lsmod command (sufficient?) to find which of the drivers/modules are used on the working rom and I have extracted these .ko and .idc files.
I had your 2.5 rom installed and copied/pushed these files to the vendor\modules and usr\idc folders but the touchscreen won't function.
Can u help me with this? Am I missing something? I'm not that great at linux but I know some basics and i'm able to use ADB.
Hope you can help.
Cheers,
Alchedin
Click to expand...
Click to collapse
Upload a backup or original Rom to take a look.
Sent from my GT-I9100 using xda app-developers app
toxicro said:
Upload a backup or original Rom to take a look.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Hi Toxicro,
I have used this one: link
If possible can u help me with the sound drivers also? Last time I checked the sound wasn't working either. Thank you in advance.
Alchedin said:
Hi Toxicro,
I have used this one: link
If possible can u help me with the sound drivers also? Last time I checked the sound wasn't working either. Thank you in advance.
Click to expand...
Click to collapse
TS MODULE already exist : ektf2k.ko aka ekt3632+mma7660
toxicro said:
TS MODULE already exist : ektf2k.ko aka ekt3632+mma7660
Click to expand...
Click to collapse
Strange thing, I used all of the TS drivers in an previous installation but none of them responded to touch. I will try again then using this specific module. Thanks for your help so far, I appreciate it a lot.
Edit: Everything works! except for the camera but I don't mind, thanks a lot Toxicro :victory:
CWM dosnt work
as soon as I enter CWM with this firmware I cant exit the recovery mode and I must reflash. How can this be fixed? some patch or something?
Ada DJ said:
as soon as I enter CWM with this firmware I cant exit the recovery mode and I must reflash. How can this be fixed? some patch or something?
Click to expand...
Click to collapse
No problem with CWM here.
Why you need CWM ?
toxicro said:
No problem with CWM here.
Why you need CWM ?
Click to expand...
Click to collapse
look here:
http://www.techknow.me/forum/index.php?topic=5948.0
your firmware is like the only firmware I can flash to one of my tablets, but i have problem with touchscreen, gsensor and cwm.
the question is not about need. lets say i accidentally enter cwm, then i must reflash the tablet to get it working.
I hope you can help me in some way, thanks.
Edit: I forgot to add, I have a uberizerbackup, but I cant seem to recover back to it, it only gets stuck on the green android logo. would really appreciate your help, maybe I can send this backup (through http://www.dropsend.com/ or something else, if so, leave your mail in a pm to me) and you can see what drivers I have through it so I can get a custom patch or ROM, that would be awesome, thanks.
I have tried many patches, but still, the screen seems to spook. like it presses on places I didnt press on etc.
Maybe I should add, there is some firmwares I have found that have working cwm, but usually they are version 4.0.4, if that would help, I can look for one of these and send them to you?
finally got recovery dump working:
[email protected]:/ # lsmod
lsmod
rtl8150 10305 0 - Live 0xbf1aa000
mcs7830 7581 0 - Live 0xbf1a4000
qf9700 9152 0 - Live 0xbf19d000
asix 24601 0 - Live 0xbf191000
sun5i_csi0 37254 0 - Live 0xbf182000
bg0328_b 14558 0 - Live 0xbf17a000
gc2015_b 21406 0 - Live 0xbf16f000
sp2518_b 18789 0 - Live 0xbf165000
gt2005_b 20945 0 - Live 0xbf15a000
sp0838_b 21624 0 - Live 0xbf14f000
gc0329_b 19597 0 - Live 0xbf145000
gc0308_b 20059 0 - Live 0xbf13b000
gc2035 20405 0 - Live 0xbf132000
bg0328 14554 0 - Live 0xbf12a000
gc2015 21402 0 - Live 0xbf11f000
sp2518 18785 0 - Live 0xbf115000
hm5065 28575 0 - Live 0xbf109000
gt2005 20945 0 - Live 0xbf0fe000
gc0309 19834 0 - Live 0xbf0f4000
gc0329 19597 0 - Live 0xbf0ea000
siv121d 15447 1 - Live 0xbf0e1000
sp0a19 20151 0 - Live 0xbf0d8000
sp0838 21624 0 - Live 0xbf0cd000
gc0308 20333 0 - Live 0xbf0c3000
videobuf_dma_contig 6251 1 sun5i_csi0, Live 0xbf0be000
videobuf_core 20242 2 sun5i_csi0,videobuf_dma_contig, Live 0xbf0b4000
mecs 4078 0 - Live 0xbf0ac000
mxc622x 6088 0 - Live 0xbf0a6000
cedarx 9351 0 - Live 0xbf09f000
mali 151084 4 - Live 0xbf06d000
ump 49382 9 mali, Live 0xbf059000
hv2605 5273 0 - Live 0xbf04f000
zet6221 20285 0 - Live 0xbf040000
nand 225008 4 - Live 0xbf000000
[email protected]:/ #
partition:
[email protected]:/ # busybox df -h
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 176.8M 44.0K 176.7M 0% /dev
tmpfs 176.8M 0 176.8M 0% /mnt/asec
tmpfs 176.8M 0 176.8M 0% /mnt/obb
/dev/block/nandd 503.9M 231.9M 272.1M 46% /system
/dev/block/vold/93:72
1.6G 42.1M 1.5G 3% /mnt/sdcard
/dev/block/vold/93:72
1.6G 42.1M 1.5G 3% /mnt/secure/asec
[email protected]:/ #
[email protected]:/ # cat /proc/partitions
cat /proc/partitions
major minor #blocks name
93 0 16384 nanda
93 8 16384 nandb
93 16 32768 nandc
93 24 524288 nandd
93 32 1048576 nande
93 40 16384 nandf
93 48 32768 nandg
93 56 262144 nandh
93 64 262144 nandi
93 72 1662976 nandj
[email protected]:/ #
toxicro said:
No problem with CWM here.
Why you need CWM ?
Click to expand...
Click to collapse
can't find working TS on softwinerevb 7" any idea?
Thant said:
can't find working TS on softwinerevb 7" any idea?
Click to expand...
Click to collapse
If no TS module from first post don't work on your tablet provide a backup or a working ROM.
toxicro said:
If no TS module from first post don't work on your tablet provide a backup or a working ROM.
Click to expand...
Click to collapse
after use A13 erase tablet to full empty device and install this ROM sun5i_android_a13-evb-q8-mxc622x-20121012work.img everything work.
Thant said:
after use A13 erase tablet to full empty device and install this ROM sun5i_android_a13-evb-q8-mxc622x-20121012work.img everything work.
Click to expand...
Click to collapse
That ROM have multiple TS loading i need a "getevent" using adb shell with the working ROM.

[ROM] CyanogenMod 10 for Allwinner a13 [08/28/13]

Hello, i just created cm10 for allwinner a13 tablets (EVB versions)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Android 4.1.2
I compiled cm10 source and I made a custom kernel
Features:
- CyanogenMod Features
- Expanded desktop mode
- Init.d Scripts:
-- ZipAlign
-- Internal speed fix
-- Perfect Mounts
-- SQL Optimize
-- Auto setup sensors Script
- Xbox 360 gamepad support (xpad)
- PS3 USB gamepad support (hid-sony)
- PS2 USB gamepad support (hid-sjoy)
- Generic / chinese (Pantherlord / GreenAsia) gamepads support (hid-dr and hid-gaff)
- OpenVPN support (tun)
- NTFS and ExFat support
- Custom Kernel Features (based in stock kernel version 3.0.8+):
- Smartass2 governor (Default)
- SIO I/O Scheduler (Default)
- Mali OS = 90 mb
- Cyanogenmod compatible Sound
- Gamepad support
- Preloaded modules:
- Touchscreen:
-- ft5x_ts
-- gslX680
-- ft5x02 (Ainol novo7legend ts)
- Camera:
-- gc0308
-- gc0329
-- sp0838
- G-sensor:
-- mxc622x
BUGS: You tell me
Instructions:
ATTENTION: This rom is NOT compatible with faaastJB v2 rom, (You need to be in WORKING stock rom or faaastJB v1 to make all modules work)
FaaastJB v2 use a modified script.bin who BREAK modules in this ROM
REMEMBER BACKUP YOUR ROM AND HAVE .IMG IMAGE IN CASE IS SOMETHING GOT WRONG
DO THIS BEFORE FLASH To check what is your modules drivers, enter on terminal emulator or ADB and make:
Code:
lsmod
and
Code:
getevent
Check with
Code:
lsmod
the loaded modules (CAMERA MODULES: HAVE "1" number after module name, example:
Code:
gc0308 16888 1 - Live 0x00000000
this clear show gc0308 camera module loaded.
Code:
getevent
help you find touchscreen driver and also G-sensor driver
Example:
Code:
add device 1: /dev/input/event4
name: "gslx680"
add device 2: /dev/input/event3
name: "gt811"
add device 3: /dev/input/event2
name: "mxc622x"
add device 4: /dev/input/event0
name: "sun4i-keyboard"
Cleared show you "mxc622x" g-sensor module
"gslx680" touchscreen module
"gt811" in this case you need to test what is the proper touchscreen driver
After to know what is your driver, show the Proper patches and flash it!
Oh yeah :android-lol: welcome to test the most Smooth allwinner a13 CM10 rom!
- Install CWM
instruction here: http://forum.xda-developers.com/showthread.php?t=2189640
- Boot into CWM keeping pressed VOL- (MENU) and POWER for 3 secs, than release POWER and after another sec release VOL- (or use Novo7 tools if it doesn't work for your device)
- Select "wipe data/factory reset"
- Select "install zip from sdcard" -> "choose zip from sdcard" (or "choose zip from internal sdcard" if your files are into internal memory)
- Flash in this order:
1. ROM
2. JB G-apps
3. Compatibility patch (If available)
- Now go back, and select "Reboot system now
- Setup tablet with wizard and Reboot Again (to get g-sensor working)
- Enjoy CM10!
I have tested the rom with OEM A13 Tablet (Is smooth and stable)
I can play dead trigger!
I will try to support the rom and custom kernel
Also if is posible, I will update to CM10.1
- If you wanna use the "phablet" ui change the entry "ro.disable_phablet_ui=1" to "ro.disable_phablet_ui=0" in file /system/build.prop
- If you wanna change external SD card for Internal change the entry "persist.sys.vold.switchexternal=0" to "persist.sys.vold.switchexternal=1" in file /system/build.prop
Download:
Cm10: Mod Edit: Links Removed
G-apps: http://goo.im/gapps/gapps-jb-20121011-signed.zip
Compatibility patches
Touchscreen Download
- ssd-253x-ts
- goodix811
- zet6221_ts
- ct360_ts
- elan_ts
- gt811 (goodix811 alternative)
- gt818_ts
- gt828_ts
- gslx680 (gslX680 alternative)
- zet6221-ts (zet6221 alternative)
- goodix_touch
G-sensor Download
- bma250
- mxc622x
- mma7660
Camera Download
- gc0329
- sp0838
I make FREE job but you want support me for development and have more development devices?
Click "Donate to me" above on my profile picture or contact me
Screenshots:
Expanded desktop mode ON:
FAQ
1. Volumen keylayout is different?
A: copy and paste /system/usr/keylayout/sun4i-keyboard.kl from backup rom to CM10 and chmod 644
2. My touchscreen is working descalibrated, is shift inverted?
A. first check if backup rom have kernel version 1.5 and copy and paste your touchscreen from backup rom to CM10 and chmod 644
Example: you have ft5x_ts touchscreen
open windows adb command line and make this:
Code:
adb "root"
adb remount
adb push ft5x_ts.ko /system/lib/modules
adb chmod 644 /system/lib/modules/ft5x_ts.ko
adb push ft5x_ts.idc /system/usr/idc
adb chmod 644 /system/usr/idc/ft5x_ts.idc
3. My g-sensor is inverted?
A. first check if backup rom have kernel version 1.5 and Copy and paste your g-sensor module name from backup rom to CM10 and chmod 644
4. Nothing is working and I want make my own patches?
A. You can do it, if you want load unlisted touchscreen (for example):
edit /system/etc/init.d/07touchscreen
change this line: insmod /system/lib/modules/ft5x_ts.ko with your touchscreen module name, save and exit. chmod 755
copy the ts module into /system/lib/modules and idc /system/usr/idc
chmod 644 that for modules and idc
for camera edit this file: /system/lib/modules/08camera
and g-sensor edit: /system/lib/modules/09gsensor
5. I do not know what is my modules?
A. Extract script.bin and attach here with a post, use this tool:
Script.bin_Extract.zip
TWITTER: @freddyarenas4
Regards from Venezuela​
Changelogs:
Code:
Build and Patches 08-28-2013
- New Rom Build
- Changed Default g-sensor: mxc622x
- Changed Default Camera modules:
-- gc0308
-- gc0329
-- sp0838
- Fixed Ainol Novo7 Legend touchscreen!
- New way to load modules in init.d:
-- 07touchscreen
-- 08camera
-- 09gsensor
In this case, nobody can get bootloop or black screen with patches
- Removed No Working Touchscreen patches
- Added ms8698s touchscreen module
- Important:
-- Changed Android Framework AV and added new cedarx to fix video HD decoding (NEED testers)
- Added a FAQ section with important answer to fix newbies issues
Code:
Update 07/09/13
Update main thread post with more help to know how find your device drivers,
Also warning with incompatible faaastjb v2 script.bin file
Code:
Update 07/03/13
Fixed and Update camera modules (this removed the TS modules load)
Try to flash ts again
added:
zet622x
goodix_touch
Code:
Build and Patches 07-03-2013
- New Rom Build
- Default g-sensor: dmard06
- removed auto setup sensors (did not work)
- Update dmard06 module
- Fixed xbox 360 module (was not present in modules folder)
- Added:
- G-sensor compatible patches
-- bma250
-- mxc622x
-- mma7660
- Touchscreen compatible patches
-- ct360_ts
-- elan_ts
-- gt811 (goodix811 alternative)
-- gt818_ts
-- gt828_ts
-- gslx680 (gslX680 alternative)
Update google drive shared folder
Code:
Patches 07-01-2013
Touchscreen: ssd-253x-ts.zip, goodix811.zip, zet6221.zip
Camera: gc0329.zip, sp0838.zip
Code:
Build 06-29-2013
Initial Release
Looking forward to flashing mine in the morning. Thank you very much. Though, I'm not clear: What are the EVB versions? Been out of the loop in watching development on the A13 tablets for a while, so forgive my ignorance. I have a generic Fleabay-bought Q88 with a Goodix touchscreen. Any chance this will work properly with a Goodix controller?
the720k said:
Looking forward to flashing mine in the morning. Thank you very much. Though, I'm not clear: What are the EVB versions? Been out of the loop in watching development on the A13 tablets for a while, so forgive my ignorance. I have a generic Fleabay-bought Q88 with a Goodix touchscreen. Any chance this will work properly with a Goodix controller?
Click to expand...
Click to collapse
EVB version is the allwinner a13 wifi model.
Yes, it is posible make a compatibility path for this, but I need know what is your camera and g-sensors modules too!
Thanks for the reply. Will an lsmod suffice?
the720k said:
Thanks for the reply. Will an lsmod suffice?
Click to expand...
Click to collapse
Yes this should work, I will waiting you
Sent from my Nexus 7 using xda app-developers app
Here's the output:
Code:
[email protected]:/ # lsmod
8192cu 515468 0 - Live 0xbf0bd000
rtl8150 10305 0 - Live 0xbf0b6000
mcs7830 7589 0 - Live 0xbf0b0000
qf9700 9152 0 - Live 0xbf0a9000
asix 24601 0 - Live 0xbf09d000
usbnet 26253 3 mcs7830,qf9700,asix, Live 0xbf090000
sun5i_csi0 31059 0 - Live 0xbf083000
gc0308 18408 1 - Live 0xbf07a000
videobuf_dma_contig 6251 1 sun5i_csi0, Live 0xbf075000
videobuf_core 20242 2 sun5i_csi0,videobuf_dma_contig, Live 0xbf06b000
dmard06 7987 0 - Live 0xbf061000
mali 152158 10 - Live 0xbf027000
ump 49678 19 mali, Live 0xbf013000
hv2605 5273 0 - Live 0xbf00d000
goodix_touch_811 18030 0 - Live 0xbf004000
sun4i_keyboard 2677 0 - Live 0xbf000000
Thanks in advance. Looking forward to finally getting a decent ROM on this tablet!
the720k said:
Here's the output:
Code:
[email protected]:/ # lsmod
8192cu 515468 0 - Live 0xbf0bd000
rtl8150 10305 0 - Live 0xbf0b6000
mcs7830 7589 0 - Live 0xbf0b0000
qf9700 9152 0 - Live 0xbf0a9000
asix 24601 0 - Live 0xbf09d000
usbnet 26253 3 mcs7830,qf9700,asix, Live 0xbf090000
sun5i_csi0 31059 0 - Live 0xbf083000
gc0308 18408 1 - Live 0xbf07a000
videobuf_dma_contig 6251 1 sun5i_csi0, Live 0xbf075000
videobuf_core 20242 2 sun5i_csi0,videobuf_dma_contig, Live 0xbf06b000
dmard06 7987 0 - Live 0xbf061000
mali 152158 10 - Live 0xbf027000
ump 49678 19 mali, Live 0xbf013000
hv2605 5273 0 - Live 0xbf00d000
goodix_touch_811 18030 0 - Live 0xbf004000
sun4i_keyboard 2677 0 - Live 0xbf000000
Thanks in advance. Looking forward to finally getting a decent ROM on this tablet!
Click to expand...
Click to collapse
Ok, when I get to home, I will try to make a patch
Sent from my Nexus 7 using xda app-developers app
AnonFBI said:
Ok, when I get to home, I will try to make a patch
Click to expand...
Click to collapse
Cool, very much looking forward to it. Have been trying to get CM on this tablet since I bought it a year ago. I am sure many other Q88 owners will be happy to have it working on their tabs as well.
How to flash compatibility?
AnonFBI said:
Hello, i just created cm10 for allwinner a13 tablets (EVB versions)
Android 4.1.2
I compiled cm10 source and I made a custom kernel
Features:
- CyanogenMod Features
- Expanded desktop mode
- Init.d Scripts:
-- ZipAlign
-- Internal speed fix
-- Perfect Mounts
-- SQL Optimize
-- Auto setup sensors Script
- Xbox 360 gamepad support (xpad)
- PS3 USB gamepad support (hid-sony)
- PS2 USB gamepad support (hid-sjoy)
- Generic / chinese (Pantherlord / GreenAsia) gamepads support (hid-dr and hid-gaff)
- OpenVPN support (tun)
- NTFS and ExFat support
- Custom Kernel Features (based in stock kernel version 3.0.8+):
- Smartass2 governor (Default)
- SIO I/O Scheduler (Default)
- Mali OS = 90 mb
- Cyanogenmod compatible Sound
- Gamepad support
- Preloaded modules:
- Touchscreen:
-- ftx5x_ts
-- gslX680
-- ft5x02 (Ainol novo7legend ts)
- Camera:
-- gc0308
-- gt2005
-- mt9m112
-- ov5640
- G-sensor:
-- dmard06
-- bma250
-- mxc622x
-- mma7660
BUGS: You tell me
Instructions:
- Install CWM
instruction here: http://forum.xda-developers.com/showthread.php?t=2189640
- Boot into CWM keeping pressed VOL- (MENU) and POWER for 3 secs, than release POWER and after another sec release VOL- (or use Novo7 tools if it doesn't work for your device)
- Select "wipe data/factory reset"
- Select "install zip from sdcard" -> "choose zip from sdcard" (or "choose zip from internal sdcard" if your files are into internal memory)
- Flash in this order:
1. ROM
2. JB G-apps
3. Compatibility patch (If available)
- Now go back, and select "Reboot system now
- Setup tablet with wizard and Reboot Again (to get g-sensor working)
- Enjoy CM10!
I have tested the rom with OEM A13 Tablet (Is smooth and stable)
I can play dead trigger!
I will try to support the rom and custom kernel
Also if is posible, I will update to CM10.1
- If you wanna use the "phablet" ui change the entry "ro.disable_phablet_ui=1" to "ro.disable_phablet_ui=0" in file /system/build.prop
- If you wanna change external SD card for Internal change the entry "persist.sys.vold.switchexternal=0" to "persist.sys.vold.switchexternal=1" in file /system/build.prop
Download:
Cm10: https://docs.google.com/file/d/0B240tVoN5YQPUmNFQW1ZQ0pCLUk/edit?usp=sharing
G-apps: http://goo.im/gapps/gapps-jb-20121011-signed.zip
Compatibility patches
ssd-253x-ts.zip
¿Do you want support me for development and have more developer devices?
Click "Donate to me" above on my profile picture or contact me
Screenshots:
Expanded desktop mode ON:
Regards from Venezuela​
Click to expand...
Click to collapse
Hello sir! How to flash .zip compatibility patch?? it says error code 6 ??
at41man said:
Hello sir! How to flash .zip compatibility patch?? it says error code 6 ??
Click to expand...
Click to collapse
Added and fixed more patches, read main post for download links.
Try to download the patch again. now is fixed
TouchScreen Not Functioning?
AnonFBI said:
Added and fixed more patches, read main post for download links.
Try to download the patch again. now is fixed
Click to expand...
Click to collapse
Really good ROM, all things functioning, SMOOTH but.......
the touchscreen not functioning! I must use Mouse with OTG..
here the lsmod from my device, hope it helps:
[email protected]:/ $ su
[email protected]:/ # lsmod
8192cu 575431 0 - Live 0xbf0bb000
cdc_subset 1588 0 - Live 0xbf0b7000
cdc_eem 2915 0 - Live 0xbf0b3000
cdc_ether 7651 0 - Live 0xbf0ad000
rtl8150 10305 0 - Live 0xbf0a6000
mcs7830 7581 0 - Live 0xbf0a0000
qf9700 9152 0 - Live 0xbf099000
asix 24601 0 - Live 0xbf08d000
usbnet 26229 6 cdc_subset,cdc_eem,cdc_ether,mcs7830,qf9700,asix, Live 0xbf080000
sun5i_csi0 30803 0 - Live 0xbf073000
gc0308 18408 1 - Live 0xbf06a000
videobuf_dma_contig 6251 1 sun5i_csi0, Live 0xbf065000
videobuf_core 20242 2 sun5i_csi0,videobuf_dma_contig, Live 0xbf05b000
mma7660 6857 0 - Live 0xbf055000
cedarx 9351 0 - Live 0xbf04e000
mali 150686 10 - Live 0xbf01c000
ump 48970 17 mali, Live 0xbf009000
gt811_ts 18014 0 - Live 0xbf000000
[email protected]:/ #
thank you sir!!
at41man said:
Really good ROM, all things functioning, SMOOTH but.......
the touchscreen not functioning! I must use Mouse with OTG..
here the lsmod from my device, hope it helps:
[email protected]:/ $ su
[email protected]:/ # lsmod
8192cu 575431 0 - Live 0xbf0bb000
cdc_subset 1588 0 - Live 0xbf0b7000
cdc_eem 2915 0 - Live 0xbf0b3000
cdc_ether 7651 0 - Live 0xbf0ad000
rtl8150 10305 0 - Live 0xbf0a6000
mcs7830 7581 0 - Live 0xbf0a0000
qf9700 9152 0 - Live 0xbf099000
asix 24601 0 - Live 0xbf08d000
usbnet 26229 6 cdc_subset,cdc_eem,cdc_ether,mcs7830,qf9700,asix, Live 0xbf080000
sun5i_csi0 30803 0 - Live 0xbf073000
gc0308 18408 1 - Live 0xbf06a000
videobuf_dma_contig 6251 1 sun5i_csi0, Live 0xbf065000
videobuf_core 20242 2 sun5i_csi0,videobuf_dma_contig, Live 0xbf05b000
mma7660 6857 0 - Live 0xbf055000
cedarx 9351 0 - Live 0xbf04e000
mali 150686 10 - Live 0xbf01c000
ump 48970 17 mali, Live 0xbf009000
gt811_ts 18014 0 - Live 0xbf000000
[email protected]:/ #
thank you sir!!
Click to expand...
Click to collapse
do you tested goodix811.zip patch? it is working?
if do not, you need send me the gt811_ts.ko kernel module
and gt811_ts.idc
This is an excellent ROM. Much smoother than the stock ROM for my device. goodix811.zip worked perfectly. Wifi is working, camera is working, CPU governor has sped things up a bit, and I'm very pleased with how this device is running. All modules are working 100% except the G-sensor. My device has dmard06, but my X and Y axes are inverted, so when I turn my device to landscape, it goes to portrait, and vice-versa.
Otherwise, EXCELLENT ROM. My tablet has never run so smoothly. Hopefully a working dmard06.ko/sensors.exDroid.so can be found soon for a compatibility zip.
Good work, Anon!
I have a A13B tablet from ebay...its boot looping back into recovery...im a big fan cm10 any sugestions on a fix...downliading rom and gapps now also
Sent from my HTCONE using xda premium
AnonFBI said:
Changelogs:
Build 06-29-13
- Initial Release
Patches 07-01-2013
Touchscreen :ssd-253x-ts.zip, goodix811.zip, zet6221.zip
Camera: gc0329.zip
Click to expand...
Click to collapse
Yes this is the thing i am looking for from a year,good work man thinking about pac or aokp ?
goodix811 patch is not working !
icoolguy1995 said:
goodix811 patch is not working !
Click to expand...
Click to collapse
the patch is working, maybe you need edit your script.bin and give me the [ctp_para]
how to edit script .bin when ever i apply that patch screen goes black !
or can i apply that module from ics ?
---------- Post added at 07:14 PM ---------- Previous post was at 07:06 PM ----------
whenever i apply goodix patch the screen goes black after reboot to revive it i need to apply other touchscreen patch and then screen goes on but touch screen doesn't work why it is so ?
---------- Post added at 07:40 PM ---------- Previous post was at 07:14 PM ----------
here is lsmod
H:\program files\Virtuous Ten Studio\External\ADB>adb shell
[email protected]:/ $ su
su
1|[email protected]:/ $ adb shell
adb shell
error: device not found
1|[email protected]:/ $
H:\program files\Virtuous Ten Studio\External\ADB>adb shell
[email protected]:/ $ lsmod
lsmod
8188eu 581006 0 - Live 0x00000000
rtl8150 10305 0 - Live 0x00000000
mcs7830 7581 0 - Live 0x00000000
qf9700 9152 0 - Live 0x00000000
asix 24601 0 - Live 0x00000000
sun5i_csi0 33255 0 - Live 0x00000000
cedarx 11869 0 - Live 0x00000000
ov5640 31583 0 - Live 0x00000000
mt9m112 15359 0 - Live 0x00000000
gt2005 19412 0 - Live 0x00000000
gc0308 18408 1 - Live 0x00000000
videobuf_dma_contig 6251 1 sun5i_csi0, Live 0x00000000
videobuf_core 20242 2 sun5i_csi0,videobuf_dma_contig, Live 0x00000000
mma7660 6857 0 - Live 0x00000000
mxc622x 6088 0 - Live 0x00000000
mecs 4078 0 - Live 0x00000000
bma250 7545 0 - Live 0x00000000
dmard06 11119 0 - Live 0x00000000
ft5x_ts 44577 0 - Live 0x00000000
mali 150572 8 - Live 0x00000000
ump 48978 17 mali, Live 0x00000000
hid_sony 2377 0 - Live 0x00000000
hid_gaff 2817 0 - Live 0x00000000
[email protected]:/ $
---------- Post added at 08:15 PM ---------- Previous post was at 07:40 PM ----------
can i use this boot.img in stock 4.2.2 ?
icoolguy1995 said:
how to edit script .bin when ever i apply that patch screen goes black !
or can i apply that module from ics ?
---------- Post added at 07:14 PM ---------- Previous post was at 07:06 PM ----------
whenever i apply goodix patch the screen goes black after reboot to revive it i need to apply other touchscreen patch and then screen goes on but touch screen doesn't work why it is so ?
---------- Post added at 07:40 PM ---------- Previous post was at 07:14 PM ----------
here is lsmod
H:\program files\Virtuous Ten Studio\External\ADB>adb shell
[email protected]:/ $ su
su
1|[email protected]:/ $ adb shell
adb shell
error: device not found
1|[email protected]:/ $
H:\program files\Virtuous Ten Studio\External\ADB>adb shell
[email protected]:/ $ lsmod
lsmod
8188eu 581006 0 - Live 0x00000000
rtl8150 10305 0 - Live 0x00000000
mcs7830 7581 0 - Live 0x00000000
qf9700 9152 0 - Live 0x00000000
asix 24601 0 - Live 0x00000000
sun5i_csi0 33255 0 - Live 0x00000000
cedarx 11869 0 - Live 0x00000000
ov5640 31583 0 - Live 0x00000000
mt9m112 15359 0 - Live 0x00000000
gt2005 19412 0 - Live 0x00000000
gc0308 18408 1 - Live 0x00000000
videobuf_dma_contig 6251 1 sun5i_csi0, Live 0x00000000
videobuf_core 20242 2 sun5i_csi0,videobuf_dma_contig, Live 0x00000000
mma7660 6857 0 - Live 0x00000000
mxc622x 6088 0 - Live 0x00000000
mecs 4078 0 - Live 0x00000000
bma250 7545 0 - Live 0x00000000
dmard06 11119 0 - Live 0x00000000
ft5x_ts 44577 0 - Live 0x00000000
mali 150572 8 - Live 0x00000000
ump 48978 17 mali, Live 0x00000000
hid_sony 2377 0 - Live 0x00000000
hid_gaff 2817 0 - Live 0x00000000
[email protected]:/ $
---------- Post added at 08:15 PM ---------- Previous post was at 07:40 PM ----------
can i use this boot.img in stock 4.2.2 ?
Click to expand...
Click to collapse
1 user tested the patch and worked perfectly, yes this kernel can used in every rom but you need export the modules too

Categories

Resources