yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G2x] tonyp:
That's defined in the build.prop.

Edit: oh and the P990 V30a kernel source just got released:

http://www.lg.com/global/support/opensource/opensource-detail.jsp?detailCustomerModelCode=LGP990
[T-Mobile LG G2x] apolkosnik:
I'll look it up later, it's pretty easy to add. I've cleaned up my build a bit, and I've thrown in the LGEStarRIL.java in two places to see if at least one will work. Now the whole thing is building from scratch. Hopefully, that'll solve the RIL issue. I've also removed Kineto.apk from my future builds, it's just too annoying to disable after each flashing, so the apk can be side-loaded later.
[T-Mobile LG G2x] joeyxl:
Yeah buddy! Let's take a peak, shall we? ;)
[T-Mobile LG G2x] m_malyszko:
I tried getting a GPS lock today, but couldn't. Maybe its just me.
[T-Mobile LG G2x] Волк:
GPS lock will likely be difficult until RIL is working, I think that cell tower triangulation plays a big role in the GPS lock for this phone.

You could try to activate wifi though and get a connection which may give you a GPS lock.

Also, let's not forget how finicky the GPS on this phone can be, even with the new baseband.
[T-Mobile LG G2x] Naberus:
I was going to go down the road of starting to merge the diff between SU660 and P990 source drops, but the diff is 25k lines and almost a meg. That's more than I can chew through without a few stiff drinks.

From what I can see, many of the changes are insignificant - comments changed from "// LGE_CHANGE" to "//" and similar.

Anyway, the diff is here if anyone is feeling crazy:

(link removed. The changes have been imported in the upstream repository by RC: http://github.com/CyanogenMod/lge-kernel-star )
[T-Mobile LG G2x] Mazout360:
Trying the kernel right now...
[T-Mobile LG G2x] Mazout360:
Made some workarounds and got a working kernel!!

So..official LG kernel taken from the V30A source for P990, fixed to boot on a P999.

No radio still, so maybe a OS issue there.

EDIT: V.1b out! Includes speed tweak and WIFI functionality
[T-Mobile LG G2x] ayysir:
boots with no problem man, thanks! now just to get battery meter working lol

edit: Kernel seems to break wifi though
[T-Mobile LG G2x] n30wav3:
Do u mean radio works?
[T-Mobile LG G2x] ayysir:
lol no, did not imply that at all. I just rather knowing my battery life over radio atm. But this beta kernel breaks wifi

i dont have adb setup on my windows 8 yet so no logcats yet
[T-Mobile LG G2x] LostInNorth805:
https://github.com/CyanogenMod/android_device_lge_p999/blob/gingerbread/prebuilt/test-baseband will help you guys give you an idea for the radio problem? We sorta had a problem when the baseband was updated and this was a commit by RC to fix it.
[T-Mobile LG G2x] apolkosnik:
I saw that, pretty quirky fix.
[T-Mobile LG G2x] xblitzz:
That only tested if you had the newer baseband or older baseband.. and put the drivers(?) accordingly ... by default it assumed you had the newer ones..
[T-Mobile LG G2x] H3XAPL3X:
hey guys i'm a huge advocate of this project and i'm going to flash the CM10 rom in the OP, and then flash the official kernel that Mazout360 posted above...

I'm on the old baseband , so I will hopefully aqcuire a logcat...

Maybe the kernel could work on an older baseband? we'll see
[T-Mobile LG G2x] ChopperJ:
Here's my logcats on build 6 with the V1b kernel. I'm on the July 15 baseband. Wifi works good.
[T-Mobile LG G2x] Mazout360:
Well the baseband related blobs doesn't work at all, but give it a try we never know what could happen...

Uploading edited build 6 (flashable CWM zip) with some speed/mem tweaks (nothing big not to interfere with the debugging process), wifi works perfectly, sdcard mounts properly. For those using their device as a "tablet" (AKA not using mobile network, no calls, no SMS/MMS) that's very close to a daily driver :p

@ Adampk I fixed some init and uevent settings for RIL, as well as adding some required libs that were missing from build 6. SPI and baseband drivers initializes and seem in working state! So, I think my kernel part of the work is done for now and hopefully with the LGEStarRIL blobs you will get a working build with radio. I'm posting you my boot.img since I did changes in the ramdisk also. Again, thanks for your work on this device! Boot.img : http://d-h.st/sJ1

____________________________________________________

ROM - (Updated to latest kernel) http://d-h.st/Uqg

GAPPS - http://goo.im/gapps/gapps-jb-20121011-signed.zip

1) Boot into CWM

