yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] hardcore:
Hi people.

One way to get longer battery life is to disable HSPA and just use 3G. 3G (UMTS) is not as slow as EDGE/GPRS but doesn't use as much power as HSPA.

Here's a quick comparison of *typical* download speeds:

GPRS: 48 kbit/s, EDGE: 150-200 kbit/s, 3G: 384 kbit/s, HSDPA: 1000 kbit/s

After some searching, I've found a method that actually works for our Galaxy S:

Go to the phone dialer pad and enter this code: *#301279#

Click [2] CHANGE HSPA REVISION

Click [1] RELEASE 99 (HSPA OFF)

Then you should see something like:

CHANGE_R99

HSDPA OFF, HSUPA OFF

Done!

Press the BACK button to exit, or press MENU button then END.

The setting should take effect shortly after you exit the menu. To be sure that the setting take effect, toggle Flight/Airplane mode.

You could store that number in your phone book or speed dial for a quick way to toggle HSPA.

The setting

STAYS ACROSS REBOOTS!

If you want to enable HSPA again just go back to the same menu and choose [3] RELEASE 6 (HSDPA/HSUPA).

Just tested it with the XXJPP radio and it really works.

Longer battery life at last! :)

EDIT: Deleted the earlier method of using local.prop / build.prop which doesn't work on the Galaxy S. Ignore posts #1 to #15 as they are regarding the earlier method.
[Galaxy S I9000 Android Development] ashwinds:
Very interesting - I have 3G shut and use 2G for precisely this reason. I always presumed the drain was because of the WCDMA mode - will definitely try this.
[Galaxy S I9000 Android Development] hardcore:
Yes we want to achieve something like just using 2G, but 2G on its own is pretty slow, and on 2G, sometimes while you are transferring data, people cannot call you.

Moreover in certain countries like Singapore where they don't have EDGE, but only GPRS and 3G/HSPA... setting the phone to 2G mode makes mobile data so slow, its virtually unusable.
[Galaxy S I9000 Android Development] ashwinds:
I agree... 2G is a ridiculous compromise - but necessary given the rapid drain. Anyway, tried the patch and I have:

# getprop | grep ro.ril

[ro.ril.hsxpa]: [0]

[ro.ril.gprsclass]: [12]

But the indicator still shows the H - does that mean anything? I expected to see 3G instead.
[Galaxy S I9000 Android Development] RyanZA:
AFAIK the power required for the radio is linked 100% to connectivity to tower, and swapping between 3G or HSDPA should have zero effect on battery life. Just disabling HSDPA really shouldn't affect power supply to the radio on the device.

Of course if someone could do some heavy testing so we could know for sure, that would be great. :D Would need to be some very good testing, perhaps with a multimeter? Because if there is any difference in power draw, it's going to be very hard to make out in regular usage.

(You will still see the H at the top, because you are really still connecting using the hsdpa radio (it's the same radio as the 3g one), and the tower you're connecting to supports hsdpa. But your downloads speeds should be less.)
[Galaxy S I9000 Android Development] ashwinds:
Thats kind of what I was worried about - my understanding is that 3G/HSDPA need to connect to more than 1 tower concurrently and stay connected.

Just the warm feeling when I switch to WCDMA makes me wary :)

Heat => Energy => Battery Drain :P
[Galaxy S I9000 Android Development] hardcore:
Me too, indicator says H but speed should be slower. 3G (non-HSPA) speeds top out at around 384kbit DL / 64kbit UL.

I'm quite sure that limiting it to 3G instead of HSPA speeds will save significant battery, because HSDPA/HSUPA use multiple radio channels to get those high speeds. It's sort of like MIMO, but not really. More channels = more power required.

And I think one of the reasons why the XXJPP modem is a battery killer while surfing, is probably because it supports faster HSPA speeds than the older modems.
[Galaxy S I9000 Android Development] hardcore:
Darn. It doesn't seem to limit the speed for me (at least not from /data/local.prop). I'm gonna try to put the no-hspa values into /system/default.prop and /system/build.prop and see what happens.
[Galaxy S I9000 Android Development] puiuflorinel:
Tried myself... no luck...

