yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G2x] mansa_noob:
Maz the system partition image of P990 ICS is bigger than P999 system partition. I guess I should start searching instead of asking (lol, I should know better by now).

As I said before I have not done anything like this before so I should probably ST*U and report if and when I have something working (those willing to wait till eternity please hang on ;)

-- The noob says:

Sent to the Facebook of cellular phones.

---------- Post added at 10:18 PM ---------- Previous post was at 09:57 PM ----------

http://www.tmonews.com/2011/05/t-mo...esolutions-document-fixes-pending-resolution/ (load all comments and then search for the term "It says it's connected, but when someone calls, it's not.".

Quick search results here. I have seen it popup in the forum too, just too lazy to search for it :D.

The solution that ALWAYS works is stock 2.3.3 or 2.3.4. I had the issue on froyo from Wind so figure it was present in LG ROM/Kernel too. I have noticed that if the phone does not sleep (total sleep time = 0 seconds) then the connection works fine (can't test longer than a day as bluetooth's battery would die but for one whole day with the G2X charging once I have seen it work with no issues). This is why IMHB (humble belief is an oxymoron I guess ;)) it has to do with power management.

Maybe mine is the only one left (but then, I have two ;)).
[T-Mobile LG G2x] EEngineer:
If you've flashed a lot of kernels my procedure removes the leftover garbage of previous installs. Try it and see.
[T-Mobile LG G2x] n30wav3:
I dun remember where.... maybe in P990 or this forum or on Google but there was a utility I saw through which u can resize partition on p999 using nvflash just like the dual boot setup (as it changes the partition size too on p999, maybe it was the same Guy .. dun remember) ... search for it... dat should do it
[T-Mobile LG G2x] mansa_noob:
Thanks. Already got it and trying a few combinations.

The only way to boot is with g2x kernel and that breaks the radio... wonder why... I even tried to load froyo which can be loaded on g2x partition layout but the radio was still broken... looks like an address problem.

But then again, I am just a noob, so I will continue to hit it with a hammer ;)

-- The noob says:

Sent to the Facebook of cellular phones.
[T-Mobile LG G2x] n30wav3:
wait a sec.... do u mean p990 roms here? if yes then obviously it will break the radio as there is a baseband difference right...
[T-Mobile LG G2x] SpaceRanger69:
Correct.. P990 ROM's radio is completely different than the P999's.. I believe both the RIL and Baseband's are completely different.
[T-Mobile LG G2x] mansa_noob:
Maz, I have established now that the Bluetooth issue can be completely cured with a partial wake lock. Using wakelock app my setting is 4 and it always works. Also this confirms it is a problem in the phone not the headset.

View attachment 2039942

