yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] masr1979:
@Ohsaka

Thanks for the tip on verifying changes.

@defconoi

Maybe you should edit the first post with some of the info on the thread, which is getting kinda big. Nobody likes it when people ask the same questions over and over, and people should really care enough to use the search feature, but it's ok to spoils us a lil' bit :D

As far as my experience with the settings go, I applied it first to check how my phone would behave (I was going to wipe it to redo my whole install later on) and I noticed the phone was working much faster, didn't have enough time to see what the battery life was like. Now after reflashing, for some reason I don't notice the decrease in lag, but my phones battery has indeed gotten much better. With 3G, BT, GPS, cell location, auto sync on, light phone/web usage, screen off at 1min, and brightness set to 3% my battery is right now (11:21pm) at 26% since I took it off charge at 7am. Usually by 3pm I'm in the 12 - 20% mark, and that's with BT off, and toggling 3G and GPS on/off every now and then, but I usually do use the data connection more than I did today. Also note that I have the OC widget set with the screen on from 128 - 384, and with the screen off from 128 - 248, which I image helps out quite a bit as well. Anyways, the result is that I might be able to use my phone regularly without worrying about the battery going caputs before I get a change to charge it at home, so thanks guys.
[G1 Android Development] Ohsaka:
Interesting test of this tweak today.

My friend has a G-1 with the stock 1gig sd card. He was down to 7MB free of internal space. He obviously didn't have Apps2SD installed yet.

I put this tweak on his phone and the performance got worse. He even has the Overclock widget installed with the speed maxed out.

After I installed Apps2SD and this tweak, his performance difference was night and day. So definitely use Apps2SD with this tweak.
[G1 Android Development] stellarman:
Nice modification

Just wanted to say thanks. I used this process yesterday, and it worked flawlessly. And I see a noticeable improvement in the speed.

In another thread, someone suggested increasing the vfs_cache_pressure setting to 200. Since I don't really understand what this setting is doing, I can't have any idea whether it is likely to cause a further improvement. I may just try it and see. But, I thought someone could give me an opinion, and help me understand the issue.

Can anyone enlighten me?

Thanks again.
[G1 Android Development] dwang:
try reading the thread, its been discussed.
[G1 Android Development] sacredsoul:
Thanks man! Works great :)
[G1 Android Development] stellarman:
First of all, thanks for your generous helpfullness (not).

If I had some idea what inodes, dentries and CPU "wa" were, I wouldn't have to ask the question.

In the end, all I was trying to do was get some idea whether to set that number high or low. Reading the entire thread didn't help much, and you didn't help any.

Have a nice night.
[G1 Android Development] dwang:
Its been discussed in thread. If you can't be bothered to read it then there's nothing I can do. Plus there's a google. I didn't know anything about inodes and dentries either, but I did a google to read up on it.
[G1 Android Development] masr1979:
Forget it guys, this post was off topic!
[G1 Android Development] marshallladd:
My G1 seems more responsive after doing this. Lovin' it.
[G1 Android Development] sputnik99:
Maybe a stupid question...

the filesystem has to mounted to push the files, does it? otherwise I get "read-only". You mean to make sure it isn't mounted anymore when rebooting? or when e2fsck-ing?
[G1 Android Development] andonnguyen:
You have to remount (to have the proper permissions) in order to adb push. Although if you are using cyanogen's builds, he has it set to where the fs is unmounted before shutdown and reboot to prevent any corruption, so you should be okay.
[G1 Android Development] bilclintonsdaman:
unmounted when running e2fsck. this was in response to the corrupted ext3 partition.
[G1 Android Development] eldorado2705:
I don't know why, but the easy looking "Code Typing" is not going right. I get always 10 as the result of "catting" the vm ...

I tried everything but i dont why my g1 does not want to start the sysctl.conf which is pushed into /system/etc

Can anyone give useful advice pls??