Phone still use HSDPA/HSUPA...

Tested with build.prop - again no luck...
[Galaxy S I9000 Android Development] hardcore:
Darn. It doesn't work even if I put it in /system/build.prop.

Maybe those props only work for HTC radios. Would be great if someone could figure out whether the Samsung radio has a similar setting.
[Galaxy S I9000 Android Development] ashwinds:
Tried it with setprop... doesnt work - makes me wonder how local.prop worked...

# getprop | grep ro.ril

[ro.ril.hsxpa]: [0]

[ro.ril.gprsclass]: [12]

# setprop ro.ril.hsxpa 2

# setprop ro.ril.gprsclass 12

# getprop | grep ro.ril

[ro.ril.hsxpa]: [0]

[ro.ril.gprsclass]: [12]
[Galaxy S I9000 Android Development] hardcore:
Past a certain point in the boot phase, I think certain props cannot be edited.
[Galaxy S I9000 Android Development] tonyjansen:
The Samsung way of doing this would probably involve assigning CONSTs to the props in some unexpected places. Been going over the source for the last two weeks and it aint pretty. Samsungs' QA department seems to rather not be bothered by Android code.
[Galaxy S I9000 Android Development] hi_bye:
I need high speed

I am in need of high speed. Could anyone suggest how to do it on a rooted SGS 2.2

Can I make a local.prop file with the below specification and save to /data/local.prop on the rooted SGS 2.2 (as the HSDPA is 7.2 Mbps & HSUPA is 5.6 Mbps):-

ro.ril.hsxpa=2

ro.ril.hsdpa.category=7

ro.ril.hsupa.category=6

ro.ril.gprsclass=12

ro.ril.enable.3g.prefix=1
[Galaxy S I9000 Android Development] hardcore:
These commands don't work on the sgs. Just use the xxjpp modem, it's fast.
[Galaxy S I9000 Android Development] hardcore:
Good news! I found a setting that works from the service menu. Details in the 1st post.
[Galaxy S I9000 Android Development] titooo7:
Thanks hardcore! Its really useful. Hope chainfire can implement it on supperpower app. So its finally tested that 3g spends less battery?
[Galaxy S I9000 Android Development] Laum:
Nice, this worked for me. Testing now how this affects to battery life.

Change required a reboot to properly activate. Maybe just flight mode off/on works too.
[Galaxy S I9000 Android Development] dupel:
I prefer speed, cince 3g can suck pretty hard here in london, whereas H is very-very fast.
[Galaxy S I9000 Android Development] Adevem:
I'm sorry but I'm insanely confused lol.

In Singapore, we have GPRS(G), HSDPA(H) and 3G(3G) right? correct me if I'm wrong!

so... what is HSPA lol. I've done some Googling but I'm still crazily confused, any help is appreciated. Thanks!
[Galaxy S I9000 Android Development] mainmain820000:
how can i turn on/off hsdpa/3g ? if i want use which one of them.there's application that can easily click on off button swicth to use which one we want ?
[Galaxy S I9000 Android Development] justrome0:
Too much speed decrease for me.

I own a galaxy S2 for a week.

Here is my speed result with 3G vs HSPA.

All the 300+are 3g all the 3000+ are hspa.

I spend most of the time browsing, and even if the connection itself saves battery, while I wait for pages to load the screen does not save battery.
[Galaxy S I9000 Android Development] CorruptedSanity:
How did you turn off HSPA and keep only HSDPA on?
[Galaxy S I9000 Android Development] martynas900:
Trough galaxy s settings app i believe

Sent from Galaxy S ICS
[Galaxy S I9000 Android Development] CorruptedSanity:
Whats trough?

did you mean through?

Still couldn't find it.

A link to it please?

thanks.
[Galaxy S I9000 Android Development] Amit85:
In my mobile *#301279# is not working.
[Galaxy S I9000 Android Development] Zillinium:
Battery Drain & Network Info​