Hope this helps to develop a fix without wakelock. My battery life sucks right now :(.

-- The noob says:

Sent to the Facebook of cellular phones.
[T-Mobile LG G2x] mansa_noob:
Maybe I understand it wrong, but baseband is in the hardware and unless there are significantly different functions involved as long as you can address into it you should be fine. The fact that the IMEI becomes unknown IMHO is an indication that the ROM/kernel doesn't know where to look for the baseband.

Feel free to correct if wrong.

-- The noob says:

Sent to the Facebook of cellular phones.
[T-Mobile LG G2x] mansa_noob:
Version in git?

Maz,

What version is currently in the git? I am new to git so not sure if a file is supposed to hold it. Only thing for git://github.com/Mazout360/lge-kernel-gb.git shows last update was 2 months ago.

If a file is supposed to hold this information I would be extremely thankful if someone can point me to it.
[T-Mobile LG G2x] EEngineer:
Well, I've established that the Bluetooth issue can often be completely cured by clearing the Bluetooth data. And my battery life is amazing.
[T-Mobile LG G2x] Mazout360:
Hum I had some problems with git so it's not really up to date.. My last push was somewhere between the 0427 build and the first experimental one. When everything will be working properly I'll clean it up
[T-Mobile LG G2x] mansa_noob:
Awesome. Thank you for sharing.

-- The noob says:

Sent to the Facebook of cellular phones.
[T-Mobile LG G2x] adame09:
Crossbreeder support

Has anyone tried using crossbreeder with this kernel for some reason my phone bootloops if crossbreeder is enabled I'm using kernel version 323 as I was getting freezes with 525 and the latest 6.20.13 crossbreeder it works with trinity kernels or stock cm7 but as soon As I flash this kernel it bootloops

Sent from my G2x
[T-Mobile LG G2x] EEngineer:
Ooooh... Sounds dirty!
[T-Mobile LG G2x] adame09:
Haha

Sent from my G2x
[T-Mobile LG G2x] Волк:
Wow, nothing for a week. Maz, how are things going on the next build?
[T-Mobile LG G2x] Mazout360:
Well...technically the next build is done, but something is draining the battery (doesn't bother me really since it's very snappy though). I put that project on hold because, for the first time in many months, I don't need my phone 24/7 and I can work again on CM10.1. I guess working countless hours on this kernel won't be worth that much if I can get a working jellybean build with this kernel or the newer one (with radio hopefully).

I'm testing some betas ATM...If nothing works then I'll finalize my next build here.
[T-Mobile LG G2x] adame09:
Can I join in on the beta testing?

Sent from my G2x
[T-Mobile LG G2x] mansa_noob:
Need help

Maz and others who have successfully compiled a kernel before: I am having trouble compiling the kernel. Here is what I have done:

* I have the cross compiler installed and in the path

* I run make clean, make mrproper, followed by make <something to do with g2x>_defconfig, followed by make.

* It creates a zImage file and the modules.

* I copy the files in one of Maz's flashable zip files (without unzipping it, of course).

* I flash, it gives no wrarnings or errors (I have also tried installing manually through adb which works too).

But then the darn thing refuses to boot, stuck on the first LG logo. It does not go far enough to be able to run adb to get the logs.

Done this with faux, trinity and CM7. Same result.

Any help would be greatly appreciated.
[T-Mobile LG G2x] Mazout360:
Finally, I'm almost done fixing everything up and backporting required dependencies for new and upcoming android kernel upgrades!

This build is not yet complete, but it should definitely feel snappier and the battery should last much longer.

Partial changelog - Mazkrnl v1.0 RC1

- Fixed many errors from previous merges

- Updated several MM features to 2.6.39 (vmscan, vmstat, page allocator, boot-mem, compaction and more…)

- Hardcoded tweaked ROW parameters values from franciscofranco's github

- Updated crypto API to linux 3.0+

- Updated whole PM system to 2.6.36 and cherrypicks from linux 3.4+

- Backported freezer system from linux 3.3

- Various bluetooth cherrypicks

- Updated Binder and Lowmemorykiller from latest MSM sources.

- LMK optimization for android, from the latest SGS4 sources (original work by faux123, backported to linux 2.6.32 by me).

- Android ZRAM optimization from the latest samsung JF kernel.

- Updated ZRAM and ZCACHE to latest version from MSM sources.

- Added ZSMALLOC allocator and updated to latest version.

- Reduced logger RAM usage.

- Cherrypicks for timed-gpio and google ashmem

- Cherrypicked various fixes for filesystem drivers.

- Use freezable calls for battery saving.

- Disabled GENTLE_FAIR_SLEEPERS for better android performance.

- Updated linux workqueue.c to 2.6.36, required for the freezer API.

- Updated linux OOM killer to use new functions.

- Updated SLUB allocator to 2.6.39

- Introduce Ultra Kernel Samepage Merging, an optimized version of KSM.

This is a massive update and it needs testing on different p999s. This is why I'm releasing RC1 before an official "stable" version.

To be fixed...

- Boot lag after first LG logo

- Screen off on boot

- Possible lag on boot (if you do have boot lag, let the system boot itself completely before using it. Sometimes I could click on every app right after booting up the device and no problems, and sometimes everything would crash.)

Mazkrnl v1.0 RC1 for Gingerbread, non-OC : http://goo.im/devs/Mazout360/KernelP999/Mazkrnl_v1.0rc1-GB.zip

Mazkrnl v1.0 RC1 for Gingerbread, OC : http://goo.im/devs/Mazout360/KernelP999/Mazkrnl_v1.0rc1-GBOC.zip

Hackfest version coming with the stable release as I do not test them.

Did you setup your build environment properly ? Search for a guide on how to do that depending on your OS.

Did you copy your xxxxxxx_defconfig file to .config on the root folder of the kernel ?

Some OSes require specific CFLAGS for the zImage to be compiled properly too.

Thanks, but I do not take beta testers for now. At this point, if I don't do the debugging process by myself it will take too much time.
[T-Mobile LG G2x] adame09:
For some reason it doesn't boot for me I'm running cm nightly 3-1-13 with no other add ons
[T-Mobile LG G2x] Mazout360:
I just tried it and it did boot... That's strange...What kernel version did you use ?

Also if you come from the trinity kernel you may not be able to boot since it changes the original boot.img ramdisk. Try flashing faux kernel then this one. I'll make sure this isn't a problem anymore for the stable release.
[T-Mobile LG G2x] mansa_noob:
Maz it booted for me, coming from trinity without an intermediary (strange). Everything worked great except the darn Bluetooth does not turn on. Tried a dirty flash of CM7, followed by a reboot, followed by this kernel, still didn't turn on Bluetooth (wiped cache and fixed permission, pretty much everything short of wiping data).

Do you want kmsg or something else? I switched back to trinity but can switch and get the log if that would help.

-- The noob says:

This just in... my IQ has increased 50 points thanks to the g2x!
[T-Mobile LG G2x] Mazout360:
All right give me 10 minutes and it's fixed.

EDIT: Done. New version being reuploaded, same links.
[T-Mobile LG G2x] mansa_noob:
I am using Ubuntu 32 bit (Linux Mint 13 to be exact but it's no different than Ubuntu and I was using Ubuntu 13.04 before that). I tried following multiple guides and they all pretty much taught the same thing. I will describe what I (think I) know:

1. Need a toolchain to compile. I am using the mentor one, but it shouldn't matter as long as there is one and it is in the path.

2. Need source from git. I tried pulling faux, cm7 and morfic's. I used -b flag to specify the branch because most of these have master that points to JB and not GB anymore.

3. make clean && make mrproper to cleanup.

4. make <something>_defconfig. I looked under arch/arm/configs and (for example) for CM7 the defconfig is (I think) star_tmus_cyanogenmod_defconfig.

5. make -j3 (I have a dual core machine).

The environment variables are set so it can compile, i.e. ARCH, sub ARCH (don't remember the exact name right now), and the cross compiler's prefix.

In most cases I can create a zImage and three modules (scsi, ansi and wifi). Regarding CFLAGS. which ones would be needed for the g2x? The information out there is very sketchy and I like shortcuts :angel:
[T-Mobile LG G2x] adame09:
I have figured out why it does not boot. If I turn on zram(compcache) in the cyanogenmod performance settings the phone just bootloops. It has to be set to zero I tried all the different options s like (10%, 18%, and 26%) and it wont work for any.

Also why doesn't this kernel work with crossbreeder? It just bootloops also
[T-Mobile LG G2x] mansa_noob:
Maz, works great but the Bluetooth disconnect issue is back. Just an FYI. If can be fixed in the final release that would be awesome.

-- The noob says:

This just in... my IQ has increased 50 points thanks to the g2x!
[T-Mobile LG G2x] adame09:
Can you use zram?
[T-Mobile LG G2x] Mazout360:
You shouldn't need special CFLAGS for a linux-based build system. I usually compile my kernels using the precompiled cyanogenmod arm-eabi-4.4.3 or 4.6 toolchain and it should work with your procedure.

Thanks for reporting. There's indeed a bug with Zram when enabled from the cyanogenmod menu and I'll look at it.

I don't know why the crossbreeder wouldn't work. Is it compatible with Gingerbread ?

Yes I didn't work on that yet I'm doing it atm. I'll try upgrading the bluetooth drivers to the most recent version and see if it works properly first.
[T-Mobile LG G2x] Freakthis08:
Looks awesome can't wait to try it! I'm currently on your 0603ExpGB kernel.

I got 2 questions, Where can we find out what some of these updates do? and How much of an update is this from 0603 kernel?
[T-Mobile LG G2x] adame09:
No problem Crossbreeder works with faux and Trinity and stock cm7 kernels but not yours for some reason

Kernel is running great by the way thanks so much
[T-Mobile LG G2x] EEngineer:
I have CM7 and I don't have any settings for zram or compcache in my Performance settings.
[T-Mobile LG G2x] adame09:
What kernel are you running? Trinity kernels don't have the option
[T-Mobile LG G2x] Mazout360:
A quick google search will give you some infos on zram (compcache), zcache, timed-gpio, ashmem and the android lowmemorykiller (LMK) since they are widely used and modified on android devices. Most ports to linux 2.6.x.x or 3.x are simply updates to keep compatibility with new driver versions and may not really affect the performance or battery life. ROW is a I/O scheduler, so it "schedules" what goes onto storage memory and when (same thing for what is read from the storage memory) and I changed some of it's parameters because write speeds were too low on the previous kernel version. The PM drivers (for Power Management) from the linux base works with the android PM system (wakelocks and earlysuspend) for an optimized battery usage on a mobile device. They were updated along with the linux freezer ("freezes" processes and workqueues before suspend) also to support new functions/drivers such as the wireless driver and to optimize the suspend/resume operations for battery saving. zsmalloc is a memory allocator for zram and zcache and is more efficient than xvmalloc, it's predecessor. Finally, the logger...well...keep logs of system informations and uses RAM doing so and since it's not useful for a daily use, I reduced that memory usage.

I think the biggest difference compared to the 0603 kernel is stability. I fixed many memory problems from the last kernel version and that makes a big difference iMO. There's also a nice battery life increase (lasted 28 hours unplugged for me, with 5 hours of active GPS use.)

The crossbreeder should work then...hmm...I'll look into this.
[T-Mobile LG G2x] mansa_noob:
Totally irrelevant here but I kept hitting it with a hammer and finally success. Now playing around with options.

I think there was something wrong in the updater or something like that... since its working now I am not trying to figure out why I couldn't before :D.

-- The noob says:

This just in... my IQ has increased 50 points thanks to the g2x!
[T-Mobile LG G2x] EEngineer:
Yeah, I'm running a Trinity kernel while waiting for Magnificent Maz to to finish his magic :laugh:
[T-Mobile LG G2x] Freakthis08:
Not sure if bug or not. I didn't wipe dalvik cache, I just wiped cache and fixed permissions. But after letting the phone boot for a couple min. When i open an app the "radio" icons (the 4g and cell connection) in the status bar will flash off for a couple seconds then turn back on. https://www.box.com/s/b3w8gdtv5qhoxfi5iyxt link to a hopefully useful log. Also the 4g will randomly drop aswell.

Using nonOC kernel

Can anyone else confirm this is happening to them as well. Because this didn't happen on 0603 kernel

UPDATE: I was able to get home and have time to reflash the kernel with wiping dalvik cache and it seems as that may have fixed the problem.
[T-Mobile LG G2x] Pain-N-Panic:
Will this kernel work on 4.0.4 eagles blood? Pretty sure its cm9 based but not positive...
[T-Mobile LG G2x] n30wav3:
Hey Mazo... seems like the freezing issue is back. This time a bit different. Actually it's similar to how only you were experiencing it the last time... the phone randomly freezes whenever there is a load or multitasking rendering the whole thing useless before coming back to normal after 3-5 mins. I have put logging in place. Will post once I get it.

EDIT: Here u go.... the log has me pressing power key alot of times just to be sure it was a freeze along with some unusual stuff (0x0xx) which I think might be the error...
[T-Mobile LG G2x] EEngineer:
Hey Maz, can you do something about being able to zoom in and out while taking a video? Present camera drivers for the G2X can only zoom before video recording starts because it's a performance thing. But with an overclocked G2X it should not be a problem.
[T-Mobile LG G2x] Mazout360:
Updating OP with Mazkrnl v1.0 RC2, now supporting hackfest builds! I could not fix everything that was mentioned here yet, but I'm working on it.

Changelog

- Upgraded to Linux 2.6.32-61 - Brings many bugfixes and performance updates. For the full changelog see https://lkml.org/lkml/2013/6/10/124

- [HACKFEST] Fixed + reenabled hackfest build

- Cgroups: introduce timer slack controller - For more info see http://lwn.net/Articles/463357/

- Updated bluetooth drivers

- Updated android alarm drivers, since they kept waking up the device which drains battery needlessly.

- Updated SNAPPY compression to v5

- Fixed Zram and Zcache

- Increased suspend/resume debuggability

- Updated android earlysuspend/wakelock drivers from Samsung JF sources and backported them to the current PM API.

- Various cherry picks, see my github.

Please confirm that everything works well with hackfest-based ROMs.

EDIT : Disregard the installer comments for the hackfest builds, I did not change them accordingly.
[T-Mobile LG G2x] adame09:
Thanks flashing now!!!
[T-Mobile LG G2x] mansa_noob:
SOD... came from trinity so could that be the reason? Although that trinity was self compiled and only zImage was used together with modules using one of your install zip files so doubt it.

Did not have the log running, so can't tell what happened. OC was at 1.2 only. I can make a log tomorrow.

-- The noob says:

This just in... my IQ has increased 50 points thanks to the g2x!
[T-Mobile LG G2x] itrof61:
Does it still have battery reading problems for hackfest? Thanks in advanced! :laugh:
[T-Mobile LG G2x] Freakthis08:
Had some weird freezing soon after flashing last night had to do two battery pulls. Then this morning I checked my phone at about 6am for the time then fell back asleep and woke up at 9 and my phone was off so I'm not sure what happened. If I get a chance to do a proper log I'll post otherwise I'll just post about my usage on a full days use.

Using Non-OC kernel

Log: https://www.box.com/shared/static/ww5cyaj0ujeo8cfv685m.txt

(If I am doing this wrong please let me know. I'm just doing "adb logcat > _____.txt")
[T-Mobile LG G2x] n30wav3:
Yup 1 SOD 1 freeze on OC. Can't get the log now as I am at work. Reverted back to 427. Will try the NON-OC after I get back home
[T-Mobile LG G2x] deathmaker06:
I'm curious as to what cm7 based Rom people are using. I'm using the 03/01/2013 one right off of cyanogenmod but that one doesn't seem to work at all with the most recent kernel(boot loops the normal LG logo and the purple background LG logo).so since the Rom is rather out of date, I thought I might look for a more recent one.any suggestions?
[T-Mobile LG G2x] xBkKx:
I use This ROM but the most recent kernel is still buggy to hell for me. I had to wipe cache partition to get phone to boot some reason and even then it was running MEGA slow until multiple reboots but I got random freezes. There isn't a more recent one this phones support is dead other than this kernel and the rare response from other developers once a blue moon

Sent from my LG-P999
[T-Mobile LG G2x] deathmaker06:
Hmm alright, i'll flash that rom and try the kernel on it tomorrow night. Can't have it go crazy on me just yet as my days off are Monday and Tuesday and I need it for work. I'll post back with my results later Monday or possibly earlier if I encounter issues before that.
[T-Mobile LG G2x] mansa_noob:
I am using vanilla CM7.2, with no issues.

Edit: No issues in general. With the latest build of this kernel my major issue was SOD, minor was Bluetooth.

-- The noob says:

This just in... my IQ has increased 50 points thanks to the g2x!
[T-Mobile LG G2x] EEngineer:
I'm using the CM7 Nightly-20130301 ROM - it's the last official CM7 ROM but it's skinned to ICS look/feel.

For my kernel I'm using the Trinity T15-G2x-06022012 (the one without the carveout).

I use SetCPU to default overclock to 1.2GHz,

- screen off max=594MHz

- Video players and cameras max =1.5GHz

- Book readers limit max=594MHz

It's fast and very, very stable. But I miss the battery life and frequency selection of a Maz kernel.
[T-Mobile LG G2x] m3mb3rsh1p:
I thought clearing cache and dalvik cache was mandatory when installing a new kernel?
[T-Mobile LG G2x] EEngineer:
It is.

When installing any new ROM or kernel you need to clear dalvik and cache and fix permissions, both before and after flashing. No excuses

Also, you MUST flash when the battery is at 100%. Flashing is a high current draw operation that strains the battery. You want maximum voltage available. No excuses. Even Flashing at 70% battery can cause a bootloop or brick a phone.

Most bootloop problems can be traced to someone whining "I thought I didn't need to clear dalvik/cache/whatever", or flashing with battery not at 100%.
[T-Mobile LG G2x] xBkKx:
No my issue is I have to wipe the cache partition EVERY boot or it doesn't boot. I'm going to assume I have a bad download or dual booting is causing an issue somehow but using Morfic's kernels I am having no issues and phone is running very smoothly so its probably the download issue since no one else appears to have it. I haven't been at a PC lately so can't get logs or redo the dual boot partitions. I've never flashed anything with my battery at 100% and never had it boot loop just because of that either?
[T-Mobile LG G2x] NeKr0MAtiK:
Re: [KERNEL][CM7/9] Custom Gingerbread kernel (Faux kernel revived!) [2.6.32-60][V.01

Ill give the wifi deactivation a try tonight let you know tomorrow morning. Thanks for the info!
[T-Mobile LG G2x] TOG565:
Re: [KERNEL][CM7/9] Custom Gingerbread kernel (Faux kernel revived!) [2.6.32-60][V.01

I always had BSOD's on faux with Hellfire but not a one in Trinity ELP or this kernel. Just buttery smooooothnesssss
[T-Mobile LG G2x] xblitzz:
About what I said and the WiFi .. this was with faux123's original kernel.. I haven't noticed it with yours since I don't leave WiFi on anymore since I have 6gig of data per month...
[T-Mobile LG G2x] TOG565:
Re: [KERNEL][CM7/9] Custom Gingerbread kernel (Faux kernel revived!) [2.6.32-60][V.01

I'm a big wifi guy and haven't had any issues. I like to have everything "on board" when I get home so that would be a sticking point for me. Didn't happen on ELP nor this one so far.
[T-Mobile LG G2x] bluenote73:
Hey mazout

If you are going to delve into bluetooth, I wonder if you could fix the lack of confirmation for bluetooth voice dial. Its been logged as a bug in CM7 for a long time but you-know-who is in charge of it and there's been no progress.

Do you know what I'm talking about?

"Call John mobile"

'Calling Jason at work'

instead of

"Call John mobile"

'Call Jason at work?'

"No"

'Say again...'

It seriously degrades the BT experience :( Always seems to dial someone I don't want to talk to.
[T-Mobile LG G2x] Mazout360:
This is a ROM issue, not the kernel.

I investigated the bluetooth call error on the newer firmware too and this also seems to be a ROM issue..I'll see if I can make a fix or something like that.