Thanks in advance for your help ;)
[G1 Android Development] andonnguyen:
Did u modify init.rc by appending service sysctl /system/xbin/bb/sysctl -p to the end of it?
[G1 Android Development] eldorado2705:
yes i did modify it.. There are many init.rcs do you mean the one, where one can find cache, data, init.goldfish.rc or do you mean another one? How can i find the right one?
[G1 Android Development] eldorado2705:
it doesnt matter which one i change, the sysctl.conf file is not run on my device :S What is wrong?
[G1 Android Development] andonnguyen:
There is only one init.rc which is found in /system.

If you want, pull your init.rc and send it to me, ill do it for you.
[G1 Android Development] eldorado2705:
i have probs (only read ...) pushing the sysctl file while the phone is on, and if i start it in recovery modus (console) i cant see the other files in system :S only fstab
[G1 Android Development] maxisma:
In recovery, you must first mount the partitions

mount sdcard

mount data

mount system
[G1 Android Development] andonnguyen:
deleted post
[G1 Android Development] maxisma:
And in normal mode, you must do first:

mount -o rw,remount /dev/block/mtdblock3 /system
[G1 Android Development] eldorado2705:
thanks my friend it worked for me thanks for everything, do you have got any other advices in order to put it in sysctl.conf to get a faster android with apps2sd?
[G1 Android Development] sacredsoul:
How do you edit the sysctl.conf file. I edited it and tried to

adb push sysctl.conf /system/etc/sysctl.conf

but it says failed to copy; read only file system. I think it coz sysctl.conf already exists there. Any idea how to remove it and push my newly modded on in?
[G1 Android Development] sir*mez:
use:

adb remount

then:

adb push sysctl.conf /system/etc/sysctl.conf

and you should be good!!
[G1 Android Development] sacredsoul:
Golden :D You're a life saver. Thanks man!
[G1 Android Development] Parazuk:
Help Please with sysctl.conf file?

To XDA Users

Im running TheDudesCupcake.v1.3.RC2-signed. I really want to try this tweak as it seems to make alot of diffference to performance and battery life. Will it work ok?

How do i create a sysctl.conf file? do create it in windows or in Terminal app? If so how?

I know this question has been asked before but im a beginner to this. Please can someone help me.

Thank you very much for your help

Paraz
[G1 Android Development] kaotikking:
Worked for me

i am running the dudes cupcake as well and this works wonders for the phone

As for creating a sysctl.conf file u need linux to do it basically its making a new file just naming it sysctl.conf and putting.......

vm.dirty_background_ratio=60
vm.dirty_ratio=95
vm.oom_kill_allocating_task=1

Also dont forget to edit ur init.rc (also in linux, u edit this just like a .txt document in windows) by adding this to the last line

service sysctl /system/xbin/bb/sysctl -p

then u can

adb remount

adb push sysctl.conf /system/etc/sysctl.conf

adb push init.rc /system/init.rc

reboot and ur good to go

any questions PM me i tried to make this as noob as possible being i am a learning noob myself :D
[G1 Android Development] Chahk:
I would not touch the "vm.vfs_cache_pressure" setting. There are conflicting views on its perceived benefits, but I've noticed that it makes my phone unstable. Initially the app switching is definitely faster (and it's not just a placebo effect) but over time, say 24 hours, the phone gets progressively slower until coming back to the home screen takes literaly half a minute. Sometimes the phone freezes up altogether and reboots by itself, other times it gets so slow that a reboot is necessary.
[G1 Android Development] Parazuk:
Thank u for your replays so quickly. How would I go about making the sysctl.conf file because Im running Windows. Is there a chance someone can send this file to me so I can add it from the SD card, if this is possible how do i do this?

Paraz
[G1 Android Development] prash:
Open up notepad, copy and paste the settings, go to save as, put this in quotes "sysctl.conf" and save.

It should make the file for you, then move it over to where you'll push it to the phone.
[G1 Android Development] andonnguyen:
You don't need to include:

vm.swappiness=0