The main reason for battery drainage when using different networks is the constant searching for a tower ( reception ) along with excessive data usage... Let's look at some examples of loading a 1mb image, just rough examples to get the idea.

|Network|•|SPEED|•|ON TIME|•|Tower Searches p/H|

| 2G (Edge) |•| 56kbps |•| 120sec |•| 30 |

Time to load increases "on time", screen uses more energy to load the image than on 3G but it also lowers the ariel power consumption in a time based comparison, My 2G reception is marginally better where I'm located so my modem doesn't need to check for new towers as often as on 3G therefore my phone will search for towers and consume battery power aroun 40% less than on 3G but the increased ON time of my screen, cpu, ram and network will consume more battery than 30 tower searches consume...

| 3G |•| 2Mbps |•| 0.5s |•| 75 |

Now my 3G is loading the same image in a fraction of the time, while using more power to communicate with the tower. The trade off usually focusses more at ON TIME, Because the Cpu, Screen, Ariel and whatever else will need to all consume more power per load.

If you take your daily usage in to consideration,

Let's say that you use your device on standby more than you do seeing the screen turned on, Your device will search for towers less often and consume less power, but what if you use it more than you don't... Using the screen and cpu to load something 5 times slower will cost you more power than you save.

I could clarify some of this further or even proof read it, but you get the idea.. It all depends on the individuals needs and usage.

P.S Thanks everyone here, i managed to use this info to lock my network to 4G and Edge for internet, while still using 3G for calls ( no VOLTE support ) VOLTE, Voice Over LTE.

I used the build.prop

ro.ril.hsxpa=0

​
[Galaxy S I9000 Android Development] oswade:
Wiki tells me that HSPA is the generic term for the two protocols HSDPA and HSUPA. http://en.wikipedia.org/wiki/High_Speed_Packet_Access

So "H" is high speed data, but the technology used may differ in different regions :)
[Galaxy S I9000 Android Development] authmn:
dont need to care so much.

G=slow, better battery

3G= Ok speed

H = Fast Speed, worst battery life

But... 3G and H is almost same speed for my case.
[Galaxy S I9000 Android Development] omaga:
I agree i prefer speed too. What is the point to buy a phone with highspeed data connection if u dont use it? And second if u have a dataplan thats support high speeds its just very strange if you dont use it because you want better batterylife. And i think you dont save battery just by disable hspda, the battery drain very fast too if you are in area where u have or are between edge and 3g network the phone searching for the best signal all the time and drains your battery
[Galaxy S I9000 Android Development] hardcore:
HSDPA = High Speed DOWNLINK Packet Access

HSUPA = High Speed UPLINK Packet Access

HSPA = High Speed Packet Access = HSDPA + HSUPA

Yes in Singapore we don't have EDGE, so when the phone drops to 2G it's GPRS only which is super slow.
[Galaxy S I9000 Android Development] Adevem:
thanks for the clarification. lol.
[Galaxy S I9000 Android Development] titooo7:
@ those who prefer speed: then simply don't use that trick ;) Just because it isn't useful for you it doesn't means it will be the same for the rest of us. Writing a comment to say that you dont need it it's not very constructive...
[Galaxy S I9000 Android Development] omaga:
Read here about hspda hspa hspa +

http://en.m.wikipedia.org/wiki/HSPA?wasRedirected=true
[Galaxy S I9000 Android Development] hardcore:
3G is not slow. It is about 384 kbit/sec. Although HSDPA can theoretically go to several Mbit/sec, you will be lucky to get 1 Mbit/sec.

I think we don't really need HSDPA unless u are doing tethering or heavy downloading - in that case u can just switch the phone back to HSPA mode.

But the power difference is huge. Try it and see.
[Galaxy S I9000 Android Development] omaga:
;) offcourse..its very nice to use the net with galaxy when your speed is almost the maximum of the phone 7.2 max speed.
[Galaxy S I9000 Android Development] brunes:
Try streaming YouTube HD over 3G....

