yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G2x] meatfest1974:
...actually, up until now, I've been bouncing around ROMs to get one I actually like.

For a while, I was using Mazout's JB nightlies and overclocked it, then I'd tinker with tonyp's PA ICS quasi-JB 12 (wishing it would be a true JB).

What I find is that this Mazout's most recent kernel, combined with his JB nightly is the closest thing to true JB utopia.

(Like the OP recommended, I did try this kernel with adampk's JB, but I find that it is incompatible with any JB gapps.)

Only two drawbacks (and not dealbreakers, in the least): GoogleNow crashes, and a slight hiccup in Bluetooth (I connect my G2X to a speaker to listen to TuneIn and Google Play Music; the Bluetooth initially disconnects and reconnects until stable about 20 seconds in. This doesn't happen with every song, but every album in GPM.)

I'm only using this as a mini-tablet (not a phone) and I have to say that this is a beautiful little toy.

Thanks, Mazout; and nice work.

You're pretty darned good at this.
[T-Mobile LG G2x] meatfest1974:
...UPDATE: well, it's been two days using this kernel and Mazout's JB ROM. So far, the battery life has been exemplary for a JB ROM. There also has been some random Sleep o' Deaths; oddly, never when plugged into a charger.

Still, it's my go-to ROM and kernel pairing.
[T-Mobile LG G2x] meatfest1974:
...deleted.
[T-Mobile LG G2x] thakrew317:
Is data still a no go on ics for this phone
[T-Mobile LG G2x] Mazout360:
There will be no data before a ROM with the correct RIL blobs has been released...
[T-Mobile LG G2x] thakrew317:
Jw my wife has my old g2x n i been diein to see a working stable ics/jb build on it just to compare to my s2 and see how well the g2x handles it
[T-Mobile LG G2x] huy_gm:
Can you put effort to build working rom too, I mean it's better to have working rom with cellular, then we can take our time to optimize the kernel. Right now we're waiting for adam but recently there is no news from him, maybe he's stuck at some point. I think it's better if you can give him a hand by looking in to the issue.

Gửi từ LG-P999 của tôi bằng cách sử dụng Tapatalk 2
[T-Mobile LG G2x] Mazout360:
I am too busy right now to get into ROM dev. I already offered my help to adam but he didn't answer me, so he's probably doing fine with the RIL implementation.

If there's no news after my finals (friday next week) I'll get into this. But since Adam did everything on the ROM I am leaving to him the opportunity to release the first fully working build of course.
[T-Mobile LG G2x] thehumble1:
^^

This is why RC is gone (at least for now).

I want to get Mod status just so I can go through the g2x forum and delete useless posts (like mine) from the Dev. threads.

Huy_gm, can you do it? You should work on building a working ROM with a working RIL. Or maybe Mazout isn't our Go-Bot and can work on anything he damn well wants. If he just wants to make a Kitaro worshiping Froyo build, more power to him. If you can help please do so . . . maybe if you don't have the skills you should donate enough money to help.
[T-Mobile LG G2x] c1c2doc:
Thank you for doing a tremendous job already Mazo. We are all appreciative of you doing for our G2X community what we can't do for ourselves. Some kids just want their presents before Christmas morning.

With that said I'm quickly becoming a forum junky...using every spare moment to check for the latest.

With all you and Adam are doing we are looking at a Merry G2X-mas for sure
[T-Mobile LG G2x] kurbstar:
and this is why we can't have nice things
[T-Mobile LG G2x] huy_gm:
Haha you got a point there. I think I know what xda rules are about and this is the first time someone complains me stuffs like this. So I'll write my thought about these kind of complains for the first (and last time of course).

You know xda development threads will become such boring places if there are only logcats and code, it also need emotion and fun where you feel like a party whenever you jump in. This threads in particular not having [DEV] tag, it's a kernel release thread with few (if there is) logcats. Other than that it contains feature suggestions and discussions. So there is no Go-Bot but at least we can say "do you think it's good if we can include that thing", devs will do if they think that's interesting, or they just ignore it.

Money is always good, I will donate when I graduated and have a job. However, many devs here prefer us to say "wow you do a great job on this" and motivation for their works than money.

Ah and you mentioned RC, actually he stopped tracking cm10 user's thread a long time ago, well it loads with useless bugs reports without logcat. So I think he didn't hear a single annoyed word what we shout out after then. Maybe the reason for him to stop deliver cm10 is because the calling audio bug that he needs p990 kernel source release to fix.
[T-Mobile LG G2x] buru898:
Well... who ever said developing was supposed to be fun?

These people do this stuff for their reasons and at their own pace.

XDA is a place for developers to share ideas with each other, so yes, I think it would be better if people left out any "emotion" and "fun" or put that stuff in the proper forums. Posts by non-developers should really just be to help those developing. More like, "Hey, I flashed this now that doesn't work, here's a logcat kthxbai" no, "Hey, this is cool, but why don't you work on this now since I don't know how to do it for me pl0x?"

Not attacking you, just telling you what the original idea of XDA was about way back when and what it should still be.
[T-Mobile LG G2x] thehumble1:
RC stated in more than a few places that he couldn't waste his time digging through all the whining and nagging to get to the useful stuff. The useless logcats and other junk was in the same vein: people that don't know etiquette and don't read the entire thread before responding, yeah all 1200 or 2400 posts. He couldn't post on XDA or g+ about development without getting bombarded by people wanting more, always more.

__________

I installed #6 and have this kernel ready to go. I'm going to try stock but then switch and see what the difference is. The stock setup seems to be running a bit sluggish once it's up and going for a bit.
[T-Mobile LG G2x] Mazout360:
You know what ? I like the idea of active threads with fun and emotions..Eww, all this boring stuff is heavy..

...and you know what's even better ?

This kind of thread EXISTS!! :o

>> http://xdaforums.com/showthread.php?t=2039501

:p

Will be uploading new build after my github is done updating. Features BFQ scheduler as default (f*** noop :cyclops:) and V(R) for those willing to do benchmarking. Don't know if I can optimize speed and responsiveness much further without a correct build for now.
[T-Mobile LG G2x] Yuvin:
Hey Mazout, do you want me to put info from this thread in the User Threads OP?
[T-Mobile LG G2x] Mazout360:
Yes of course, and remove my custom ROM as it shouldn't be required anymore

I just heard adampk will build CM10.1, which is very good :) and this kernel should be compatible :p
[T-Mobile LG G2x] Yuvin:
Done! Updated the OP in the User Thread. Also, to keep myself from posting in this thread, if you ever need the OP in the User Thread updated or want to put more information in it, just PM me (:
[T-Mobile LG G2x] Mazout360:
Okay some news...Next update will include :

- A fix for ADB, for it's correct detection on OS X and windows terminals, on windows this will need to be tested.

- Several fixes

- I'm also testing a workaround that I implemented in the battery driver to fetch the battery capacity from it's voltage, since I couldn't pinpoint yet why the battery driver won't output it's capacity correctly. It seems to work but is has some disadvantages : 1) Possibly a lower refresh rate (not necessarily), 2) Incorrect readings while charging (underestimate the real value since the power comes from the USB cable), 3) Gaps in the readings (jumps from a value to another randomly, like from 65% to 60%. It has not happened yet though and the values seems very precise).

I will continue beta-testing this, and if there are intolerable discrepancies between the real value and the output value (AKA the phone dies at 45%) I will modify it and release when it's acceptable.
[T-Mobile LG G2x] Core Memory:
The battery voltage is a good parameter to know if it is determined directly from the battery. The service manual has the percentage of capacity remaining relative to battery voltage. Did you reference that information?
[T-Mobile LG G2x] Mazout360:
Yes thats exactly what I used. Up to now I'm satisfied with the output values and it seems very precise but I want to make sure the low values (<10%) and high values (>90%) gets a correct reading before releasing the patch.
[T-Mobile LG G2x] Mazout360:
OP updated with version 1215. Support for the newer build 7 (CM10.1). See changelog for details.

Link for Gapps : http://goo.im/gapps/gapps-jb-20121212-signed.zip
[T-Mobile LG G2x] n30wav3:
Mazout. Can u add the boot.img version of this please? I cannot use it as it is on dualboot

Also I think it should be easy now to track if there is any battery drain using betterbatterystats as we dun have RIL working

Thanks :)
[T-Mobile LG G2x] fduong97:
Mazout, when you say "Fixed battery meter when not charging", do you mean that there is still an issue with the battery meter when the phone is charging?
[T-Mobile LG G2x] buru898:
I'd assume the battery works, but doesn't show right only when charging.
[T-Mobile LG G2x] xblitzz:
He said he maid a "workaround" to determine the current battery percentage... he is doing it with the battery voltage... but when your charging the battery the voltage itself is higher because of the charging so it wont give you the real reading until you unplug it... so its not a final fix.. just temporary! which is alot better than nothing :)

