yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G2x] Yuvin:
Nope, the PA rom is based on a Hackfest build which this kernel doesn't support. Please ask questions like this in the User Thread.
[T-Mobile LG G2x] Mazout360:
I will upload tonight a temporary update...since we're having issues with the pts nodes and this could take some time to fix, this update will silence the SPI/Radio drivers, which will hopefully prevent wakelocks and give you more battery time. I will also set the I/O to CFQ by default because, as some of you might have noticed, CM10.1 doesn't seem to like BFQ and the device slows down from time to time.

EDIT : Update is up.

- Battery meter now shows 100% when charging instead of a random value (that's not much but I hated the stupid readings while charging :p)

- Killed kineto and radio-related drivers for battery saving, no RIL wake locks and no force closes.

- Changed the I/O scheduler to CFQ as there was lag when using BFQ.

This update is for non-debugging purposes (AKA users-friendly version). Everything works except calls and SMS. There should not be any force closes, high battery drain, lag or issues with any drivers. Tested on CM10.1 but I recommend CM10 as it is more stable.
[T-Mobile LG G2x] HeXaLox:
doo workkk!!! :) lol im always excited to see the new builds and kernels lol kudos to you guys! :D:highfive::highfive::highfive:
[T-Mobile LG G2x] Core Memory:
Now that you've got the kernel working except for the radio, maybe RC will be interested in assisting with getting the radio to work. I hope he's following this thread and will respond to what you've accomplished. If he doesn't post anything in a day or two, contacting him may be advisable.
[T-Mobile LG G2x] Mazout360:
I already asked him and he didn't answer...In his post he clearly mentioned that he didn't manage to make it work either so he's at the same point as we are. If he sees this post and has some useful information to share then I'd be happy if he shares them but I guess he would've already told us.
[T-Mobile LG G2x] n30wav3:
Yup.. better concentrate on ur own since u guys r the only ones working on p999 right now .... Best of luck again
[T-Mobile LG G2x] Mazout360:
I cleaned up the kernel code in my github and set all my tweaks and fixes as configurable options in the P999 defconfig to make the compiling process more user(dev?)-friendly. If anybody wants to join the debugging process for the radio you are free to sync and work directly from my repo and it is now easier to set the desired memory tweaks/additional features back to *stock*. I also added the most recent fixes from the CM repo. I will not make a new kernel build since it is not really useful without radio right now.

Link to my github : https://github.com/Mazout360/lge-kernel-star
[T-Mobile LG G2x] Mazout360:
OP updated with newer 0104 version, non-OC only (who needs OC, it should be the smoothest build up to now :p).

It's still a beta, since I included many fixes and commits. You should get a fast bootup time, buttery smooth performances and a very good battery life! I do not play games on my device so please report any suspect lag or lack of memory when playing 3D games. Since this is a beta, errors are possible and will require a logcat to be fixed, but I tried it long enough to tell that it is very stable...oh almost forgot, I tweaked it a bit to get MOAR RAM, yay!
[T-Mobile LG G2x] Core Memory:
How about this as a stopgap solution to problems with getting the G2X radio/modem working?

Make the G2X dual boot so that, when wanting to use it to make a cell call boot it into GB from the internal memory but, when wanting to use it to do what JB can do boot it into that from external flash memory without the cell call ability. If it were possible to soft-boot from one to the other, that would be the best method.
[T-Mobile LG G2x] Bulletblitz27:
That sounds painstakingly annoying. It's so impractical.
[T-Mobile LG G2x] m_malyszko:
I just tried your kernel and I think WiFi is broken. Can't get you a log cat cause I'm at work.
[T-Mobile LG G2x] Core Memory:
It is only a stopgap measure, if and until the cell radio/modem is made to work with ICS/JB. If it is not very difficult to accomplish I think it would be useful.

Most of the time I use the phone as a cell phone but if, by hard or soft rebooting or switching, I could also use the improved function of ICS/JB when I wanted such as the hardware video acceleration with it, the inconvenience is acceptable.

There are some who are running ICS/JB/CM10/etc. on their G2X with no cell radio/modem working at all and are willing to accept that so why wouldn't it be acceptable to enable them to have a boot choice in order to use their phone to make and receive cell calls when they want to?

If you think it's annoying, you don't have to use it if it were available, just continue with what you've got but if it became available and you found it useful you wouldn't complain would you?

EDIT:

