yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 7.7 General] C3POID:
Yes I do. google botched PPTP for VPN.

But you need to upgrade (/downgrade) the kernel of your Android device (client), not the server. Or do you run your VPN server on Android??? :D

You can search for "issue 4706" or "android PPTP VPN problem" and you will find a lot of pi**ed people and maybe some answers like kernel version and needed OS version.

I can confirm that it works with kernel 2.6.35 and since GB2.3.7 / CM7! Some say it works fine with ICS, but I found also that higher kernel versions will not work.

And yes, all other plattforms will work fine with PPTP.

A953 Tapatapatapatalk
[Galaxy Tab 7.7 General] williamli1983:
thanks for the info. now for the million dollars question... how do you downgrade the kernel on Android? does this require flashing a new custom ROM? I couldn't really be bothered with custom ROM as I am waiting for the official ICS upgrade notification :P... I guess the furtherest I am willing to go is to root my device and install some replacement kernel (if this is even possible)...

I know linux but my main device is an iPad so I am just too lazy to spend too much time backing up / reinstalling the Android for custom ROM... anyway thanks for your time... ;)
[Galaxy Tab 7.7 General] C3POID:
Yeah, that's it, BUT I would wait - like you mentioned - for the ICS upgrade and try than again.

Or you try another protocoll like L2TP over IPSec…

A953 Tapatapatapatalk
[Galaxy Tab 7.7 General] williamli1983:
L2TP over IPSec was a bit weird too. the server address has to be an internal IP for it to connect, giving it an external IP or domain won't work. God figures! oh well good thing it's not my main device so I won't stress much over it.
[Galaxy Tab 7.7 General] C3POID:
You are lucky, my MS2 is my main device and has a locked bootloader and only a 2.6.32 kernel .

I solved the VPN problem by changing to CM7, which wasn't possible for a long time, and using OpenVPN/SSL now.

Lucky me.

A953 Tapatapatapatalk
[Galaxy Tab 7.7 General] wilsonj:
The Samsung Galaxy Tab with Android includes support for Virtual Private Network (VPN) connectivity. Here we show you, step by step, how to setup a VPN connection.

Add a new VPN connection:

Press the Home icon, press Menu, and tap Settings

Tap Wireless & networks

Tap VPN settings

Tap Add VPN

Select the type of VPN to add (PPTP, L2TP, L2TP/IPSec PSK VPN, L2TP/IPsec CRT VPN)

Fill in VPN details such as VPN name, VPN server, etc (the required settings will depend on type of VPN selected)

Connecting to the VPN:

Press the Home icon, press Menu, and tap Settings

Tap Wireless & networks

Tap VPN settings

The VPN connections you have added are now listed

Tap the VPN you wish to connect to

A dialog box will open asking for your credentials, enter them and touch connect

When connected to a VPN, you will see an ongoing notification in the Status bar on your Samsung Galaxy Tab. If you should get disconnected, you will receive a notification and an option to go back to the VPN settings section.
[Galaxy Tab 7.7 General] williamli1983:
mmm... we know how to setup the VPN here. just saying that the VPN never worked on any PPTP servers I tried
[Galaxy Tab 7.7 General] pinkowl:
I have the 6800 and pptp for me works well over wifi. On mobile, I have the same problem you encountered, meaning while I can connect fine I cannot initiate any data transfer. Hope ICS will fix this problem.
[Galaxy Tab 7.7 General] williamli1983:
thanks for the info. for me (on the wifi only version) vpn won't work on wifi :(
[Galaxy Tab 7.7 General] mailings:
I also have the wifi only version, I connect de VPN, works for a while and suddenly stops transfering data althought the connection appears as established. To make it work again i have to disconnect and reconnect.
[Galaxy Tab 7.7 General] teegee17:
Just for your info - I got a L2TP VPN connection working just fine on my P6810 Wifi-only Tab. Not sure whether it is just the VPN service (AceVPN) I'm using, or whether I was just lucky.

My wifi tab is an import from HK, Kernal version 2.6.36-P6810ZSLA1
[Galaxy Tab 7.7 General] williamli1983:
i didn't spend as much time looking into L2TP on mine as my main vpn servers are PPTP based.... mine also came from HK (well i m living in it right now :P)

hope ICS will be out soon! really want to try chrome :):D
[Galaxy Tab 7.7 General] marksmithbvs:
you should contact to your service provider. they will help you better ;)
[Galaxy Tab 7.7 General] williamli1983:
i m the service provider!