For ppl with rapid battery drain - are you sure it is not your Outlook email not being set to push? See my thread here http://xdaforums.com/showthread.php?t=840093
[Galaxy S I9000 Android Development] corgar:
Why i have to stay away from reboot?
[Galaxy S I9000 Android Development] omaga:
Offcourse you can manage with 384 3g speed. But if you have as i have 6.2 meg speed (could be more but galaxy support only 7.2) you realy don't change that. In my another phone i have only 384 speed and its quite ok
[Galaxy S I9000 Android Development] omaga:
Good point
[Galaxy S I9000 Android Development] titooo7:
I really don’t understand why people keep commenting why it’s not useful for them. If you don’t like it don’t use it!

I understand that maybe 3G isn’t enough for you because you download or watch youtube videos or whatever reason, but you should understand that not everybody has the same phone usage than you... There is a lot of people who don’t download or watch youtube unless they are connected to a wi-fi network.

I think that an app that let you switch between 3G and HSDPA would be welcome by a lot of people who use the webrowser a lot (so 2G is not an option), but don’t watch youtube and only download small files from forums or the market. If you occasionally want to download any big file, then you can switch quickly to HSDPA to do that download.

PS: youtube app doesn’t stream hd content, but hq (unless you are using a modded youtube app)
[Galaxy S I9000 Android Development] coldhandz:
Very interesting!:)
[Galaxy S I9000 Android Development] davidf:
Hi,

I think the real issue is having 3g on(hspa is only on during data retrieval anyway), over the last several weeks I switch 3g off when i'm not using it( nothing is sync'd I just do a manual retrieval of email, facebook, weather and twitter a few times a day). The result is instead of charging my phone every second day I charge it twice a week (sunday night and wednesday night).
[Galaxy S I9000 Android Development] corgar:
How about a widget to switch mode?
[Galaxy S I9000 Android Development] droidTR:
this would save time..

Personally I don't use 3G network for Youtube videos.. I prefer to watch them while I am connected to wifi.. So usually HSDPA is useless for me.. but a widget would be nice and will save some time in rare cases..
[Galaxy S I9000 Android Development] hardcore:
Yes, or you could just put the number on speed dial or in your address book.

The change takes effect almost immediately, and if you want to watch youtube HD or otherwise need high speed again, just dial the number and change it back to HSPA.

So far initial tests look very promising: 100 mins mostly idle + 3G only + sync ON, battery dropped 1% (67% to 66%).
[Galaxy S I9000 Android Development] omaga:
@tittoo: the YouTube was only an example. And I for sure understand that ppl has different needs with their phones so you don't need to tell me that. So you can stop this nonsense
[Galaxy S I9000 Android Development] dplate07:
Hey im Singaporean too. Using Starhub, however i still see 'E' on my phone when 3G aint available.
[Galaxy S I9000 Android Development] st4rk:
Dupel... Agreed.. H is tha shiznit!
[Galaxy S I9000 Android Development] Laum:
In some places where HSPA is just barely usable but 3g is fine, the battery goes down VERY quickly when the phone constantly tries to use HSPA but fails. Try using your SGS, for example, in Arabianranta, Helsinki...

Also packet drops occur in those situations. When the phone "decides" to use only 3G in there, all loading is much quicker and theres no packet drops.
[Galaxy S I9000 Android Development] hardcore:
Correction - only Starhub supports EDGE in Singapore. At least M1 and (I think) SingTel don't.
[Galaxy S I9000 Android Development] Taifuuni89:
I tried to put it in mecontact apps widget but when I call thru the widget it gets an error. I think that only way to use this code is manually thru phone.
[Galaxy S I9000 Android Development] hardcore:
You're lucky! Here in Singapore although we do have 7.2 (and even faster) HSDPA, it rarely ever gets to that speed.

Anyhow, I think there could be a compromise value - Option [2] HSDPA Only.

This would still give you fast downloads (HSDPA) but not the faster uploads (HSUPA).

