Home repair tips forum

PM Notification

You are not logged in.

Welcome, Guest
Username Password: Remember me

Search Forum

Keyword

Medion Lifetab P9516 - Troubleshooting JB
(1 viewing) (1) Guest

TOPIC: Medion Lifetab P9516 - Troubleshooting JB

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1695

  • Andri Od
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 1
Hi folks,

as a more or less heavy 3g user, I can confirm the following:

- as long as the baseband ist functional and the sim card is logged in into a gsm-cell, the triangle in the statusbar is visible and filled with bars showing the signal strength
- if "mobile data" ist switched on, then a character is shown in the left of the triangle's upper tip, showing the actual network capabilities. I've seen so far: H (for HSPA), 3G (for 3G/UMTS), E (for EDGE).
- if you see an empty triangle, you can be relatively sure that the baseband has crashed. Switching to airplane mode and back lets the empty triangle disappear, but doesn't restart the baseband. Neither does killing the ril- or radio- processes. They restart automatically if killed, but that doesn't recover the baseband.
- if you switch the tablet to "standby" and quickly back to "on", the triangle may stay empty for some seconds, but the modem should reconnect an then the triangle should be filled again. But it might come to interferences with an installed/acitvated Auto-Airplane switch.

My 3g crashes more or less regularly. I'm still trying to catch the moment, but i feel like a sports photographer: I always miss the goal.
Nevertheless I was able to get some logs showing things around the assumed crash time. The pattern is always similar. But seems to me only showing the symptoms. Feel free to peep at the attached logfile, and take a look at the time leaps (6:44.xx to 19:17.xx to 21_29.xx....). Tablet was in standby, (auto airplains active) between 6:44 ans 21:29. So I guess, the crash happened at around 19:17.



BTW:
Neither could I find a working sms/mms app. The original SMS app installed on the p9516 did work unter HC, but i don't know what about ICS 4.0.3. Maybe one should simply try to install that app under JB.

Greetz A.O.
Attachments:
The following user(s) said Thank You: YLG80

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1696

  • YLG80
  • OFFLINE
  • Moderator
  • Posts: 616
  • Karma: 22
Thanks for that information.

I can replicate exactly the same behavior.
So my SIM fix/workaround looks OK.

On the SMS, I guess it's an Android limitation for a 3G only SIM card.
In an iPhone, I can send and receive SMS with the same 3G card.

To debug the 3G crash, did you try logcat -b radio -d *:e to only debug the radio layer.

Do you have a PIN code to activate the 3G on you tab.
It looks like the crash is related to the SIM.
Many CM10 users are reporting a PIN request when the radio crashes.

This publication could be of some interest :
eric10234.wordpress.com/2012/10/23/samsu...cm10-real-ril-crash/
Last Edit: 1 year, 10 months ago by YLG80.

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1697

  • Andri Od
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 1
Bonjour Yves,

for the logfile, I used aLogcat
play.google.com/store/apps/details?id=org.jtb.alogcat
It allows you choosing log classes, filtering, regexp and so on. I chose the radio layer, which obviously leads to the same result as your command.

