yashsingh1/xdaforums huggingface dataset:
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi famewolf,

Looking at your logs, I don't see data coming back at the modem level. It seems like operator network problem or radio problem, I can't see how I could do something.

What radio are you on ?

Is it something you can reproduce ?

Don't you have the same behavior in wince ?

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] famewolf:
I'm on 2.15 radio (most of my specs are listed in my signature)...as for losing the data..it seems to be dependent on the radio..I know radio 2.12 would not lose data but others would...and that held true on the winmo side too...I can't speak for winmo and 2.15 cause honestly I'm only in winmo long enough to boot android or copy a kernel and then boot android. ;)
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
famewolf,

In this one, I see android disconnecting data, which usually occurs when the connection is established but traffic doesn't go through.

Again, it looks like operator network or radio problem: wrapper did behave well, shut down connection when asked by android and restarted properly.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hum, 2.15... OK. I tested it and had problems with it, I returned to 2.14 and they went away.

I read somewhere that there is two 2.15 out there with one problematic. I suggest going to another radio.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
This battery issue worries me. I don't see it myself unfortunately.

It could be because now that data is more stable, we see an increase in consumption, or it could be something else.

I had some reports about high cpu usage by smd_tty process, could you check processes from time to time with top to see if you see the same pattern ?

Thanks,

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Ouch!

Thanks for the logs, 93% cpu is bad, along with the dreaded tty_prepare_flip_string fail.

I didn't see it for a long time since I modified kernel highmem, but I know it's still there.

Wrapper has nothing to do about this, this is kernel side, but this is something we have to look into. You're using what kernel ?

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] ATomCZ:
I'm using Hastarin 8.1
[HD2 Android Q&A, Help & Troubleshooting and Genera] tomasz:
LeTama, I also see high battery consumption with the wrapper on 3g. When I let the phone rest, only synchronizing with gmail on 3g the battery loses about 10 to12% per hour. Same scenario on 2g gives me about twice the battery life. (4 to 6% drain/hr)
[HD2 Android Q&A, Help & Troubleshooting and Genera] cardoflex:
2 days no datta drop
[HD2 Android Q&A, Help & Troubleshooting and Genera] Shivan149:
Eating my battery, too. And gets very hot.

While enabled data connection, my HD2 gets very hot and even doesn't charge the battery while plugged in (because of heat I think).

When disabling data connection, it cools down and recharges...

Using NexusHD2 1.6 (Hastarin r8.1)
[HD2 Android Q&A, Help & Troubleshooting and Genera] benson33:
the connection is very stable on hd2,thank you.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi Guys,

I see that most of the heat / drain issue is with hastarin 8.1 kernel. For the one that are having this issue, could you test a kernel from autobuild there:

http://oe.netripper.com/files/htcleo_autobuild_evo_tree/

I'm using a little old one, probably around this one:

http://oe.netripper.com/files/htcleo_autobuild_evo_tree/zImage-20101108_000001-htcleo

It would help pinpointing if this is hastarin specific problem or more general.

Thanks,

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] bronx:
speed and stability with Your wrapper is great, however battery drain is mad while online. as You can guess, I am using hastarin 8.1 on froyostone 3.2. went back to hastarin 8, more or less the same problem.

I am keen on beeing guinea pig for You and try that mentioned kernel, however can You tell me how to use it? I've downloaded .bin file named "latest", but what to do now??? sorry for possibly silly question. :o

[EDIT]

yupp... I am a silly boy ;) . figured it out (doh), going to test it now.
[HD2 Android Q&A, Help & Troubleshooting and Genera] michyprima:
Hi letama,

just tried your wrapper, but sadly it seems not to work for me...

Network is found, 3G connection (seems) is estabilished, but I don't get any network access.
[HD2 Android Q&A, Help & Troubleshooting and Genera] bronx:
Well... it looks like the quick drain is still there... lost ~ 13% batt in less than 15 minutes of browsing.

For now I'll try to revert the wrapper to stock froyostone 3.2 and kernel to hastarin 8.1.

Will report later...
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi Michele,

Your logs are impossible to read, it seems that carriage return has been replaced by space.

Could you try to get them again ?