2) Data/Factory Reset

3) Format /system

4) Flash ROM and GAPPS

5) Advanced > Fix permissions and delete dalvik cache

6) Reboot :p

As always, we are not responsible for any damage related to the installation of this ROM on your device. This is still a beta and could not be stable with every functions. You do this at your own risk.

____________________________________________________

Please report errors, crashes or bugs with a logcat being taken during the issue! Search this thread for how-tos.

Questions? Comments? USER THREAD! http://xdaforums.com/showthread.php?t=2039501&page=9
[T-Mobile LG G2x] H3XAPL3X:
So I flashed the ROM, (CM10 build #6 posted in OP) and the official kernel posted by mazout360 and I also flashed JB Gapps so I could get market and so I got a radio logcat

seems as if it doesnt have the right permissions ... anyways hope I could help :)

and I'm also on baseband from march 2011 I think ... it says baseband unknown in the rom :P
[T-Mobile LG G2x] Mazout360:
Yep, but that's already fixed :p For now it's missing the RIL blobs in the OS
[T-Mobile LG G2x] ayysir:
Why didn't you use Pastebin.com to post that long code... -_-
[T-Mobile LG G2x] huy_gm:
I'm using build 6 beta 2. I feel (just my feelin) scrolling is smoother then build 5, but keyboard's responding is slower, apps take longer to load, and one more thing, I only have 219 mb ram compared to 349 mb in build 5.
[T-Mobile LG G2x] Mazout360:
The memory settings are different on the LG kernel from the P990 sources. Remember that this is still a beta and not optimized yet. I will allocate more memory for running apps in the upcoming builds.
[T-Mobile LG G2x] lotherius:
So essentially, someone is going to need to write a wrapper for the gingerbread RIL for p999 since the only blobs are going to be su660/p990?
[T-Mobile LG G2x] fduong97:
On build 6 beta 2, the vibration no longer works
[T-Mobile LG G2x] Mazout360:
As requested, fixed memory allocation and compaction in beta 1d. Don't know for you guys, but I tried it and it's crazy buttery smooth :p

Hmm I'll take a look at this, but it's not high priority for now.

Please post comments without logcats in the user thread. I (and maybe the other devs too) come often to check older logcats if required in this thread and they're becoming harder to find since there are too many questions/comments.

EDIT: Had some time to pull out another beta before build 7 comes in. Vibration/Haptic feedback working and some code fixes.
[T-Mobile LG G2x] apolkosnik:
Started building v7 some time last night after replacing some parts with stuff from p990 kernel sources. Once I'm confident it's working any better, I'll update the OP and push my repo changes to github.
[T-Mobile LG G2x] ssuds:
Here's a logcat from the user thread of someone that doesn't have enough posts to post here
[T-Mobile LG G2x] ayysir:
i wonder if this kernel would work with tonyp's PA build 8 rom
[T-Mobile LG G2x] Mazout360:
You can try it, it won't kill your device :p but I don't think it will boot...
[T-Mobile LG G2x] ayysir:
lol man, u know how many times i messed up my android devices... always feel good to test and push the envelope to try further progress since i dont know much about coding side of android
[T-Mobile LG G2x] plarmann:
Is anybody else having a battery drain problem?
[T-Mobile LG G2x] ayysir:
hence why its a beta.....not even beta, alpha. You can even read battery stats lol
[T-Mobile LG G2x] calebjhamby:
Please. Use the user thread. This thread is for devs.