I am not going to continue this conversation in this thread.
[T-Mobile LG G2x] Mazout360:
Problem is, you are going to miss phone calls while on CM10. At the same time to answer what you were saying in the g2x general forums, I think the difference between the devices who has a MDM6X00 modem with ICS and those (like us) who doesn't is the way the chip is connected to the mainboard. Seemingly, having the MDM6600 as a SPI device doesn't work whereas having it as an internal USB device does (or almost).

I retried it to make sure and it does work on my device, with a fast connection and no drops or hot reboots like it did in the past. Make sure you installed CM10 as per the instructions and fixed permissions (if you can't set WIFI on at all, the module might have wrong permissions). Also, if you are using adampk's ROM use build 6 (CM10) as build 7 is not going very well on this device.
[T-Mobile LG G2x] Core Memory:
Missing a phone call isn't really a problem if you've got an answering service. It would be just like when the phone is off. When you want to get the message, either use wifi or reboot to use the cell radio/modem.
[T-Mobile LG G2x] Mazout360:
I have good news and bad news...

Good news: LG released a newer kernel source :p V30B is up.

Bad news: Well...didn't find nothing good in it.
[T-Mobile LG G2x] churd83:
ahhhh fuwee
[T-Mobile LG G2x] HeXaLox:
many errors ill give a logcat asap lol :silly:
[T-Mobile LG G2x] Mazout360:
Please clearly state what ROM build your are using and what are the exact errors and when they occurs. I've been running this kernel for 3 days now and I did not experience any errors with anything I tried yet. In some cases, a kmsg would also be required. Plug your phone in your computer, open a terminal and type adb shell, then su, then cat /proc/kmsg/.
[T-Mobile LG G2x] Mazout360:
Thanks for the log

I am aware of the USB issue, I'm working on it but I couldn't pinpoint exactly why it does that yet. I will need a kmsg taken while this happens, as the logcat you sent me does not show anything wrong.

Concerning messaging, I will make sure it gets cleaned because, without radio, it will always crash on boot.

For the quick settings button, you are using build 7 right ? I think this is related to a ROM issue and I can't do anything about this if I do not release my own CM10.1 ROM.
[T-Mobile LG G2x] HeXaLox:
oh oky thanks for the heads up :) it still works fine just a BIT of lag on graphics which is fine as well but again we know that as a bug :) anyways what log app would u recommend? catlog? :0 cause ill do more if you need them :) ill be in search for more bugs today :) experimenting is pretty fun lol :):silly:
[T-Mobile LG G2x] capncybo:
I also seem to be experiencing WiFi connection problems. The WiFi connection & icon keeps dropping & reconnecting. When I just flashed the rom version 7 the connection was stable. After flashing your latest kernel (the battery displayed, thank you) but the WiFi connection was not as reliable. I did try ROM version 6 & running fix_permissions on both versions 6 & 7 but experienced the same problem. It's so close to perfect I can hardly believe it. Not sure if the radio RIL can be fixed but with Jellybean this G2X sure is an awesome mini tablet ;)
[T-Mobile LG G2x] Mazout360:
I don't understand why you get wifi issues. Could you please provide a logcat taken while this drop happens ?
[T-Mobile LG G2x] King-Nai:
WiFi just never turns on for me xD

Not a big issue right now, but still annoying.
[T-Mobile LG G2x] Mazout360:
That's strange...I had no wifi issue at all yet..

I'll recompile with my ubuntu and post back..I had issues with the wifi in the past when I compiled the kernel with my macbook. Hopefully it will work for you guys. If not I'll push a version without any tweaks/fixes on the wifi driver which should work "almost" correctly.

EDIT: Nailed it down :p

There was indeed a compatibility issue on CM10.1 with the wifi driver. I made some changes and you should now get a wifi connection and keep it with build 6 AND build 7. Tested on build 7. Please confirm and I will push the changes to the OP.

Download here : Custom kernel with build 7 wifi compatibility
[T-Mobile LG G2x] capncybo:
Yep, you nailed it I can't believe how awesome this device is already. Even if the RIL & Radio cannot be made to work I may just pull the sim card out & carry 2 devices. As long as I can get a cheap flip phone from WIND. I am typically near a good Wifi connection anyways so that would be an okay work around. Thanks again & keep up your amazing efforts.
[T-Mobile LG G2x] Mazout360:
Thanks!

Just updated OP with another beta. Updated the source LG kernel with the latest commits from the tegra 2.6.39 kernel hosted on google git. Several fixes added:

- (netfilter) Start tracking iface rx/tx at low level

- (netfilter) Add new netlink msg type

- (netfilter) Fix ipv6 protocol lookup

- (VFP) Updated VFP module

- (ADB) Only enable gadget when adbd is ready

- (ARM v7) Remove HARVARD_GUARD preprocessor guard