pppd was working with previous ril wrapper ?

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
That's insane drain... Still same dmesg error messages and high cpu ?
[HD2 Android Q&A, Help & Troubleshooting and Genera] michyprima:
sure. 5 minutes.

Anyway, yes, with standard ril wrapper it was working...

I just tried your 0.3, and suddenly stopped: neither arrows blinks...

edit: some time I get myself smd_tty_work_func: tty_prepare_flip_string fail error :( (with standard wrapper)
[HD2 Android Q&A, Help & Troubleshooting and Genera] michyprima:
done. If you need something else, drop me a tweet or a mail.
[HD2 Android Q&A, Help & Troubleshooting and Genera] tomasz:
Using MDJ's S1, also has the drain/heat problems.
[HD2 Android Q&A, Help & Troubleshooting and Genera] K_Hismoom:
I noticed drain problems with non-Sense builds and bluetooth and/or GPS enabled, but with any kernel I've used.

Anyone experiencing high battery drain could first check, if turning both off helps.
[HD2 Android Q&A, Help & Troubleshooting and Genera] bronx:
Ok. I went back to standard wrapper and even flashed 2.14 radio (2.15 previously), about 1h 40m of more or less constant usage (online) batt discharged from 92% to 56%, so... what do You guys get?? From the looks of it, my hd2 will survive only up to 3.5 - 4 h of online hammering at most. In standby it is on par with winmo, online abuse seems to last noticeably shorter.
[HD2 Android Q&A, Help & Troubleshooting and Genera] philcat:
Logs

I don't know if I've done this right, but I've tried. Can anybody see if the attached indicate that I've actually got the 0.3 wrapper in and it is working please? I can see some mention of it, but as I've never done this before I wanted to see if it was ok, so that I could contribute.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi Michele,

I don't have your email and my twitter account is in limbo :)

Same problem with log, how do you retrieve them ?

I took a look, it seems that data context is established, pppd is launched and I don't see it quitting in radio logs. However in main log, pppd doesn't show anything, which make believe that it doesn't really start.

your pppd is located in /system/bin, right ? with suid ?

You're not running pppd-fix ?

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi philcat,

Yes, you are running 0.3 and the log you generated are good.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] michyprima:
Probably it's because I'm using adb for windows to catch them?

Anyway, yes, pppd is in /system/bin; and no, I'm not running any pppd-fix (are you referring to the script one right?).

pppd has 4777 permissions.

main log is quietly empty because adb freezes when I try to take them.

Only hitting CTRL+C "solves" everything making it exit.

here are the file, in a more readable way:

http://pastebin.com/1k9dkwXj

http://pastebin.com/124if5hD

http://pastebin.com/yR7A0MAS
[HD2 Android Q&A, Help & Troubleshooting and Genera] cwsmall:
adb logcat -b radio -v time

Letama,

First and for most that you for your great work. I've been doing a lot of reading since you posted this to try and teach myself how to pull the logs you need. This is my first attempt at trying to get you what you need. The only issue i have with android is that my phone seems to freeze and i have to pull the battery and leave it out for 2 - 3 minutes. Then start it up for it to boot all the way thru to droid & sometimes i may have to do it several times. I have always believed it to be caused from the data drops. I am far from being a genius and very new to this world. If i could get this fixed it would be perfect. So i hope these logs are useful. if not, i will keep trying till i get it right and maybe some feed back on how to do it right. Many thanks again for your efforts.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
hi cwsmall,

Thanks for the log, did it freeze at the end ? The log seems very small. Unfortunately, for this kind of hard failure, dmesg log is more important than radio log.