I imagine using HSDPA-Only might not increase the power requirement much over 3G, since the phone is just receiving. HSUPA is probably the biggest power user.

Still need to test it though. So far running 3G only gave me about 1% battery drop after 90 minutes idle with sync on. Gonna try HSDPA (no HSUPA) now.
[Galaxy S I9000 Android Development] hardcore:
I put it in my phone book as "3G HSPA". Then I access it from the Phone dialpad by typing 3-4 (3G).
[Galaxy S I9000 Android Development] ashwinds:
damn cool! Contemplating ditching cyanogen to test this out :D Wtg hardcore!
[Galaxy S I9000 Android Development] Dukerth:
You got it! Thank you man!

For those ppl with stable HSPA connections... congratulations! Take sure I wouldn't use this settings in your situation. But in the world there are still carriers who their HSPA network is very unstable... and this settings is a benediction from sky ;)
[Galaxy S I9000 Android Development] Adevem:
awesome! I'll test all this out tonight, starting off with 3g only! thanks folks for the god speed replies!
[Galaxy S I9000 Android Development] omaga:
Wasn't just what i wrote in my example ? It's the same if the phone is between edge and 3g offcourse there is the same between 3g and hspda the battery drains very fast
[Galaxy S I9000 Android Development] coldhandz:
+1

very fast!
[Galaxy S I9000 Android Development] seraphine:
So I tested this in Subang Jaya, Malaysia -- I ran benchmarks using the Maxis branded Speed Test.

Guess what? Upload speeds are FASTER on 3G only, and download speeds are ... slightly slower.

So much for HSUPA :P
[Galaxy S I9000 Android Development] Laum:
No, not entirely. You can switch 3G off without any fixes but not just HSPA. I was just trying to give other purposes than just battery drain for this fix.

For me automatic 3G/HSPA changing causes also packet drops in some situations. Thats why its nice to have an option to turn off only HSPA and retain acceptable speed.
[Galaxy S I9000 Android Development] hardcore:
Yes. I get that too. The connection is more stable with 3G only with faster upload speeds, at least using the Speed Test app.
[Galaxy S I9000 Android Development] uppon2:
Testing this now Doc ROM 7.6.2 JPO/JPD speedmod kernel i1.2-250hz R2 all tweaks no lagfix
[Galaxy S I9000 Android Development] TheVisitorX:
Hm that's strange. I've tried that and indeed it does work... Phone shows me 3G all the time instead of H but speedtest.net still shows me 2MBit/s and NOT <= 384kbit/s. Same as before...?! Why if 3G = 384kbit/s? And I also got better ping than before...
[Galaxy S I9000 Android Development] hardcore:
You aren't on wifi are u? :p
[Galaxy S I9000 Android Development] TheVisitorX:
No, I'm not on wifi :D. Wifi is "off".
[Galaxy S I9000 Android Development] jeff964:
You can actually use SMODA widget from the market. Very effective..:)
[Galaxy S I9000 Android Development] hardcore:
SMODA turns off mobile data completely, like apndroid. But thanks for the tip, hadn't heard of it before.

This method keeps mobile data on but in a more battery-friendly manner.
[Galaxy S I9000 Android Development] corgar:
asked here http://xdaforums.com/showthread.php?t=775154&page=15

to add a new code in secret codes area.
[Galaxy S I9000 Android Development] petzku:
Thanks!! Works like a charm :) No need to keep my phone at EDGE anymore :)
[Galaxy S I9000 Android Development] Adevem:
just for reference

DO A AIRPLANE MODE TOGGLE to apply the new settings ;D

that's probably why you're seeing speeds from the previous configuration.

my tests have shown in average that for...

connection - download/upload ping

3G - 350kbps / 150kbps 300

H - 3000kbps / 330kpbs 100

even when I've enabled hsdpa only, my upload speeds matches that of with hsupa activated!

maybe someone can try and see if it tallies with mine, about the hsupa and hsdpa part.

