[DEV] Data on HD2 (ril tweaks) - HD2 Android NAND Development

Since I was not happy with my current battery life I decided to invest time in finding ril build.prop tweaks for our hd2. Wich will be readed by lib_htcril.so and will acutally work. Android htc ril interface supports over 60 commands.
All tough it looks our phone has a working data connection it works far from optimal. There is no rill officialy developed for our radio and singal is very sensitive in my experience.
RMNET is currently providing us stable data by loading desire rmnet radio code into the radio when start up. Altough we should know wich radio from the desire is included so we can use the right wrapper
Anyway I will here clearify some commands.
ro.ril.fast.dormancy.rule= 0 - 1 disable enable.
Save a lot of battery by letting the phone request for fast dormancy. Phone will stay in UMTS until data is requested and will then switch to hdspa. This is not supported by all providers.
ro.ril.fd.scron.timeout= 0- to infinity in theory
The timeout in seconds after a data request before switching back.When screen is on
ro.ril.fd.scroff.timeout=0 to infinity in theory
The timeout in seconds after a data request before switching back.When screen is off.
ro.ril.a52.%s
(gprs encryption algorithm)
ro.ril.a53.%s
(gprs encryption algorithm)
ro.ril.enable.a52=0-1
disable enable encryption a52
ro.ril.enable.a53=0-1
disable enable encryption a53
ro.ril.enable.dcm.feature= 0- 1
Database Correlation Method to get phone location I was getting faster an data connection when on however phone was finding this value by it self was my experience.
ro.ril.radio.svn= 0-99
to identify phones more easily currently displayed as 01 on our hd2.
ro.ril.qos.traffic.priority= 0-3
(lowest priority =0 highest =3) request QOS priority in your network might not be supported by your provider.
ro.ril.enable.dtm=1
Dual transfer mode for networks that support calling and data connection at the same time.
ro.telephony.default_network=3 (0-8)
Not really new this will make the phone prefere a strong gsm singal over a really weak hdspa can save a bit of battery. This can also be set by typing *#*#4636#*#* in dialer
This are the ones I exactly know what they mean however after some testing I am using the following commands in build.prop by researching htc build.props
Altough I don't know the meaning of all it definately helps because I dont get a weird logcat out put when turning data on or off and it goes almost instant on and off with b4 wrapper in CLK.
# RIL Tweaks by [email protected] for HD2
rild.libpath=/system/lib/libhtc_ril.so
ro.ril.ecc.HTC-ELL=92,93,94
ro.ril.ecc.HTC-WWE=999
ro.ril.enable.a52.HTC-ITA=0
ro.ril.enable.a53.HTC-ITA=1
ro.ril.enable.a52=0
ro.ril.enable.a53=1
ro.ril.enable.dtm=1
ro.ril.gprsclass=12
ro.ril.hsdpa.category=8
ro.ril.hsupa.category=5
ro.ril.hsxpa=2
ro.ril.enable.3g.prefix=0
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
ro.ril.hep=1
ro.ril.avoid.pdp.overlap=1
ro.ril.enable.prl.recognition=0
ro.ril.def.agps.mode=2
ro.ril.enable.managed.roaming=1
ro.ril.enable.enhance.search=0
ro.ril.fast.dormancy.rule=1
ro.ril.fd.scron.timeout=30
ro.ril.fd.scroff.timeout=10
ro.ril.oem.nosim.ecclist=911,112,999,08,118,120,122,110,119,995
ro.ril.emc.mode=2
ro.ril.att.feature=0
ro.ril.disable.power.collapse=0
ro.telephony.default_network=3
# END RIL Tweaks by [email protected] for HD2
Click to expand...
Click to collapse
Just some more clearyfing why we have high standby usage.
Because phone is searching a lot for singal in my case it can swtich from 1 bar to 5 bars in the same room.
The power usage in 3G can be reduced by using fast dormancy because the phone doesnt switch from 3g to hdspa when there is no data request but phone will still search for optimal singal but it wont constantly switch between 3g and hdspa and waste battery. (lost 4 % in 8 hour with constantly bumping singal)
What is the goal of this thread:
Giving everybody the chance for an optimal data experience and maybe useful for devs who wanna update radio code or update ril wrappers.

Thanks for this Jan. So can we simply copy/paste this into our build props and reap the fruits of your labour?

Yeah it should work especially that fast dormancy really hepls if your network support it. I tested this in combination with clk b4 wrapper in theory when we initialize ril on boot using tytung r10 instead of lib_htcrilwrapper.so it should work for sure.

So is this for close or maglder it both?
Either way thank you this whole battery drain issue has got me very angry lol
Sent from my HTC HD2 using XDA App

Yeah well you just need to test I they will work for both. It depends the most on your provider. I Think because lack of missing code system has trouble by setting some parameters by it self. That is why It might be needed to apply the ril tweaks in build.prop.