To get them after crash, you have to dump ram_console by resetting the phone with the reset button (don't pull battery), and get logs with Cotulla's tool (can't remember the name, sorry) or haret. Check threads around, I don't have pointers.

It does it with all builds ? It looks like hardware problem, crash when device is getting too hot.

Could you test in windows ce with cpu intensive application like 3D game or something else ?

It could be also radio problem, did you try another one ?

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] cwsmall:
Thanks for the log, did it freeze at the end ? The log seems very small. Unfortunately, for this kind of hard failure, dmesg log is more important than radio log.

To get them after crash, you have to dump ram_console by resetting the phone with the reset button (don't pull battery), and

It does it with all builds ? It looks like hardware problem, crash when device is getting too hot.

Could you test in windows ce with cpu intensive application like 3D game or something else ?

It could be also radio problem, did you try another one ?

LeTama

LeTama,

I have tried several radios & it happens with them all. I froze in the middle of trying to load a page on the internet. I does happen in windows, but if I take the sd card for a while it will go away. It just happens early on right after droid has froze. It does do it in all builds. It will freeze sometimes when i am on a call. I also, has froze when i have used the kindle reader. i'll be ready a page then go to swipe to the next page and nothing happens. I'll try get those logs.

thanks for you time and effort.

What temp. is considered to hot???? So i can monitor that.

Anyone know the name of the tool by cotulla that LeTama is referring too?
[HD2 Android Q&A, Help & Troubleshooting and Genera] hastarin:
Over 45.C would be considered getting hot (charging switches off at that point) so if you see over around 47.C something could be wrong if you're not charging in direct sunlight on a car charger.

andlog (attached for your convenience) is what he was referring to. If you get a crash reset with the red button, then run it under WM, then look under "My Device" in WM for an andlog.txt file. That's the output from dmesg before the crash.
[HD2 Android Q&A, Help & Troubleshooting and Genera] aussiebum:
Hi Letama,

attached 3 pppd radio logs (dmesg ones didn't get generated) for 3 different times when pppd failed - 1) when it drops out by itself, 2) when it reconnects but 3g gets stuck with the up arrow, requiring a airplane mode switch (3g enable-disable didn't work), and 3) when 3g timesout, drops connection, reconnects but with the 3g stuck on up arrow.

Hope it helps
[HD2 Android Q&A, Help & Troubleshooting and Genera] noellenchris:
you can also goto terminal and type

su

stop ril-daemon

start ril-daemon

that should fix it up too.
[HD2 Android Q&A, Help & Troubleshooting and Genera] cwsmall:
Over 45.C would be considered getting hot (charging switches off at that point) so if you see over around 47.C something could be wrong if you're not charging in direct sunlight on a car charger.

andlog (attached for your convenience) is what he was referring to. If you get a crash reset with the red button, then run it under WM, then look under "My Device" in WM for an andlog.txt file. That's the output from dmesg before the crash.

Hastarin,

thanks for the info. It will have to wait shortly after i pulled the log. My phone froze again and it will no move past the boot screen. Tmo is sending me a new one. Guess i find out tuesday if it was hardware related or if the new one will start acting the same way.

Thanks for all your hard work.
[HD2 Android Q&A, Help & Troubleshooting and Genera] aussiebum:
thanks for the suggestion - will probably set it up as a g-script shortcut. it is interesting to note for me that I used to get less dropouts when using the sept 28th wrapper + kernel pre-pppd patch.

not too fussed about the dropouts these days - more annoyed about the gsensor screen freezes when walking anyways :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi aussiebum,

Thanks for the logs, they are interesting. It gave me an idea of a possible improvement of the wrapper, I'll work on it.

Could you give me more details about restart of 3G with stuck arrow at the end ? From the log, I don't see any activity, I presume you didn't restart it manually ?

It seems that for ril, nothing happened here. So it would mean that pppd is still alive or that it died but wrapper monitor is dead too.

I would need pppd logs too to have more details. And the result of "ps | grep pppd" plus "ps | grep rild".
[HD2 Android Q&A, Help & Troubleshooting and Genera] aussiebum:
yeah, I didn't restart manually - I waited until 3g connected timed out, watched it disconnect, then when it (automatically) reconnects, 3g icon comes up, but with the "up" arrow stuck on - there is no internet connectivity even though data is supposed to be reconnected (market will report no data connection, etc).

I believe this is the "stuck data" that quite a few people have reported about ppp in the forums.

I'll get you the pppd and debug mesg logs next time - just realised my gscript had a few mistakes here and there.

As for the ps commands, at what point of the ppp failure did you want those done?
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Ok, it make sense then.

I need the ps commands (you can throw also a /bin/ifconfig in your script too, it doesn't hurt) around 10-15 seconds after you loose the connection, with stuck arrow or anything else.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] dusty_nz:
Feedback

Possibly already covered however thought I would post my findings on 0.3

Really don't know when it is restarting. By the time you notice the connection might have dropped out it is back up and running.

The only issue now is when the connection hangs. The Phone CPU ramps to 100% and stays there. Is the the ril wrapper in a loop trying to kill mobile network?

Is it possible to put a notification in the top bar showing when it is kicking in?
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
hi dusty_nz,

cpu eater is not wrapper, but kernel directly. if you launch top, you'll see that offending process is smd_tty (internal kernel process), not rild. It happens because kernel can't alloc memory anymore to process ppp buffers.

I have no solution yet for this problem, especially now that I don't see it on my kernel+build anymore.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] mattfmartin:
@letama

Have you guys tried compiling the cm6 kernel to see if that would be a better base to work off of?
[HD2 Android Q&A, Help & Troubleshooting and Genera] hastarin:
Markinus has been trying to do that, but last I knew hadn't got it to boot.
[HD2 Android Q&A, Help & Troubleshooting and Genera] lanwin:
Hi, is there any difference how PPP is handled with iptables?

I have a solution for getting all apps to work with an HTTP proxy. But it currently only works with RMNET, but it should also work with PPP. The script is configured to use the correct interface via netcfg and its output is still the same.

It works like this: iptables is configured to redirect all access to ppp0 to a specific port on local host. On this port the u2nl program waits and redirects the access to the proxy server of the provider.

But with all PPP kernels the browser is not able to do any connect. On the older PPP builds the first access took 5 seconds and then the connection disappears. On the newer builds the connection stays but it dose not work.

I posted more details here http://xdaforums.com/showthread.php?t=836164

Any idea?
[HD2 Android Q&A, Help & Troubleshooting and Genera] aussiebum:
ok, I've put a sleep 10 then the ps cmds after logcats and dmesg are run. Using also netcfg instead of ifconfig since that doesn't seem to do anything.

More logs from more dropouts (before adding the ps cmds and the netcfg cmd) today - some slight changes to my build since last posted logs:

1) back to 2.14 radio - was using 2.15 in the 1st batch of logs

2) ro.ril.enable.dtm set to 0 (I've been fiddling with this configuration, it does seem to reduce the "stuck 3g" problem for me) in build.prop

3) using the test g-sensor fix patched hastarin 8.2 perflocked kernel