- (USB) RNDIS touch-ups

- (PM) Disallow lp2 while hotplugging in suspend

- (L2X0) Clean cache when disabling L2

- (L2X0) Add save and restore functions

- (VIDEO) Convert channelopen kzalloc to vzalloc to avoid large physically contiguous allocations at runtime.

- (EXT4) Add missing save_error_info() to ext4_error()

Please report any bad behaviour with a logcat and cat /proc/kmsg please.
[T-Mobile LG G2x] m_malyszko:
Wi-Fi

Wireless radio turns on, sees all the networks, but wont connect to them. I tried unsecured, secured, but no go.
[T-Mobile LG G2x] Mazout360:
Choose your desired network and close Settings. It should connect but if you get into the WIFI selection page it drops the connection. I'm working on this but it might be a build issue here.

EDIT: Issue fixed. OP updated. Sorry for this.
[T-Mobile LG G2x] m_malyszko:
Thanks, but that doesn't help either. I have GrooveIP turned on, and it constantly disconnects. Try it if you don't believe me, I also have Skype and GG running, and it still disconnects if I come out of Settings.

Wait hold on. It does work.
[T-Mobile LG G2x] Mazout360:
I am not having these issues. Could you please provide a logcat ?
[T-Mobile LG G2x] m_malyszko:
Nevermind

Sorry it does work. Thanks
[T-Mobile LG G2x] Core Memory:
Hi Mazout,

Just as a long-shot test, with your kernel loaded, try to get the G2X to make a phone call through using ADB command and make a logcat while doing it.

Edit, inserted missing -d in call string.

adb shell am start -a android.intent.action.CALL -d tel:xxx-xxx-xxxx

Replace xxx-xxx-xxxx with your G2X phone number.

Look in the logcat for

Starting: Intent { act=android.intent.action.CALL dat=tel:xxx-xxx-xxxx }
[T-Mobile LG G2x] Mazout360:
Is it supposed to work ? the kernel I uploaded has no radio and kills the radio related binaries to save battery since it doesn't work.

BTW I tested it for long enough to launch a stable version tonight or tomorrow. There are still some issues with I/O which you probably noticed if you tried installing heavy apps. Hopefully, I will get that fixed soon.
[T-Mobile LG G2x] Core Memory:
It works with GB, I've done that. I didn't remember that you've gutted your kernel of radio related code. You would have to try phoning through adb with all of the radio related code intact and with it working as much as possible.
[T-Mobile LG G2x] plarmann:
I wanted to ask where I can download the previous kernel versions, the current is causing some issues with the battery.
[T-Mobile LG G2x] Mazout360:
I removed them since I don't have a hosting site yet. Please describe your problem and join a cat /proc/kmsg if possible. Also, please specify which version was working correctly. I did not upload the stable version yet so it's not too late to make some changes. What build are you using ?
[T-Mobile LG G2x] plarmann:
Build v104d
[T-Mobile LG G2x] Mazout360:
Please give more details. I can't fix anything if you only specify that the battery has an issue.

OP updated with stable 0104 kernel. Removed some commits due to stability issues. I'm also working on another project (of course I'm still working on the radio, don't worry :p) with Core Memory, so stay tuned!

PROTIP: If you want a nice gain in performances, consider verifying the CPU governor in Settings -> Performances. Sometimes the OS will override the default kernel governor with INTERACTIVE. Change this to SMARTASSV2. This should also increase battery life :p
[T-Mobile LG G2x] plarmann:
I reverted back to v104 and changed CPU gov to sav2. Buttery smooth:)
[T-Mobile LG G2x] khanh1289:
Thank you! at first, it messed up my battery reading but the phone is buttery smooth! G2X is currently my home phone with wifi constantly on and Grooveip for make and receive calls. Smart phone as home phone = a lot better than paying monthly for dumb phone :)
[T-Mobile LG G2x] Mazout360:
Happy to hear this :p

Pushed a little update from CM repo, which enables wifi deepsleep and fixes brightness value overriding by the kernel. That means you won't (or shouldn't, at least) have to set back to the desired brightness value every time you boot or when you wake the phone from sleep. I also got myself a goo.im developer account so I'm being hosted there. Oh and I also restarted the OC builds.

I've been very busy with the radio and other android projects, so excuse me for my lack of...ehm... "interesting" kernel updates :/
[T-Mobile LG G2x] HeXaLox:
any update is better than none! :) :highfive: keep working hard(: dont give up! bro we with you all da way :)
[T-Mobile LG G2x] khanh1289:
Re: [KERNEL][CM10] Mazout360's custom CM10 kernel [2.6.39][V0116]