Also, I apologize for jumping in. I'll see myself out.
[T-Mobile LG G2x] phitch:
The Build.prop for the build6beta3 sets the device as a p990 just as a heads up
[T-Mobile LG G2x] Волк:
Looks like one line, ro.product.model , is set to p990. The rest is set as p999.
[T-Mobile LG G2x] phitch:
That one line is enough to have it designated as a p990 though on both my Windows Machine and by Play Store.
[T-Mobile LG G2x] Волк:
Then edit it using notepad++ then use AROMA File Manager to copy the corrected one to your phone, problem solved.
[T-Mobile LG G2x] phitch:
I already did, I was giving the dev a heads up so they could change it for future updates? Holy ****...
[T-Mobile LG G2x] apolkosnik:
It seems that Mazout used the old build, I should spank him for hijacking my thread ;) Just wait for v7.
[T-Mobile LG G2x] phitch:
Have you tried to incorporate some of the Eaglesblood AOSP drivers? I don't know a lot about it, I tried to add them by making a change in the building.prop and adding them directly to system/lib it didn't load them but I should get a logcat on it.
[T-Mobile LG G2x] Mazout360:
Sorry for this xD Yes I used your build since I cannot build one right now.. Just changed some wrong files from system/libs, system/etc and some build.prop settings (being recognized as a P990 is not really an issue and is easy to change :p the build itself works very well except for radio!) Don't worry you get all the credits for this I only did the kernel :p

I probably used a build.prop from another build by error, I have too many similar files everywhere in my work folders now :/

This is not required. The drivers are working

Yeah just noticed that...We'll get the battery meter working and verify what's happening there. But if the build/kernel continues running this well and lag-less I could consider making an undervolted build.
[T-Mobile LG G2x] plarmann:
Can we expect a build 7 soon or is it worth to flash the latest kernel? How to get the log cats from my phone?
[T-Mobile LG G2x] Волк:
Two things:

1. Please don't post asking for anything which resembles an eta. When the build is done, he'll release it.

2. Please don't clutter up the DEV thread with user questions.

@Adam and Mazout: so, just for kicks I tried the kernel with tony's ROM, it got to the second LG logo. I don't currently have adb set up, but if you guys aren't able to make a breakthrough on the radio by the time I get adb set up (in about 14 hours :( ) I will get a log for you guys, not that I don't think you can do it.
[T-Mobile LG G2x] Mazout360:
If it hangs at the second logo, then it won't boot...Means the build is made only for the older kernel.

Adampk is the only one working on build 7 right now. If you don't want to wait for it and use JB as a daily driver (without radio) I uploaded his beta build with my "stable" kernel so, in my opinion, yes it is worth it :p It's similar to the official kernel arcee is working on but with some more efficient kernel libs and memory tweaks.
[T-Mobile LG G2x] mustangtim49:
I just talked with volk and he also noticed that there was no Apn's. I'm at work (auto collision) so I can't even take the time to enter an APN by hand. Just throwing that out there. Thanks guys, awesome work. Once it gets the radio working, I'll get an article up on the portal. Cya.
[T-Mobile LG G2x] joeyxl:
I'm going to flash this only if you guys need more logcats. I have no cell Service atm, so calling isn't an issue for me right now. Do you need more though?
[T-Mobile LG G2x] Mazout360:
Not on my side..don't think for adampk either
[T-Mobile LG G2x] Волк:
Just want to follow up on this, I tried using app backup and restore, supposedly worked but the APN list was still empty, manually entered apn settings, same.
[T-Mobile LG G2x] thehumble1:
I installed #6 and it's working fast, but seems like credential storage might be buggy or maybe just the app that's using it for me (Xpresconnect).