thanks mazout for all the work! and adampk too!
[T-Mobile LG G2x] n30wav3:
Damn :D can anyone create a boot.img for me please ... I think mazo is not around
[T-Mobile LG G2x] fduong97:
I was testing this out, and though it seems like it is detecting the wifi networks, it isn't allowing me to connect to them. Is there any way to fix this?
[T-Mobile LG G2x] Mazout360:
Exactly..Since the phone uses USB power when charging the battery voltage use drops as well, so does the output capacity (%). You won't get a good reading if the phone is plugged so you will need to unplug it to know the exact percentage.

Let me 5-10 minutes and I will upload you one

@n30wav3 Here you go. Hope it's good I didn't test it : http://d-h.st/KDe

Yes I noticed this...I don't know why yet and wifi works correctly on CM10, but it seems to drop intermittently on CM10.1. I will recompile on my ubuntu next time and see if it fixes the wifi module.
[T-Mobile LG G2x] lotherius:
Okay.... thinking about the radio. There's a couple of things to think about:

1) Same baseband works on Hackfest

also

2) Hackfest is ICS

therefore

3: We have code that can operate the radio on ICS

also

4: ICS code should work on Jelly Bean with minor changes

therefore

5: We should be able to use the same tricks Hackfest used to alter ICS kernel to operate radio on ICS &/OR JB?