Agree with the signal strength... my connection shows H, perfect reception when its laying on my desk, but as soon as i pick it up data drops to 1 or 0 bars. VERY sensitive.
Switching to GSM auto (PRL) seemed to do the trick for switching from H to E faster so i wont lose my reception and fixes the battery drain but this is still far from optimal use of our data connection as the data drops still occur as frequent as before.

help
Hi will this work on rafdroid 4.2 rom am a newb to changing code where to start and which folder etc and how to insert this code can u do it in zip form so we can flash it by mgldr?? or if not a step by step explanation of how to do it my kernal is rafdroid 1.9 thanking u in advance for any help on this

jan-willem3 said:
Since I was not happy with my current battery life I decided to invest time in finding ril build.prop tweaks for our hd2. Wich will be readed by lib_htcril.so and will acutally work. Android htc ril interface supports over 60 commands.
All tough it looks our phone has a working data connection it works far from optimal. There is no rill officialy developed for our radio and singal is very sensitive in my experience.
RMNET is currently providing us stable data by loading desire rmnet radio code into the radio when start up. Altough we should know wich radio from the desire is included so we can use the right wrapper
Anyway I will here clearify some commands.
ro.ril.fast.dormancy.rule= 0 - 1 enable disable.
Save a lot of battery by letting the phone request for fast dormancy. Phone will stay in UMTS until data is requested and will then switch to hdspa. This is not supported by all providers.
ro.ril.fd.scron.timeout= 0- to infinity in theory
The timeout in seconds after a data request before switching back.When screen is on
ro.ril.fd.scroff.timeout=0 to infinity in theory
The timeout in seconds after a data request before switching back.When screen is off.
ro.ril.a52.%s
(gprs encryption algorithm)
ro.ril.a53.%s
(gprs encryption algorithm)
ro.ril.enable.a52=0-1
enable disable encryption a52
ro.ril.enable.a53=0-1
enable disable encryption a53
ro.ril.enable.dcm.feature= 0- 1
Database Correlation Method to get phone location I was getting faster an data connection when on however phone was finding this value by it self was my experience.
ro.ril.radio.svn= 0-99
to identify phones more easily currently displayed as 01 on our hd2.
ro.ril.qos.traffic.priority= 0-3
(lowest priority =0 highest =3) request QOS priority in your network might not be supported by your provider.
ro.ril.enable.dtm=1
Dual transfer mode for networks that support calling and data connection at the same time.
ro.telephony.default_network=3 (0-8)
Not really new this will make the phone prefere a strong gsm singal over a really weak hdspa can save a bit of battery. This can also be set by typing *#*#4636#*#* in dialer
This are the ones I exactly know what they mean however after some testing I am using the following commands in build.prop by researching htc build.props
Altough I don't know the meaning of all it definately helps because I dont get a weird logcat out put when turning data on or off and it goes almost instant on and off with b4 wrapper in CLK.
Just some more clearyfing why we have high standby usage.
Because phone is searching a lot for singal in my case it can swtich from 1 bar to 5 bars in the same room.
The power usage in 3G can be reduced by using fast dormancy because the phone doesnt switch from 3g to hdspa when there is no data request but phone will still search for optimal singal but it wont constantly switch between 3g and hdspa and waste battery. (lost 4 % in 8 hour with constantly bumping singal)
What is the goal of this thread:
Giving everybody the chance for an optimal data experience and maybe useful for devs who wanna update radio code or update ril wrappers.
Click to expand...
Click to collapse
Hi,
This is very cool set!
i will use it in my ROM,
Your name will be in my build prop.
but first i will check that all ok, dont want my users to lose data / wifi / signal.
better test on my self!
Very cool keep it UP!
Thanks!

Can you please make this a flash able zip through CWM.
Ive had a a few problems in the past editing build props

CWM is not possible because each build is using a different build.prop
@dorimanx only issue is that some networks dont support fast dormancy. And then it will use extra battery instead of saving. Then you need to set fast dormancy rule = 0
For the rest I don't see any disadvantage of using this tweaks.

@dorimanx only issue is that some networks dont support fast dormancy. And then it will use extra battery instead of saving. Then you need to set fast dormancy rule = 0
For the rest I don't see any disadvantage of using this tweaks.
What about T mobile is that ok?

Sorry I have no tmous device try google to find out if network support fast dormancy or try out by yourself you can see it when you have high battery drain in 3g mode.

I already have a high battery drain cause of this http://support.t-mobile.com/thread/3544?tstart=0

Then I would try the build prop entries for sure.

help
Can this be done as a zip for magldr cant do this as dont know what folders or where etc to include this asked already but no one seems to want to answer?