installed gapps next, cleared cache and data and it's working great. WiFi connected fine and play is working.

After setting up a google account the phone started getting sluggish. I'll try fixing permissions and clearing cache, but it's almost like my gTablet was with ICS.

Also, for me when I reboot the phone, it simply turns off and I have to restart it manually. Don't know if this is known, but I didn't see it discussed.

dialing the Radio Settings code gives you some information too: just dial: *#*#4636#*#* and you'll get to the menu. tread carefully.

my gps only activates for about 2 seconds and then cuts out. I know that the GSM radio can help the gps, but it shouldn't be required. This is maybe just with my device, so I don't know if it's a problem.
[T-Mobile LG G2x] Mazout360:
@ Adampk Here's the older LGEStarRIL blobs...but you already got that done I guess ? You should also use rild from /system/bin from the GB build since it contains the correct RIL header
[T-Mobile LG G2x] apolkosnik:
@Mazout360. Thanks. This is not an actual blob, but one of the java classes implementing a Radio Interface Layer. See http://www.kandroid.org/online-pdk/guide/telephony.html. The blobs from p999 that allow for wifi calling I've already transplanted in #6. I've checked for any dependencies, and I'm pretty confident that it all looks solid, the logcats indicate the librilswitch is loading and so on. The only one I was missing was libbridge.so, but I got that in there through adb.

I had the LGEStarRIL.java in my cm10 builds yesterday, but when I kicked off a cm10.1 build overnight, it actually stopped with an error. I was really busy in the morning so, I just rebranded the LGEInfineon.java just to finish the build. Thanks again!
[T-Mobile LG G2x] Mazout360:
Sorry I am not too familiar with anglophone computer terms, so "blobs" pretty much refer to everything for which I can't find a precise translation XD For as far as I know, the OS parts of RIL would be that java file and the headers/lib sources in android/hardware/ril, which compiles to the rild binary and the RIL libs. This should not return an error though as I don't think it has dependencies from anywhere else ...?
[T-Mobile LG G2x] justjackyl:
Anyone notice that after using getril to push ril to 21y like i do with any rom to match ril with baseband, where this usually works, it will give me 21y but says baseband is unknown.

Don't know if this is significant information. But usually after updating the ril, it matches and is successful. With this rom, it still does not match.

Sent via my Sosei "II" Bakedbean Iconia A100.
[T-Mobile LG G2x] justjackyl:
On CM7 baseband is not unknown.

Ill get screens of GetRIL on CM10.

These are from CM7 for comparison.

G2x-CM7 Weekly 12/09/12 Build, Trinity T15 Kernel
[T-Mobile LG G2x] Волк:
On a hunch it may have to do with the way adam has the ril actually load using librilswitch. But at the same time, I would imagine it *should* still work despite that, but you never know since that's a variable.
[T-Mobile LG G2x] apolkosnik:
I've fixed up one of the imports, and it did compile with 10.1 :)
[T-Mobile LG G2x] apolkosnik:
Right, so the build.prop dictates which ril class gets used, and then there's a path to the ril. my understanding is that the rilswitch one is used for the wifi calling, and one of the rilswitch attributes points to what rilswitch loads next.
[T-Mobile LG G2x] Core Memory:
It's unfortunate that RC is incommunicado about development questions. I am certain that he knows how to fix the RIL problem.
[T-Mobile LG G2x] Mazout360:
So you put back LGEStarRIL and it did compile ? does the RIL works ?