amirite? I assume this has been considered, but just thinking in print here. I don't see why we wouldn't have a working radio after a while, it's just a matter of work right now. :highfive:
[T-Mobile LG G2x] Mazout360:
Well the hackfest is a dirty ICS...my first idea was to do something like that but as per TonyP it seems that the RIL has changed substantially in the newer builds. If that was that simple I think adam would've already fixed it.
[T-Mobile LG G2x] plarmann:
Anybody else experiencing battery drainage with oc built?
[T-Mobile LG G2x] n30wav3:
But mazout dun u think only dirty ics ril can work on g2x for above gingerbread roms since we dun have any new sources or ril or basebands for both ics n jellybean...... m just giving my point here that we used a gb ril driver on hackfest because of the above reason.... one way or another we will be using the March 2012 baseband or July 2011 baseband on cm10.1 right? then why not use the dirty fix instead of creating something from the scratch... ... its just my opinion maybe Adam has already tried it .... and if it didn't work what was the reason behind it. I would love to know

EDIT: now that I have read that line again....that RIL has changed substantially ... it may make sense... but here is a trick.... when arcee was working on cm10 he not only make the ril to work with newest baseband but also make it work on the old gb baseband.... can we replicate that and modify the targets to our own baseband?
[T-Mobile LG G2x] Mazout360:
Are you experiencing substantial battery loss while NOT using the phone ?

If the RIL is not fixed by next friday I will try it myself since I will be done with my finals. Then I will know if it works or not.

Updated OP download links with wifi fix for CM10.1...It seems that one of RC's fix on his repo was messing up the wireless. Now you shouldn't have trouble connecting to a router and keeping that connection.
[T-Mobile LG G2x] n30wav3:
Hey I edited my last post... see it again please
[T-Mobile LG G2x] Mazout360:
I just saw RC's post in the other thread...