but i also tried a few other providers out there as well. none of them work on 7.7

i just got a galaxy nexus and everything works fine on it.

as mentioned somewhere above this post. it is a bug in the 7.7 code :mad:
[Galaxy Tab 7.7 General] jabbermacy:
Rubbish -- I use it all the time w/ gotrusted...
[Samsung Galaxy Nexus] bradm23:
I am trying to narrow down some battery drain issues and was hoping someone could point me in the right direction. I am going to try a fresh install of AOKP with a full wipe, however I want to only want to install a slim modified gapps.zip without things like gtalk, g+ etc. I want to do this because when i check for partial wake locks using betterybatterystates, I get wakes with GTALK_ASYNC_CONN (two different type)GTALK_CONN, GTALK_AUTH_TOKEN, and the funny part is that I had previously uninstalled GTALK with Tibackup.

Can someone point me int he right direction of how to do this.
[Samsung Galaxy Nexus] danger-rat:
Open up your gapps zip and remove the apps that you don't want. Next, find the install script and remove the install lines for the same apps. Re zip, and you're golden...

apps are under:

/system/apps

install script is under:

/META-INF/com/google/android

I use eStrongs file manager for all the editing and zipping...
[Samsung Galaxy Nexus] joshnichols189:
Or just disable the apps after the install..
[Samsung Galaxy Nexus] bradm23:
Uninstall or disable? If they are different how do you disable?
[Samsung Galaxy Nexus] joshnichols189:
Go to settings and apps and go to the app and you can hit the button to disable the app..
[Samsung Galaxy Nexus] beekay201:
pretty much what he said. did you reboot after uninstalling gtalk?

/* offtopic: and if you can do it for a gapps file, nobody is stopping you from doing it for a rom file.. a personal one i mean. after all, google did ask cyanogenmod team to remove them, so that probably applies to everyone else. */
[Samsung Galaxy Nexus] textshell:
I'd be careful trying to disable the gtalk connection. I think it might be used for notifications by other google services too. (esp. Market i seem to remember e.g.http://xdaforums.com/showpost.php?p=20290926&postcount=2 ).

Anyway the package that provides to low level gtalk infrastructure seems to be com.google.android.gsf in GoogleServicesFramework.apk. Now if this doesn't sound scary enough.

I don't think getting rid of gtalk is easy without getting rid of many other google services.
[Galaxy Tab 8.9 General] qhinton:
My tablet is consistantly losing internet 8-10 times daily. The signal is strong but greyed out. To regain connection I have to turn wifi on and off. I also have the the wifi set to never off, stock everything, reset factory wipe too. Any help would be great otherwise a return is my future.

Router: Vizio XRW100 802.11a/b/g/n WPA security
[Galaxy Tab 8.9 General] jhwbg:
Not so much info about your setup, however try switching channel in router. To many neighbours with wifi can make it hard. I prefer the 5 GHz band, great performance and less traffic, and the 8.9 supports it so give it a try.

Try a wifi scanner from the market and see which channels are in use in your surroundings.
[Galaxy Tab 8.9 General] qhinton:
Giving your suggestion a try will let you know how it goes.
[Galaxy Tab 8.9 General] poisike:
Gray icon does not mean that wifi has disconnected. It means sync is experiencing problems.
[Galaxy Tab 8.9 General] qhinton:
Switched to the 5 ghz and problem. I have a AcrA500 that has no issues. Must be defective.
[Galaxy Tab 8.9 General] jhwbg:
Ok I am not sure the A500 supprts 5GHz, as a last resort before returning the Samsung you could look for a firmware update for your router.

Good luck
[Galaxy Tab 8.9 General] qhinton:
Ok so i hard reset my router and had the 8.9 the first device to connect to my network. Set the tablet to turn wifi off while screen is off. So far after 8 hours only had trouble 1 time connecting to my wifi (after sleep it couldnt findn my wifi). Hopefully this sticks
[Nexus S General] ben.selinger:
I'll get us started.

Sorry, didn't get screenshots after 8 hours because my battery wouldn't last that long.

Phone model: Samsung i9020a

ROM: CyberGR .v5

Radio: AUCKF1

Carrier: Rogers

Wifi associated, BT on, Data on, Sync on, 3G connected, added one Google account but did not restore settings and disabled account sync.

Results fluctuate between ~8h/C@idle and ~14h/C@idle.

With light to moderate use, I get 6-10h/C
[Nexus S General] t3xboar:
Hey Ben i just did what you did in the other thread. full charge everything on kill all unneeded services.