Two sets of logs in the zip file - logs generated as soon as I noticed disconnect occurred.

In both cases, data connect was reconnected successfully, but not immediately. What would happen is that "3g" icon with the up arrow would appear for about 30 secs, then up and down arrows for about 1 min, then just the 3g icon - after which data would work (yes I know, bit of a convoluted explanation of events :p). During the period when only the up arrow was present and the up and down data arrows were present, attempts to use internet would fail. Seems very similar to the "stuck data connection requiring 3g data enable-disable" problem that some people experience, but data does reconnect at the end. Not sure if this is because I set dtm to 0 in build.prop.

Hope these logs are more useful. Plan to try out the various pppd options posted up by hastarin next (in particular, options 1 and 3).
[HD2 Android Q&A, Help & Troubleshooting and Genera] noellenchris:
thx, aussiebum, I changed mine back also and usually I have to toggle data off/on right after reboot. But after I changed to 0 data worked right after reboot. Maybe I got lucky who knows. I'm also using Hastarin's experimental options for ppp, I've been using option1 w/lowest compression and persistent connection. I will report more in a bit in other thread.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hello guys,

New version 0.4 is out.

Check first two posts for more information, and keep 0.3 handy if something goes wrong with this one.

It should help on some cases and give me more feedback when something goes wrong.

Let me know how it works,

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] shadiku:
Every time PPP came back up, the internet didn't work. And when I went to Browser to load a page it would immediately drop again.

What's going on here? :(
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi aussiebum,

Yes, they were, thanks. I hope that new version will improve things, let me know... At least, I should get a little more info in traces, we'll see.