maddoc1007 said:
Can this be done as a zip for magldr cant do this as dont know what folders or where etc to include this asked already but no one seems to want to answer?
Click to expand...
Click to collapse
This has been answered......
jan-willem3 said:
CWM is not possible because each build is using a different build.prop
@dorimanx only issue is that some networks dont support fast dormancy. And then it will use extra battery instead of saving. Then you need to set fast dormancy rule = 0
For the rest I don't see any disadvantage of using this tweaks.
Click to expand...
Click to collapse

re:help
Then can anybody tell me what folder to put script in or what files have to b changed whefe they are or where to be added etc or a step by step guide

sounds like a valid post and thread, because i observed that as well and was wondering if it could be done

maddoc1007 said:
Then can anybody tell me what folder to put script in or what files have to b changed whefe they are or where to be added etc or a step by step guide
Click to expand...
Click to collapse
If you have to ask this you should really also be asking yourself if you want to be getting into something you don't understand. However should you choose to take the red pill then...
1. DO A FULL BACKUP IN CLOCKWORK
2. Install Root Explorer, File Expert or ES File Explorer from market (if one of the latter two enable root explorer option in settings)
3. In your chosen file explorer navigate to /system and locate build.prop
4. MAKE A BACKUP COPY OF THE BUILD.PROP and save it on your SD card somewhere.
5. Open the build.prop file and search for the lines of code in Jan's OP. If they are there then simply edit the values. If not then copy and paste the new code.
6. Save the build.prop file
7. Reboot and hold on...

in Italy the mobile networks does not support fast dormancy

Related

[SOLVED] ALL 2.1 ROM BATTERY Life Problem FIX..(lots of trial results) +EXTRA OPTIONS