You could also keep lGEInfineon and insert the P999 specific sections of LGEStarRIL in it to keep as much compatibility with CM10 as possible. Though, I think you would have to properly change everything pointing to P990 to P999 for the java class to detect the right hardware. I think booting with androidboot.hardware=p999 doesn't work since nothing points out to P999 in the build yet (it detects hardware=star only).
[T-Mobile LG G2x] Core Memory:
LGEInfineon is for the P990 Infineon baseband chip, not the P999 which has a Qualcomm mdm6600. Referring to Infineon will not enable the P999 radio to work.
[T-Mobile LG G2x] Mazout360:
It might work if the P999 related codings from LGEStarRIL are integrated in the LGEInfineon components..it's a dirty fix but if you don't want to change all the dependencies that would be more simple.
[T-Mobile LG G2x] tonyp:
The ril overlay gets defined in the build.prop, you should be able to set another p999 only ril file there.

It might not be important now, but once you get the radio working it would ensure the compatibility to the p990, as no generic file got overridden.
[T-Mobile LG G2x] Mazout360:
Yes thats for sure...that's why it's a "dirty" fix :p

Hey tony, did you have battery reading issues on the P990 ?
[T-Mobile LG G2x] tonyp:
Nope, never.

I'm currently not at cm10, but if you need logs to debug something I suggest to ask about it over at the p990 CM10 user thread.

If no one helps you out feel free to send me a PM and I'll get the logs for you, but it might always take a couple days. My girlfriend is rather happy these days that I'm not constantly flashing new roms and she doesn't has to use the landline because of that :D
[T-Mobile LG G2x] Yuvin:
Guys, come on. When one person answers another in a Dev thread, that's enough. No need for extra sarcastic comments.
[T-Mobile LG G2x] eagleeyetom:
Thread cleaned. Fact of being Senior Member is some kind of commitment. It means that you

should no

bash any user just because he/she posted a wrong thing. Hit the button and let us do our job.

Thank you for cooperation and kindly proceed on topic.
[T-Mobile LG G2x] apolkosnik:
I wanted to fix the tings up a bit, but I didn't manage to do so. I've tried to poke around the battery stuff, at least I know where 999 was coming from, so now you'll notice 998 ;) I guess everyone waited long enough, and now #7 with cm10.1 is up there in the OP, still the same things are broken, and I'm trying hard to figure out why it just doesn't work as it should. I've merged the CM changes from yesterday, so it's almost a nightly. Enjoy.
[T-Mobile LG G2x] Mazout360:
Good job! It's getting better and better

Don't waste your time on the battery meter. I already fixed it go take a look at my repo.
[T-Mobile LG G2x] ayysir:
http://www.xda-developers.com/andro...m-pure-aosp-4-1-2-rom-compiled-for-htc-one-x/

OH YEAAA ADAM GOOD GOING UR ON THE PORTAL, ALSO KUDOS TO MAZOUT360 AS WELL FOR HIS HELP
[T-Mobile LG G2x] H3XAPL3X:
http://xdaforums.com/showthread.php?t=1948104

@adampk & @mazout360 ... check this link out ... maybe it could shed some new light on the subject
[T-Mobile LG G2x] tonyp:
That won't help at all.
[T-Mobile LG G2x] H3XAPL3X:
The guide does talk about rewriting the framework to get the ril working for cm9/cm10 roms ... so I thought it would be relevant ... sorry bout that devs
[T-Mobile LG G2x] aremcee:
I've been trying to get this to work for over half a year, so allow me to point you in the right direction:

At this stage, the problem has nothing to do with the RIL. Zero, zip, nada. You're not barking up the wrong tree, you're in the wrong forest entirely.

The kernel source is not compatible with the radio firmware the p999 has, and is therefore unable to enable the radio in the SPI bus. The main ttyspiX nodes don't answer, and the ptsX mux nodes are completely dead (check dmesg)

Until you get ttyspi0, ttyspi1, and the various ttys (starting with /dev/pts1) to answer, anything else is futile.
[T-Mobile LG G2x] faratl:
May I ask what what's the difference between this ROM and pandroid?
[T-Mobile LG G2x] Mazout360:
So I was right...the driver works, the older GB RIL libs works and the /dev/pts1 issue is "normal"...That doesn't bode well at all