I'm sorry guys, but the chances of getting the radio to work are much much slimmer that we'd thought...and it has become a kernel issue. I will try my best to do something for this but...oh well...there's a lot of work to do...
[T-Mobile LG G2x] 2am:
We believe in you Mazout360!!!!!
[T-Mobile LG G2x] n30wav3:
But this atleast clears that we shouldn't be thinking abt the new RIL drivers at all .... the dirty fix is the only way though...
[T-Mobile LG G2x] Darkknight512:
Just wondering, how is the kernel RIL code setup? I've never looked at the kernel code, is it mostly gathered in a few files or is it all over the place? Sounds like one game plan would be to try to port the old kernel's RIL code to the new kernel, but porting kernel code... sound like you got your work cut out for you.

Have you taken a look at any updated phones with the same baseband chip? Probably not going to help much, the implementations of the RIL between phones/manufactures are going to be immense and it sounds like the issue is not having the code or the documentation, its how every ties together in the kernel code.

The fact that none of the communication to the baseband chip works might be better then some of it working, sound like the problem is probably all related and once you find the fix for one, everything magically works.

Unfortunately I'm way far off in offering you any useful help, but I'm going to get a build environment in Linux setup when my exams are done, but I need to brush up on a lot of Linux knowledge before I am even going to touch anything close to the kernel.

Lot's of respect for you for giving this whole project a whack, would suck to get stalled after getting so far. Best of luck.

Side note: I find it quite interesting that LG would put partial P999 support into the new sources, sounds like LG might have some intention to release ICS for the P999 but due to some other hiccup they won't.
[T-Mobile LG G2x] Mazout360:
The nodes issue with the radio could explain why LG won't release ICS for the P999, definitely, as they integrated the support for almost everything else, even the SPI/MUX drivers.

I really hope only one fix could make all the nodes work, but I guess this won't be easy to find.

For now, I don't know what to do. I will try to create the nodes manually with a script and see if it does anything, but since they do not answer I don't think this would help at all.
[T-Mobile LG G2x] Darkknight512:
I doubt LG would not make a release just because they are having issues with the baseband, they have all the documentation and since they probably signed a contract with Qualcomm, they have their help as well. Sounds more like corporate politics to me. The P999 has such a small user base that LG/Wind/T-Mobile/Whoever else just can't justify full testing of the software before they release it on their networks, just having code written only means so much.

However it is still concerning that everything else is done EXCEPT the RIL. Might be because they needed help from Qualcomm but just couldn't be bothered to ask them (or pay them) for it.
[T-Mobile LG G2x] plarmann:
Yes I am. And I underclocked it to 216 MHz.
[T-Mobile LG G2x] Mazout360:
If you are using CM10 (not CM10.1) change INTERACTIVE to ONDEMAND in the Performances menu. Also, you will lose battery faster with a OC kernel but it should last about 5-6 hours at least (it is a beta so there are probably some wakelocks preventing the phone to go to sleep). Since there's no radio you should get some good performances even with the non-OC one.

The phone should set itself to 216 MHz when the CPU is not used.
[T-Mobile LG G2x] fduong97:
Mazout, is there any way to change the default storage to be the external sd card and not the internal emmc?
[T-Mobile LG G2x] Core Memory:
LG doesn't have any problem making the G2X/P999 work with ICS, it decided not to provide the method of enabling the radio because, when providing an upgrade, it has the service provider, such as T-Mobile, test it on their network first but, because T-Mobile isn't going to do that and neither is WIND or Videotron in Canada, LG didn't enable the radio to work.
[T-Mobile LG G2x] Mazout360:
Open vold.fstab in system/etc with a text editor and swap the line containing EMMC with the line containing SDCARD (sorry if I'm not very precise, I don't have my phone with me right now...)

I don't know...that's possible. I'm with Videotron and they still sell the G2X so I don't know why they don't want to try this. I think this decision comes from LG Canada/United states rather than from the providers themselves, but again these are speculations.