Check the thread pages to see results from other users who have had much better results than the ones I got.
This solution was discovered while I was checking out the CDMA Hero forum, so I don't take credit for discovering the method.
http://forum.xda-developers.com/showthread.php?t=651848&highlight=cell+standby
Goto dialer and dial *#*#4636#*#* (DO NOT press send) wait a second and you will get the test menu.
In the test menu choose 'Phone Information'
scroll down and choose on the first drop down - GSM auto (PRL) (for high speed data) or GSM only (You may get 3g if not use GSM auto (PRL))
Back out to test menu then back into 'Phone information' to see if it sticks (if not try again) then back all the way out.
You might want to reboot, but I found the settings worked straight away.
Edit 3 - I don't take any responsibility for step 6 - 6) Try other settings on the dropdown if you are brave as I don't know the consequencies of using settings like "EvDo only" and "unknown" as they may be better depending on the way your provider provides information.
Edit 4 - can't seem to select the other settings like EvDo and unkown anyway.
Edit 3 - TBH - GSM auto (PRL) is working for me with HSDPA and I will try
(PRL) instead of GSM auto (PRL) <- edit - previously it mistakenly said GSM only
the CDMA and WCDMA settings later to see what other effects there are.
This way I managed to get 5½ hrs and only lose 10% battery (GSM Only)! (Edit 3-) Slightly more drain with GSM auto (PRL) but still better than before.
Previous to this I lost 35% in the same amount of time with the same use (sometimes even more when I didn't even use the phone all night).
Hope the devs can make use of this (maybe mess with other settings in there to improve battery more.). I did notice that the GSM auto (PRL) uses a bit more battery than GSM only, but that is to be expected.
Edit: Actually you might need to set it on each reboot, not sure, the settings stayed when I rebooted
Edit 2: When you change roms (or re-install a rom) you will need to do this again, but should stay after a normal reboot as it does for me.
============================
Results:
Your results will vary depending on the rom, but it should improve battery performance - some have had better results than me using this.
GSM only <---- If you don't get 3g with this it is the same as 2g setting then use GSM auto (PRL) if you want faster than 2g (as some people are getting 3g on GSM only - I will investigate. (if you don't use internet or don't need fast internet)
5½ Hrs - lost 5% Battery - This one is same as running 2g as you don't get HSDPA, but using Opera browser makes browsing fast even using this. If you want Higher speed data use the one below.
GSM auto (PRL) <---- Recommended if you want High speed Internet and save battery
1:40am to 2:00pm (12hrs 20 mins) - lost 40% battery with moderate use a bit of surfing at HSDPA speeds, a few calls and messing with a few apps. Other people have had even better results than me though, so I might change my rom and try again. (I would usually about this amount of time I would have lost about 70-75% - and yes it was that ridiculous - I had to find something to stop this).
" WCDMA Only"
2:06pm to 11:37pm - (9hrs 31mins) lost 46% battery again moderate use and a reboot
This one might be useful if you live in a place that has low GSM signal like the chap in post #10 as it does give HSDPA - but this is only a suggestion as I cannot test it in Iceland. Anyway
" WCDMA preferred"
6:02am to 2:51pm - (8hr 49mins) lost 41% battery this time with less use that the WCDMA use and no reboots.
=============================
Conclusion: (For me anyway)
SO my preference is GSM auto (PRL) some people have got some excellent results with this. You may, however, require one of the other options depending on your service provider signals.
===========================================
EXTRA OPTIONS :
Other settings you can change: (You may have tried this already)
If you don't get GSM auto (PRL) then if you press the menu button on your phone in the 'phone information' page and select 'radio band', you may be able to change it to Automatic or one of the other settings and then you might get GSM auto (PRL).
Available Radio Bands * You may get others depending on the radio you have installed, but I haven't confirmed this*
Automatic
EURO Band
USA Band
JAPAN Band
AUS Band
AUS2 Band
There are other settings there that I haven't messed with, maybe someone with more knowledge may be able to help
Thanks to those who found out what PRL stood for, I will try to update this info in the instructions soon.
========================
I think the reason this works is because it prevents the phone from constanly looking a round for various networks types as it I did notice that the Cell standby time is always high and using this method the cell can standby without constantly searching for a signal thereby wasting power. ALso using this method my "Awake time" is a LOT LOT lower than my "Up time" - about 1200% less (is that right 12 times lower (Up 12hrs - Awake 1hr) ?) - before this the two times were most of the time the same and some times slightly lower. - I'm sure someone will let me know if this theory is incorrect - and I'm open to and welcome that.
This is my experience you can read other peoples who have achieved a lot better than me, and I'm glad I spotted this and let you guys know. (Those who are saying that you've known about this test menu thanks for letting me know that you knew about it before, but a lot of other people didn't know about it. ALso I don't think people have used this as a tool for increasing battery in the GSM section of the forum. As I mentioned at the top of this post I noticed it in the CDMA section as a way of increasing battery performance. - credits to them for thinking it up in the first place.) -
All I am saying though, is to test it out yourself.
.
.
Just tried this. If it works i'll kiss you.
petsasj said:
Just tried this. If it works i'll kiss you.
Click to expand...
Click to collapse
Well in that case I don't know whether I want it to work now, LOL, unless you're a fit babe.
I went back to 1.5 for battery problems, let me know if it works so i can go to 2.1 roms
This is just using 2g instead of 3g, isn't it?
xangma said:
This is just using 2g instead of 3g, isn't it?
Click to expand...
Click to collapse
Like I said in the first post GSM (auto) PRL gives you 3g/hdspa but not as brilliant battery as GSM only, but is better than before.
I am now unplugged from fully charged. Will report back in the morning and throughout the day to let you know if this works.
About PRL, here's what some telecom website says:
The term PRL actually refers to file stored in your phone. This file directs the phone to find alternative networks to operate on when the primary operator cannot be reached. Updating the PRL will store in the phone which are the most up to date, current networks to operate on. In order to operate on another carrier’s network your primary service provider must have a roaming agreement with other carriers.
Almost all phone carriers, such as Oxygen, Locus, Cingular, Verizon, etc. have roaming agreements with other major service providers.
Click to expand...
Click to collapse
So I guess it's useful?
Suppose so.
I am on a fairly small operator in Iceland and my phone started roaming when I did this.
I lost 3G connection and went over to Edge...
Switched back to the WCDMA Preferred.... My provider has a little limited coverage but has no roaming charges on the GSM network.
Any ideas what setting I should use for my phone other then WCDMA preferred
Yea mine is on Wcdma preferred when i go into it. Im on t-mobile uk. Ive left it for now as dont really know how long this battery is lasting. Going to give it a few days to see an average
skimminstones said:
Yea mine is on Wcdma preferred when i go into it. Im on t-mobile uk. Ive left it for now as dont really know how long this battery is lasting. Going to give it a few days to see an average
Click to expand...
Click to collapse
I'm on T-Mobile UK and GSM auto (PRL) gives me 3g/H and GSM only gives me gprs. Like I said, both give me loads of battery time (GSM auto PRL is a bit less than GSM only though).
Interesting, I may have done this accidentally a few days ago...
I just checked and it was already on GSM auto PRL, I'd changed this in my build.prop last time i was fiddling:
ro.telephony.default_network = 0
I thought that would give me wcdma preferred but apparently not...
I'll have done your tutorial ... will wait till end of day what happens
Definitely helped battery life.
Thumbs up!
In fact i can be wrong, but this tip only disable 3G access... only GSM and Edga.. so it save some battery for sure.. but you will navigate slower if you have a real 3G or 3G+ access.. am i wrong ?
Ciao
Fred
Surely this does the same as the button in the options to just use 2G?
frederikk said:
In fact i can be wrong, but this tip only disable 3G access... only GSM and Edga.. so it save some battery for sure.. but you will navigate slower if you have a real 3G or 3G+ access.. am i wrong ?
Ciao
Fred
Click to expand...
Click to collapse
Correct me if I am wrong, but isn't HSDPA faster than 3G?
source: http://en.wikipedia.org/wiki/High-Speed_Downlink_Packet_Access
in which case you would get your faster browsing using GSM auto (PRL) - giving you HSDPA. I certainly get a H showing at the top of the screen while browsing and it isn't constantly connected when I'm not browsing, which it was doing (connecting and disconnecting all the time) before I chose this setting, and thereby my battery life was extended a lot.
Edit: Just try it - if it doesn't work just put it back to your original setting, it has worked for me - There are other settings in there but I have not tested them out yet.
btdag said:
Surely this does the same as the button in the options to just use 2G?
Click to expand...
Click to collapse
It may be, but not if you choose GSM auto (PRL) - also make sure you have the correct APN settings from your service provider. I did notice that the standard APN's on the phone have always been a little different from the ones on the T-Mobile UK website.
This is not a fix for the battery issues in 2.1 roms, althought it may help as 3g doesn't use the same amount of battery as 2g. But i think everyone knows that anyway. Much easier having the 2g/3g toggle on the home screen and changing it to 2g only when you are not using the web browser etc
ps: before people say other wise this menu has been known for ages and every rom I use is always on GSM.