vm.dirty_expire_centisecs=0

vm.dirty_writeback_centisecs=0

Because you don't use a swap file.

And don't include:

vm.vfs_cache_pressure=10

Because you're phone will lag tremendously after a while.
[G1 Android Development] Parazuk:
Thank you

Thank you for your help i will try this now and give my thoughts after

Paraz
[G1 Android Development] Parazuk:
init.rc?

Ok i now have to file on my SD card sysctl.conf and init.rc. My phone is rooted with TheDudesCupcake.v1.3.RC2-signed.

init.rc file includes:

on system

mount cramfs loop@/system/modules/modules.cramfs /system/modules ro

mount cramfs loop@/system/xbin/xbin.cramfs /system/xbin ro

service sysctl /system/xbin/bb/sysctl -p

service reboot /system/bin/shutdown -r

disabled

oneshot

service poweroff /system/bin/shutdown

disabled

oneshot

sysctl.conf file includes:

vm.dirty_background_ratio=60

vm.dirty_ratio=95

vm.oom_kill_allocating_task=1

Iv tried to type in the following commands but i keep getting "$ adb: permission denied" what am i doing wrong? My phone running on a single partition. Iv not got a EXT2 or EXT3 partition.

adb remount

adb push sysctl.conf /system/etc/sysctl.conf

adb push init.rc /system/init.rc

Paraz
[G1 Android Development] prash:
ADB is done through the PC with phone connected. Its not through terminal.

If you're looking for a way to do it through terminal, put the init.rc and sysctl.conf file in the root folder of your sdcard (meaning not in any subfolders), then open up terminal emulator and type the following

su
busybox cp /sdcard/init.rc /system/init.rc
busybox cp /sdcard/sysctl.conf /system/etc/sysctl.conf
reboot

That last reboot should restart your system (or do it manually) and you should have all the proper files in the proper places.
[G1 Android Development] Parazuk:
I have rebooted the system all seems well. How do i check to see if the control variables modified automatically, threw busybox?

Threw Linux PC

adb shell

#cat /proc/sys/vm/dirty_ratio

the value should be 95

Paraz
[G1 Android Development] prash:
As posted earlier in this thread, to see if your changes went through type the following in terminal:

cat /proc/sys/vm/dirty_ratio

if its 95, you're good, if its 10, then you're missing something and the steps you followed did not work.
[G1 Android Development] Parazuk:
Thanks you all

Thank you all for your help phone seems to be running fine. Havent seen that much of a difference appart from memus seem to be working without delays. Battery life since I done this has only gone from 94 to 80 in the past 3 and Half hours.

The settings have been applied I checked using the dirty_ratio syntax.

Paraz
[G1 Android Development] sputnik99:
un-sysctl ?

to un-sysctl, do you just remove sysctl from /etc/ ?

can I delete init.rc and reinstall cyanogens update.zip? (I have no backup from my old init.rc)

Since I have got sysctl, I have frequent reboots. I want to find out, if this is caused by the tweak.

Help?
[G1 Android Development] andonnguyen:
Most likely caused by the tweaks, I no longer use sysctl.conf. Don't delete init.rc (your phone wont boot up), just do an update.zip and it will automatically be overwritten.
[G1 Android Development] sputnik99:
thanking you!
[G1 Android Development] Ohsaka:
I've had this tweak on my phone for two weeks. No problems what so ever. I don't mess with my phone very much though. Only installed JF 1.5.1 once, Apps2SD, Tether for Wifi, Overclocking widget, and this tweak. I rarely reboot my phone. I think its been 4 days since the last one.

I wonder what could be causing the reboots? Something with a different ROM causing it perhaps...
[G1 Android Development] overground:
I think it may be a kernel problem, however I've seen reports of this problem on other ROM's using different kernels.
[G1 Android Development] justanothercrowd:
I have these tweaks in my ROM with no reboot issues running the 2.6.29 kernel..using cache_pressure causes some issues though
[G1 Android Development] bilclintonsdaman:
What's this Overclocking Widget you speak of?
[G1 Android Development] andonnguyen:
it's in the marketplace called OverlcockWidget
[G1 Android Development] Ohsaka:
My friend has all the same tweaks as me on his phone and is experiencing alot of severe lockups.