My brightness is not working right.. Once i change brightness, it'll go back to about 20% once i turn the screen off then back on. Weird thing is.. It'll get really bright, like how i setted it after about 2 minutes with display on but then messes up again once i turn the display off then back on
[T-Mobile LG G2x] m_malyszko:
Re: [KERNEL][CM10] Mazout360's custom CM10 kernel [2.6.39][V0116]

I concur, brightness is a little messed up.
[T-Mobile LG G2x] Mazout360:
* Do not consider RC commits as fully working and implement them without testing anymore* Check.

I will revert this or try to make a better workaround for the brightness being reinitialized and push a fixed version

EDIT You may download my last kernel (V0104) HERE while I'm fixing this
[T-Mobile LG G2x] engineer05:
Thanks Mazout360 for the hard work ....

Great Job :)
[T-Mobile LG G2x] Mazout360:
As promised, I should be launching version 0122 tonight. Since it's a relatively big update (about ~30 new commits!) I will be beta testing it for some time, mostly because of the multiple updates that changes how the CPU works. To get the full list of updates, see my github.

The most interesting ones are :

ROW I/O Scheduler - Finding a correct I/O scheduler for jellybean has been a pain. This one, from Qualcomm (woah, are they actually doing something functional ?? ;)) is made specifically for mobile devices and not for x86_64 platforms. It should offer good performances when reading the internal memory, and hopefully should remove the lag when starting multiple apps at the same time.

Google SNAPPY zRam - If you used Harsh's kernel in the past, you should know about google SNAPPY. It's a zRam module (for RAM compression), and it's FAST!! Some reported that this module is at least 2x faster than the original one.

Lowmemorykiller Updated - This is what makes Supercharger V6 so special :p

SMP driver Updated

Added LED blinking functionality - I think this feature is already implemented in CM10.1 builds, but if it's not in the kernel it would never work..

TCP PRR (Proportional Rate Reduction) - To reduce TCP performance loss when losing packets.

Removed the brightness bug in last build

Fixed LEDS staying on when the phone is in deep sleep
[T-Mobile LG G2x] towelboy:
Re: [KERNEL][CM10] Mazout360's custom CM10 kernel [2.6.39][V0116]

I'm also in the nexus s forum and one of the more popular kernel recently got the row io scheduler and boy is it amazing :)
[T-Mobile LG G2x] buru898:
Re: [KERNEL][CM10] Mazout360's custom CM10 kernel [2.6.39][V0116]

Is it possible to implement the row scheduler for a gingerbread kernel? And maybe also the zram as well?
[T-Mobile LG G2x] Mazout360:
It's not perfect yet but indeed it's quite efficient!

Guys I am only one BSOD away from sharing with you my best kernel up to date...It's just incredibly smooth, even at boot. Not a lag. This is exactly the kind of experience that I expected from android Jellybean and I am proud of it, but...

...it hangs when it falls in deep sleep..so as soon as I got this fixed it'll be hosted here.

Also, you won't be able to change the CPU governor from the performances menu...I don't know why because I didn't change anything related to this and I don't have time to debug it so it'll go on my to-do list for my next kernel build. If anybody wants to try to change it using an app please report back if it works. So... because it stays stuck at the INTERACTIVE governor I decided to update it to make it as efficient as possible.

It shouldn't be long now I'm pulling another beta build and I think I've got the BSOD issue nailed down...

EDIT: I think I got it! here it is : http://goo.im/devs/Mazout360/KernelP999/Mazouts_p999kernel_0122.zip

Be ready to redefine AWESOME :p

If somebody needs OC for playing games, please PM me...it was so smooth I didn't even consider making one, but it doesn't take much time to do so it'll be on demand :p

Yes of course I can do this for you, but I will need authorization from a kernel developer to use his sources to start mine. Do you want me to start developing a gingerbread kernel ? I already thought about continuing Harsh's job and keep pushing the linux version up, adding more recent tweaks and functionalities...I should ask him
[T-Mobile LG G2x] buru898:
You're amazing! You'll give me reason to use my G2X again!

I think everyone here would appreciate a new kernel for gingerbread since we're basically cut off from getting anything more. Especially one with such new and updated features :).
[T-Mobile LG G2x] cainG2x:
Agreed, new kernel would be awesome!!

Sent from my hellpowered G2X
[T-Mobile LG G2x] engineer05:
this is getting better and better every time ....

really looking forward to the fixed radio version to use JB as main rom :)