Use only 2G networks.

I have a problem with setting android to only use 2G networks. I can tick an option under settings "Use only 2G networks" but after i leave the settings menu it gets "unticked" again threfore i,m constantly on 3G which wouldn't be a problem but in the areas where there is no 3G signal android loses signal and wont connect to 2G network. I can turn off 3G under winmo tof orce android to only use 2G networks but it takes time. My question is can anyone successfully setup their android to use only 2G networks?
Same Problem
I´m having the same problem and for me it´s worse because it drain my battery really fast (don´t last more than 4 hours).
Could somebody please fix it as soon as possible because this way is really difficult to use android as main OS.
When I put a Sim Card that doesn´t have 3g I don´t have this battery problem.
I hope somebody could help me with this problem.
could someone please look into this? 3G kills my tilt realy fast too. this is the only thing stoping my from using android as my main os.
odz said:
could someone please look into this? 3G kills my tilt realy fast too. this is the only thing stoping my from using android as my main os.
Click to expand...
Click to collapse
Try this:
$ su
# rwsystem
# nano system/build.prop
Find the part that says something about default_network=0. Try changing it to 1. Save with dpad-center+x, then y and enter.
# rosystem
Restart your phone to have it take effect. I'm currently trying out the value 3 which is "use GSM or WCDMA, whichever provides the strongest signal" and it seems to work better for me. Before I often had switched to Roaming after calls and somethings loosing connection completely, but I have only tested it for a short time so I'm not 100% sure if it helped or not.
Next release will include scripts to change this and some other things easily.
Oh, and the value 1 is supposed to be "GSM only" so it might help.
kallt_kaffe said:
Try this:
$ su
# rwsystem
# nano system/build.prop
Find the part that says something about default_network=0. Try changing it to 1. Save with dpad-center+x, then y and enter.
# rosystem
Restart your phone to have it take effect. I'm currently trying out the value 3 which is "use GSM or WCDMA, whichever provides the strongest signal" and it seems to work better for me. Before I often had switched to Roaming after calls and somethings loosing connection completely, but I have only tested it for a short time so I'm not 100% sure if it helped or not.
Next release will include scripts to change this and some other things easily.
Oh, and the value 1 is supposed to be "GSM only" so it might help.
Click to expand...
Click to collapse
Kalt, should we change this "ro.telephony.default-network=0"? to "1"
If so, it didn't work for me . I'm still on 3G.
-Arturo- said:
Kalt, should we change this "ro.telephony.default-network=0"? to "1"
If so, it didn't work for me . I'm still on 3G.
Click to expand...
Click to collapse
Yes that's the one. Well, getting information about the settings in build.prop isn't easy. I'm don't know if the information I found was a fact or just a guess.
kallt_kaffe said:
Yes that's the one. Well, getting information about the settings in build.prop isn't easy. I'm don't know if the information I found was a fact or just a guess.
Click to expand...
Click to collapse
Kalt does this issue also occur while running Android from Nand?
HELP!!!
I have tried everything here and still no 2G. I love android but battery life sucks. There has to be a way to force 2G all the time. 3G is great but if batterylife will suffer so badly I want to turn it off perminently. Does anyone know how to do this? I'm using VaniljEclair RLS7c and I have been messing with the scrips in the update and still nothing after reeboot.
Takiyon said:
I have tried everything here and still no 2G. I love android but battery life sucks. There has to be a way to force 2G all the time. 3G is great but if batterylife will suffer so badly I want to turn it off perminently. Does anyone know how to do this? I'm using VaniljEclair RLS7c and I have been messing with the scrips in the update and still nothing after reeboot.
Click to expand...
Click to collapse
I have tried everything too with almost all builds (1.6 2.1 and 2.2). My opinion is that ro.telephony.default-network command do not work on Kaiser. If ro.telephony.default-network is removed from build.prop nothing happens. Maybe TelephonyPprovider.apk is something to do with 2G 3G switching.
Bump... Please someone help us!! There has to be some hack we can try.
Please help us!!!
I agree,
Would be great to be able to force certain networks. If you look at the power usage/ per network the faster the network the more power it consumes. I'd like to be able to by default use the low speed and switch it to fast when I'm really using the phone. My EVO has a 4G widget switch. If it didn't the phone would be worthless to me as 4G in my area is not great. 2hrs 4G on (with no 4g network) = -40% battery... Love to do the same for 3G as that would save "about" 20% more battery life alone. I might get a whole day of use without charging...
-Arturo- said:
I have a problem with setting android to only use 2G networks. I can tick an option under settings "Use only 2G networks" but after i leave the settings menu it gets "unticked" again threfore i,m constantly on 3G which wouldn't be a problem but in the areas where there is no 3G signal android loses signal and wont connect to 2G network. I can turn off 3G under winmo tof orce android to only use 2G networks but it takes time. My question is can anyone successfully setup their android to use only 2G networks?
Click to expand...
Click to collapse
Very simple. You use file follow. You install it,only mark or unmark for 3G or 2G. I'm from Vietnamese. I speak E not very well. I'm sr if you don't undertand
looks like this is only for 3g-2g data connection.Discussion is about GSM -CDMA network
pro_hvtc said:
Very simple. You use file follow. You install it,only mark or unmark for 3G or 2G. I'm from Vietnamese. I speak E not very well. I'm sr if you don't undertand
Click to expand...
Click to collapse
As far as i know apndroid disables both 2g/3g connections and we only need to block system from using 3g connections leaving 2g still connectable.
Has anybody seen this before?
http://www.android-cellphones.org/android-motorola-droid-tricks-disable-3g.html/
I get the settings, but the problem is that I can't choose any - no matter what I choose it stick to "Unknown" type..
milanche said:
Has anybody seen this before?
http://www.android-cellphones.org/android-motorola-droid-tricks-disable-3g.html/
I get the settings, but the problem is that I can't choose any - no matter what I choose it stick to "Unknown" type..
Click to expand...
Click to collapse
I've tried that a while ago and it didn't work for me.
I've bin going thru htcgeneric-ril.c (source of libhtcgeneric-ril.so), provided in another topic and noticed this lines:
Code:
switch (rat)
{
case 0: at_rat = "1,2"; break;/* Dual Mode - WCDMA preferred*/
case 1: at_rat = "0"; break; /* GSM only */
case 2: at_rat = "2"; break; /* WCDMA only */
}
Could there be a solution lurking in those lines to ongoing 2G/3G switching problem on Kaiser devices with Android?
Those look like the settings from the phone information screen in testing, it's certainly the right area to be looking in.
Question: who's gonna be brave enough to hack htcgeneric-ril.c and recompile that lib?
I already asked n2rjt to do it, if it's possible - still waiting for his reply.