In some kind of way this would be good news...that would mean the radio could work and is not limited by a compatibility issue.
[T-Mobile LG G2x] redmonke255:
If the providers want, they can purchase the upgrade from LG, the problem is that's this phone wasn't a huge success and it's not worth the investment to them.
[T-Mobile LG G2x] Core Memory:
On and off topic:

I think LG would make ICS available for the G2X/P999 but the service providers didn't pay LG for the upgrade. I have the promotional literature from when LG and WIND were advertising the Canadian Optimus 2X as "upgradable" and that there would be an upgrade from Froyo to Gingerbread which never appeared. Not providing Gingerbread is material damage so I am going to sue in small claims court over that. It will cost me about $150 to do it but I will do it. Upgradable doesn't mean that an ordinary purchaser has to install an unofficial software such as CM7 and void the phone's warranty to upgrade their phone. Consequently, I know that I will be successful and I will force WIND and/or LG to replace my phone and pay my costs. Cell phone manufacturers and service providers shouldn't be allowed to get away with not fulfilling their promises which consumers rely on to make their purchasing decisions.
[T-Mobile LG G2x] Mazout360:
Indeed. Please keep us informed about this I am interested to know that is going to happen.
[T-Mobile LG G2x] Core Memory:
Have you tried to directly control the radio/modem with AT commands such as through a serial terminal or through ADB?

Here's an interesting post about communicating with the radio/modem. Although it is written with using the Samsung SGSII the principles apply to any phone.

http://xdaforums.com/showthread.php?t=1471241
[T-Mobile LG G2x] plarmann:
Is build 5 or six better for the battery life?
[T-Mobile LG G2x] sambodie:
And your thread about the modem in G2x if specifics are needed.

http://xdaforums.com/showthread.php?t=1412064
[T-Mobile LG G2x] Core Memory:
Here's someone registered on Linkedin, Jaehong Jay Park, who worked as Chief Engineer at LG Innotek Co. Ltd. His summary specifically states that he worked on Qualcomm basebands, etc. There are others on the right side of the page who also work at LG Innotek:

http://kr.linkedin.com/in/smilejaypark/ko

http://kr.linkedin.com/in/smilejaypark/en

I know it's a longshot but he or someone else may help.
[T-Mobile LG G2x] TheEnternal:
I sent him a message. I assume he'll understand it as he has worked in the US and a good majority of Koreans study english.
[T-Mobile LG G2x] Core Memory:
Tell him that if he helps to enable the G2X/P999 radio/modem to work with Android 4 (ICS and/or JB), meaning that it makes calls and does data, I will remove all of the anti LG stuff in my XDA signature and I won't sue WIND Mobile and LG Canada.
[T-Mobile LG G2x] DupleX01:
LOOLZ :thumbup:
[T-Mobile LG G2x] towelboy:
You guys are badass!
[T-Mobile LG G2x] King-Nai:
Could someone with GB still installed run "cat /proc/tty/drivers" through the ADB shell command please.
[T-Mobile LG G2x] H3XAPL3X:
gimme 2 seconds

---------- Post added at 02:25 AM ---------- Previous post was at 02:22 AM ----------

here we go

cat /proc/tty/drivers

/dev/tty /dev/tty 5 0 system:/dev/tty

/dev/console /dev/console 5 1 system:console

/dev/ptmx /dev/ptmx 5 2 system

/dev/vc/0 /dev/vc/0 4 0 system:vtmaster

g_serial /dev/ttyGS 251 0-2 serial

rfcomm /dev/rfcomm 216 0-255 serial

ts0710mux /dev/pts 250 0-31 serial

tty_ifxn721 /dev/ttyspi 153 0-1 serial

tegra_uart /dev/ttyHS 252 0-4 serial

serial /dev/ttyS 4 64 serial

pty_slave /dev/pts 136 0-1048575 pty:slave

pty_master /dev/ptm 128 0-1048575 pty:master

unknown /dev/tty 4 1-63 console
[T-Mobile LG G2x] kesara:
$ cat /proc/tty/drivers

