I've been reading about editing hsdpa and hsupa catagory numbers as well as the gprsclass number and seem to have improved my upload speed and possibly my download speed. In my basement, I usually see about 2200 kbps down and 1000 kbps up. Changing a couple numbers, I am now at a consistent 2500kbps and 1600kbps.
I'm running Android Revolution v3.0 with the 26.06.03.24_M2 radio.
ro.ril.gprsclass=12
ro.ril.hsdpa.category=14
ro.ril.hsupa.category=7
ro.ril.hsxpa=3
I rebooted twice.
Could be purely coincidental, but I thought it may be worth sharing and discussing.
Would be great if you could elaborate a little more on the technical side of what these values actually do and stuff
All this is cut and pasted from other sites, it's not my own research.
ro.ril.gprsclass indicates the GPRS class of the target network :
Class 2 : 3 slots : 8 – 12 kbps upload / 16 – 24 kbps download
Class 4 : 4 slots : 8 – 12 kbps upload / 24 – 36 kbps download
Class 6 : 4 slots : 24 – 36 kbps upload / 24 – 36 kbps download
Class 8 : 5 slots : 8 – 12 kbps upload / 32 – 40 kbps download
Class 10 : 5 slots : 16 – 24 kbps upload / 32 – 48 kbps download
Class 12 : 5 slots : 32 – 48 kbps upload / 32 – 48 kbps download
ro.ril.hsdpa and ro.ril.hsupa catagories are similar where each catagory is a target for a maximum data rate. It may seem that higher is better, but another thread on the G2 forum seemed to show that if you went too high, something triggered to lower the speeds back down to below factory levels.
http://androinica.com/2009/12/14/hack-for-rooted-phones-promises-faster-2g3g-speeds/
http://forum.xda-developers.com/showthread.php?t=595108&highlight=amon Amon_RA has a lot of good insight as to what they mean.
http://en.wikipedia.org/wiki/High-Speed_Downlink_Packet_Access
http://forum.xda-developers.com/showthread.php?t=838388
setting hsupa to class 7 is netting me 2.7mbps uploads. Crap, that is faster than my uverse service!
OMG!!! its really fast I just did a speed test i got 4.7 down and 1.4 up...Nice
I edited my build.prop on my inspire and now I get 3000 down and 1673 up i was getting 1200 down and 600 up
Here are my full settings:
GPRS: 12
HSDPA: 10
HSUPA: 7
HSXPA: 3
I didn't change any other settings.
Any steps for those who have never edited this before?
Sportsguy15 said:
Any steps for those who have never edited this before?
Click to expand...
Click to collapse
I used prop editor ( I can't remember where I found it, but it is an apk. I used it to make the changes after backing up my build.prop. I will upload here in a few minutes.
Be warned, you can wreck your software pretty good messing with this file. Just some forewarning.
Well, I'm glad it wasn't just my imagination. Those settings I posted aren't necessarily the optimum setup for our phones, so a little experimentation may yield even better results.
Sportsguy15 said:
Any steps for those who have never edited this before?
Click to expand...
Click to collapse
There are several ways to do it, prop editor being a great one. Here's what I did step by step for the new guys:
MAKE A BACKUP OF YOUR ROM THROUGH CWM.
Download "root explorer" and possibly "mount /system (rw /ro)" from the app market.
Open up root explorer and select the system folder
Near the top of the screen there should be a "Mount R/W" button. Select it. If it won't let you change to R/W, go back and open up the "mount system" app. Select Mount r/w. Go back to root explorer and you should be able to now select Mount R/W in the system folder.
Long press build.prop and scroll down to "Open in Text Editor".
Make your desired changes, tap menu and then Save & Exit. It will automatically save your original build.prop as build.prop.bak and save your changes.
Reboot twice (once didn't work for everyone in the threads I was reading).
As id10terrordfw said, you could potentially mess things up with your rom, so be careful. If you aren't confident in what you're doing, it's probably best to just leave it alone.
I just made the changes but I wont be able to do any speed tests until tomorrow. I am on the Microcell at home.
wanted to share results from my tests today. i'm using CM7 for Inspire and my daily driver - att-inspired-rooted-signed.zip from attn1 - and on both ROMs my build.prop settings are:
ro.ril.enable.dtm = 1
ro.ril.gprsclass = 12
ro.ril.hsdpa.category = 10
ro.ril.hsupa.category = 6
ro.ril.hsxpa = 3.
the APN settings for both ROMs are in first pic. pics 2-4 are from the att stock ROM and pics 5 & 6 are from CM7. i don't know if att is tweaking something, but i've been getting some crazy fast speeds. (doesn't hurt that i live in dallas).
Trying this as soon as I get my new rom flashed
I copied the propeditor.apk to the sd card and clicked it in root explorer then clicked install. Says it can't install because of problem pasring the file?
Got the prop editor installed using appinstaller. Sadly it looks like mine is already edited in coredroid.
gprs=12
hsdpa=10
hsupa=6
hsxpa=3
Don't think there are any settings above these current ones to improve speed.
So I changed
hsdpa=14
and got way better downloads. Changed my hsupa to 7 and it was like hsupa had been disabled again. Changed back to 6 and reoobted again and still acts like it struggles to limit itself to around 300 upload. Is this something in my build.pro or in my new flash of coredroid 3.2? I never had this problem with this rom before. my ro.ril.enable.dtm setting says 0. Not sure what that is but I'll change to 1 and see what happens.
FIXED: changed ro.ril.enable.dtm = from 0 to 1 and it seems to have fixed it.
EDIT also for some reason network was set to wcdma only.
Is there a way to unlock the stock APN settings in the rooted stock rom? Or should I just create a new one?
cant edit
everytime I try to edit build.prop and try to save it, it tells me its a read only and cant save. I tried prop editor and it can't even open it.
Av8tor86 said:
everytime I try to edit build.prop and try to save it, it tells me its a read only and cant save. I tried prop editor and it can't even open it.
Click to expand...
Click to collapse
You need to make sure the file system is mounted as Read/Write. If it's mounted Read Only you won't be able to make changes. I use Root Explorer, and when you go into System you tap the "Mount R/W" button, then open build.prop in text editor. If you use ES File Explorer, go into the settings, go to Root Options, then put a check for Root Explorer, and Mount File System. Now a long press on build.prop will allow you to open it as text, make changes, and save changes. What I like about Root Explorer is it automatically makes a backup of build.prop when making changes.
Excuse my ignorance but would I have to change this section as well?
Or just the top section as the following is around the middle section of the build?
"# ace RF team request
ro.ril.enable.dtm = 1
ro.ril.gprsclass = 12
ro.ril.hsdpa.category = 10
ro.ril.hsupa.category = 6
ro.ril.hsxpa = 3"
Sent from my most memorable Inspire 4G
Related
I'm watching a lot of videos of ppcs and they seems so fast..., we have a strong pda, with strong processor, and i don't have this speeds...
I'm playing with Schaps AC, and everything which name is "cache" xDDD, but i don't have this speeds...
First i want to "recalibrate" this opstions, then i will use hack master or something similar to speed up the machine
Anyone can put what value is the best for performance in this values?
or everything that can help with more speed...
thanks!
what on earth are you talking about?
the x7510?
Rory
Yes.. the x7510....
i'm playing with the values of:
File system cache size
File system filter cache
Glyph cache
Font cache Size
i only ask for this values, if anybody has found the best values for those caches. and if there is something more to do to the x7510 to meake it more smooth and fast.
Try these:
1. FS = Enabled
2. FS Filter = 16 MB
3. Glyph = 16 KB
4. Font = 8 MB
Also, the best favor you can do to your self and to your device, is to use XCPUScaler which will speed the x7510 DRAMATICALLY.
plz. Input your feedback!
Willy318is said:
Try these:
1. FS = Enabled
2. FS Filter = 16 MB
3. Glyph = 16 KB
4. Font = 8 MB
Also, the best favor you can do to your self and to your device, is to use XCPUScaler which will speed the x7510 DRAMATICALLY.
plz. Input your feedback!
Click to expand...
Click to collapse
Thanks for the utility point, I am using XScalar now with a top speed of 663 with no issues, 728 was just not a stable option. I see a dramatic responsivness increase.
i'm using pocket hack master, what version of xscalar are you using? i had one old version but my x7510 freezes...
I dind't check the values but with memmaid, if you set "optimize for extreme speed", the x7510 is a rocket! xDDDD
i'll search a little bit about more values.
thanks!
well... the best values at the moment i found are:
File system cache = enabled
File system cache size = 2 mbs (more mbs, do nothing...)
File system filter cache = 4096 sectors
Glyph cache= 32 kbs (with a higher value i didn't see the difference)
now i'll try this but with xscalar on, let's see...
I will suggest to push to have a Michyprima or IRUS rom, the speed increse is drammatic, PLUS Diamond Gsensor working, fast, really FAST and responsive
Ok, but we have an x7510!!!!! we can't cook any rom into our devices ....
Calcu said:
i'm using pocket hack master, what version of xscalar are you using? i had one old version but my x7510 freezes...
I dind't check the values but with memmaid, if you set "optimize for extreme speed", the x7510 is a rocket! xDDDD
i'll search a little bit about more values.
thanks!
Click to expand...
Click to collapse
I have not used MemMaid for a while. But where can the "OPTIMIZE for EXTREME speed" option be located???
I have SKTools installed and it too have this option.
in the third tab (system tweaks), there is a button called Optimize, push it and you will see "For extreme Speed". Just apply and that's all.
XCPUScaler does not appear properly in the VGA Screen, I'm totally lost without this app, what can I do? I just purchased my x7510 today.
Please help!
I 'm using latest version which supposed to support VGA Mode but invain!!!
Willy318is said:
XCPUScaler does not appear properly in the VGA Screen, I'm totally lost without this app, what can I do? I just purchased my x7510 today.
Please help!
I 'm using latest version which supposed to support VGA Mode but invain!!!
Click to expand...
Click to collapse
Actually, it appears properly in VGA, it is landscape that it fails in. Just changge to portrait view before launching it.
On a side note, I stopped using it because I was experiencing sound issues when using it.
I shared my user.conf a while back with the guys on the xROM thread. I got really positive feedback from them so I decided to share it in a few other threads. JAC is included a lot of my ideas in xROM 1.4 and is going to include more in 1.5 It has grown and become more popular so I decided to start a thread at the request of a few people who use my config.
I didn't think it deserved the space until now to make a thread so I never started one. I'm not trying to make this thread all about me. I've said more than once, I would love for someone to come up with a config that is better than mine because I will be the first one to use it. I just don't want to keep derailing other conversations in other threads anymore. And while I appreciate all of the emails that I get, I think a separate thread will be an easier place to discuss this and help people out.
So I will start by posting giving a general outline of how I came up with my settings. If you want to give me feedback, I appreciate it. Even if you have emailed me in the past or posted something on one of the threads I would appreciate a post in this thread. If only the people who have problems post here I won't know how many people it is helping or not.
That is only part of the thread though. If you have a configuration that you have seriously tested and you want other people to try it, post your method and how to set it up and let's see what we can come up with. Please don't just post random configs hoping someone else will test them for you. I don't want the thread to turn into a confusing mess that doesn't help anyone. My goal is to have this thread spawn some new ideas that will make everyone's phone faster. If you've done your homework and you think you have something good, let's share it. I never thought that my config would be used by so many people. I was just trying to make my phone faster. Maybe you can do better.
Testing Method:
I generally use two apps to benchmark the performance of my phone. They are Benchmark Pi and Benchmark. Both are available on the market. I use Benchmark Pi for a rough comparison because it is faster and focuses mostly on how fast the CPU is running. When I get down to fine tuning I use Benchmark. It takes longer to run but it measure graphics, CPU, memory, and filesystem performance. For Benchmark Pi I usually will run it 10 times and use the average response. With Benchmark I set it to run each bench 5 times each and it automatically averages the values. Then I export that to a csv file and compare them that way.
I think I am a pretty heavy user of my phone so I took what I normally use and added a little bit to it. Here is what I used:
- All testing was done on xROM
- Over 120 apps installed
- 5 home screens
- 18 widgest and 8 shortcuts to apps (I can post specifics if anyone cares)
- I run the phone until it is definitely swapping. I play music, open large web pages, run CPU intesive apps, etc.
- ask me if you want more details
I use Advanced Task Manager, which I highly recommend, to keep an eye on what is running and kill any apps that are not being used by me or my desktop. I try to simulate heavy usage of my phone with only the things running that should be. I also use cat /proc/swaps, free, and sh /system/bin/swap -s (sh /system/sd/userinit.sh -s for othe ROMs).
I started out comparing Compcache and Linux Swap since those are the biggest choices. Compcache came out slightly better with the recommended configs that I could find at the time. Then I benchmarked and tested each of the Compcache settings. I found huge improvements made from tuning Compcache, especially adding backing swap. I know it got a bad rap in earlier builds because, well, it probably wasn't very good. But 0.6 is good and it has a bright future. Read this article http://lwn.net/Articles/334649/
Then I tuned swapiness, CPU, and tried on VM. It was mostly just painstaking, tedious testing of one setting to the next. I can honestly say that I have tuned every setting in the User.conf. If I change any of them the benchmarks go down. So when people tell me they tweaked this or that I don't want to say anything because I have probably tested that exact scenario and I got worse performance. But maybe it is working for them, I haven't seen any benchmark numbers. I tried on the VM but nothing seemed to help very much and I didn't want to cause problems so I stuck with the default settings there. Maybe someone can come up with better settings for the VM if that is their area of expertise.
Results:
I'm not going to post some grand report like I would at work. I'm not getting paid for this. Plus not very many people would look at it and I don't know how much it would mean in the long run.
The easiest comparision I can make is using Benchmark Pi. The average of all of the users who have ever tested using that app is around 15 seconds to calculate pi. Stock G1's will calcluate it in about 16 or 17 seconds depending on how loaded they are. xROM stock was getting a result of about 13.5 seconds with just scaling the CPU up to 528 MHz. After tweaking all of the other settings I got down to sub 12 seconds. My best time is about 11.6 seconds. I saw someone with 11.5 who used xROM 1.4. When I loaded CM 4.0.4 last night I was getting just under 13 seconds with my best times. Still a very good time considering everything that I have running.
I did a lot of other testing with Benchmark to monitor the filesystem and memory. I monitored /proc/swaps to see how much memory Compcache was using and how much was being swapped.
I learned a lot about the phone doing all of this. For instance, when you set the CPU max threshold really low, it is going to keep bumping up the CPU really fast until you get to the max. So you have a pretty good delay until you get to the max CPU frequency because the fequency keeps changing and pauses when that happnes. But then it is good until it drops again. If you make it too high, it will overwork the processor and you will see delays again. The key is to find the best setting that allows the processor to be exercised but not overworked. I don't have the time to write down everything I learned from it and you probably don't want to read it. But if you ask a specific question I will be happy to answer it.
I'd like to thank Huanyu for his thread (http://forum.xda-developers.com/showthread.php?t=542899). I wouldn't have been able to tune any of this without it and for JAC and Manup for helping me so much with xROM.
I hope this thread is helpful. Let me know what you think of my work and post your ideas too.
I have links to installing my User.conf in my signature. This post is long enough without putting that in here too. And this is more about discussion than pushing my settins on people. I don't know if mhy config will work at all with Hero. I haven't done much testing on it. I plan to do the same project for Hero when I have time. JAC has volunteered to help me out with that. If anyone wants to try it, go for it. But I don't want to confuse this thread too much by discussing Hero and the AOSP ROMs. Maybe I will start another thread for just Hero.
I look forward to seeing where this thread goes.
Ok, I decided to add more now that I have some extra time. I'm working to get backing swap working with a swap file instead of using a swap partition. A lot of people don't have or want a third partition on their phone and backing swap helps out a lot. Compcache 0.6 supports this but it wouldn't work on the G1 (or any ARM processor). I opened an issue with the compcache development team. They gave me a fix which allowed me to enable it but it ended up trashing my ext3 partition. I had to wipe my phone because the data became so corrupted. The issue is still open and the compcache developer is working on resolving it. When it is resovled, I will post an updated user.conf file that uses swap file instead of swap partition.
Many thanks for your test.
Just one question, why you don't turn the linux swap on in Cyanogen's ROM?
I found you turn on the compcache and backingswap in user.conf.
Is it better than compcache with linux-swap?
min scaling frequency 192000?
I applied the settings from your user.conf in the Cyan thread you linked to except the min scaling frequency because it seems to be set to a non-existent step (192000). Is that a typo or...? Is that user.conf the latest one you tested with CM 4.0.4?
Thanks for doing all this testing and sharing your settings!
fengwuyu said:
Many thanks for your test.
Just one question, why you don't turn the linux swap on in Cyanogen's ROM?
I found you turn on the compcache and backingswap in user.conf.
Is it better than compcache with linux-swap?
Click to expand...
Click to collapse
Compcache with backing swap uses the linux swap partition but it lets compcache manage both the compressed and non compressed storage. When a file can't or shouldn't be compressed it doesn't have to pass it back to the OS to deal with. It just moves it directly to swap. That is why it shows 100% good compression with backing swap turned on. All of my testing has shown that compcache + linux swap is much slower and more cpu intensive thand compcache + backing swap.
my experiences are non-scientific and completely anecdotal, but I like the way my phone behaves w/ a 92 meg linux swap partition enabled w/o compcache. I'm giving up a bit of responsiveness across the board (once it starts swapping) for more virtual memory. Since I have a class 6 card, the lag is bearable (i can't imagine it would be on a slower one).
I like to have my browser still be in memory after loading terminal, gmail, or a couple of other apps. but that's just me & how i use my phone. it's not a perfect config by any means, but it works best for me
ei8htohms said:
I applied the settings from your user.conf in the Cyan thread you linked to except the min scaling frequency because it seems to be set to a non-existent step (192000). Is that a typo or...? Is that user.conf the latest one you tested with CM 4.0.4?
Thanks for doing all this testing and sharing your settings!
Click to expand...
Click to collapse
It's not a typo. Some of the overclocking apps use it as an option. I've used it for a long time and so have other peole. If you want to change it, that is fine. I used 245760 for a while because of some apps I was running. The CPU frequency is one area that you can play with to meet your needs without changing much. I wouldn't suggest going below 192. You can try it but it makes the phone slow to wake up for some people.
alapapa said:
my experiences are non-scientific and completely anecdotal, but I like the way my phone behaves w/ a 92 meg linux swap partition enabled w/o compcache. I'm giving up a bit of responsiveness across the board (once it starts swapping) for more virtual memory. Since I have a class 6 card, the lag is bearable (i can't imagine it would be on a slower one).
I like to have my browser still be in memory after loading terminal, gmail, or a couple of other apps. but that's just me & how i use my phone. it's not a perfect config by any means, but it works best for me
Click to expand...
Click to collapse
That is a pretty good configuration. You will probably see better performance at a slightly higher swapiness with 92MB of swap. I think around 40 is a good setting.
You are right with a Class 6 card the performance is not that bad. You won't see a lot of lag until the file grows to the point that the OS needs to clean it up to make room for more memory. Then it will slow down. If you reboot every day it's not as much of an issue.
I've tried to come up with a configuration that works well for everyone. I helped a guy with a Class 2, 1GB card last night. He thought that my config was slowing him down on CM 4.0.4. We reparititoned and gave him a smaller ext (256 MB) to free up more memory on his FAT32 partition. I have a lot on my phone and my dalvik-cache is on my ext partition and I am using about 215MB so he should be fine with that setting. He got all of his apps installed and setup everything. Then he tested his it out with the stock settings. After he had an idea of how it was running he switched to mine and saw a noticable improvement. Using Benchmark Pi he had the same score I had with a Class 6 8GB card running on CM 4.0.4 the other day. Now my card will beat him out in other tests. Anything that requires swapping to the linux swap partition or a lot of I/O on the SD card will be better on my phone. But because he was using Compcache his performance was still pretty good.
Also, if you enable backing swap your browser should still be in memory after loading other apps. One of the biggest things people notice is that after they have been using the browser or something else that takes a lot of memory and they hit the home button they don't have to wait for it to reload. It's just there waiting for them.
Yes, he speaks the truth. After updating to a recent Cyanogen ROM, my phone just got super clunky and annoying to use, so I set out to do a completely fresh install: resizing, reformatting, wiping, fresh ROM flash, and fresh app dls. I thought since I was stuck using the stock 1GB SD card (for now at least) that is inherently Class 2, it was causing me a major bottleneck since CC and BackingSwap both employ fair usage of your SD card. Well after updating to Cyanogen's 4.1.2.1 and installing all my apps, Benchmark Pi clocked in at about 15.5ms - 16.5ms using Cyano's stock CC settings built into his ROM. Next I pushed Taylor00's user.conf with the 0.1.4.1 userinit.sh. After rebooting, my phone clocked in at 12.6ms - 13.2ms on Benchmark Pi, a definite improvement.
-Maleko48
miketaylor00 said:
That is a pretty good configuration. You will probably see better performance at a slightly higher swapiness with 92MB of swap. I think around 40 is a good setting.
You are right with a Class 6 card the performance is not that bad. You won't see a lot of lag until the file grows to the point that the OS needs to clean it up to make room for more memory. Then it will slow down. If you reboot every day it's not as much of an issue.
I've tried to come up with a configuration that works well for everyone. I helped a guy with a Class 2, 1GB card last night. He thought that my config was slowing him down on CM 4.0.4. We reparititoned and gave him a smaller ext (256 MB) to free up more memory on his FAT32 partition. I have a lot on my phone and my dalvik-cache is on my ext partition and I am using about 215MB so he should be fine with that setting. He got all of his apps installed and setup everything. Then he tested his it out with the stock settings. After he had an idea of how it was running he switched to mine and saw a noticable improvement. Using Benchmark Pi he had the same score I had with a Class 6 8GB card running on CM 4.0.4 the other day. Now my card will beat him out in other tests. Anything that requires swapping to the linux swap partition or a lot of I/O on the SD card will be better on my phone. But because he was using Compcache his performance was still pretty good.
Also, if you enable backing swap your browser should still be in memory after loading other apps. One of the biggest things people notice is that after they have been using the browser or something else that takes a lot of memory and they hit the home button they don't have to wait for it to reload. It's just there waiting for them.
Click to expand...
Click to collapse
if i notice it being laggy, i just swapoff & swapon and it's like i'm fresh off a reboot.
what would be epic is if someone ported anacron / atd to android -- i could set it to do this at 4am.
alapapa said:
if i notice it being laggy, i just swapoff & swapon and it's like i'm fresh off a reboot.
what would be epic is if someone ported anacron / atd to android -- i could set it to do this at 4am.
Click to expand...
Click to collapse
I believe that crontab is a part of busybox. You can use that.
I'm still not following
miketaylor00 said:
It's not a typo. Some of the overclocking apps use it as an option. I've used it for a long time and so have other peole. If you want to change it, that is fine. I used 245760 for a while because of some apps I was running. The CPU frequency is one area that you can play with to meet your needs without changing much. I wouldn't suggest going below 192. You can try it but it makes the phone slow to wake up for some people.
Click to expand...
Click to collapse
What I'm confused about is the significance of choosing 192000 as a scaling frequency at all. My understanding is that the CPU can only run at certain frequencies and 192000 is not one of them. If you set 192000 as your minimum scaling frequency, doesn't that have exactly the same effect as setting it for 245760? Since there are no frequencies available between 122880 and 245760, any setting (for minimum scaling frequency) between those would default to the higher frequency, in this case 245760. Am I missing something here?
The reason I thought it might be a typo is because there is a 19200 frrequency available, but from all reports anything near that low will just lock up the phone.
ei8htohms said:
I applied the settings from your user.conf in the Cyan thread you linked to except the min scaling frequency because it seems to be set to a non-existent step (192000). Is that a typo or...? Is that user.conf the latest one you tested with CM 4.0.4?
Thanks for doing all this testing and sharing your settings!
Click to expand...
Click to collapse
Here is a copy/paste of that section of the latest user.conf set with MT00's settings:
Code:
#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=192000 # default 245760
scaling_max_freq=528000 # default 528000
sampling_rate=2000000 # default 2000000 depending on kernel version
powersave_bias=0 # default 0, (200 since CM3.9.6+ )
up_threshold=45 # default 40, percent cpu usage before going up a speed step
While 192000 is not an option listed, here is the output of my userinit.sh:
Code:
C:\Documents and Settings\user>adb remount
remount succeeded
C:\Documents and Settings\user>adb shell
sh-3.2# sh /system/sd/userinit.sh -s
sh /system/sd/userinit.sh -s
=== user.conf ===
*** general ***
apps2sd=0
media2sd=0
*** CompCache ***
compcache_en=1
cc_memlimit=18
cc_disksize=32
cc_backingswap_en=1
cc_backingswap=/dev/block/mmcblk0p3
swappiness=28
*** Swap File ***
swap_file_en=0
linux_swap_file_size=32
linux_swap_file=/system/sd/swap.file
*** Linux Swap ***
linux_swap_en=0
linux_swap_partition=/dev/block/mmcblk0p3
*** VM ***
sys_vm_en=1
page_cluster=3
laptop_mode=0
dirty_expire_centisecs=3000
dirty_writeback_centisecs=500
dirty_background_ratio=5
dirty_ratio=10
*** CPU ***
proc_cpu_en=1
scaling_min_freq=192000
scaling_max_freq=528000
sampling_rate=2000000
powersave_bias=0
up_threshold=45
=== CompCache status ===
CompCache version 0.6+
Compcache enabled
CompCache: MemLimit 18432(system) 18432(user)
CompCache: BackingSwap /dev/block/mmcblk0p3(system) /dev/block/mmcblk0p3(user)
CompCache: cc_swappiness - 28(system) 28(user)
=== CompCache status output ===
BackingSwap: /dev/block/mmcblk0p3
DiskSize: 32130 kB
MemLimit: 18432 kB
NumReads: 8048
NumWrites: 10222
FailedReads: 0
FailedWrites: 0
InvalidIO: 0
NotifyFree: 3870
PagesDiscard: 0
ZeroPages: 177
GoodCompress: 100 %
NoCompress: 0 %
PagesStored: 4340
PagesUsed: 1060
OrigDataSize: 17360 kB
ComprDataSize: 4078 kB
MemUsedTotal: 4240 kB
BDevNumReads: 1233
BDevNumWrites: 1731
=== VM status ===
Set VM: page-cluster - 3(system) 3(user)
Set VM: laptop_mode - 0(system) 0(user)
Set VM: dirty_expire_centisecs - 3000(system) 3000(user)
Set VM: dirty_writeback_centisecs - 500(system) 500(user)
Set VM: dirty_background_ratio - 5(system) 5(user)
Set VM: dirty_ratio - 10(system) 10(user)
=== CPU status ===
Set CPU: scaling_min_freq - 192000(system) 192000(user)
Set CPU: scaling_max_freq - 528000(system) 528000(user)
Set CPU: sampling_rate - 2000000(system) 2000000(user)
Set CPU: powersave_bias - 0(system) 0(user)
Set CPU: up_threshold - 45(system) 45(user)
That setting seems to take.
You can set the frequncy to 1234 if you want to. I wouldn't recommend it but you can. I don't know why it isn't listed as an option. It should be. It is a valid setting.
miketaylor00 said:
You can set the frequncy to 1234 if you want to. I wouldn't recommend it but you can. I don't know why it isn't listed as an option. It should be. It is a valid setting.
Click to expand...
Click to collapse
You actually cant set the frequencies to any arbitrary number. There are a set of defined frequencies in the arch/arm/mach-msm/clock.c file. So you can't try to clock your CPU at let's say 523.12 or 99.8 mHz atm. Unless that frequency table is expanded to include every single frequency. Where's coolbho3000 he might be able to explain it better. lol
After the phone has rebooted you can use the following command to see if everything is running properly:
Code:
su
sh /system/sd/userinit.sh -s
Everything seems to work right for me on the install but after I reboot and enter this code. I get "sh: Can't open /system/sd/userinit.sh".
Does this mean it did not work?
bigragu said:
After the phone has rebooted you can use the following command to see if everything is running properly:
Code:
su
sh /system/sd/userinit.sh -s
Everything seems to work right for me on the install but after I reboot and enter this code. I get "sh: Can't open /system/sd/userinit.sh".
Does this mean it did not work?
Click to expand...
Click to collapse
Which ROM are you on? Different builds require the userinit in different places.
Have you done this?
Code:
su
cd /system/sd
chmod 755 userinit.sh
chmod 755 user.conf
reboot
overground said:
Which ROM are you on? Different builds require the userinit in different places.
Have you done this?
Code:
su
cd /system/sd
chmod 755 userinit.sh
chmod 755 user.conf
reboot
Click to expand...
Click to collapse
I'm on CyanogenMod v4.0.4. I clicked the link from this post which lead me to the code he had posted in another thread. I followed the instructions there. I don't believe the code was exactly what you have here. Will try. Thanks.
andonnguyen said:
You actually cant set the frequencies to any arbitrary number. There are a set of defined frequencies in the arch/arm/mach-msm/clock.c file. So you can't try to clock your CPU at let's say 523.12 or 99.8 mHz atm. Unless that frequency table is expanded to include every single frequency. Where's coolbho3000 he might be able to explain it better. lol
Click to expand...
Click to collapse
That is not true at all I just set mine to 192123. Are you telling me that is in the clock.c file?
Code:
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;
192123
bigragu said:
After the phone has rebooted you can use the following command to see if everything is running properly:
Code:
su
sh /system/sd/userinit.sh -s
Everything seems to work right for me on the install but after I reboot and enter this code. I get "sh: Can't open /system/sd/userinit.sh".
Does this mean it did not work?
Click to expand...
Click to collapse
Most likely you don't have a userninit.sh. If you are on CM 4.x it doesn't come by default. Follow the steps in this thread:
http://forum.xda-developers.com/showthread.php?t=542899
Ok I’m sure by now most have read the previous Op about losing half my Teeth, all in the back thank the Gods but still can’t wait until I get the fakes bolted in. Sure that will also be an awesome experience, forgot to add that I can’t take pain killers either. Anyhow I originally started working on this Mod for personal use and a means of keeping sanity. Because it ended up working out much better than anticipated I decided to share the script. Since then I have made some changes as I first have learned a little bit more and second because it has expanded beyond its original intention of being made specifically for CM7 and optimized in some areas around my own personal device configuration. Because of this I just decided to kind of give things a Reboot.
What does this Mod do you may ask? In short it just makes everything a little better and snappier! How does it go about doing these things you may ask?
In Short,
IPV4 Internet speed Tweaks,
Chainfire Touchscreen Tweaks,
Increased Cache Sizes,
Defrag Database Files On Boot,
Remove Logger,
Running fewer background Processes,
Set’s Higher Priority for App's like Phone, Launcher, Contacts, SMS, SystemUI & Camera, (Loopy Smoothness)
Two Sweet Edition Changes (04.28.2012)
Linux Laptop Tweaks for Battery Life
Ondemand, Interactive & SmartassV2 Govenor Tweaks
APK Zipalign (Already performed by most Roms but included for the few that do not)
Many more along the same lines.
Again just so it’s clear, I did not develop any of these Tweaks on my own. If any credit should go my way it would be for looking around various websites and inside ROMs for other devices, finding things that look interesting, testing on the Triumph for effectiveness, making minor adjustments if needed and then collecting them into a method that is easy to apply. This should work with just about any Rom with Init.d Support. The easiest way of determining if your Rom has Init.d support would probably be to look at the below directions. If you find an Init.d folder in the spot they say you should then your Rom supports Init.d. It would still be recommended to keep a backup handy as I am not responsible for any damage caused to anything you own.
.
Instructions (Busybox must be installed, if not, download from the Market)
1, Download 108 Triumph Script.
108 Triumph Script (04.22.2012)
http://www.mediafire.com/file/l8x4pyt1u3wfjck/108TriumphScript
108 Triumph Script Two Sweet Edition (04.28.2012)
http://www.mediafire.com/file/77cd8dzdgzmsar1/108TriumphScript2sweet
If for some reason and I noticed this with Dolphin, .txt has been added to the end of the file name after downloading .text will need to be removed or the Tweaks will not be applied. So far I have only seen this happen with Dolphin but no dots should appear in the file name and should be removed.
2, Place file on your SD-card. (USB Dropbox, doesn't matter how)
3, Use Root Explorer or Root Browser Free and move the file into system/etc/init.d folder. (Remember to hit the tab that makes the folder Read/Write as Read Only is the default setting for most File Explorers.)
Root Browser Free if you need a free File Explorer.
http://dl.dropbox.com/u/29969403/rootbrowser.apk
4, Give the file full Permissions.
5, Reboot! (Will take a bit longer to boot and will appear to be held up on the Motorola Logo for a bit. This is nothing to worry about, the script is running and the Tweaks are being applied.)
Clear both Caches in recovery if you have any issues. Should not be needed but have noticed that sometimes Root System Apps like SD-Booster or Auto-Killer when installed before applying the script will restore pre-script values when the restore default settings option in the App is used.
To remove these Tweaks simply delete the file and reboot. To update the file use the file explorer to delete the old version after placing the new version in the init.d folder.
Going forwarded at least for the time being the Build.prop Tweaks can be applied by using the optional Hollyname Script. This was done because to apply these Tweaks correctly as part of the 108 Script with my current knowledge would do either one of two things, permanently add these Tweaks to the Build.prop or make the script Rom specific. Because I’m trying to stay away from having the Mod make any permanent adjustment or have the willingness or time for keeping up with every version of every Rom until I figure a way around the issue they can still be easily applied without making any changes to the Build.prop by following the following.
Additional Build.Prop Tweaks (Recommended)
1, Download Hollyname Build.Prop Tweaks Script and place on SD-Card.
Hollyname Build.prop Tweaks (04.22.2012)
http://www.mediafire.com/file/9f843s9j47czw4z/HollynameBPTweaks
Hollyname Build.prop Tweaks Two Sweet Edition (04.28.2012)
http://www.mediafire.com/file/gzg44q7hho1q8qx/HollynameBPTweaks2sweet
2, Install Script Manager Free from the market.
3, Open Script manager and select the script.
4, Select SU, Boot and then save.
5, Reboot! (All Build.prop Tweaks will now be applied during each boot unless un-selecting the option in script manager or deleting the script from the SD-Card. This will not make any actual changes to your Build.prop. Nor will it effect any properties associated with Market Access.
You Can run "getprop" in either ADB or a Terminal to confirm all current property values if not sure everything was done correctly. If so you should now see the following included among the listed properties,
debug.sf.hw 1
dalvik.vm.heapsize 48
persist.sys.ui.hw 1
ro.max.fling_velocity 12000
ro.min.fling_velocity 8000
ro.ril.disable.power.collapse 1
pm.sleep_mode 1
windowsmgr.max_events_per_sec 150
ro.media.enc.jpeg.quality 100
ro.media.dec.jpeg.memcap 8000000
ro.media.enc.hprof.vid.bps 8000000
media.stagefright.enable-player true
media.stagefright.enable-meta true
media.stagefright.enable-scan true
media.stagefright.enable-http true
net.tcp.buffersize.default 6144,87380,1048576,6144,87380,524288
net.tcp.buffersize.wifi 524288,1048576,2097152,524288,1048576,2097152
net.tcp.buffersize.umts 6144,87380,1048576,6144,87380,524288
net.tcp.buffersize.gprs 6144,87380,1048576,6144,87380,524288
net.tcp.buffersize.edge 6144,87380,524288,6144,16384,262144
net.tcp.buffersize.evdo_b 4096,87380,256960,4096,16384,256960
ro.kernel.android.checkjni 0
ro.kernel.checkjni 0
debug.performance.tuning 1
video.accelerate.hw 1
dalvik.vm.dexopt-flags v=n,o=v
persist.adb.notify 0
wifi.supplicant_scan_interval 180
ro.config.disable_hw_accel false
ring.delay 0
Hey friends...today i will show you how to increase file size limit in whatsapp along with some other mods!!!i know 16 mb is not enough for some people hence every1 wants to increase it so here i will tell u a simple way to increase file size limit with simple tweak!!:laugh:
Basic requirements:--
1) a rooted android phone
2) root explorer
3) pair of hands and a working mind
Steps:--
TRICK :-1
1)open root explorer
2)go to root>data>data(again)>com.whatsapp
3)select 'shared_prefs(last option)'
4)now select 'com.whatsapp_preferences.xml' and open it with a text editor(long press on it to get options)
5)in the buch of texts, search for media_limit_mb value…….and change value from '16' to '1024' or '2048' ….and save it(scrnshot on attchment)
6) restart the phone after you save the edited file and :laugh:voila! You can send files of 1024 mb or 2048 mb (depends on what you entered) to your friendz!!!
TRICK :-2
{INITIAL steps are same like 4}
1)search for <int name="image_max_kbtyes" value="bla bla(not this )"
change values to 102400 or 204800...<see attachment>
2)hit save and the next step you know!
TRICK :-3
{INITALS are the same}
1)look for <int name="image_quality" value="bla bla(not this again )"
2)change value to 100..and save it...<see attachment>
dont ask for next step..
IMPORTANT::-- you may need to re edit the the value after updating whatsapp…(not checked but may be:silly.YES YOU NEED TO RE-EDIT FILE AFTER UPDATE....Also sometimes the value may itself change to 16 after some reboots(rarely happend with me:fingers-crossed.just edit again and you are good to go!!
If u like my work…please hit thanks button….:good:if having any problem:crying:, post or p.m. me….i will surely help you out!:highfive:
And yes…sry far aine mistiek enn mie engliushe!!!!!:laugh:
Nice tutor , more size, more benefit
Increasing size limit more than 30 mb will suffocate whatsapp Servers. I don't recommend that :/
But good Tut.
Do you know if it's possible to increase whatsapp audio record quality?
sky0165 said:
Do you know if it's possible to increase whatsapp audio record quality?
Click to expand...
Click to collapse
Wait..i will check for it and report asap...?
UPDATE:- YOU NEED TO RE-EDIT THE FILE AGAIN AFTER UPDATEING WHATSAPP..(just updated now and checked)..
Hppie whatsapping!??
on WhatsApp 2.16.310 sometime it work but most of the time it doesn't and so far I haven't managed to reproduce any consistent result. WhatsApp keep changing the whatsapp_preferences.xml back to default after few minutes.
I AM NOT RESPONSIBLE FOR ANY DAMAGE DONE TO YOUR PHONE BY IMPLEMENTING THIS MODIFICATION!!
IMPORTANT: THIS IS A RELATIVELY NEW TWEAK I HAVE IMPLEMENTED ON A DEVICE I DO NOT USE AS A DAILY DRIVER. I HAVE ONLY BEEN USING THIS ARISTO AS A TEST FOR 4 DAYS WITH THIS MOD IN PLACE (AT THE TIME OF THIS WRITING). I DO NOT KNOW HOW STABLE THIS IS, OR IF ANYTHING WILL RANDOMLY KNOCK OUT MY TWEAKS, BUT SO FAR SO GOOD. BUT . . . . ALWAYS REMEMBER, YOUR MILAGE MAY VARY!! PLEASE SHARE YOUR EXPERIENCE WITH THIS TWEAK SO WE CAN IMPROVE ON IT'S STABILITY!!
So here's the story . . . .
My girlfriend got a free LG Aristo from MetroPCS when she switched carriers, which was a damn good deal IMHO. After using it for a month or so, she's pretty happy with it, aside from the usual gripes that come with low-midrange devices. I repair phones and computers for a living so I wanted to tinker with it and see what, if anything, could be done to give it that little bit of extra 'oomph' in performance, battery life, etc. Since it's her only device I didn't wanna risk depriving her of her phone if anything went sideways, so I kept my eyes open for an Aristo to pop up, and the other day, one did! One of my clients texted me asking if I wanted to buy a broken Aristo for parts, and considering the only thing wrong with it is a cracked screen, I jumped on it.
So, now that I have the guinea pig Aristo to play with, I did a quick search to see what kind of dev community this device had here, and on XDA. I stumbled accross this post with a working TWRP v3 (BTW, mad props to messi2050 for the TWRP v3, no-verity-opt-encrypt script link, and tutorial! MANY THANKS!).
I was a little surprised that the Aristo has an easily unlockable bootloader, so I give credit to LG for giving folks the option to do what they want with THEIR device.
With the bootloader unlocked and TWRP installed, I went ahead and formatted the /data partition to disable encryption (AFTER MAKING A NANDROID OF CORSE!!). After rebooting back into TWRP, I transfered the no-verity-opt-encrypt script and Magisk v13.2 and flashed them (IN THAT ORDER).
Magisk was a must since my girl plays Super Mario Run, and a few other games/apps that check Safety Net, and I'm happy to report that with Magisk v13.2 installed, Safety Net passes without issue.
Now comes the issue of LG underclocking the Snapdragon 425. Looking at it from LG's perspective, I understand the logic behind this implementation; a lower max_freq is definitely gonna give you a bit of extra battery life, and since low-midrange devices like the Aristo are unlikely to be used for anything more than calling/SMS/MMS, web browsing, YouTube, and light gaming, they probably figured that that bit of extra performance wouldn't be missed by most people buying this device.
The Snapdragon 425 has a max CPU clock speed rated at 1.4GHz, however, the LG Aristo tops out at 1.25GHz (1.248GHz). Using flar2's EX Kernel Manager (I use ElementalX on ALL of my other devices, but his kernel manager app works with ANY kernel), I couldn't get the max-freq to stick at 1401MHz. Strangely, it would max out at either 1248MHz, or 1094MHz, and even setting it to apply on boot proved futile. Then, I noticed that the frequency range in CPU-Z was '960MHz - 1.25MHz', so then I headed for the source:
/sys/devices/system/cpu
In this folder you will see the following folders:
cpu0
cpu1
cpu2
cpu3
Interestingly enough, the max rated frequency of '1401000' is listed in the 'scaling_available_frequencies' file of each core, meaning that specific frequency can be controlled by the kernel (CPU governor) if directed via each core's 'cpuinfo_max_freq' file.
(NOTE: This guide will walk you through changing the max_freq only for cpu0, however, the method for cpu0 is identical for cpu1, cpu2, and cpu3, so just repeat the steps for each cpu core)
Step 1.) Open the folder 'cpu0' [/sys/devices/system/cpu/cpu0]
Step 2.) Inside the 'cpu0' folder, find the folder 'cpufreq' [/sys/devices/system/cpu/cpu0/cpufreq]
Step 3.) Inside the 'cpufreq' folder, find the file 'cpuinfo_max_freq' [/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq]
Step 4.) Open it with a text editor (I am using Solid File Explorer w/ Root add-on which has a built in text editor, but ES File Explorer, Root Explorer, etc. all have built in text editors)
Step 5.) Change the value from '1248000' to '1401000' (WITHOUT ' ' MARKS OF COURSE!!)
Step 6.) Save the file after making the changes.
Step 7.) Repeat the above steps for the remaining 3 A53 cores. If you need to follow the guide for each core, just change the 'cpu0' in STEP 1 to 'cpu1', then 'cpu2', etc.
Step 8.) After making the changes to each core and saving your edits, exit out of your file manager and reboot (Now, if you go back to look at your edit after saving the cpuinfo_max_freq, it will appear as if your edit did not stick, but trust me, it will stick when you reboot).
Step 9.) After rebooting, open your root file explorer and check the edits you made to each core's 'cpuinfo_max_freq' file. They should now all read '1401000'.
Step 10.) Open your preferred kernel editor/auditor app and change the max frequency to 1401MHz, and this time it will stick. If it does not stick, simply change your CPU governor to 'Performance', then set the max to 1401MHz and that should make it stick. After that, close your kernel tweaking app and open CPU-Z or some other app that shows the current CPU frequency and check that it's locked at 1401MHz. Once you see that it's locked at 1401MHz, go back into your kernel tweaking app and change the governor back to your desired setting (I'm using Interactive), then check to see that the CPU max frequency is still locked at 1401MHz.
Step 11.) DON'T FORGET TO SET YOUR KERNEL EDITOR/AUDITOR TO APPLY THE CHANGES ON BOOT!! For some reason, if you don't set on boot it will randomly change the max speed between 1094MHz and 1248MHz.
Step 12.) PROFIT!!
NOTES:
- Solid File Explorer automatically mounts /system -rw when you open it. I'm not sure about other root file explorers, so make sure you mount /system -rw or your edits will not save/stick
- This is a relatively new tweak, so if anyone can expand on what I've covered here, please do!!
It won't let me save the edited text
Nice work!!! Also looking at the LG. K20 as well as the LG Tp450(Stylo 3+). I am curious to see if LG intentionally underclocks all...or at least the only ones this poor bastard can afford...LoL
Doesn't seem to work for me. Max CPU frequency frozen at 960 MHz ?