The only difference in our phones is that he still has the stock 1gb card. I bought an 8gb class 6 card.

Could that be the missing link for people who are having problems???
[G1 Android Development] alexjzim:
that made me lol so hard
[G1 Android Development] vessamj:
This is obviously an older thread... has anyone actually come up with a system file for this so it'll run at bootup? Will it work with CM7.1.0?
[G1 Android Development] Ace42:
Devs have been doing this kind of stuff for a long time with init.d scripts that run on boot, they are found in system/etc/init.d
[Touch Pro2, Tilt 2 Windows Mobile General] RMU:
Hello,

I want to save my battery, is there any program to turn off your 3G (and only use 2G) when you don't need it?

It would be great if you can turn 3G on/off in the comm. manager :D
[Touch Pro2, Tilt 2 Windows Mobile General] DaveShaw:
Try installing Schap's advanced Config for changing the buttons in Comm Manager to add a 3G button.

Or WMLL for optional 3G : http://xdaforums.com/showthread.php?t=478519

Dave
[Touch Pro2, Tilt 2 Windows Mobile General] RMU:
Okay thanks! looks nice... BUT...

I don't yet understand what's the difference between those 2 apps?

Schap's advanced Config can tweak a lot of things, and what WMLL does i don't know yet... i see only a lot of warnings not to use it to much bla bla bla... :P

The only thing i need is a switch between 2G and 3G, looks like Schap's advanced Config can do that, but i not installed it yet because i don't need the other options ;)... is there not a simple registery-hack or cab i can install to get a 3g switch at my comm. manager?
[Touch Pro2, Tilt 2 Windows Mobile General] DaveShaw:
I dunno. Install Schaps Adv. Config, Change the Comm Manager and uninstall it if you don't want it any more.

WMLL is a program to disable 3G except when you use Opera or Google Maps. It's in early stages but the next release look promising.

Dave
[Touch Pro2, Tilt 2 Windows Mobile General] RMU:
I Installed Schaps Adv. Config and changed comm. manager, i do get a 3G on/off button, but the button doesn't do anything :p so that's not supported yet...
[Touch Pro2, Tilt 2 Windows Mobile General] DaveShaw:
I dunno then, I'll have to wait til I get my hands on one...

Anyone else have any ideas.

Dave
[Touch Pro2, Tilt 2 Windows Mobile General] InAndOutOfTheMatrix:
Bump. I also want to know how to do in in Comm Manager. I was able to do it in my TyTn II but using advanced config tool does not work - the 3G button is shown but clicking on it does not work. Can somebody please let us know how to fix this. Thanks.
[Touch Pro2, Tilt 2 Windows Mobile General] Chainfire:
Its a lot of clicks but what you can do is:

Start -> Settings -> All settings -> Personal -> Phone -> Band, and switch the network type box between Auto (depends on signal), GSM (2G) and WCDMA (3G).
[Touch Pro2, Tilt 2 Windows Mobile General] InAndOutOfTheMatrix:
Thanks Chainfire. I was already aware of this and just wanted to make it a few more clicks less - that's why I was asking if anybody knows how to fix the 3G button in Comm Manager as this is the easiest and fastest way for me to switch from GSM to AUTO (3G).
[Touch Pro2, Tilt 2 Windows Mobile General] wg5566:
Check here, one touch will do it, if you map a shortcut of Toggle_Wcdma-Gsm.mscr into a hardware button, it's inside allinone attatchment.
[Touch Pro2, Tilt 2 Windows Mobile General] HarveyR:
Isn't disabling 3G the same as disabling the data connection (last item in the COMM MANAGER) ? I though that it's the same...
[Touch Pro2, Tilt 2 Windows Mobile General] danielherrero:
bandswitch and commmgrpro changes between 2g-3g-auto modes correctly on TouchPro2....
[Touch Pro2, Tilt 2 Windows Mobile General] wg5566:
No. After disable 3G the phone can still use 2G data connection (GPRS & EDGE).