I'll admit that i forgot to kill extra services and it plummeted my battery to 92% in about 45min. I had an "oh ****" moment and went and killed the random apps.

Im at 2 hours extra now and lost 3% only, everything still on.

So with that info i'll mention this for me would be considered heavy usage. I'll never have everything on constantly. When I was posting up my results of light usage and getting 3 days - note that i had everything firewalled while on 3G except for my emails and messaging and took a few calls only. everything else was off.

I'm gonna guess that with it all on and actually using the phone i'll hit at most 10 hours, probably not even that.

So that basically puts us about even. I'm curious if you do my light tests...will you be seeing 3 days also ? If yes then we can rule out models basically.
[Nexus S General] ben.selinger:
Flashed XXXKB3, factory reset (according to OP instructions), flashed CyberGR .v5 again, signed into one Google account, disabled Google sync+backup, enabled and connected to wifi, bt/gps/everything on, then left my phone overnight. Results.

Looks ****in' Gooood. 1.2%/h@idle draw.

But then, opened my screen once, played some tunes through BT to my truck, drove around for 13 minutes, went back in the house and left the phone idling again and look at the drop! It's continued to draw like this all day now, just idling. I've done NOTHING but play 13 minutes of music and then back to idle.

What's DOES IT MEAN??!!

So I rebooted my phone and let it idle again without touching anything, and still seeing the wicked battery draw. I dunno wtf to think here, and I can't get the draw back down to 1%/h@idle.

*edit* For the sake of 100% transparency, while the phone was idling at 1%/h overnight, I was far enough away from the wifi AP i'd associtated to, that it MAY have lost signal and given up, so perhaps the wifi hardware finally went to sleep. Does anyone know if wpa_supplicant (or whatever controls wifi in Android) runs is represented by AndroidOS?
[Nexus S General] ben.selinger:
Oh. Dur...

I think that may be it. Wifi was probably dis-associated overnight. You can see at the very beginning of the battery recording, there's a sharp dip in charge for about 15 minutes, which corresponds directly to Wifi association, then the draw goes nearly flat (1%/h) for 10.5 hours and the Wifi is not associated.

Testing now... Leaving Wifi on, but dis-associated. See if that nice flat line comes back.
[Nexus S General] Paragon_X:
Phone model: Samsung i9020a

ROM: CyberGR .v5

Radio: UCKE1

Carrier: Rogers

This is a normal night of going out, connecting with friends, a bit of music before. A weekend for when it is most important, these are the results. I forgot to photo the android os but it said it was awake, cpu for 4 hrs.
[Nexus S General] deetailed:
Regarding the Android OS being highest battery consumer, it might be false alarm:

http://xdaforums.com/showthread.php?t=1456265

Although still, that hasn't explained the high drain (<10h/day) you're experiencing.

In your first set of screencaps (the 2h30m one) it seems obvious that the culprit is Mediaserver and Google+? One of the most annoying things about ICS that I found is that after flashing ROMs or kernels, Google-Photos have a tendency to enable sync behind our backs. Someone in my local forum discovered when he logged in G+ in his PC that the pictures in his Nexus S had suddenly shown up in the G+ account even though he never uploaded them there. After he disabled that sync, his battery life improved. As a result, I've grown OCD about checking my sync settings every once in a while. The Google-Photos option doesn't always show right away when we set up a new Google account.
[Nexus S General] Braneless:
AOKP Milestone 2 rom with Steve Garon's 1.12 kernel. 100/1100mhz, interactive governor.

View attachment 878231View attachment 878232View attachment 878234

More screen time:

View attachment 878239View attachment 878240
[Nexus S General] Braneless:
My battery drain at idle (next to none) :

View attachment 878250

Under heavy usage, screen on, running apps (still relatively efficient draw) :

View attachment 878252
[Nexus S General] Paragon_X:
Phone model and radio?
[Nexus S General] ben.selinger:
I'm back to 1%/h@idle with everything but wifi enabled.

All sync settings enabled with no sync delay.

G+/data/gallery sync all enabled for 3 accounts. Receiving about 30 emails in 14.5 hours overnight. This should work out to 111h/C@idle

The question here for me is that I thought Wifi would use less power than 3G given it's such lower range. I thought that when Wifi was associated that your 3G would automatically disconnect, thus using less power when associated to a Wifi AP than when connected to 3G.

Am I mistaken in this? Is this not the desired operation?