Thanks for the tip aremcee!
[T-Mobile LG G2x] tonyp:
ParanoidAndroid was and is based on cm10 hackfest by benee which is based on cm9 by arcee.

The main difference (in the user experience) is that there's no hardware acceleration.

What these guys here are trying to do is bring the new official cm10 from the p990 to the p999.
[T-Mobile LG G2x] Волк:
What do you think the chances of implementing a ril hack similar to hackfest could be done and not end up with the RILJ issue?
[T-Mobile LG G2x] Mazout360:
A RIL hack similar to the one in the hackfest won't work...it's not simply a driver issue it's the kernel itself that can't enable the communication with the SPI chip. I'm looking at it right now and I just can't figure out why...so I'll try some fixes but the chances of them working are low.
[T-Mobile LG G2x] Bulletblitz27:
So the radio issue is the hurdle that has stopped us from getting official CM10 as well? That's a bummer.
[T-Mobile LG G2x] Core Memory:
It probably has something to do with which pins of the baseband/radio chip get activated.
[T-Mobile LG G2x] Mazout360:
Doublechecked all GPIO and pinmux settings and they are all good... There's a problem with the RIL daemon socket
[T-Mobile LG G2x] apolkosnik:
Thanks man for all your efforts for this platform!

In build #7 I've included both RILs LGEInfineon and the LGEStarRIL (from CM7 or 9 with adjustments to make it compile) just to be on the safe side. So, I guess this is going to be mainly kernel-driver fun to get the thing to talk over spi working, Interestingly enough, I thought for a moment that this was working over mux, as when I had rild.libpath=/system/lib/liblgeril.so, the radio logcat was showing some AT commands and responses, but then I'm a noob at this.
[T-Mobile LG G2x] Core Memory:
You may get an answer to the problem here:

https://groups.google.com/forum/?fromgroups#!forum/android-porting
[T-Mobile LG G2x] n30wav3:
Wow who deleted all those posts here? What's goin on here....

Anyway.... mazout and adampk ... what's ur plan from now on... r u guys leaving it here or gonna push it further?.... btw adampk ... did u test ur last changes.... also if u guys are gonna push forward u have two things that u have.... a hackfest with radio working but no hwa and ur own rom with hwa working but no radio.... so if u r gonna push it further u will have to decide ....as people said.... (deleted posts) u guys have already pull out a miracle here... so any plans u guys will set will be welcomed :)
[T-Mobile LG G2x] Mazout360:
I won't quit the project without having tried anything. I have some ideas...
[T-Mobile LG G2x] n30wav3:
That's more like it :)
[T-Mobile LG G2x] apolkosnik:
I hope to get this damn thing working. I've started the effort and I was working on it even though my early builds were not booting. I think that we have enough to get it fully functional. Somehow I've grown to like my G2x-es (yeah, I got two), even though I've been using S3 as my main phone for quite a while.
[T-Mobile LG G2x] Darkknight512:
It's the imperfect ones that get the most love. What fun is a perfect device?
[T-Mobile LG G2x] OxyClean:
Great to have new apps on G2X. I have 2 of them still. Keep up the great work. Didn't mean to offend.

HDMI out is sideways, nevertheless... I only use WiFi, so this is again awesome.

Thanks for all the time and effort for a perfectly awesome phone.
[T-Mobile LG G2x] apolkosnik:
Even when you turn on the rotation, and flip the phone on the side?
[T-Mobile LG G2x] Rafase282:
Hello again, I just decided to flash the rom since I want to use it as a developer device for my apps and I noticed that radio and battery indicator are supposed to be broken. However, I have the new baseband, I flashed the rom, the latest gapps, the kernel from the other treat that was with this one before, and the newbaseband fix and I have battery indicator working, I cant text data because I'm using my Nexus 4 so the simcard is no the same anymore.

But if someone could test to see if that solves the problem for someone else?