man, all these hs stuff is confusing.
[Galaxy S I9000 Android Development] hardcore:
HSUPA should be getting you about 1-2Mbit/s. But in reality, many operators' implementation of HSUPA is in the early stages, and its quite hard to get those kinds of upload speeds.
[Galaxy S I9000 Android Development] glitterballs:
This is all pretty interesting hardcore. I have to imagine that there are some research papers out there, or at least a Master's thesis or something that would look at this. I haven't been able to find anything definitive yet though...

The one thing I saw that might be relevant was a paper from Fujitsu where they compared the energy use of their WCDMA base stations and their HSPA, and WCDMA actually used waaaaay more energy. But, that's the base station, so it may not apply to us at all.
[Galaxy S I9000 Android Development] dclobato:
Really cool! Now, I'll monitor the battery usage :)

Here where I am now there was no change on download speed while on HSPA or 3G: it was around 300Kbps. But I used to have up to 1.2Mbps depending on where I am on the city.

Cheers
[Galaxy S I9000 Android Development] criskelo:
To all the guys

My experience.

I'm using TASKER,

it and set to

at 5 seconds, turns off the screen

turn off the data and thus avoid

that programs are using data

when I do not use mobile

But if you use any email program eg

need to configure an exception.

Thus greatly increase battery life

for me

This is just my experience if anyone is useful comment:D
[Galaxy S I9000 Android Development] tokyogtr:
Too slow in Japan

FYI, am getting 52k download in 3g compared to 1.8mb on HSDPA in Tokyo. Probably better battery life for sure but so slow that you'd probably end up burning more battery when surfing because it takes so long. Good effort though.
[Galaxy S I9000 Android Development] ap27:
When I run the code it says 'Rejected'. Any ideas??

EDIT: Nevermind. Got it
[Galaxy S I9000 Android Development] El-Maestro:
I turned off HSPA and yes I get extended battery life! I just made a speed test, but only with the webbrowser @ speedtest.net so dunno if those results are significant...

Provider: Sunrise (Switzerland)

With HSPA On:

Ping: ~157 ms

DL: ~1.25 mb/s

UL: ~0.12 mb/s

With HSPA OFF (3G):

Ping: ~152 ms

DL: ~0.83 mb/s

UL: ~0.18 mb/s

I'm able to watch youtube hq videos without any problems, buffering is always 2-3 times faster than the realtime playback. So perfect for me ;)
[Galaxy S I9000 Android Development] tokyogtr:
did you toggle flight mode on and off after making the change?
[Galaxy S I9000 Android Development] El-Maestro:
No, should I? :confused:
[Galaxy S I9000 Android Development] Peacemanibk:
I tested all three settings (austria a1):

3G only: ~300kbit down and up

HSDPA only: ~900kbit down ~300kbit up

HSPA: ~900kbit down ~1300kbit up

Everything at least with ±100kbit error but works as it should. I will have a look on the battery drain in the next days if there is a difference for my usage ... :-)
[Galaxy S I9000 Android Development] tokyogtr:
try it and then see how fast it is.... :)
[Galaxy S I9000 Android Development] El-Maestro:
Alright, now it looks quite different :rolleyes: I tested again now with toggling flight mode off & on each times:

Provider: Sunrise (Switzerland)

With HSPA On:

Ping: ~137 ms

DL: ~2.25 mb/s

UL: ~1.13 mb/s

With HSPA OFF (3G):

Ping: ~291 ms

DL: ~0.38 mb/s

UL: ~0.06 mb/s

So I can't watch youtube hq vids anymore without buffering :(

Why do I have to toggle flight mode on & off each time? When I activate HSPA and toggle flight mode on & off and deactivate HSPA again without toggling flight mode again, nothing changes? The phone still consumes the same amount of energy?
[Galaxy S I9000 Android Development] tokyogtr:
because you're still connected to the original tower. flight mode resets your connection and now you're connecting to a 3g only tower. now you're saving power but before i don't think you were. this is why i've gone back off 3g cos it's so damn slow. i don't care about battery life enough to have such slow data access.