*edit* It may be looking like my draw increased by about 8x as soon as I opened the screen for the first time this morning, and hasn't dropped back down to the 1%/h. Right now it seems to be at about 10%/h again, though I'll report back on this later today.
[Nexus S General] Paragon_X:
Wow. What settings this time?
[Nexus S General] Braneless:
D720 ns4g and latest radio - D720SPRKE1 or whatever it's called.
[Nexus S General] evcz:
I'm getting the same...

power drain increases for dunno whatever reason...

right after a reboot it goes ok if I do not touch it... as soon (or five minutes later) as I start playing with it the power drain increases a lot and android OS takes over any other service...

generally to test I wipe the battery stats before booting from recovery...

maybe we should check in logcat what trigger the high android OS usage?
[Nexus S General] ben.selinger:
I've checked logcat/dmesg and haven't seen anything super suspect (to my somewhat untrained Android eyes). I have done a tonne of power management scripting/troubleshooting in laptops and other mobile devices but this is really my first serious foray into Android PM, so I may be missing something.

As I said, stock settings from CyberGR .v5. Signed in to all three Google accounts and left sync enabled. Turned off Wifi but left everything else enabled.

Drove around (phone paired to my truck for music) for a few hours today, light/moderate use, and I'm currently sitting at 69% battery remaining, coming up on 24 hours on battery. Realistically, this is probably a little lighter use than normal for me, plus I usually plug in when I'm in the Jeep as I'm running not only music over BT to my Jeep, but also streaming OBDii data from my ECU to Torque (and my screen is usually on full time while driving as I like to keep track of my mileage (troubleshooting fuel efficiency as well ;) ).

So all said, stock settings with CyberGr, Radio XXXKB3, Wifi off, everything else on, and I should easily get 2 full days of light use.

Now that said, I'm still waiting for someone getting 3-5 days to chime in. I still feel something isn't quite right.
[Nexus S General] Paragon_X:
Wow. Practically the same as myself but my battery is now around 6-7 hrs before I need a charge. I will have to buy a new battery and see if that is the culprit. Over even just flash CM9 instead, who knows..
[Nexus S General] ben.selinger:
I doubt it's a bad battery. You're seeing the same life I was before I flashed the XXXKB3 radio and re-installed the ROM properly. Follow the installation instructions from the OP and see if that solves your problem.
[Nexus S General] Paragon_X:
After looking at an earlier shot here I notice my android os stays on most of the time hence my bad battery. How do I get it to sleep?
[Nexus S General] Braneless:
So does mine, but it is not an accurate reflection of battery drain, per android engineer Dianne Hackborn. Look at the Android OS percentage in my screen shots - it doesn't matter.
[Nexus S General] Braneless:
For those with excessive battery drain: install Battery Monitor Widget and Better Battery Stats from the market. Those two apps should provide all the data you need to troubleshoot poor performance.

Also, check your signal strength. Weak reception will drain your battery in a hurry.
[Nexus S General] deetailed:
Most importantly, don't have rogue stuff running in the background. GPS and NFC enabled can eat up battery just sitting there. Peruse the setting of every single app to know whether they're downloading or tracking location in the background, and only enable what you need to run. Whenever I had battery drain issue, it's mostly related to an unkillable background application such as Skype and Google+. The BetterBatteryStats app helps in pinpointing the battery drainer (though I don't know whether it works in ICS, I haven't used it because I've never had battery issue in ICS).
[Nexus S General] ben.selinger:
Well I'm not sure if I'm ready to name the radio firmware as a serious contender for ... blamiest battery hog, but Wifi certainly is. I'm at 26h with about 16 hours of light use, and still sitting at 54%.

Also investigating battery drain for 3g vs 2g right now.

Either way, Wifi is misbehaving. There's no way it should be awake and constantly drawing when the screen is off. I think some simple scripting is in order.
[Nexus S General] t3xboar:
Hmm can one of you please do my old test and see what you get? Everyone is caught up in trying to do heavy usage test and nobody has done light usage yet :p

Install droidwall (its free) and firewall everything to make sure nothing at all exits the 3G. turn 3G on everything else off wifi,gps etc.. and dev option to limit process to 4. kill off all the extra apps. The only thing i allowed to pass and use my 3G was messaging and the (yellow) email program. (but even this isnt required)

make sure you have a full charge and see what the drain is. this was my test to assume you are just going to have a -phone- on and nothing else.

Basically you should be in the range of 3 days or around 70 hours if you do some math to long term calcualte it.