Slow HSDPA Data Connection, Froyo 2.2

When I was using Android 2.1 on HSDPA I could get 1.5mbps
But now since using Froyo 2.2 I can only ever get a max of 0.5mbps no matter where I am.
I'm on O2, could it be the APN settings are wrong?
I'm using a custom ROM
Official 2.2, with: busybox, old A2SD+, OpenVPN (TUN), EXT4 support, 802.11N
Click to expand...
Click to collapse
But I have tried a few Froyo custom ROMs all with the same problem
Does anyone know the reason why I can't get faster than 0.5mbps on 2.2 while on 2.1 I could get 1.5mbps?
Thanks
that sounds like a connection issue as in it connects to one network on Froyo and a different one on Eclair. Do you see any difference on the signal bar indicators?
do you know if the APN Settings are different between roms?
jamesmcuk said:
that sounds like a connection issue as in it connects to one network on Froyo and a different one on Eclair. Do you see any difference on the signal bar indicators?
do you know if the APN Settings are different between roms?
Click to expand...
Click to collapse
Signal bars seem the same, and using the same APN Settings, got them of the O2 website and input them manually.
where are you getting your stats from?
jamesmcuk said:
where are you getting your stats from?
Click to expand...
Click to collapse
Used a speed tester from the market
well using virgin media in a crappy signal area i got 355kbps down and 115kbps up on froyo on mobile net. are you sure you didn't set up you old rom to use your wifi and you have now flashed and are using only the 3g connection. Mine is 3 times faster too if i use the wifi!
jamesmcuk said:
well using virgin media in a crappy signal area i got 355kbps down and 115kbps up on froyo on mobile net. are you sure you didn't set up you old rom to use your wifi and you have now flashed and are using only the 3g connection. Mine is 3 times faster too if i use the wifi!
Click to expand...
Click to collapse
It uses wifi all the time while at and 3g when out
I cant see how a wifi connection could be restricted any one have any ideas pls cos this is beyond me!
jamesmcuk said:
I cant see how a wifi connection could be restricted any one have any ideas pls cos this is beyond me!
Click to expand...
Click to collapse
With wifi I can get 8mbps so its no problem.
It's only HSDPA were i'm limited to 0.5mbps
Well having no exp of this or anything the only thing i can find is this, i hope it helps you.
all the best
James
I had the problem where I was receiving very slow speeds, but on 2.1 I was getting about 2mb dl.
What I did was check my build.prop in the /system/ folder and added the lines
ro.ril.hsxpa=2
ro.ril.gprsclass=12
this made my browsing speed go straigt back to normal. The market is also fast again. (if you are in the US, use 1 and 11 instead)
All you have to do is use notepad++ to edit the build.prop file with these lines. Add them near the lower half of the file. Then just
adb remount and
adb push (c:/whereever the build.prop is) /system
adb shell reboot
I am going to add these lines:
ro.media.enc.file.format = 3gp,mp4
ro.media.enc.vid.codec = m4v,h263
ro.media.enc.vid.h263.width = 176,352
ro.media.enc.vid.h263.height = 144,288
ro.media.enc.vid.h263.bps = 64000,800000
ro.media.enc.vid.h263.fps = 1,30
ro.media.enc.vid.m4v.width = 176,352
ro.media.enc.vid.m4v.height = 144,288
ro.media.enc.vid.m4v.bps = 64000,800000
ro.media.enc.vid.m4v.fps = 1,30
I suspect that I will be able to watch my camcorder files properly now. I haven't tried this yet but I will update with the result.
edit: All of my video recordings and other clips now work
Good luck
Thanks may give that a try.
Don't understand why this problem has occurred since I'm using the official HTC Rom
Also have the same issue on O2 since updating, slow speeds and eratic data connection. flips from H to G much more often.
Baseband : 32.43.00.32U_5.09.00.20
Not sure if this was the same version before the Update i was on a Stock O2 rom 2.1. but debranded and took the OTA update for 2.2
Facebook , Weather and Mail widget all need refresh clicking several times before they find updates (Maybe because of the slow connection??) .
Flash lags the phone almost to a halt. (not related to the radio) and most of the speed test sites use flash so i am not sure if this affects my results but the browsing time seems considerable slower even on non flash sites(flash disabled).
I am trying to avoid going back to a stock o2 rom, is it possible that this is somehow tweaked for their network ?
I am also reluctant to do the Bootloader downgrade which i think i would need to do to revert to the stock o2 rom ...is that correct ?
Many thanks in advance.
@jamesmcuk
I am assuming this would require root ? This would also mean downgrade of bootloader i think :-( it hurts
i'm on orange and a rooted non ota froyo rom
get alot of the G to H changing too but when H is lit it is very very fast
surfing is quicker on the network than on a wifi with 10meg speed
speed does seem erratic tho, maybe a reson of the recent orange 3g network downtime today and official orange confirmation of 3g problems

Disable HSPA

Hey I just came from Galaxy S and there is a way to disable Hsdpa in there which improves battery life amazingly....
I was wondering if there is a way to do that in Desire? (for my city 3g speeds are faster than hspa for some reason)...
Also is there a way to select which band the phone is connecting by 850 vs 1900 ... or to see what it is using ?
any help would be appreciated
It's in the settings someone in network
There is also a widget to totally disable mobile internet which I use to save battery
Sent from my HTC Desire
Go to Settings > Wireless & Network Settings > Mobile Networks...
That's pretty much what you can do with the Desire as far as mobile networks are concerned. GSM phones normally switch to different frequency bands depending on where they are located and in the Desire I don't think you can select which one to go for (besides it's an unnecessary feature in my opinion)...it just does it on its own. Maybe there is an app around that let's you do this?...
As for viewing which band you are on....you can't do it on a standard ROM but there might be custom ROMs or an app that let's you do this.
Update: Some apps that might interest you => 4G, CDMA, GSM & Wifi Map Viewer from Sensorly.com
=> Open Signal Maps Beta from Staircase 3, Inc.
=> Antennas from mpoly
=> Quick Settings (maybe..)
mmm none of those do anything like it...
all those either just shut off data or turn it on... im not sure if anyone has used the galaxy s
http://forum.xda-developers.com/showthread.php?t=837716
this is what im talking about... saves the phone a LOT of battery by just forcing it to use 3g instead of hspa ...
i think developers can prolly make more sense of it.. i mean if they have a way.. there has to be one in other devices ...no?
danial.aw said:
mmm none of those do anything like it...
all those either just shut off data or turn it on... im not sure if anyone has used the galaxy s
http://forum.xda-developers.com/showthread.php?t=837716
this is what im talking about... saves the phone a LOT of battery by just forcing it to use 3g instead of hspa ...
i think developers can prolly make more sense of it.. i mean if they have a way.. there has to be one in other devices ...no?
Click to expand...
Click to collapse
Ah, so you have a Galaxy S.....unfortunately, this is a HTC Desire forum, so it would be better if you posted this in the Galaxy S forums. You may not find the answers you are looking for here as this forum mainly handles a different device to the Galaxy S.
What I said before is only applicable to the HTC DESIRE. I thought you switched to a Desire when you mentioned you came from a Galaxy S, but I was mistaken. The apps I mentioned as mainly for monitoring the 4G, 3.5G & 3G (i think 2G too) coverage. If you are looking to switch between them (i.e. turn HSDPA off and turn 2G on) I am sure there is a way to do so...on the Desire this can be done through the Mobile Networks settings...
And no, I'm not familiar with the Galaxy S....
no i had the galaxy s... (i posted that for reference as to how its done on that)...
and ya those apps just toggle just 2g vs 3g...
im looking for a umts vs hspa toggle... (3g vs 3.5g).... because umts takes way less battery than hspa does...
tried to mess around in the band setting screen but couldnt find anything
SOLUTION
what you need is to edit /system/build.prop file
here are my settings:
ro.ril.hsxpa=0
ro.ril.gprsclass=12
ro.ril.hsdpa.category=1
ro.ril.hsupa.category=1
after doing the and couple?... of restarts H icon changed to 3G and it really does save battery significantly and speed is pretty much enough for browsing or email
would have thought if battery life was vital then you'd disable data completely tbh
This is somewhat network dependent. Here in Sweden I know of one network that will have you at HSXPA (H) as soon as it is possible. My network on the other hand will set to 3G when WCDMA is detected and set to H only during data traffic.
And then G if only GSM is detected.
I disable data via widget if I want to save power even further. Not that it has that much impact. There is a setting under wireless and network > mobile network at the bottom : ativate mobile data (this is translated). This setting will force the data connection to be active even if unused. You have to experiment here what setting is best for your network. On my network, if I remove the tick here (data connection will let go if not used and reconnect when needed) my battery will drain quicker. Providers with other policies might give different result.
found something good http://forum.xda-developers.com/showthread.php?t=909458
apparently xda is very strict on my posting etc. my fourth try trying to post something to help out..
liquidribs said:
found something good http://forum.xda-developers.com/showthread.php?t=909458
apparently xda is very strict on my posting etc. my fourth try trying to post something to help out..
Click to expand...
Click to collapse
Thank you! thank you! thank you! For bringing thing thread back from the grave.
heyjoe66 said:
SOLUTION
what you need is to edit /system/build.prop file
here are my settings:
ro.ril.hsxpa=0
ro.ril.gprsclass=12
ro.ril.hsdpa.category=1
ro.ril.hsupa.category=1
after doing the and couple?... of restarts H icon changed to 3G and it really does save battery significantly and speed is pretty much enough for browsing or email
Click to expand...
Click to collapse
Thanks! Very useful! For me it was only necessary to change the "ro.ril.hsxpa=0" line, then do a couple of restarts (to make it clear, a single restart wasn't enough, HSDPA was disabled only after the second restart for me).

[TUT] optimized settings with ROM-mods

I'd like to encourage users in this forum to compile a list of tipps and tricks related to modded roms in here.
I stumbled across some very useful information which gets lost amongst the many threads and postings. People seem to miss these useful informations and keep asking questions aaa. So in the end modded roms are being criticized although the correct choice of settings would have done the trick.
So for the beginning I throw in these:
[Battery related]:
don't use "pocket mode" (used to make the desire ring louder while buried deep in your pockets) - I assume that (use of) sensors drain the battery.
[Memory related]:
remove app "Plurk": some roms already removed this app, some still have it (under gingerbread - correct me if I am wrong - it is KNOWN to consume memory)
[Network performance / Battery drainage]:
type in dialer:
*#*#4636#*#*
then select "GSM auto prl" (default: WCDMA preferred)
caution: this might be related only to some carriers - in germany it is working fine.
update: EXPLANATION:
"GSM Only - Only uses in G/E and never switches to 3G/H. Should have minimal battery usage.
GSM Auto (PRL) - Automatically switches between G/E/3G/H based on the PRL (Preferred Roaming List) for a provider on your phone. Not supported by all providers and may not be supported in certain regions. Should have moderate battery usage since it uses a predefined list to switch.
WCDMA Preferred - Automatically switches between G/E/3G/H based on the best/strongest signal available and is supported by all providers. Has high battery usage since it constantly scans the network for the strongest signal to switch.
WCDMA Only - Only uses HSDPA and will not switch to G/E/3G even if the HSPDA signal is too low. Use this only if you use your phone in a area with good coverage. Should have moderate battery usage."
found there: http://forum.xda-developers.com/showthread.php?t=682662
-----------------
So I hope you guys find these information useful and we can put up a thread with good informations. Might even help the devs keep repeating themselves...who knows? ;-)

Categories

Resources