thank alot Mazout
[T-Mobile LG G2x] emir11553:
Yes please a new gb kernel will be awesome
[T-Mobile LG G2x] Mazout360:
Good news, I asked Harsh to continue his work and he accepted! So you'll be getting a new gingerbread kernel with the newer drivers and the most up-to-date tweaks and functions :p Of course, I will prioritize fixing the radio in the newer kernel first but you'll be getting something to start with soon.
[T-Mobile LG G2x] xblitzz:
that would be AWESOME!
[T-Mobile LG G2x] Freakthis08:
First, I love you and your work. Second.... thank you for not forgetting about GB with all your JB priorities!
[T-Mobile LG G2x] TheEnternal:
I posted earlier in the user thread on not receiving anything further after getting the info from one of the posted LG engineers. I went ahead and requested some info from a few other people that might be able to help here. Maybe well get lucky
[T-Mobile LG G2x] Mazout360:
Guys my phone is dead. Been working with CM7, nothing special, then it died. Tried Nvflash several times, it just boots to the bootloader every time. It's just...dead.

So I can't debug my builds and kernel anymore...I have a CM7/9 beta kernel ready and I can't host it online if I don't know if it works.

I need a beta test team for my weeklies and my kernels, for both CM10.1 and CM7/9/10 (hackfest) versions. If you are ready to install the beta builds and try all the functions to make sure everything works, as well as giving me a good feedback, please PM me.

Got to call my phone provider...I'm ready for bull****.

EDIT: don't worry about the betas..I won't give you anything experimental or dangerous for your device. I always tried those builds only on my own p999.

EDIT2: Okay disregard this comment..I left my phone on my desk, then it randomly started, got to the S/W screen (by itself), then rebooted with a weird noise, black screen...then suddently the little android logo from when you boot into stock recovery popped up, then it powered off again. About 2 minutes later it powered on by itself again and booted after a good 5 minutes into stock T-Mobile gingerbread...I've seen weird things with LG phones, but that's the weirdest one for sure.

EDIT3: No. It's dead for good. I don't know what I'll do and I will not get a new P999 from my telephony provider. My developer's future with the G2X community lies in the hands of beta testers. I'll make this short and sweet : I have a beta build for a CM7/9/10 (hackfest) kernel. I had some time to try it and it's very very fast and responsive, like my jellybean version. Send me a PM and I'll send it to you for beta testing. Try every functions, see if it causes FC or hot reboots. If it doesn't reply back and I'll start a new thread for it. As long as I will have people available to test what I'll do, I will continue working for this device, even if I get stuck with a SIII or a nexus 4 or something like that.
[T-Mobile LG G2x] khanh1289:
Mine is missing :( I try to find my g2x all night last night to no availability. Since I can't call it and most likely it's dead, with my luck it'll appear out of no where months from now.

Sent from my Blenzderz 9000
[T-Mobile LG G2x] adame09:
Good for you and good for us lol:rolleyes::thumbup::cool:
[T-Mobile LG G2x] plarmann:
Wow That sucks:( and you are such a darn good dev. I would have given you my g2x but you made love it all over again. How can I help?
[T-Mobile LG G2x] G2xer:
Time for us to pull through with some donations for a new one.
[T-Mobile LG G2x] Core Memory:
That sucks! I'll donate $10 to you toward buying a used G2X/WIND O2X.
[T-Mobile LG G2x] Mazout360:
I don't mind to continue developing for this device because I like working on the p999 and I know the tegra2 kernel very well...I'll try to get a new phone but I don't think my telephony provider will give me another G2X as they are discontinued here.

As long as I have people ready to give some time to try what I build and give me a feedback, I'll be following this forum.
[T-Mobile LG G2x] JeremyNT:
Would you accept donations for the purpose of purchasing a used g2x, eg from eBay? Discontinued devices can be quite cheap there and I'm sure many of us would gladly chip in.
[T-Mobile LG G2x] HeXaLox:
Sir yes sir! For cm 10.1!

Beta testing and ready for action sir yes sir! Hmu! :d
[T-Mobile LG G2x] mk2rimar:
I saw a g2x from videotron on kijiji montreal last week and the owner was asking 90$ for it in verry good condition...ill ship in to if i ave to....
[T-Mobile LG G2x] sambodie:
Gee, if the CM7 BT call audio bug is kernel related (March '12 baseband), a new kernel with a fix would be a major deal. Does anyone know if it is a baseband only thing, or maybe kernel/baseband interaction?

That and the CM10.1 kernel tweaks applied to CM7...... wow!

Otherwise, being patient for CM10.1 radio fix for our phone. Thanks for continuing to work on the G2x