***

reason i would like a few of you to try light usage tests, is because we can elimitate model versions and such out of the picture, plus if you see a huge drain on a trial light usage - well no fiddling with anything will help you. its pure battery at that point.

@deetailed - nfc doesnt suck bat at all. I have mine on with wallet allowed through the firewall and it barely tickles the battery. unless you have a rogue rom that nfc is busted it shouldnt drain anything by being on. ( case and point. old version of beam rom worked fine. the newer version broke nfc and was a terribad case of suckage)

Once my gwallet is drained i might re-flash the old beam rom to test. that was the most brilliant one where i got the 3-4 day battery time. I never tried ultra heavy usage though on it. im curious now.

EDIT: silly question - what is your wifi advanced settings set to?? the "keep wifi on during sleep" ? mine was always but just changed to never for my test... anyone else ever play with this??
[Nexus S General] Paragon_X:
Alright so after 10hrs of testing. All of this being at home with wifi on, gps, nfc, all that stuff off. These are my results. A good 5 hours if me sleeping, as you'll see in the middle, the rest is normal usage, the odd message, firing up the market whatever.

I did my research and the possibility of a bug might be the issue here. The battery life isn't bad but if I took it out, fired up music there might be a heavy drop.

9020auckei

speedy 7

cyber v5 rom
[Nexus S General] ben.selinger:
My tests are all with pretty light usage as I wanted to construct a baseline battery life for the Nexus S. Right now I think I'm comfortable saying that all my problems were caused by 1. A buggy radio, and 2. Poorly considered stock power options (ie: "keep wifi on during sleep = always")

With wifi off, everything else on, it looks like I'll get 3-4 days baseline.

With lite usage I should get 2-3 days.

With medium-heavy use easily a day.

No idea for extreme heavy use yet.

This from only getting 8-10h/C a few days ago, I'm pretty happy.

I'm NOT impressed with stock power options.

A few stock power options I think should be set:

Keep Wifi on during sleep = never

Screen off - switch to 2g, Screen on - switch to 3g.

Radio schedules - night - sync every 15-30 minutes, otherwise wifi/radio/nfc off.

This alone will get you 2-3 days to a charge. I've disabled all CyberGR's power options as I found that most of them break radio until reboot. ie: If you let CGR switch to 2g when the screen is off, you lose radio entirely. Instead, I installed Juice Defender Ultimate/Beta and set it to disable radio overnight, with sync at 15m intervals, disable wifi during screen off, and switch 3g/hspa to 2g during screen close. With these options I used about 0.6% overnight (9 hours).

omg facepalm. :)

With all the new stuff in CyberGR, I totally forgot about the ICS stock options like "wifi sleep policy".

Mine was set to "always on"
[Nexus S General] densha99:
My shot at trying to figure this out...

I just found this forum thread in the last few minutes so I will be trying to step through what you all have been proposing and see if I can focus in on what is causing this battery issue. That said, I will try to explain what I have been doing to troubleshoot this on my own.

I have dropped back to my Nexus One as I get 3-6 max hours of battery life on my NS (ATT) and it's just not usable now.

I bought the Samsung external charger that comes with the extra battery. It charges in 3 hours and lets me know I am getting a full charge and takes the phone or charging brick (and charging temp) out of the loop.

I unlocked and rooted the phone (primarily so I could CWM recovery battery stat reset). I am still running the most recent Gingerbread Google release, I have not yet installed a custom ROM on this device.

A few days ago I reset the phone (was on the old battery at this point) and skipped the initial setup accept to say, no location tracking. I setup Wifi, configured my account and installed battery stats app. Then I disabled NFC, GPS, Turned on Airplane mode, turned off Wifi, made sure nothing was trying to sync data. Then I turned the phone off. I then swapped in the new externally charged battery, turned the phone on, started the battery stats app, turned the screen off and let it sit. I went to bed and it was dead the next morning. Battery stats shows that I got just under 6 hours.

So I know it's hardware or software, and NOT a battery. I have run down my new battery twice now and both times the discharge rate was roughly similar. Both times the battery was charged using the external battery charge dock.

Also, I will say that I was getting 1-2 days of battery life with moderate usage with this phone out of the box (before Christmas). Not sure what changed a little over2 weeks ago, but all of the sudden it started running hot and discharging fast.

My next step today is to use the new battery to reset the device and battery stats, turn off all radios (similar to above) and see how long it lives.

KC

....because we all clearly have nothing better to do. :confused: