yashsingh1/xdaforums huggingface dataset:
[LG Optimus 4X HD] JustChris20:
Ok Ben I may help you. Your problem is not software related. Please do the simply two steps and you will win...

1. install your rom of your choice.

don't modify anything, no ril, nothing...

2. shutdown your system and remove your battery. Now press the power button for 30 seconds. Wait further one minute. Now insert your battery back and start handy. enjoy your network... ?

edit: I see the question is one month ago, so you maybe find the trick yourself. But maybe it will help someone other. good luck...
[LG Optimus 4X HD] tuneq:
hi,

I got the CyanogenMod 11.0 lg p880 last nightly version, but this problem occured few days before when using a custom rom lg stock based: the reason why I switched to Cyano, but surpisingly the problem is still there!

I'm experimenting a slightly different issue :when 3g is on, the network "dies" and I get an error when trying to dial a number and when someone call me they got the message as I had switched off the phone: I noticed that, when connections goes in "H+" because I'm downloading something,I dont get this issue.

Also it never occurs when the phone is in stand-by, but only when receiving call AND "3g" is displayed on the status bar

Do you know how to fix it?

thanks
[LG Optimus 4X HD] Flying_Bear:
If you have issues on stock based rom, then ril is probably not the cause, so I cant say I know how to help you. Sorry.
[LG Optimus 4X HD] tuneq:
so do you think is an hardware issue?

I dont know what to do...should I throw off the phone?? is a very annoying problem!
[LG Optimus 4X HD] Flying_Bear:
Cant say for sure, try reflashing a kdz and see if that helps
[LG Optimus 4X HD] rob3110:
I have the same problem as well, signal loss on 3G every time I wake my phone, but no signal loss on 2G or Wifi (I guess 3G radio is turned of when connected to Wifi with internet).

It started around 2 - 3 weeks ago, I was on beanstalk 4.4.2, a build from march, if I remember correctly. I had no issues before, but suddenly I lost signal every time on 3G. I tried several Roms with and without the RIL-Patch, but nothing helped so far. The only "workaround" is to stay on 2G. I'm starting to get tired of constantly reflashing my phone to try other Roms.

Its strange, that the same error occurred around the same time for so many people. I would like to know if it also happens on stock, or if its a special hardware-revision that fails. My phone version is SWS-Black (Swiss market, but bought in Germany).

I posted the same text in this thread:

http://xdaforums.com/showthread.php?p=53543995
[LG Optimus 4X HD] animus7:
It is possible to use the omni RIL for android 4.4.4 ?
[LG Optimus 4X HD] abhi08638:
Yes but only if that rom is Omni and the files were taken from that specific build of omni

don't forget to hit thanks!
[LG Optimus 4X HD] Optimissimus99:
When you extract the X3Ril.smali file, you can use it on every rom
[LG Optimus 4X HD] Flying_Bear:
I haven't tested 4.4.4 roms atm, as I'm on a business trip for two weeks. When I'm home, ill update the thread with my findings
[LG Optimus 4X HD] tamer7:
have you tried it on any 4.4.4 ROM yet?

has anyone?
[LG Optimus 4X HD] Flying_Bear:
i haven't tested it, but there should be no issues. i've sent animus7 telephony-common repacked with eprj ril for his carbon 4.4.4, and it worked from what i know :good:
[LG Optimus 4X HD] tamer7:
Can you post a link for us all to test, please?

You got my hopes up :fingers-crossed:

I'm on Beanstalk 4.4.4007 p880-dev (14/07/14) and iodak v10 CM kernel

[MENTION=5484874]animus7[/MENTION] can you confirm RIL issues have been resolved for you?
[LG Optimus 4X HD] Flying_Bear:
i'm not quite sure which link you need :D

http://xdaforums.com/showpost.php?p=53791159&postcount=33 here's the link to the post at hand, by then it was 4.4.4 carbon from what i know.

if you want eprj ril on different rom, you gotta re-do the whole procedure of modding, since telephony-common.jar is specific to roms themselves, so telephony-common from carbon wont work on liquidsmooth. also, it won't work on newer carbon release probably
[LG Optimus 4X HD] CustomROMs:
Extreme Problem with RIL

I had been using the latest stable CM 10.1.3 without issue for about 8 months. Then, I began to have what I have now learned to be the the dreaded mobile network connectivity (RIL) issue. At the time, I thought it must be a hardware defect, as I reflashed the LG stock ROM, and my problem remain. I sent the device for repair. Antenna was replaced and returned. RIL seemed to work fine under stock ROM 4.1.2 Build JZ054K, so I thought the problem was fixed and wanted to install CyanogenMod.

I rooted my phone, unlocked bootloader, installed ClockworkMod, and installed CM 11.2 nightly from 25.8.2014. The dreaded RIL problem appears within an hour or so of starting the phone. I thought it was a bug of the Nightly version, so I booted into Recovery - wiped all data, deleted Cache and Dalvik cache, installed CM 10.1.3. Unfortunately, the connection to the mobile network still dies almost immediately after each boot.

As I made a backup of my stock ROM, I booted into ClockworkMod Recovery and restored the stock ROM - my mobile connectivity / RIL problem was gone!

I thought that the latest CyanogenMod Nightlies have resolved the RIL problem for the P880 by the maintainer Demetris. Is this not correct

I am using the E-plus mobil network (reseller is Tele2.de) in Germany. I am mentioning this, as some people write that the RIL problem is mobile network provider specific.

The stock ROM from LG is terrible, but I seem to have no choice, but to continue using it right now. Can anyone help?
[LG Optimus 4X HD] Flying_Bear:
for some people (like me) RIL was as bad as yours. however, either my operator or official CM team did something, and fixed the issues for me. before that, i used either EPRJ ril or OMNI ril, so take your pick, follow the tutorial and hope for the best ;). good luck
[LG Optimus 4X HD] bamball999:
Same problem

I have exactly the same problem. Previously I tried replacing the RIL following the method described in this thread on official CM 10.1.3 (stable), but it made the radio even worse, it can't connect to the network regardless (instead of dropping out whenever I try to dial).

Then I tried the EternityProject CM 10.2 ROM (201310 build) - without any patching since it should have the *functioning* RIL, however upon start up a bunch of bluetooth error popped up and I couldn't complete the phone initiation process.

Then, I tried the CM 11 20140825 build, the radio is fine until I actually tried to dial. The radio disconnects and never recovered.

The only stable way to use the phone at the moment is switching to 2G on CM 10.1.3. In this mode I can dial and receive calls although data is slow.

I read from other threads that this issue might be related to having the v20x baseband - i.e. V10x (ICS) ones are more stable than V20x (JB) ones. However without upgrading to JB official you cannot unlock the bootloader, so in order for someone to use P880 with custom rom with stable radio, one may have to:

1. Upgrade to JB stock rom from ICS. (also upgrades the baseband firmware - this relies on the LG official tool)

2. Unlock boot loader, root etc

3. Flash to a custom rom

4. Downgrade the baseband firmware to v10x

5. May need to flash custom rom again as step 4 usually requires bringing it back to stock rom.

I never tried downgrading my baseband because the tools required windows and I don't run windows.

It is a nightmare if you own this phone and want to use custom roms. And the official rom doesn't allow you to dial and receive calls when it runs out of memory either ("reorganizing internal process")

After months of frustration I tend to think the real problem is perhaps the v20x baseband firmware has bugs and LG never bother to fix it?
[LG Optimus 4X HD] Flying_Bear:
it's not baseband issue, downgrading won't help you. i've tried it myself back in the day. are you sure you properly repacked telephony-common.jar? try eternityproject CM again but on a clean install, dont flash gapps or anything else, just see if RIL works after boot. if not, you can always stick to stock-based roms
[LG Optimus 4X HD] bamball999:
P880 RIL issue

Digging deeper into the issue today I wondered if the eternity project's X3Ril really helped.

The interesting thing is the patch itself relied on a few system properties that are EPRJ specific:

static public boolean
isRILRecoveryEnable() {
return SystemProperties.get("ril.eprjrecovery").equals("1");
}

// I can't find this system property being set anywhere within this patch, hence it might be set elsewhere
// within the EPRJ build. The danger of not having this set, combined with the way it is coded, means
// you might get a NPE at this line, which is bad.

I believe the EPRJ patch was not accepted because it used too many EPRJ specific properties and method names / debug statements. I think the CM Devs were not impressed.

Another thing of interest is how this is handled:

RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED

Comparing CM, Omnirom & EPRJ, they all handled this somewhat differently.

OmniRom:

h_t_t_p_s://github.com/omnirom/android_device_lge_p880/blob/android-4.4/ril/telephony/java/com/android/internal/telephony/X3RIL.java

CyanogenMod:

h_t_t_p_s://github.com/CyanogenMod/android_device_lge_p880/blob/44b2b25204032244735022496faacf5a7a9e8224/ril/telephony/java/com/android/internal/telephony/X3RIL.java

EPRJ's patch:

h_t_t_p://review.cyanogenmod.org/#/c/47980/

There is also an uncommitted change for CM-11:

h_t_t_p://review.cyanogenmod.org/#/c/69048/1

The one that looks most promising is the uncommitted change for CM11. Maybe worth flashing this instead.
[LG Optimus 4X HD] Optimissimus99:
Try unofficial CM /builds based on it (For example Carbon) Some oft them needs F2FS some not. But for me Radio is fine on them
[LG Optimus 4X HD] heliflieger9:
Hi, I have a changed my Ril for the official cm, but after some time I lose my GSM completely. Only a restart helps. Have you an idea to fix this complete lose of my connection?
[LG Optimus 4X HD] Flying_Bear:
if other RILs dont help you, the only way is to go back to stock, as far as i know unfortunately
[LG Optimus 4X HD] pnin:
FYI, after switching from BeanStalk to NamelessROM (with Iodak's v10 kernel), all the network connection issues I reported previously are gone... :victory:

(Check status update @ http://xdaforums.com/showpost.php?p=55064749).
[LG Optimus 4X HD] bamball999:
May I ask what baseband you are using...?
[LG Optimus 4X HD] Flying_Bear:
good to know. if you want to switch to another rom, you can use RIL from rom that works for you (in this case Nameless), and implement in that other rom :good:
[LG Optimus 4X HD] bamball999:
In the last few days I've spent some time looking at what the EPRJ patched X3RIL is supposed to do.

My current understanding is:

The X3RIL patch described in this thread may actually improve or make matter worse when patched manually. I heard you ask: why is that?

1. The EPRJ patch utilizes EPRJ specific system properties when running baseband recovery (which is what we are concerned with) - the code is a bit dodgy, it assumes the property is always there, which isn't the case in non-EPRJ based roms. However this bug is only triggered when the baseband event RIL_UNSOL_LGE_RESTART_RILD (1055) is handled. (when lgeRestartRild() is called)

2. Comparing to the original CM10.2 code, it has better handling when RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED event is received, in particular if the Radio State has actually gone to RADIO_UNAVAILABLE, then it attempts to unload module rawip and also power-cycle the radio.

Hence, if your original problem is (2) where the radio has gone to unavailable temporarily - then you may see improvement because it power cycles the radio and tries to recover.

But, if your problem is baseband initiating RIL daemon restart (RIL_UNSOL_LGE_RESTART_RILD) - basically this code will fail on non EPRJ roms - it simply won't do it - worse than the original CM10.2 the patch was intended for.

I am planning to modify the code and build a version that is compatible with CM 11 (since X3RIL has drifted since 10.2) - hopefully this will solve the radio problem that many of us are still having.
[LG Optimus 4X HD] Flying_Bear:
thanks for in-depth explanation and taking a look at it ;)
[LG Optimus 4X HD] bamball999:
Possible solution

There have been lots of updates to the CM-11 kernel branch in the past week.

In short this latest build has better CP Crash recovery - which doesn't eliminate the drop outs completely but is able to recover - whereas in the builds before this update, the only way to get signal back was to reboot the phone.

Details:

In the P880 kernel, there is a cpwatcher.c module which its job is to monitor the failure of the CP (Communication Processor), and hook onto an interrupt trigger when this happens. In the latest check-ins bugs that prevented proper power cycling the baseband (CP) has been fixed - in addition it actually attempts to reset the CP usb mode a few times before power cycling. Note that the code explicitly switch on key back-light when CP Crashes, so if you key's backlight switches on for no reason you know CP has crashed and recovery has kicked off.

See:

h_t_t_p_s://github.com/CyanogenMod/lge-kernel-p880/commit/c98a8b280a28b32576a14a84eab8d71e50df4ad2#diff-913e77ec04749a4e4e086bb6bf5006dc

With my own testing, my phone had a complete drop-out this morning when I was on a fast moving train, but after around 30 seconds the 3G signal was back and I didn't have to reboot. I checked the dmseg.log immediately and it appears it successfully power-cycled the baseband after resetting CP USB mode has failed 4 times.

Try the latest CM11 nightly people, if you are suffering from 3G signal dropouts and only recoverable by rebooting.
[LG Optimus 4X HD] davorin-l:
Ril issue / Signal los

Hello,

I am running the Liquidsmooth version 3.2-2014-07-21, mourta kernel 3.1.10-cm+ september 2 2014 and I have this issue. Im loosing network signal in "3G only" mode and it doesnt recovers (it frezes). If i use device in "2G only mode" the signal does not crash, and signal almost never goes down(2 times in week).

Devs any solution on this? RIL issue?

Regards and sorry for bad english.
[LG Optimus 4X HD] bamball999:
I have your problem and after months of investigation I think I understand what the problem is - however there won't be any fix in software.

Basically what is happening is the modem part of your P880 is crashing at random when running in 3G - if you drill down the source in the kernel you see a cpwatcher.c module, its sole purpose is to monitor the CP (communication processor - aka baseband or modem) crashing and react to it. This source initially came directly from LG and funny that I cannot find this module in newer LG models. Nevertheless, the module will go and restart the baseband when this happens, but as far as I can see this is a dodgy fix for unstable hardware.

If you are running stock roms and tries to dial while baseband is restarting, you would see an interesting "Reorganizing internal processes" message - which is not only seen on P880 but others like the optimus 3D and L9 etc. Just Google and you'll find a lot of similar issues. You can also force this by killing the radio process of your phone (kill -9 <pid>) - you would see exactly the same thing.

Note that this only happens in 3G mode. In 2G the phone is quite stable. The fact that LG included a cpwatcher module in the kernel tells us something - they knew there is a problem which occasionally causes the baseband to crash but they didn't bother to fix it via hardware / firmware - instead they just implemented something to restart the baseband. The bad thing about this approach is restarting the baseband can take up to 30 seconds or more and obviously your call / data connection would have been reset in the process.

Some P880 appeared to have not affected by this problem, it could be down to the revision of the baseband (including different hardware chipset or firmware) - however many of us do and there is nothing you can do at the moment - you can try the latest CM11 where they have done a few tweaks for RIL and cpwatcher.c although I doubt anyone can fix this completely. The only hope I see is if LG releases an updated firmware that can potentially workaround the faulty hardware that prevents the baseband from crashing in the first place, this is not likely though.
[LG Optimus 4X HD] davorin-l:
Thanks for such detailed anwser :good: . So the thing is LG ****ed up the thing in the begining and left us alone :( . I was using CM11 and the problems where same. Thanks again.
[LG Optimus 4X HD] santi2007:
CM11 Nightlies

Yes, I have had this problems since I flashed custom ROMs. With Beanstalk it was really bad and I had to reboot many times.

Now with the CM11 Nightlies I was expecting it to disappear, but I lose connection and signal all the time, or in unexpetced moments, and need to insert my PIN to recover it.

According to the above post: doing the tutorial at the beginning of this thread doesn`t help then?
[LG Optimus 4X HD] Flying_Bear:
Try flashing latest 20C euro KDZ. It supposedly has an updated baseband, which might help out with this issue (some users reported no issues anymore, some reported that it didn't help them, but it's worth a try)
[LG Optimus 4X HD] pnin:
Any pointers? TiA.:)
[LG Optimus 4X HD] Flying_Bear:
check here, under latest (italy and german 20c is out)

http://lg-phone-firmware.com/index.php?id_mod=15

remember to replace the "%2F" in the download URL with a "/" or the link will be broken
[LG Optimus 4X HD] HDSteff:
Dear Community,

as far as I could researched the RIL issue, it is known by LG. It's a problem with the "modem handling" (baseband) in specific networks. I heard that only the 1800 MHz network is affected by this issue. In Germany it's E-Plus and O2 (Telefonica)! LG provided with the new version a possible patch for this issue! I read some posts in a German forum about V20C.kdz. I understand it in this way that I'll install the new stock rom with that file. Is this correct?

In additional I'm wondering if...

1) I could install the stock rom and change it afterwards back to a custom rom with keeping the new baseband version?

and / or

2) anybody could build in the new baseband version in the liquid smooth rom?

It would be fantastic to find a solution for this annoying problem, finally! Please help... I'm desperate like a housewife. :(

Best,

HDStefff
[LG Optimus 4X HD] Optimissimus99:
I have it installed. And yes. After kdz flash just flash recovery via fastboot, flash backup back and baseband will stay at the awesome one ;)
[LG Optimus 4X HD] HDSteff:
Okay, sounds good.

How about the GSM drops? Are they really gone? Do you have a 1800 mHz provider?

Could you provide me a tut for flashing recovery via fastboot? Unfortunately I bought this phone rooted & unlocked. For flashing the kdz I found something but by now nothing for flashing TWRP...

Best,

HDSteff
[LG Optimus 4X HD] Optimissimus99:
Reboot into fastboot with ADB via adb reboot oem-unlock

In fastboot then fastboot flash recovery your-twrp-image.IMG

Fastboot reboot
[LG Optimus 4X HD] HDSteff:
Okay, so not needed to root or unlock the phone again after flashing the kdz file?

Thank you very much so far!
[LG Optimus 4X HD] Optimissimus99:
Exactly. Just need a correct driver ;)
[LG Optimus 4X HD] HDSteff:
Sounds easy. :)

I'll try it tomorrow. With the Liquid Smooth rom I didn't got access to adb now. Nothing happed when I use the reboot command. It could be a USB driver problem for Linux?!

But I'll try it after flashing the original LG firmware tomorrow under windows. As far as I remember I've to activate the debugging mode under developer settings?! I hope I can activate this in the original firmware too.

Thanks a lot for your feedback. I really exited, cause I hope this new baseband will fix the GSM drops.
[LG Optimus 4X HD] Flying_Bear:
For KDZ flashing, look for Demetris' recent thread. In case you get stuck in a bootloop after flashing, perform a factory reset from stock recovery after flashing kdz (bootloop happens cuz you have data from liquidsmooth left while trying to boot stock rom)

20C firmware may or may not fix the issue for you. I've seen reports of it improving the connectivity, but also reports that it didn't help much. At the moment, the best solution would be 20c baseband with mahdi rom for alfsamsung's custom RIL recovery.

Good luck, if you have any issues, drop a question.
[LG Optimus 4X HD] HDSteff:
Thanks for the hint to Demitris tool Flying_Bear! I'll use this. But for now I can't do anything, cause I can't download the KDZ file. :(
[LG Optimus 4X HD] HDSteff:
Hmm... "adb reboot oem-unlock" doesn't work. It happens nothing although the device is attached and seen by adb (adb devices said all fine). Any idea?

The commands:

adb reboot fastboot, bootloader

and

adb reboot-bootloader

doesn't work too. It feels that the device isn't responding. but USB debugging is activated.

I'm still on a Linux environment and using adb as root. Current OS is Liquid Smooth (milestone), only for testing purpose, to check the adb and fastboot stuff before I flash the KDZ.
[LG Optimus 4X HD] Optimissimus99:
Try adb devices and look if it is attached. but this is very OT... Laufersteppenwolf has created a fastboot thread a while ago, please ASK there ;)
[LG Optimus 4X HD] HDSteff:
Thanks for your answer!

I flashed the new .kdz and afterward I was able use "adb reboot oem-unlock".

So great, I'm now on the new baseband with my Liquid Smooth 3.2 milestone! :)

Test phase begins now...

Thank you guys for your great support here!
[LG Optimus 4X HD] erianis:
Well I am not sure where to post anymore, I ve read so lot of stuff about this that I am not sure if this is actually my problem. I've tested quite an amount of ROMS the best for my taste was/is Vanir. The problem is that with Vanirs and with CM11 and Mokee that I ve tried there is NO 3G connection of my phone at all. Is anyone having the exact issue? If I change my RIL will it be solved or?? and which is best in the end because I see experimenting with these for almost 1 year from LG P880 users.
[LG Optimus 4X HD] xaverko:
With some earlier Beanstalk and Mokee bulds I had similar issues, but with latest Liquidsmooth, Mokee, Mahdi and Beanstalk versions that issue is history for me. Do you have same problem with Zaiben and Magic rom?
[LG Optimus 4X HD] erianis:
no zaiben and magic rom pose no problem to 3G, but I d like to go back to Vanir so much...any ideas on how to solve it on CM based roms???!?
[LG Optimus 4X HD] xaverko:
Try Mourta's kernel http://www.modaco.com/index.php?/topic/373498-Mourta-Kernel-3.4-A-new-beginning
[LG Optimus 4X HD] erianis:
Hmmm I can see in latest Vanir the baseband is V20b. Installing Mourta's kernel did not have any success on the 3G which is apparently always off :( I will try to change the baseband. I hope for more..... I will keep posting...
[LG Optimus 4X HD] xaverko:
Like Flying_Bear said in post #137 ..."Try flashing latest 20c euro KDZ"

Good luck!

...but before try "clean install" of Vanir (vipe data, cash, dalvik cash, format system and probably format data too...sometimes this can help)
[LG Optimus 4X HD] erianis:
mhmm no luck with clean install of Mahdi......I tried this because of older stability-reliability in using, although baseband returned to L6260 SIC one it registers now to the right network TELENOR but still no 3G. Off to flash the kdz and see what lies ahead...
[LG Optimus 4X HD] xaverko:
Still, you have "KDZ euro 20C" option. It takes a little bit more time but it is worth to try. [emoji6]
[LG Optimus 4X HD] erianis:
well sadly after following demetris guide and flashing V20c kdz still no results for 3G signal in Denmark. I have no idea if this plays any role the company or country but still in dark here........ :( :( (all of this in finnal Mahdi AND latest Mokee) God damn it Telenor....
[LG Optimus 4X HD] xaverko:
Did you tried edit build.prop as described in new post on Mahdi thread: http://xdaforums.com/showthread.php?p=57266054