I noticed that just after boot, first pppd fails, but when wrapper relaunch it, all goes well. It seems to behave well after this first glitch, so I don't need log for this first crash.

Best,

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] northern247:
Just upgraded to 0.4...so far so good, will be able to give proper info tomorrow with logs if the should be required
[HD2 Android Q&A, Help & Troubleshooting and Genera] ATomCZ:
I'm tested 0.4 now. It is interesting. I opening some page and it stop in half, down arrow turn off, it do nothing few second, then down arrow turn on and downloading continue. And after about 7 minutes it fail completely without restore after few second ant at the same time smd_tty use most of CPU time.

I tried the same with WIFI on and no problem with smd_tty it happen only when I use Mobile Internet more intensive (web browsing, video streaming).

I created some logs if it help you.

I have Hastarin 8.2 kernel.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi ATomCZ,

Thanks for the logs, unfortunately they don't show much more than what you described. It's normal that wifi doesn't show this behavior, it doesn't use smd_tty at all.

What we have here is the usual "smd_tty_work_func: tty_prepare_flip_string fail" in dmesg, that eats up cpu and kills connection. Wrapper won't fix this alone, we need a fix on kernel.

I would be interested to have the result of

cat /proc/meminfo > /sdcard/pppd_meminfo.txt

and

ps > /sdcard/pppd_ps.txt

when you have the smd_tty_work_func problem.

Thanks,

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] anthnhlt:
Failed after first reboot and seemed to be stable after first glitch. Data connection was stable for about three hour. After that phone slept for about twenty minutes and when connection resumed I got no data. Turned airplane on and off and has been stable since.

Also I am using hastarin's experimental option 1 in conjunction with the newest wrapper.
[HD2 Android Q&A, Help & Troubleshooting and Genera] fredulus:
0.4 seems to be working really good for me. I don't think i've had a data drop since replacing my original options.smd
[HD2 Android Q&A, Help & Troubleshooting and Genera] jaedolla:
my data has been working wonderfully since applying your new .04 wrapper. no data drops or data freezing great work man. we really appreciate your contributions and efford to the community.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Avatiach:
Hi,

I am encountering the exact same behavior with mdeejay's S3.1 kernel. I actually started seeing this on all new ROMs on the last few weeks (probably as far as Hasterin's 7.6), and the only one where this did

not

happen was DarkStone's (3.2), which is now unfortunately discontinued.

Also, when this problem happens, it is not possible to simply turn flight mode on and off, since when you try to turn it on, the option gets stuck and grayed out. The only way out of this CPU loop is to reboot/hot reboot.

I am no Linux expert in any way, but will be more than happy to help in any way I can to solve this problem. You are doing an amazing job!

Thanks :-)
[HD2 Android Q&A, Help & Troubleshooting and Genera] jae-v:
data working extremely well right now since the update...will see how things are effected after reboot over the next day or so
[HD2 Android Q&A, Help & Troubleshooting and Genera] dungphp:
I have 1 force close phone when set APN (Matt EVO) !

Tell me about it Please !

Thanks

http://farm2.static.flickr.com/1184/5177916526_61862aa10b.jpg
[HD2 Android Q&A, Help & Troubleshooting and Genera] aussiebum:
Another day another bunch of logs :)

Thought it was better while at work (one dropout but quickly reconnected fine), but didn't seem to make much of a difference once at home :(

Two sets of logs again - in one case, data appears connected but net access doesn't work, in 2nd case, data reconnects but data doesn't work until Airplane mode on/off.

Hope it helps some more!
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
This has absolutely nothing to do with wrapper. This is a build issue, check that in the build thread.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] LondonTownGuy:
The .4 wrapper seems to work best with a blank options.smd file in /etc/ppp and system/etc/ppp folders. Try with blank file if having problems.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Dr Nicky:
A marriage made in heaven

I wish I could send you some logs and moan about how unstable my phone is, but I can’t:eek:. For the past 24 hours I have been using your wrapper together with MDJ FroYo Sense Revolution v.1.6 with the updated S4 kernel and nothing, not a dropout, not a Sync error from my Exchange Server (set on push), No battery draining because of consistent data retries, NOTHING:mad:

Well Done. ;)