I also tried to track down the thingy with aLogrec, to survive the cyclic rollovers of the log buffers. But despite of the battery consumption (the LT doesn't of course fall asleep with aLogrec runnning) the baseband crash didn't occur in that cases. Probably because the LT was active all the time.

I don't have a PIN on my SIM. Had one formerly, but it was my first suspect: baseband crashes, recovers and requires a pin, what leads the LT to stay active and drains the battery. So I removed the PIN, but the battery drain after baseband crash kept exisiting. I opened a thread in the german AH forum:
www.android-hilfe.de/medion-lifetab-p951...f-der-sim-karte.html

And yes, I remember that under ICS the baseband crash recovered "automagically" after switching the LT on. No reboot was required. But for JB, I need a reboot every time.


Concerning SMS: as said, with my sim I was able to receive SMS under HC and the factory-side installed app. For ICS I'm not sure, and for JB the apps I found and tried didn't work. Maybe I'll try the original HC app under JB. But it's no card related problem I think.

Greetz
A.O.

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1698

  • YLG80
  • OFFLINE
  • Moderator
  • Posts: 616
  • Karma: 22
Hello A.O,

Interesting.

Could you tell me if there is a way to quickly exhibit that "ril crash".
I would like to test it with my LT.
In my LT, the SIM card is powered permanently due to my workaround/fix for the missing SIM power supply.

Thanks.
Yves

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1699

  • Andri Od
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 1
Hello Yves,

I found no way to provoke the crash, nor to realize its occurrence in time. Even don't know, under which circumstances ist occurs.
You switch on the LT from standby, and the baseband had crashed (black triangle)- or had not. (Reminds me of Schroedingers's cat!)

Signal strenght or so doesn't seem to matter, for I had crashes even while the LT was lying fix on a table and was not moved the whole time.

Greetz
A.O.
Last Edit: 1 year, 10 months ago by Andri Od.

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1700

  • YLG80
  • OFFLINE
  • Moderator
  • Posts: 616
  • Karma: 22
Hello A.O.
This guy seem to have found a fix for another device, or at least to reduce the occurrences :

from irclog.whitequark.org

<Espenfjo> ?gokhanmoral_: Our RIL crash bug is driving me mad The more debugging I throw at it the more frequent it crashes, without really logging anything useful
<Espenfjo> We are pretty sure its the kernel dropping the modem from the USB bus that is causing rild to crash, so dmesg is the only log that is interesting atm.
<Espenfjo> It is some silly timing bug where the USB host drops the hsic modem while it sleeps. Adding prints make it worse, removing prints make it better


According to him, the more you try to print some debug info, the more it occurs !
But he had the same problem to take a snapshot !

Yves

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1701

  • YLG80
  • OFFLINE
  • Moderator
  • Posts: 616
  • Karma: 22
If what was reported by Espenjo is correct, I would try an AT command to revive the LT modem after a ril crash.
 
echo -e "AT+CFUN=1\r" > /dev/ttyUSB0
cat /dev/ttyUSB0
 


It's supposed to put the modem online if it was offline.
or
 
echo -e "AT+CFUN=6\r" > /dev/ttyUSB0
cat /dev/ttyUSB0
 

It will reset the modem.

Perhaps the modem could report an error with :
 
echo -e "AT+CFUN?\r" > /dev/ttyUSB0
cat /dev/ttyUSB0
 


Yves
Last Edit: 1 year, 10 months ago by YLG80.

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1702

Hi Yves,
last time when my 3g crashed I tried some AT-commands.
But unfortunately I wasn't able to send the commands to ttyUSB0.
The echo command didn't came back.
If it's really the kernel who drops the device, you can't access it.
That's why I want to build a kernel with modules which can be loaded/unloaded and maybe reset the 3g.

To reproduce a crash just send your device to sleep for 2 seconds then wake it up.
Do this a couple of times, until the triangle stays empty

Micky

Edit:
Hmm...I'm pretty sure that the status bars from the 3g appeared/disappeared when the tab went to standby and back..... ?
Ok, switch on flight-mode then switch it off then switch it on then....
Bingo!
Hmmm...triangle is empty, but USB device (lsusb) is still there????? What happened now???
Looks like your mileage may vary
Like my work?
Last Edit: 1 year, 10 months ago by Ameisentaetowierer.

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1703

I was also looking for an SMS app.
I found it in the stock ICS, but not in JB.
But I downloaded it somewhere (can't remember where it was) and this one is working for me.
A bit strange that you can find the messages stored on the SIM in the settings menu.
But anyway, it's working for me.

Unzip this in /system/app: dl.dropbox.com/u/96010748/Android/mms.zip

Micky
Like my work?

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1704

  • YLG80
  • OFFLINE
  • Moderator
  • Posts: 616
  • Karma: 22
Hello Mickey,
Thanks for the mms app. I will try it.

About the ril crash, I've been able to replicate the crash using your method.
I've tried several things to restart the USB service to no avail.

However it appears that the ttyUSBO permissions have changed after the ril crash.

As you mentioned ttyUSB0 does no longer respond to any AT command.But the device still exists.

If I understand well, ttyUSB0 is no longer a character device after the crash.(serial com)
permissions before : crw--------
permissions after : -rw-------
I leave the diagnostic to the specialist !
Yves
Last Edit: 1 year, 10 months ago by YLG80.

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1705

  • YLG80
  • OFFLINE
  • Moderator
  • Posts: 616
  • Karma: 22
I've experienced the battery problem that you were talking about !
The battery was completely down this morning.
Yesterday night, I've left the tablet with the ril crashed !

@Mickey
Thanks for the MMS link.
I've installed that app and it works "right out of the box". Simple and efficient !

Yves

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1706

  • YLG80
  • OFFLINE
  • Moderator
  • Posts: 616
  • Karma: 22
This Huawei recent document on Android RIL integration could perhaps help to resolve the ril crash issue.


File Attachment:

File Name: HUAWEI_Android_RIL_Integration-guide_v2.8-10pages.pdf
File Size: 157 KB


Yves

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1753

  • DirtyHairy
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Hi all!

Since installing CM10 on my tablet, I also have been experiencing the 3g issues and have tried to debug them, without much success yet. That's also why my promised howto is still absent from androidhilfe --- I have it lying around mostly finished on my machine, but I found that 3g was more troublesome than I originally thought and decided to hold back until I have a better idea of how to work around / fix it

I have tried reviving and resetting the crashed 3g with radiooptions, but no avail. I have also tried to swap in the libhuawei-ril from the medion rom, but no effect --- as far as I remember the two versions are identical I think your findings about the USB id changing and the device being dropped from the bus are highly interesting, this might indeed be a hot track. I have now tried to enable debug output from the option driver via /sys/modules/option/parameters/debug, hopefully this will produce some debugging output when it crashes again.

@Ameisentätowierer: I also have successfully built an android kernel in the past and remember having problems with the toolchain, too --- the NDK toolchain would compile a booting kernel, but kernel modules would be broken. In the end I succeeded with a toolchain built myself (I use gentoo and used crossdev for the purpose). I will try to compile a modularized kernel myself over christmas and new year holiday if I find time. I also found the sources for a generic huawei ril on github (github.com/DerArtem/huaweigeneric-ril) and will try to give it a shot...

@YLG80: I didn't do any real decoding speed checks with CM10 myself, but I already was very happy to see that HW decoding worked as in Honeycomb and that HDCP is working
The following user(s) said Thank You: YLG80, Ameisentaetowierer

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1754

Hello DirtyHairy,

thanks for your information.
Which kernel-source are you using? The best for me was from khanning's git-repo.
I was able to build a static kernel (using parameters from /proc/config.gz) and almost everything was working, except wlan.
Not sure if this was due to different firmwares between ICS and JB.

I don't know if I should focus on fixing this wlan problem or if I should look for some other kernel.
The android kernels all look somewhat experimental and hand-knitted to me
Very different from my experience with the kernel.org stuff.

I think that you should post your howto on AH.
Tell people about the 3g problem and let them decide on their own.
I think the most important part is the understanding of cwm-recovery and that one can use this to upgrade, downgrade, unlock, unbrick and factory-reset the device, so people feel more secure and comfortable when playing with JB

Micky
Like my work?

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1771

  • DirtyHairy
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Hi Ameisentätowierer!

I think the issue with android kernel is that they are not exactly kernel.org, but afaik mainline refused accepting the android patches until shortly ago Things are now starting to get merged into mainline, but I guess currently all devices use kernels forked and customized from the google kernels by the vendors, and the community has come up with their own share of patches --- I have the feeling that there is a proliferation of different kernels out there, most of them living in github repos The previously built kernel I mentioned was for a different device (originaly a windows mobile phone), and used a very different different source.

After some hassle I was successfull in compiling the kernel source released with the K1 sources. I also used krooks config from /proc, and I also had the issue with wireless not working (not surprising as I guess khannings source _is_ the lenovo source). However, I was able to solve this by replacing the wifi firmware with firmware pulled from an official K1 ICS rom. Still, the kernel is not stable for me and freezes reproducibly when the device goes into deep sleep. From what I read in krooks xda thread, I guess that he took a kernel for another tegra device and / or customized it with merging different patches, so it just might be that his config and the original lenovo kernel don't play well together. Would be interesting: does your build freeze, too? It might be worthwhile to ask krook about the sources used for his build.

I'll try to find a kernel configuration and source tree which works stably, and then try to debug the 3g issue a bit better While my logging was not very enlightening, it indeed looks like the device is dropped from the bus while sleeping, and on reinit either enters an inconsistent state or pre-init state. It might already help to play a bit with USB power managment option or to use a newer version of the option driver. I'll also diff the lenovo config which I pulled from the official zImage to krooks and look for interesting differences.

As for the howto: I guess you're right, I'll finalize at as it doesn't look like there's a quick fix for the 3g issue in sight
Last Edit: 1 year, 10 months ago by DirtyHairy.
The following user(s) said Thank You: YLG80

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1773

Hello DirtyHairy,

I've exchanged krooks kernel with a self compiled kernel from khannings git repo.
When "option" is compiled as a module, the 3g seems to be more stable than before.
But if I compile "bcmdhd" as a module or directly into the kernel, the wlan crahes after almost ever sleep.
But I never saw the whole system freezing.
Sometimes I even wasn't able to load the bcmdhd module.

When monitoring the startup, I saw that rild was crashing (sigsegv), leaving dumps in /data/tombstones
But after some time it stays up...maybe because of the "option" module that wasn't loaded at boot-time?

I would like to see someone maintaining arm patches on kernel.org.
With all the different repositories and branches I feel a bit lost.
I've downloaded some repositories from github, just to find out that they where old or didn't even contain mach-tegra code.

Micky
Like my work?

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1777

  • DirtyHairy
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Hi Ameisentätowierer!

I've still no stable build, but I've found out a thing or two:

- There are different drivers for the bcm4329 wifi chip in our tablet out there: one called bcm4329, one called bcmdhd and an completely opensource driver called brcmfmac.
- In the 6.1 build, krook1 switched from the bcm4329 driver (which is used in the lenovo K1 builds) to the bcmdhd driver
- He used a different (newer?) version of the driver than found in the K1 sources
- He applied overclocking patches

So, I send him a PM on xda-developers and asked about the sources he used Let's see after the christmas holidays whether he responded or not...

Cheers & Merry Christimas
-DirtyHairy

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1789

  • Andri Od
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 1
Hi folks,

Hope y'all did enjoy Christmas and you are in a good mood for the upcoming new year.

Anything new about the 3g issue?

It really sucks. The more you leave the tablet alone, the more likely and often the RIL crashes and drains down the battery. At home, during the holidays, I didn't use the tablet very often. So most of the time it laid in standby-mode on the table. But I could be sure that nearly each time after switching it back on some hours later, the RIL had crashed and battery had lost a significant amount of its charge. So I had to reboot and recharge the tablet very often the last days. Annoying...

Greetz
A.O.

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1790

Hello A.O.,

kernel 2.6.39.4 (from khanning) with "bcmdhd" and "option" build as modules wasn't better than krook1's kernel.
The 3g looked stable to me (haven't tried much), but wlan was a mess.

Currently I'm running JB with the latest stock-ICS-kernel...sometimes the tab crashes while sleeping...same as ICS.

Maybe it's worth a try to take khannings kernel and use bcm4329 instead of bcmdhd.
But maybe it's better to wait for krook1's answer and then use his sources with "option" build as module.

Where did you download the kernel source used for building the cifs modules?

Micky
Like my work?

Re: Medion Lifetab P9516 - Troubleshooting JB 1 year, 10 months ago #1791

  • Andri Od
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 1
Hi Micky,

well, let's see...

At the moment I'm experimenting with a modified ril-library which I found in another forum (neither Lenovo nor Medion related). Was a bit of "frickeling" to get the 3g running with it on the LT, but for the last 12 hours I have had no ril-crash yet. I'm curious of what the upcoming night in long standby will bring...

I'll give some more information about that as soon as I have some reliable experiences. At the moment it's a sort of "guerilla" work, particularly because the author of the mentioned ril-lib doesn't know anything about my tests yet, and he should get it's compliments in case the whole thing is working fine.


To answer your question: I took the sources for the cifs-modules from khanning's GIT-Repo:
Link to the Repo


Greetz
A.O.
Last Edit: 1 year, 10 months ago by Andri Od.
Moderators: YLG80, Ameisentaetowierer
Time to create page: 4.16 seconds