To disable data connection you need the Advanced Configure Tools or do the regi tweak by yourself. Edit: Seems also has some app called 'nodata', search for it.

Also, if you want disconnect (not completely disable) data connection, beside using the comm mgr, can use HTC EndKey app. That is more convinient than comm mgr.
[Touch Pro2, Tilt 2 Windows Mobile General] wg5566:
Yes & more functionalities provided.

Ggreat app, Dani.
[Touch Pro2, Tilt 2 Windows Mobile General] Justin241982:
The T.I.R update has the feature built in and works great turns 3g on and off through the comm manager flawlessly, a hard reset is required before install but it makes it easy to do without anything but an single click. and it changes alot of the sickly green to a nice shade of blue:)
[Touch Pro2, Tilt 2 Windows Mobile General] h0wz3r:
What about the NoData utility? Always worked for me, can't believe it hasn't been suggested already?

Here's the link http://htcdriver.com/index.php?page=nodata

Don't know if this is the latest version but seems simple enough to not need updating. This used to be installed by default on a lot of carrier branded ROMs but Vodafone decided to leave this one out this time on my TP2.

You simply toggle the connection to be on or off, simple as.
[Touch Pro2, Tilt 2 Windows Mobile General] michi123:
Becuse NoData disables the data connection but does not switch bands - and that´s what the OP wants.

Simple, elegant solution with no 3rd party app: create a link in Windows/Startmenu/Programs to "CMBandSwitching.exe" found in the Windows directory and map it to a hardware button - there you have HTC bandswitching interface.....good looking, easy and quick!
[Touch Pro2, Tilt 2 Windows Mobile General] h0wz3r:
Ah, I overlooked that part of the question! Good solution though.

How much difference to the battery does switching the 3G connection off make incidentally? I'm guessing that the OP doesn't use data much if at all to consider switching the 3G off altogether?
[Touch Pro2, Tilt 2 Windows Mobile General] michi123:
Can´t give you exact figures. Fact is that a 3G/UMTS/HSDPA data connection uses a lot more power than a GPRS connection (no surprise....much higher speed). If you are not using data connections much, than 3G provides for longer standby times (if the signal quality is adequate) than 2G, however 2G provides longer talk times. So it depends on one´s usage pattern (amount of data traffic, amount of active calls etc.) which setting will yield the best battery performance...
[Touch Pro2, Tilt 2 Windows Mobile General] Lyian:
also useful if 3g isn't even in your area, so as soon as mine gets here, i'm turning it completely off first thing. Long as the standby time is still a day+ then ill be fine with it. (id love 2 or 3 days out of it tho)
[Touch Pro2, Tilt 2 Windows Mobile General] RMU:
I use the internet all the time ;) but mostly to sync my mail/contacts/calendar. that also can be done by 2G ;)

But when i want to use Opera or download something fast then it's fine to switch 3G on :)

My battery does a day or 2/2,5 now... that's fine, but more will be nice! :D i will soon try some off the suggestions :)

Anyone any luck with it so far?
[Touch Pro2, Tilt 2 Windows Mobile General] lovemeeveryone2009:
wrkn fyn on my D2
[Touch Pro2, Tilt 2 Windows Mobile General] clin0420:
What is this T.I.R update that you speak of?
[Touch Pro2, Tilt 2 Windows Mobile General] kirkdis:
is much easier...

comm manager --> settings menu (right lower corner) --> phone -->band
[Touch Pro2, Tilt 2 Windows Mobile General] aarrodri:
I used the files here and works like a charm on my tp2

http://xdaforums.com/showpost.php?p=3726097&postcount=11171
[Touch Pro2, Tilt 2 Windows Mobile General] schizo:
Thanks!

Nice find! I guess you have many spare times to prowl around /windows directory to try those many .exe files spreading around the directory, haven't you :D Thanks still.

Funny that HTC actually put many interesting .exe there, but didn't document them or creates link on programs folder. I can assure you that the CMBandSwitch is not available on my SEX1, at least on my current OEM ROM. Maybe someone has to start cataloguing them?

In other side, the most elegant solution still should be enabling the 3G button to work in the CommMgr buttons. One stop comm control.
[Touch Pro2, Tilt 2 Windows Mobile General] xjreyes:
cool now i know how to turn off the 3g.. when i had my g1 it was bad.. out here ( austin, tx ) couldnt send text messages nor get phone calls most of the day so i leave it on edge... thanks for the tip....OUT
[Touch Pro2, Tilt 2 Windows Mobile General] isoman4:
THANKS MICHI! Worked like a charm!
[Touch Pro2, Tilt 2 Windows Mobile General] redpoint73:
If you are in a fringe 3G area, you will not have 3G speeds, and the phone will kill the battery as fast as a few hours trying to search/connect to the 3G tower.
[Touch Pro2, Tilt 2 Windows Mobile General] leepriestenator:
If anyone wants to do this (Set Netwrok to GSM) during XDA_UC through the registry

HKLM \ Software \ OEM \ UMTS

OpMode: 1

Supported Values

0 - Auto

1 - GSM

2 - WCDMA

Band Selection can also be done. Just look for the Folder "BandSelection" under UMTS.

You need to edit the value of BAND

The effect of this can be seen only after a soft reset or manually switching the network type or the bands. However the indicators (in the Comm Manager or in the Band Selection Utility) will reflect the change immediately even though the radio does not switchover to the desired Network / Band.
[Touch Pro2, Tilt 2 Windows Mobile General] MustangRick:
When I use the Wireless Manager (I think this is what is referred to as Comm Manager in post #24) I can turn the data connection ON which makes the readout at the top of the screen (the one that shows the battery life, signal strength, etc.) show a 3G in a box and a smaller 3G above the signal bars. If I turn the data connection OFF I still see the 3G in a box, but above the signal bars there is a triangle on top of a vertical line (kinda like a simplified martini glass). So what this leads me to believe is that the 3G in a box means that 3G is available, and what's above the signal bars is what I am using. Is this correct?
[Touch Pro2, Tilt 2 Windows Mobile General] cajunflavoredbob:
Yes it is.
[Upgrading, Modifying and Unlocking] hellmachine:
Hi XDA-Users,

I am very confused about if flashing my XDA is possible or not. Using the Board-Search for some hours now did not give me the right threads. Pershaps I am using the false keywords.

So, if there is a thread I can solve my problem with, let me know, please. If not, I hope you can help me.

For about one year I have a O2 XDA Diamon. Systeminformation is as shown below:

ROM-Version 1.37.207.3 GER

ROM-Date 06/23/08

Radio 1.00.25.03

Prtocoll-Ver 52.26a.25.09H

I never updated the ROM. As I saw, there is a new O2-Firmware-Update. But I do not like the branded style. So, I want to flash it with an actual non-branded ROM in German.

As I read in other topics, that upgrading only works with special revisions.

For example here, written by rorydaredkign

So, I am not sure if 1.37.xx is able or not.

Is there a way to upgrade my XDA? The WM-Version I am running is very instable and crashes very often.

Thanks a lot

Hellmachine
[Upgrading, Modifying and Unlocking] DaveShaw:
Hi,

Start with this thread and post there if you get stuck (you'll get much more covage that here ;))

Ta,

Dave
[Upgrading, Modifying and Unlocking] hellmachine:
So, this is also for my XDA? Before I will search along the 30 pages...can you quickly tell me, if there is a German ROM for my XDA?

Greetings

hellmachine