Had a few minutes today to play around and wrote a few quick programs in native code to overclock the OMAP4430 to run at 1.1GHz or 1.2GHz instead of the stock 1GHz. You need to force the CPU to run at it's highest clock rate at all times if you want to verify that it works but this is not required if you take my word for it. Long story short, it is possible to change the maximum clock speed by directly manipulating the registers responsible for the clocking of the OMAP4430 but doing so in this manner doesn't alter the frequency tables that the kernel looks to, so as a result the phone thinks it is still capping out at 1000MHz. I'm working on this, don't worry.
This requires root privileges. To set the max clockspeed to 1.1GHz, run "1100" from the adb shell or terminal. Make sure the permissions are set to 755, ie: "chmod 755 1100" in the terminal in the directory you have placed the executable. (I just placed them both in /data/local/)
To reset it back to 1GHz, run "1000", same permissions as before.
To try out 1.2GHz, use "1200". 1.3GHz, use "1300".
It doesn't survive a reboot, so it won't do much damage. That being said, I take no responsibility whatsoever for any damage done to your phone, this is extremely experimental. I also take no credit for this, yang.felix was the one who figured out how to do this first:
http://forum.xda-developers.com/showthread.php?p=17669227#post17669227
Now, the real fun part is making this persist a reboot, and notify the kernel about the changes so that overclocking/underclocking can be easily performed with SetCPU or other apps.
**** EDIT ****
I removed the 1400 and 1500 binaries because in layman's terms... I screwed up. I don't have much time to work on this tonight but I'll try and put something better up; in the meantime, I removed the binaries because they are useless. I'm suspicious that the 1300 binary is destined to fail as well but apparently some of you out there are able to execute it without an immediate reboot so maybe it is a voltage problem. I'll keep you all posted.
**** N00B INSTRUCTIONS ****
Here's how I do it. If you don't already have them, I suggest downloading the following from the Market: "SetCPU", "Root Explorer" and "Better Terminal Emulator". I bought them; the $5 or so was well spent as these three apps are probably ones that I use the most. If you don't want to pay, you can find SetCPU here on xda-developers if you search for it; Root Explorer you'll have to pony up the $1.99 or whatever it is, Better Terminal Emulator you can do without if you look for "Terminal Emulator" in the Market.
Connect your phone via USB to your PC, select from the drop-down in your status bar "USB Storage" or whatever it says, and browse to your phone on your PC. Unzip the attachment from the first post to the root of your sdcard, ie: don't unzip it into any folders after browsing to your phone on your PC, just put them in the root of the drive. You can put them in whatever folder you like but if you want to keep it simple, don't bother putting them in a random folder unless you know what you're doing.
First, open up SetCPU and slide the sliders for Maximum and Minimum all the way to 1000. You can leave everything else alone, after sliding the bars just exit the app. This step is important so don't skip it.
Open Root Explorer. Navigate to "/system/xbin". Press the button at the top that says "Mount RW". This will allow you to save the binaries in this folder as it is normally mounted as read-only.
Now, open Better Terminal Emulator (or whichever terminal program you like, or even use adb if you are so inclined... although if you know how to use adb the following probably goes without saying) and assuming you followed my instructions earlier and saved the files "1000", "1100" and "1200" to the root of your sdcard, type the following commands in, pushing Enter/Return after each one:
Code:
su
(Click on Allow)
cd /sdcard
cp 1000 /system/xbin/
cp 1100 /system/xbin/
cp 1200 /system/xbin/
cd /system/xbin
chmod 755 1000
chmod 755 1100
chmod 755 1200
Now you can run the binaries from anywhere in your terminal without the requirement of being in the folder you've saved them because /system/xbin is typically included in your $PATH variable. Simply put, your phone always looks in this folder for any executable file you try to run if it doesn't find it in the current working directory.
In order to run "1000", simply type:
Code:
1000
And push Enter. You can do this from anywhere on your phone. You should see a message that says your phone has been reset to 1GHz.
To run "1100", you guessed it:
Code:
1100
Rinse and repeat.
Thank you. Works great, love it. I like the confirmation, noticing a solid performance increase and my phone doesn't seem to be heating up any more than normal after a few hours use.
Thanks! Will this work with the XT862 too?
I don't see why not; both the XT860 and XT862 have the same OMAP4430 chipset so the memory addresses tweaked in order to increase the maximum clock frequency ought to be identical.
Sent from my XT860 using xda premium
Never mind my problem was that I accidentally set the permissions to 775 not 755.
AcidRoot said:
Just tested on the XT862, it froze the device and required a reboot.
Click to expand...
Click to collapse
Just tested on my XT862. works fine, no reboot. make sure you have setcpu set to performance mode, and in the terminal (move to directory where the files are located) and run chmod 755 1100
---------- Post added at 03:35 PM ---------- Previous post was at 03:32 PM ----------
To the OP, what ROM are you running? I'm running Liberty, at 1100mhz, and I'm getting 35 MFLOPs single thread, 25 multi thread..
Keeps saying aborted
Sent from my DROID3 using XDA App
what do i put in adb to make this work. this is good news have been waiting to see this oc thanks.
oostah said:
what do i put in adb to make this work. this is good news have been waiting to see this oc thanks.
Click to expand...
Click to collapse
Read the whole first post, 2nd or 3rd paragraph answers your question 100%
ChaoticWeaponry said:
Just tested on my XT862. works fine, no reboot. make sure you have setcpu set to performance mode, and in the terminal (move to directory where the files are located) and run chmod 755 1100
---------- Post added at 03:35 PM ---------- Previous post was at 03:32 PM ----------
To the OP, what ROM are you running? I'm running Liberty, at 1100mhz, and I'm getting 35 MFLOPs single thread, 25 multi thread..
Click to expand...
Click to collapse
That's about what mine gets without the overclock sometimes higher/lower. 36 multi and 43 single just now, was as low as 8 yesterday with an average of 30. On liberty also.
Edit: haven't tried it yet
Slow down
I am noticing a consistent slow down when I perform the overclock. I did several tests and dropped the lowest and highest values and took the average. My single-thread (st) and multi-thread (mt) results for stock 1000 are 41st/49mt and for the overclock 1100 they are 38st/45mt. I am running stock ota gingerbread. Any ideas?
Not sure what I was thinking when I mentioned my Linpack results earlier; I'm getting nowhere near 75 MFlops. Before setting the max clock frequency to 1100MHz I consistently get a rate of about 27 MFlops, increasing to about 33 MFlops afterwards. Could have sworn I remembered it being higher but I must have been mistaken.
The Linpack results are highly subjective to quite a few other factors though and isn't very indicative of much but since it's a rather quick benchmark it is pretty easy to see that there is a significant increase in performance that isn't attributed to random error.
It shouldn't be too much more work to be able to alter the clock speed in a way where SetCPU or other clock-related applications can see and manipulate the hardware but I haven't had much free time at all lately and was pretty happy I was able to get this working.
It would be really nice to not have to rely on forcing the OMAP4430 to run full out with the "performance" governor but this was really just a proof of concept for me.
Sent from my XT860 using xda premium
we should be able to go to 1.2 with no problems on all of our phones. the RAZR is 1.2 with the same processor we have in the D3.
Rick#2 said:
Not sure what I was thinking when I mentioned my Linpack results earlier; I'm getting nowhere near 75 MFlops. Before setting the max clock frequency to 1100MHz I consistently get a rate of about 27 MFlops, increasing to about 33 MFlops afterwards. Could have sworn I remembered it being higher but I must have been mistaken.
The Linpack results are highly subjective to quite a few other factors though and isn't very indicative of much
Click to expand...
Click to collapse
Increase from 1000 to 1100 = 10%, 27 to 33 >= 10%. Better than can be expected imo.
Stock bell I'm getting ~43 single, ~67(saw a few 70+) multi at 1ghz
at 1.1ghz I'm getting ~48 single , ~78 multi, solid improvement averaged over 10 runs.
I'm running CM7.1, and when I try running 1100, it says "can't open /dev/mem/"
diceroll123 said:
I'm running CM7.1, and when I try running 1100, it says "can't open /dev/mem/"
Click to expand...
Click to collapse
Are you trying to run it as root? "su" first
did you run chmod 755 1100? I would like to see the phone go to 1.2, as idroidnow said it is the same processor. Its amazing that the razr and d3 have such similar specs, and the razr bumped out 5501 on my benchmark, and stock d3 only grabbed 3500
Willis111 said:
Are you trying to run it as root? "su" first
Click to expand...
Click to collapse
Teehee, woopsie.
All it does after that is ask for SU permission, and nothing is output afterward. That's...normal, yes? ಠ_ಠ
diceroll123 said:
Teehee, woopsie.
All it does after that is ask for SU permission, and nothing is output afterward. That's...normal, yes? ಠ_ಠ
Click to expand...
Click to collapse
Yes, when you type "su" into a command prompt(gives you root) it might make the prompt look a little different but there's no confirmation that it worked, there would be if it didn't though. Once you're root it should work no problems, without root it will throw up errors about anything that it tries to change and perhaps some things that it just tries to read even.
Willis111 said:
Yes, when you type "su" into a command prompt(gives you root) it might make the prompt look a little different but there's no confirmation that it worked, there would be if it didn't though. Once you're root it should work no problems, without root it will throw up errors about anything that it tries to change and perhaps some things that it just tries to read even.
Click to expand...
Click to collapse
Wonderful! I haven't been using my phone much today, but I'm sure I'll notice a slight difference. Thanks!
Related
Tried searching but didn't see anything already posted....
Cyanogen posted on twitter:
powertop for android binary: http://bit.ly/VfOUN .. it needs a kernel with timer debugging enabled (this is in the CM kernels)
Its a tar file that you download. I tried deploying the files but I get an error:
Error opening terminal: unknown
Here is how I deployed the files......
Code:
# pwd
pwd
/system/etc/terminfo
# ls -l l
ls -l l
-rw-r--r-- 1 0 0 1672 Jul 3 00:47 linux
# ls -l u
ls -l u
lrwxrwxrwx 1 0 0 10 Jul 3 00:49 unknown -> ../l/linux
# ls -l /system/bin/powertop
ls -l /system/bin/powertop
-rwxrwxrwx 1 0 0 286648 Jul 3 00:42 /system/bin/powertop
#
I get the same problem.
My guess is cyan is going to include it with 3.6.1 so we can just wait for that to be released.
ive tried various things too. cyanogen, must use some voodoo to get it to work. chmod 777 the 3 files changing PATH, TERM and terminfo, no avail
From cyan on twitter:
if you can't get powertop to work, try "export TERMINFO=/system/etc/terminfo" first
Tried it, still no luck though.
Screen shot of the problem
GOT IT!
Code:
# su
su
# export TERMINFO=/etc/terminfo
export TERMINFO=/etc/terminfo
# export TERM=linux
export TERM=linux
# powertop
Attached some screenshots...
It suggested "increase the VM dirty writeback time to 15 seconds"...
I think that was part of the sysctl.conf tweak thread. I haven't redone those tweaks since I wiped and put cyan's new ROM on my phone. Interesting.
I wish my dos prompt would work with ANSI control codes so I could run it through ADB...
BTW, the tweaks it suggests are for X86, not Android. Most can be ignored, especially the ones about kernel options.
I included it with 3.6.1 too.
So what exactly does this do?
Breen said:
So what exactly does this do?
Click to expand...
Click to collapse
How did you find this website if you've never used a search engine before?
I didn't find anything specific to android.
Just like a "check what consumes most power"-app.
lmfwtw said:
Does accepting powertop suggestions reduce the speed of the phone?
It is currently suggesting
Increase the VM dirty writeback time from 5.000 to 15 seconds with
echo 1500 > /proc/sys/vm/...
Another one it suggest is
Enable the CONFIG_NO_HZ
Enable CONFIG_USB_SUSPEND
Enable CONFIG_HPET_TIMER
in kernel conf option
Click to expand...
Click to collapse
ubernicholi said:
only VM dirty writeback works
the others are for x86 architecture, which the g1 is not. ignore the recommendations of this app.
Click to expand...
Click to collapse
A few questions:
I've been running my phone with Open Overclocker at min 528 Mhz / max 528 Mhz. Would it save battery life to put the minimum lower? (I've found that the lowest you can go is "001 / 528" (leading zeros are necessary).)
How do you implement the VM dirty writeback? lmfwtw says "echo 1500 > /proc/sys/vm/...". But what is the "..."?
What is gp_timer? It always seems to be the #1 cause of wakeups by FAR. Next is futest_wait, and sometimes m2m_i2c. Can they be shutdown/decreased?
Is there anything else we can write to the kernel to save power? I found this, http://ubuntuforums.org/showthread.php?t=729644 but I have no idea if any of that is applicable / will brick my phone.
I didn't find anything specific to android.
Just like a "check what consumes most power"-app.
Click to expand...
Click to collapse
Yeah thats what I found too.
Dont pay any attention to that dude, he likes to play pretend moderator at times and ***** at people for useless posts when in fact his posts are just as useless and adding to the garbage that clutter up threads.
I found this: "Powertop is a Linux command line tool that monitors your laptop (or desktop) and offers suggestions on how to make your hardware consume less power."
I have some other questions as well, but I'll wait. Does anyone know the ones in my last post?
I've been running my phone with Open Overclocker at min 528 Mhz / max 528 Mhz. Would it save battery life to put the minimum lower? (I've found that the lowest you can go is "001 / 528" (leading zeros are necessary).)
Click to expand...
Click to collapse
Found in another thread...
Do NOT use 128/528. It hurts battery life and the processor. The jump between 528 and the idle frequency is big enough to require extra circuits to be switched on. That does two things... slows down the gain of the processor speed and hurts battery life more than simply running permanently on 528.
Click to expand...
Click to collapse
I assume going 001 / 528 would be even worse. Hope that helped.
Senorkabob said:
Found in another thread...
I assume going 001 / 528 would be even worse. Hope that helped.
Click to expand...
Click to collapse
Thanks. Actually, last night after I put it on 001/528, I started having freezes almost immediately. For example, each time the screen rotated when I took the keyboard out, it froze. And when enabling an Alarm, the toast message caused a freeze. And they were 100% full freezes, ie had to take the battery out. After about 5 full freezes, I decided to go back to 528/528 and everything went back to normal. I guess I'll stay on 528/528 hah
I have been using the latests builds to see if they mitigate a common problem in our devices (mine is a Polaris). The insufficient memory makes it lag until forever when switching amongst applications, not only the heavy ones, but also the supposed light applications like Messaging, Phone, Contacts, etc.
The system has to work under really hard conditions: 20 - 28 MB when starting up. Every application I run is a fire proof. Applications like Navigation makes our devices literally crawl and bite the dust. Not far away, I was driving and tried to play some music at the same time. It was impossible. The waiting was unbearable and it finally hung like a pro.
My question is: is there any chance to free up memory or use it more efficiently in order to avoid these undesirable situations?
Did polaris get back some memory with Froyo kernel like vogue did? From the video buffer or something... what res do you run at?
I'm running at 240x320 - 120 dpi
I made a screenshot of a "free" command in a terminal (see attachment image).
My kernel is this one (converted with Atools):
http://androidhtc.git.sourceforge.n...=2.6.32/VOGUIMG-320-FROYO-10-4-10.NBH;hb=HEAD
Thanks for your interest!
Im not sure.. but is there a way to use the sd as ram?
I think its not fast enough, but i havent seen any "benchmarks" yet how fast the ram on the polaris works.
Maby its slower but fast enough to work as swap etc?
Enabling compcache will help you.
Still, our little devices cannot multitask very well with Android, but I can navigate and play music at the same time, with compcache.
You will need drivers that match your kernel, in /system/lib/modules. I have packaged some in the first post of this thread that should work for each of the two popular kernel versions.
n2rjt said:
Enabling compcache will help you.
Still, our little devices cannot multitask very well with Android, but I can navigate and play music at the same time, with compcache.
You will need drivers that match your kernel, in /system/lib/modules. I have packaged some in the first post of this thread that should work for each of the two popular kernel versions.
Click to expand...
Click to collapse
Alright, I'm downloading the modules for 2.6.32. After applying the update, what should I do to enable compcache? Some time ago, this setting was in Spare Parts.
SuperJMN said:
Alright, I'm downloading the modules for 2.6.32. After applying the update, what should I do to enable compcache? Some time ago, this setting was in Spare Parts.
Click to expand...
Click to collapse
Open terminal
type: Su
and then
compcache.sh enable
-Arturo- said:
Open terminal
type: Su
and then
compcache.sh enable
Click to expand...
Click to collapse
any way to confirm that it worked?
margosmark said:
any way to confirm that it worked?
Click to expand...
Click to collapse
type FREE in terminal and look under swap if it shows zero then it's not active.
-Arturo- said:
type FREE in terminal and look under swap if it shows zero then it's not active.
Click to expand...
Click to collapse
yea, try doing free from a terminal you should have an amount of memory for the swap row
For testing...
Thank you SuperJMN for this thread : I hope this help us for better use of our phone.
Like you, when I try to use my GPS navigation (Navigon or Igo8) I'm bored that's too slow !! Impossible to change anything if I want...
I try now with Compcache enable, I can see 130024 (total and 104156 used) instead of 104024 : swap = 26000
Cheers.
manu33xtro said:
Thank you SuperJMN for this thread : I hope this help us for better use of our phone.
Like you, when I try to use my GPS navigation (Navigon or Igo8) I'm bored that's too slow !! Impossible to change anything if I want...
I try now with Compcache enable, I can see 130024 (total and 104156 used) instead of 104024 : swap = 26000
Cheers.
Click to expand...
Click to collapse
any better luck with comcache on??
Report
I installed this update for my .32 kernel (dated September, the 30th):
http://forum.xda-developers.com/attachment.php?attachmentid=409422&d=1285714954
My build is the latest: http://sourceforge.net/projects/androidhtc/files/system-froyo-01-10-10_16.tgz/download
When I open a terminal and type
su
compcache.sh enable
it states that compcache will be enable in 120 seconds.
After that time, a free command doesn't reveal any change.
I've also tried typing
su
compcache.sh start
When doing this, it processes the command and after 30 seconds or so, some lines are displayed:
Code:
insmod: can't insert '/system/lib/modules/lzo_compress.ko': File exist
insmod: can't insert '/system/lib/modules/lzo_decompress.ko': File exist
insmod: can't insert '/system/lib/modules/ramzswap_compress.ko': File exist
swapon: /dev/block/ramzswap0: Function not implemented
vm.swappiness = 30
After that, a free command doesn't reveal any change, too.
SuperJMN said:
I installed this update for my .32 kernel (dated September, the 30th):
http://forum.xda-developers.com/attachment.php?attachmentid=409422&d=1285714954
My build is the latest: http://sourceforge.net/projects/androidhtc/files/system-froyo-01-10-10_16.tgz/download
When I open a terminal and type
su
compcache.sh enable
it states that compcache will be enable in 120 seconds.
After that time, a free command doesn't reveal any change.
I've also tried typing
su
compcache.sh start
When doing this, it processes the command and after 30 seconds or so, some lines are displayed:
Code:
insmod: can't insert '/system/lib/modules/lzo_compress.ko': File exist
insmod: can't insert '/system/lib/modules/lzo_decompress.ko': File exist
insmod: can't insert '/system/lib/modules/ramzswap_compress.ko': File exist
swapon: /dev/block/ramzswap0: Function not implemented
vm.swappiness = 30
After that, a free command doesn't reveal any change, too.
Click to expand...
Click to collapse
Try this one
http://dl.dropbox.com/u/7688082/androidupdate.tar
Also is terminal added to the white list in super user app.?
Try with this update...
l1q1d said:
Try with this update...
Click to expand...
Click to collapse
It worked! Thanks!
By the way, the touchscreen behaves erratically with 4-oct NBH. Test with calibration app and tap the screen. You will notice abrupt lines.
Edit: if you want to see which behavior I'm referring to, watch this video: http://www.youtube.com/watch?v=DPLu41BUB1Y
It happened sometime in the past, but with this one it happens the same (although the abruptness is not as much as in this video).
Edit 2: Strangely enough, it is fixed on reboot, but after some time running the touchscreen starts to behave crappy again. It happens with the newest .NBHs made in October.
Does anyone know how to change the MTU on the Revolution? I was on the Tbolt forums, and people are getting huge speed increases by changing their MTU to 1500. I looked in the build.prop file but didn't find anything.
Thanks
Samsuck said:
Does anyone know how to change the MTU on the Revolution? I was on the Tbolt forums, and people are getting huge speed increases by changing their MTU to 1500. I looked in the build.prop file but didn't find anything.
Thanks
Click to expand...
Click to collapse
I believe the MTU settings need to be changed through a terminal emulator
Join the revolt!
I found a path in root explorer to a file titled MTU.. Maybe it can be edited there?
Sys/class/net/lo/MTU
Join the revolt!
elreydotcom said:
I found a path in root explorer to a file titled MTU.. Maybe it can be edited there?
Sys/class/net/lo/MTU
Join the revolt!
Click to expand...
Click to collapse
Odd, I see "lo" but it's not a folder that leads me to MTU, it's just blank.
Samsuck said:
Odd, I see "lo" but it's not a folder that leads me to MTU, it's just blank.
Click to expand...
Click to collapse
That's strange. I was able to open up the mtu file I had, and the setting was 16436.. I set it to 1500, and my phone would not connect to 4g
Join the revolt!
Yes, it can be changed using a terminal emulator. It requires root, and I have heard that changing the mtu has led others to being unable to connect to 4G.
I just had to do this to tether my wife's revolution to my ASUS Transformer. Rather than changing the mtu on the REVO, I changed it on the Transformer. Didn't want to risk her not being able to connect to 4G.
MeshiaSamurai said:
Yes, it can be changed using a terminal emulator. It requires root, and I have heard that changing the mtu has led others to being unable to connect to 4G.
I just had to do this to tether my wife's revolution to my ASUS Transformer. Rather than changing the mtu on the REVO, I changed it on the Transformer. Didn't want to risk her not being able to connect to 4G.
Click to expand...
Click to collapse
is there a thread you followed to do this? have a transformer as well
revo_65 said:
is there a thread you followed to do this? have a transformer as well
Click to expand...
Click to collapse
There was a short article. I was going to post a link, but I don't have enough posts on this forum to do so.
If you go to Google and search for "Tether Another Android Device to a Motorola Triumph" it should be the first result that pops up. Your Transformer must be rooted, and you need to get a terminal emulator app. There's a QR code in the article leading straight to the market to download it.
Don't be like me and think it didn't work when the terminal emulator tells you "Permission Denied" when you enter the first command. That's supposed to happen. Just type "su", hit Enter and you're good to go.
Also, set the mtu to 1428 for best results, if you are tethering the Transformer to the REVO.
Following the tutorial I changed the MTU settings to 1500 (default was 1428) and my speed test scores seem to have improved. Just before the change I got scores of 32.17mbps, 37.73mbps, and 32.02mbps down. Afterwards I got scores of 45.99mbps, 38.37mbps, 36.93mbps, and 44.6mbps down. While not conclusive, the small sample size suggests faster downloads.
To change to the mtu I used terminal emulator:
$su
#ip link set dev bond0 mtu 1500
That was it. to put it back to stock:
$su
#ip link set dev bond0 mtu 1428
Do at your own risk. I haven't seen any ill effects yet, but I'm not responsible if you kill your phone. Wifi still works after the change too, at least to tether my laptop, I'll check to see if my hp touchpad still works later tonight. I also can't promise that it actually helps =)
It should still work to tether to most devices. Seems like most out there default to 1500. Can you let me know if you have any trouble connecting to 4G? Sounds like some folks are having issues connecting to 4G after changing their default mtu.
Also, I noticed that after a reboot, my Transformer reverted to stock mtu. Would not be surprised to see the revo do the same.
I do have 4g still after setting to 1500, but it does revert back to 1428 on a reboot. I also am not sure if it's the mtu setting, but i've had issues using wifi tether causing my phone to reboot itself today. I also have determined after running many more speed tests in different areas of town, that if there is a speed increase it's pretty much negligible. It might actually even reduce speed. It's hard to tell with the speedtest.net app, though, since three tests in a row can produce 3 very different results.
Anyway, it was kind of a fun experiment, but don't think it helps at all.
@MeshiaSamurai, if you decide that you need it to run at 1500 even after boot, it would be really easy to create a script that would run at boot with script manager so that it would stay at 1500.
When you say easy to create, realize you are talking to someone who has barely touched a line of script in his life. That would be nice though. It's not too difficult to pop into terminal emulator and change my mtu settings, but it would sure be easier if I only had to keep the phone at 1500, rather than adjusting everything else to 1428.
JohnnyAn said:
I do have 4g still after setting to 1500, but it does revert back to 1428 on a reboot. I also am not sure if it's the mtu setting, but i've had issues using wifi tether causing my phone to reboot itself today. I also have determined after running many more speed tests in different areas of town, that if there is a speed increase it's pretty much negligible. It might actually even reduce speed. It's hard to tell with the speedtest.net app, though, since three tests in a row can produce 3 very different results.
Anyway, it was kind of a fun experiment, but don't think it helps at all.
@MeshiaSamurai, if you decide that you need it to run at 1500 even after boot, it would be really easy to create a script that would run at boot with script manager so that it would stay at 1500.
Click to expand...
Click to collapse
Something I notice when people use the SpeedTest app to compare results is that they fail to verify that the same exact server is being used. It's displayed at the top and can be selected through options.
Something I though I would point out for those wanting to assure a true test/change...
-Cybie
MeshiaSamurai said:
When you say easy to create, realize you are talking to someone who has barely touched a line of script in his life. That would be nice though. It's not too difficult to pop into terminal emulator and change my mtu settings, but it would sure be easier if I only had to keep the phone at 1500, rather than adjusting everything else to 1428.
Click to expand...
Click to collapse
To create the script (should take about 5 minutes)
1. Download script manager (free in the market.
2. On the main page hit the menu softkey and choose "new", then new script, and enter a file name.
3. If prompted, choose SM editor as the program to use
4. In the editor type in the command that you use to set the mtu, but you don't need type su. The end result should look like:
#!/system/bin/sh
ip link set dev bond0 mtu 1500
But the second line should be the one that works for your phone. Also make sure the second line is all lower case, autocorrect will probably try to capitalize IP.
5. Save and go back to the main page of script manager.
6. Scroll down and tap on the file you just created.
7. Click on su and boot so that they're highlighted and hit save.
8. Exit, and you're good to go.
9. Reboot and use terminal emulator to make sure it worked.
@Cybie, yup, same server. I was more referring to how 3 tests in a row can each vary by up to 10mbps even using the same server.
Sent from my VS910 4G using xda premium
My mtu is at like 16k sumthing whats better a higher number or lower??
lg revo 2.3.4 with gingervolt 1.3 and dread ginger v1.3
Got that script running on my Transformer just fine. It boots and adjusts the mtu to what I desire; in this case 1428.
Tried doing it with the REVO. It will not run the script successfully on boot. It will run it just fine if I go to my script editor and run it manually, though. Doesn't seem to be anything wrong with the script itself. It just isn't running it properly on boot.
---------- Post added at 05:17 AM ---------- Previous post was at 05:08 AM ----------
Better is not necessarily higher as far as mtu is concerned. It stands for maximum transmission unit, and it governs the packet size of incoming or outgoing data. Theoretically, higher would be more efficient. However, the larger the packets, the more likely any given packet will contain corrupted data. Packets containing corrupted data have to be sent again. Thus, having packets that are too large can actually slow down your connection.
The default broadband mtu is 1500. Most devices also default to 1500. However, for some wacky reason, the REVO defaults WiFi Tethering to 1428. Setting it to 1500, or setting the device you are tethering it to down to 1428 will allow you to tether successfully.
O ok... thanks and if u get a script running do u think u can put a dl link or sumthing so we can all use it also??
lg revo 2.3.4 with gingervolt 1.3 and dread ginger v1.3
hello guys and girls,
I am quite sure everyone knows and feels that our pixels are already super smooth. However few of us are never completely satisfied and are looking for ways to make the device even more smoother.
Some of you might be aware, that the sched governor, which is bound to eas, isn´t as customizable as the old interactive governor. This is the main reason we don´t have any scripts or tweaks touching the governor.
So I did some digging and finally found a tunable that allows the cpu to be even more aggressive. This will result (at least for me) in a tremendous effect on overall smoothness. Battery life will take only a slight or a grave hit, depending on the boost you choose. @Alcolawl you are free to do benchmarks
The schedtune.boost (s) reside in the directories /dev/stune, dev/stunde/foreground and dev/stune/background
You can apply values from 0 to 100.
When setting it to 100 your device will run constantly with all cores maxed out.
I found values from 2 to 10 to have the most efficient effect.
I am currently using a boost value of 8. Battery life is still awesome. But oh my god how smooth the device runs now.
Remember: you can also set the values higher yourself
For your convenience I made scripts that you can either put in system/etc/init.d or system/su.d. I am planning to refine and maybe add more tweaks to our pixels. So stay tuned and lets all work together. The script does not look like much, but try it before you judge.
Download links will be in the second post.
Instructions:
1. Download the desired file. sched2 means a boost value of 2 will be applied. sched6 means a boost value of 6 will be applied. I think you get the concept.
2. Extract the script from the download
3. Copy the script to either system/etc/init.d or system/su.d
4. set permissions to 0755 (rwxr-xr-x) via terminal or your preferred root explorer.
5. reboot and wait a minute (there is a sleep timer)
6. profit
7. to check if the script got applied correctly do in terminal on your phone
su
cat dev/stune/schedtune.boost
Attention:
su.d only works when you have working root via supersu from chainfire.
Credits:
google for integrating eas to our pixels
@Alcolawl for letting me use his scripts on the HTC 10 and inspiring me greatly in the process. If he did not exist I probably wouldn´t have looked into finding this
Even if androidfilehost says Google Pixel XL, the script will work just fine on the regular Pixel.
The all-in-one package has all scripts with boost values including 2,4,6,8 and 10.
Download:
https://www.androidfilehost.com/?w=files&flid=140794
09.01.2017
v1:
- decreased the default boost value for top app from 50 to 25
- foreground-app has a boost of 15
- schedtune.boost for all other activities (that are not getting categorized) is set to 10
v2:
- decreased the default boost value for top app from 50 to 25
- foreground-app has a boost of 12
- schedtune.boost for all other activities (that are not getting categorized) is set to 8
I did this when it was posted in the XL forum and it works exactly as described and so very easy to install. I dont think my Pixel has run any faster and with what seems like no battery hit at all even when running the 10 script!
Thanks for this! Everything does seem smoother. Installed the 10 one because of what Archangel said.
Nice, I'll try it out too, and report after a bit of messing around.
For the record: the default boost value is 0
Apparently a 10% boost is already the default on Pixel, at least for the top-app? https://www.linuxplumbersconf.org/2...ations/3693/original/LPC- EAS for Android.pdf
Boosting the foreground thread in addition to top-app may make sense (which this script seems to do), but I think background is best left alone.
I am having a problem when checking to see if this worked, (this directory isn't found) although I've gone in and* checked haha. With the file "schedtune.boost" could we also manually change that value?
Edit: I've change the permissions correctly and have tried it in both places with no luck. :/.
Edit2: placed the file in both locations and changed the filename to include ". rc" and it seems to be working now.
Gonna try out 8
Finally got it work. But it didn't work when I placed it in system/etc/init. Only worked when I put it in Su/su.d
Simer03 said:
Gonna try out 8
Finally got it work. But it didn't work when I placed it in system/etc/init. Only worked when I put it in Su/su.d
Click to expand...
Click to collapse
system/etc/init.d not just init
Freak07 said:
system/etc/init.d not just init
Click to expand...
Click to collapse
I'm not sure why but mine wouldn't work from init.d either. Neither of the two folders mentioned existed on my phone. So, I made an init.d folder, put the file in there and rebooted. In the end, it didn't work. So, I created the su.d folder where it was supposed to be and tried from there. That worked. Go figure.
Can anybody do the same commands for the regular pixel? I only have the XL
[email protected]:/ # cat dev/cpuset/cpus
0-3
[email protected]:/ # cat dev/cpuset/top-app/cpus
0-3
[email protected]:/ # cat dev/cpuset/foreground/cpus
0-2
[email protected]:/ # cat dev/cpuset/background/cpus
0
[email protected]:/ # cat dev/cpuset/system-background/cpus
0-2
[email protected]:/ # cat dev/cpuset/camera-daemon/cpus
0-3
[email protected]:/ #
Freak07 said:
Can anybody do the same commands for the regular pixel? I only have the XL
[email protected]:/ # cat dev/cpuset/cpus
0-3
[email protected]:/ # cat dev/cpuset/top-app/cpus
0-3
[email protected]:/ # cat dev/cpuset/foreground/cpus
0-2
[email protected]:/ # cat dev/cpuset/background/cpus
0
[email protected]:/ # cat dev/cpuset/system-background/cpus
0-2
[email protected]:/ # cat dev/cpuset/camera-daemon/cpus
0-3
[email protected]:/ #
Click to expand...
Click to collapse
I got the exam same values as you on the Pixel. Although I am running Franco kernel if that makes a difference.
ChugJugThug said:
I got the exam same values as you on the Pixel. Although I am running Franco kernel if that makes a difference.
Click to expand...
Click to collapse
Thank you. I was just curious I wonder why google decided to change this. Possibly they had enough reserves battery wise to bump performance a bit.
Freak07 said:
system/etc/init.d not just init
Click to expand...
Click to collapse
Didnt have init.d. only su.d
Yeah I think most on this phone will have that folder only,,,if you put it in su.d and change permission it will work.
Simer03 said:
Didnt have init.d. only su.d
Click to expand...
Click to collapse
Those who are using the 10, still looking good on battery? I'm on 8 currently and so far so good
OTTOREIKU said:
Those who are using the 10, still looking good on battery? I'm on 8 currently and so far so good
Click to expand...
Click to collapse
I've been using 10 since the day this was posted. Can't say I've noticed much change in the battery (if any). Battery life has been good.
robocuff said:
I've been using 10 since the day this was posted. Can't say I've noticed much change in the battery (if any). Battery life has been good.
Click to expand...
Click to collapse
Glad to hear! I'll be loading up 10 shortly. Ty!
Is anyone noticing any appreciable changes in performance using this script at 8 or 10? I've been running it on 8 and can't really see any noticeable changes in performance or battery. i'm just curious what other people are experiencing. (and yes, i checked cat on terminal and I am running on 8)
I am running 20 and only notice a slight decrease in battery but the performance boost is really noticeable. 10 is the best for a mixture of performance increase and battery.
ChugJugThug said:
Is anyone noticing any appreciable changes in performance using this script at 8 or 10? I've been running it on 8 and can't really see any noticeable changes in performance or battery. i'm just curious what other people are experiencing. (and yes, i checked cat on terminal and I am running on 8)
Click to expand...
Click to collapse
So in the Nougat ZUI2.5 I saw the cpu clock frequencies include a 2.3ghz for big cluster, and 1.7ghz for little cluster, also an option for "OC mode" in the setting
But no app can access it, I tried Kernel Adiutor and it always reset back to 2.15ghz, and when I turned on OC mode the actual cpu clock doesnt reach 2.3ghz, more like a governor change to performance with default clocks.
Is anyone currious about how to use the higher clocks?
pipyakas said:
So in the Nougat ZUI2.5 I saw the cpu clock frequencies include a 2.3ghz for big cluster, and 1.7ghz for little cluster, also an option for "OC mode" in the setting
But no app can access it, I tried Kernel Adiutor and it always reset back to 2.15ghz, and when I turned on OC mode the actual cpu clock doesnt reach 2.3ghz, more like a governor change to performance with default clocks.
Is anyone currious about how to use the higher clocks?
Click to expand...
Click to collapse
Been meaning to respond for a while now, I'm very interested in seeing this too and I've observed the clocks setting back to 2.15ghz, tried messing with system files and was tempted to make a custom kernel modification but I'm just waiting for someone else to introduce something.. if that ever happens, if more performance can be squeezed out then it'd be awesome, even if it already runs flawless, I enjoy pushing it further. I've been compiling some UE4 demos and tests and testing them to see what the phone can handle, I'd like seeing what overclocks could do to those results.
Ossie! said:
Been meaning to respond for a while now, I'm very interested in seeing this too and I've observed the clocks setting back to 2.15ghz, tried messing with system files and was tempted to make a custom kernel modification but I'm just waiting for someone else to introduce something.. if that ever happens, if more performance can be squeezed out then it'd be awesome, even if it already runs flawless, I enjoy pushing it further. I've been compiling some UE4 demos and tests and testing them to see what the phone can handle, I'd like seeing what overclocks could do to those results.
Click to expand...
Click to collapse
actually I got oc running in almost every single rom for the z2 plus now, just extract the sh file in the attactment to /system/etc, set permission to rw-r--r-- and you are golden
also a modified thermal engine file is included to raise the thermal throttling threshhold, if you want also move it to /system/etc then set permisson
remember to backup the old files, although I noted that all roms use the same default files. If you want to disable overfreq you have to move the original files back to place, removing them wouldnt do anything
That's really cool and I wanna use it but is it compatible with the Z2 Pro? I mean they use the same processors.
Don't work for me.
Did for me on the z2 pro, instant 160K in antutu on 50% battery, quite happy with that
Any way to include audio gains (headphones) for the kernel?
I'd like pushing it a little further, especially the GPU, just not sure how to go about that for now..
Ossie! said:
I'd like pushing it a little further, especially the GPU, just not sure how to go about that for now..
Click to expand...
Click to collapse
unfotunately you need a custom kernel for that to work, as the files I uploaded are only to enable the prebuilt overclock that zuk included with the phone. On custom roms based on cm/aosp I got the gpu to 652mhz which is the same as the sd821 SoC, and it worked fine. Not much progress has been done to raise the cpu clock higher however
pipyakas said:
actually I got oc running in almost every single rom for the z2 plus now, just extract the sh file in the attactment to /system/etc, set permission to rw-r--r-- and you are golden
also a modified thermal engine file is included to raise the thermal throttling threshhold, if you want also move it to /system/etc then set permisson
remember to backup the old files, although I noted that all roms use the same default files. If you want to disable overfreq you have to move the original files back to place, removing them wouldnt do anything
Click to expand...
Click to collapse
Hello and thanks for your file but...i don't have any "System" folder in my Zuk Z2, that is strange, i had it in my old phones...
pipyakas said:
unfotunately you need a custom kernel for that to work, as the files I uploaded are only to enable the prebuilt overclock that zuk included with the phone. On custom roms based on cm/aosp I got the gpu to 652mhz which is the same as the sd821 SoC, and it worked fine. Not much progress has been done to raise the cpu clock higher however
Click to expand...
Click to collapse
I get the feeling that Elemental X is never coming unless someone works with the source code, I see it's on the OP3 so I wonder how tough it'd be to port it over, would love to get the GPU in the Z2 Pro to 652 as well, I wanted to run this thing at the same frequencies as the 821 but wouldn't mind pushing the clocks further, I have the source for the OP3 EX kernel but this stuff is way out of my skill set..
I'm pretty sure I found where all the clocks and voltages are stored within the kernel, but like I said, I got no clue what to do.
juanzann said:
Hello and thanks for your file but...i don't have any "System" folder in my Zuk Z2, that is strange, i had it in my old phones...
Click to expand...
Click to collapse
Are you using root explorer or copying within the recovery?, if you're using twrp you need to go to the mount option and check the box for system, and if you're in the OS you gotta use something like root browser.
Ossie! said:
I get the feeling that Elemental X is never coming unless someone works with the source code, I see it's on the OP3 so I wonder how tough it'd be to port it over, would love to get the GPU in the Z2 Pro to 652 as well, I wanted to run this thing at the same frequencies as the 821 but wouldn't mind pushing the clocks further, I have the source for the OP3 EX kernel but this stuff is way out of my skill set..
I'm pretty sure I found where all the clocks and voltages are stored within the kernel, but like I said, I got no clue what to do.
Click to expand...
Click to collapse
It doesnt have to be elementalx, although if any custom kernel get to that level of polish would certainly be welcome for this device. If you want to try overclocking via custom kernel, reference other devices that have the same SoC (sd820 in this case) to check what voltages and clock speeds they are using, and how do they implement the overclock (it could be very different between devices across many oems). I tried to follow xiaomi mi5's oc and didnt success, maybe you could do it better. Good luck!
Very interesting, got 155k in Antutu with it
Ossie! said:
Did for me on the z2 pro, instant 160K in antutu on 50% battery, quite happy with that
Click to expand...
Click to collapse
aliensmille said:
Very interesting, got 155k in Antutu with it
Click to expand...
Click to collapse
woah! that's almost OP3T territory.
how's the battery and SoT with the OC?
"just extract the sh file in the attactment to /system/etc, set permission to rw-r--r-- and you are golden"
i changed the file in the system / etc folder but i don't know how to change the permissions from this file can somebody help?
alkombella said:
"just extract the sh file in the attactment to /system/etc, set permission to rw-r--r-- and you are golden"
i changed the file in the system / etc folder but i don't know how to change the permissions from this file can somebody help?
Click to expand...
Click to collapse
I use ES Explorer pro, just long press the file/properties and check all boxes, you will see rwx-rwx-rwx
---------- Post added at 08:21 AM ---------- Previous post was at 08:15 AM ----------
ar_15 said:
woah! that's almost OP3T territory.
how's the battery and SoT with the OC?
Click to expand...
Click to collapse
Between 3 and 5h, one day is no problem.
thank you i changed the settings to rw- r-- r-- and did a reboot after that. In antutu i only get a score of 13800 and if i run the app kernel adiutor i see the big cpu i set to 2150 MHz i also see the settings for changing to 2304 MHz but it doesn't change if i try to set it. Im on 2.5. 335ST with root. Before i changed the file my cpu was set at only 1708 MHz and i couldn't changed it to 2150.
You need rwx-rwx-rwx
pipyakas said:
actually I got oc running in almost every single rom for the z2 plus now, just extract the sh file in the attactment to /system/etc, set permission to rw-r--r-- and you are golden
also a modified thermal engine file is included to raise the thermal throttling threshhold, if you want also move it to /system/etc then set permisson
remember to backup the old files, although I noted that all roms use the same default files. If you want to disable overfreq you have to move the original files back to place, removing them wouldnt do anything
Click to expand...
Click to collapse
Thanks man it works perfectly. I'm getting 154K on antutu
Hi,
I did this but every reboot I need to run the script with root explorer. I tried rw-r--r-- and rwx-rwx-rwx.