/dev/tty /dev/tty 5 0 system:/dev/tty

/dev/console /dev/console 5 1 system:console

/dev/ptmx /dev/ptmx 5 2 system

/dev/vc/0 /dev/vc/0 4 0 system:vtmaster

g_serial /dev/ttyGS 251 0-2 serial

rfcomm /dev/rfcomm 216 0-255 serial

ts0710mux /dev/pts 250 0-31 serial

tty_ifxn721 /dev/ttyspi 153 0-1 serial

tegra_uart /dev/ttyHS 252 0-4 serial

serial /dev/ttyS 4 64 serial

pty_slave /dev/pts 136 0-1048575 pty:slave

pty_master /dev/ptm 128 0-1048575 pty:master

unknown /dev/tty 4 1-63 console

$

From stock GB
[T-Mobile LG G2x] Mazout360:
@king-nai Seems okay to me...except the ts0710mux which has the major device number 249 on JB.
[T-Mobile LG G2x] King-Nai:
This is this kernels tty drivers:

Help me find all differences please.
[T-Mobile LG G2x] xenoletum:
GB Kernel-

[b]/dev/tty /dev/tty 5 0 system:/dev/tty
/dev/console /dev/console 5 1 system:console
/dev/ptmx /dev/ptmx 5 2 system[/b]
[i]/dev/vc/0 /dev/vc/0 4 0 system:vtmaster[/i] - Does not exist below
[i]g_serial /dev/ttyGS 251 0-2 serial[/i] - Current reads [b]g_serial /dev/ttyGS 248 0-2 serial[/b]
[b]rfcomm /dev/rfcomm 216 0-255 serial[/b]
[i]ts0710mux /dev/pts 250 0-31 serial[/i] - Current Reads [b]ts0710mux /dev/pts 249 0-31 serial[/b]
[i]tty_ifxn721 /dev/ttyspi 153 0-1 serial[/i] - Does not exist below
[i]tegra_uart /dev/ttyHS 252 0-4 serial[/i] - Current Reads [b]tegra_uart /dev/ttyHS 250 0-4 serial[/b]
[b]serial /dev/ttyS 4 64 serial
pty_slave /dev/pts 136 0-1048575 pty:slave
pty_master /dev/ptm 128 0-1048575 pty:master[/b]
[i]unknown /dev/tty 4 1-63 console[/i] - Does not exist below

Current Kernel-

[b]/dev/tty /dev/tty 5 0 system:/dev/tty
/dev/console /dev/console 5 1 system:console
/dev/ptmx /dev/ptmx 5 2 system[/b]
[b]rfcomm /dev/rfcomm 216 0-255 serial[/b]
[i]g_serial /dev/ttyGS [b]248[/b] 0-2 serial[/i] - GB reads [b]g_serial /dev/ttyGS 251 0-2 serial[/b]
[i]usbserial /dev/ttyUSB 188 0-253 serial[/i] - Does not exist above
[i]acm /dev/ttyACM 166 0-31 serial[/i] - Does not exist above
[i]mdm6600 /dev/ttyspi 153 0-1 serial[/i] - Does not exist above
[i]ts0710mux /dev/pts [b]249[/b] 0-31 serial[/i] - GB reads [b]ts0710mux /dev/pts 250 0-31 serial[/b]
[i]tegra_uart /dev/ttyHS [b]250[/b] 0-4 serial[/i] - GB reads [b]tegra_uart /dev/ttyHS 252 0-4 serial[/b]
[b]serial /dev/ttyS 4 64-67 serial[/b]
[b]pty_slave /dev/pts 136 0-1048575 pty:slave[/b]
[b]pty_master /dev/ptm 128 0-1048575 pty:master[/b]

Bolded lines are no changes, italicized lines are where there are differences, which are bolded.
[T-Mobile LG G2x] King-Nai:
Also, I believe this is where WiFi starts having issues:
[T-Mobile LG G2x] hhwong:
just to make sure, this kernel does not work with the PA tonyp is working on right?