yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G2x] cricketAC:
VOICE WORKING (no chirping or static issue) on rooted kwes1020 stock rom with your cm7 kernel

Wifi is working so is hspa.

But its still not mounting (both internal as well as external)SD card. It says unknown unsupported file system.

Haptic feedback is not there even thou i have it checked in the settings.

Bluetooth transfer not going thru. My pc doesn't detect my phonez bluetooth for transfering files.
[T-Mobile LG G2x] kesara:
It's CM7 kernel so don't expect to work on stock v21y.

---------- Post added at 01:41 AM ---------- Previous post was at 01:38 AM ----------

Any changes that would affect voice cellular calls chirpyness?

v21bb is for v21y ?
[T-Mobile LG G2x] cricketAC:
but the voice worked.
[T-Mobile LG G2x] kesara:
That was surprising 'cause CM7 is android 2.3.7 and stock is 2.3.4 so ... some things would work and others won't, hard to predict though
[T-Mobile LG G2x] lengz:
Do you have a directory of your previous builds?
[T-Mobile LG G2x] Harsh:
My mediafire folder. Link in signature.

And please do not flash my kernel inn stock ROM. They are not made for them and will break lots of unexpected things.

Can anyone confirm that my 1805 test kernel make voice working worth latest baseband?
[T-Mobile LG G2x] Spectral8x:
So I am on the March BB and I have a horrible issue with static feedback when I try to make or recieve calls...it is on both ends.

It started happening after I flashed Genesis Beta7 with the OC kernel.

The phone worked find on just normal AOKP with stock kernel.

I tried Genesis Beta8 and tried it with normal and OC kernel with same issue.

I am now using Owains CM9 and flashed it with it's built in kernel and had the issue still i updated it and still had the issue and now flashed this Kernel again and still the issue persists .

I wiped the device completely before flashing everything each time.

Any idea what's going on??
[T-Mobile LG G2x] Harsh:
previous page I posted new kernel for those who on new march bb. Here is link to it.

http://www.mediafire.com/?g6adsgitp8pg98i

Let me know how it goes.
[T-Mobile LG G2x] erupe:
I meant voice just over regular radio.

Just flashed the new kernel. Did not nullify. Still makes the chopping noise. Everybody else seems to think that it is a ROM issue, not a kernel issue, I have no idea though. Thanks for your hard work at this.
[T-Mobile LG G2x] Harsh:
can you get me logs? can anyone get me logs when they have above problem
[T-Mobile LG G2x] Spectral8x:
Flashed the updated kernel you linked me too. Voice still has issues. It's not a chopped static now its a constant static.

I am going to do a full wipe and flash I just don't have time right now. Hopefully that works.
[T-Mobile LG G2x] cricketAC:
My point was that voice works with stock 2.3.4 with the new BB. Initially that was the issue that was holding ev1 back. So if it works on the new BB, it should work on any other custom ROMs.
[T-Mobile LG G2x] kesara:
good point but "it should work on any other custom ROMs" applies only it is entirely kernel related. Probably ROM changes are also required.
[T-Mobile LG G2x] cricketAC:
So the 1805 ICS kernel won't work on Owain until he fixes his rom for the new BB?
[T-Mobile LG G2x] kesara:
Only one way to find out would be to try it
[T-Mobile LG G2x] Harsh:
In new sources there are not so much voice related changes. It is kernel dependent. Please guys get me logcat of this problem. You can use free apps from market catlog or any other to do that.
[T-Mobile LG G2x] kesara:
I got you one few posts above but you didn't respond. So I thought that it didn't matter
[T-Mobile LG G2x] Spectral8x:
I will get you a logcat of my issue here soon. I wiped and reflashed and still am getting the same choppy voice issue.

Should get a logcat for you this weekend.
[T-Mobile LG G2x] Harsh:
I saw them, but I thought you got me logs for your sd card issue. I checked them but when you said your were using 2.3.4 GB ROM it had no point to examine more. Can you get me logs of cm9 when you have choppy voice? Thanks in advance
[T-Mobile LG G2x] kesara:
That's from cm7 rom. I am not going to use cm9 till wifi calling is stable. I restored 2.3.4 after getting the logcat for you. It also is after enabling debug level logging.
[T-Mobile LG G2x] erupe:
Trying my best. terminal emulator says "unable to open log device '/dev/log/main': no such file or directory. so I created the dev/log/main folder but then it says it doesn't have permission to access "dev/log/system" but clearly I gave it superuser permissions so I don't know what the problem is.

Fixed permissions and still no luck. Actually after I fixed permissions the chirping sound went away while calling but instead of chirping it was static in place of the ringing tone or in place of the person on the other line talking.

a lot of people were saying they were having superuser permissions with v63 of owain's rom. I dunno.
[T-Mobile LG G2x] Harsh:
To get logs in owain's rom, you need to delete etc/init.d > 02removelog file. After that reboot, and all logcat apps would work normal.
[T-Mobile LG G2x] jeffakajeff:
I just want to say thanks. My wife has the 999 and we hate it. I just tried your kernel out on cm7 and it seems like a new phone. Old bb, latest cm7. Thank you.
[T-Mobile LG G2x] mt3g:
So you flashed the latest cm7 and then this kernel on top and it works, yet works better?!?!?! What'd I miss!!??
[T-Mobile LG G2x] jeffakajeff:
Only issue is it says damaged SD card, its referring to the internal, which I don't use.
[T-Mobile LG G2x] kesara:
Couple of pages in this thread!

See few pages back
[T-Mobile LG G2x] djvoleur:
Formatting mnt/emmc fixed this issue for me under Storage...
[T-Mobile LG G2x] mt3g:
No kidding, this guy does too much for this phone. Thanks a lot harsh! I haven't been near an ICS rom this whole week, until tonight so I was reading the last few and got extremely confused by reading things haha.
[T-Mobile LG G2x] ayysir:
Any way to get USB host supported for g2x?

GDrive Cm9/AOKP Themes Folder (not my themes and these are free themes credit to devs): goo.gl/JnLIS
[T-Mobile LG G2x] jeffakajeff:
Recovery got borked after flashing on cm7, I'm sure I read that could happen, watch out
[T-Mobile LG G2x] Harsh:
My side of code for ums is included. You can see it working on owain's ROM and its working perfectly. And USB host? For what you want it?
[T-Mobile LG G2x] ayysir:
USB host like I have a micro USB at one end and female USB on the other end so I can plug in the cord and a USB flash drive to the phone. Something like this:

http://www.youtube.com/watch?v=giJXF5pIITc&feature=youtube_gdata_player

GDrive Cm9/AOKP Themes Folder (not my themes and these are free themes credit to devs): goo.gl/JnLIS
[T-Mobile LG G2x] erupe:
logcat

sorry this took so long. studying for the boards.
[T-Mobile LG G2x] Harsh:
Thanks, I checked, seem like during call all is okay. Need to check more settings, will compile new kernel tomorrow, tonight friends bday. so not here much.
[T-Mobile LG G2x] gpmartinson:
No dice

Installed Owains ROM, his gapps and Harsh. dialed and got the chirping thing. On the other hand:

-Wifi

-Bluetooth and

-Data worked fine.

Its the phone... Attached is my logcats

THANKS for the work you are doing on this Harsh! I would encourage others to help buy him "eine alt bier"
[T-Mobile LG G2x] Blazing angel:
This may be a stupid question...

But this does not work on gingerbread correct?
[T-Mobile LG G2x] Harsh:
There is specific cm7 kernel version, which works on gingerbread cyanogenmod 7. But currently only if you do not have March baseband.
[T-Mobile LG G2x] Harsh:
Thanks for logs. I will check when I finish friends bday party, and if I am not too drunk. :D. Else tomorrow.

Guys is new March bb working good on cm7 and good voice?
[T-Mobile LG G2x] gpmartinson:
No..the new baseband only suuports 2.3.4...so stock or slightly modded stock it definitely makes the same noise on cm7...I can confirm.
[T-Mobile LG G2x] kesara:
Tried along with harsh kernel few posts back?
[T-Mobile LG G2x] gpmartinson:
no, I haven't tried with the new Harsh kernal...
[T-Mobile LG G2x] B@je:
I don't know if its a bug or my phone but the phone charges really slow when I'm using it and if I'm playing a game or watching YouTube or some intensive task the battery drains even when its plugged in. The phone actually died on me when I was playing world of goo while it was plugged in today. The only way to charge I to stop using it.

Edit.. I'm using your 1505 oc kernel
[T-Mobile LG G2x] rosevilletoyota:
Love your kernal..using this on genius pics and getting full 16 hours easy! Any updates planned? Btw why is every wanting this new baseband? I had a jailbreak iPhone and never updated base and to avoid unlock not working and never saw and reason to update?
[T-Mobile LG G2x] Harsh:
Never had this problem of charging. I experimented with 3 different battery drivers. All okay in charging.

Because new bb gives better GPS for some, I just tried to make it work, still not working. And yeah updates will come, currently working on controlling touch led completely, and make it independent of screen brightness, its too much work, hope i would be able to do that.
[T-Mobile LG G2x] B@je:
I nullified and reflashed owain's Rom and your kernel and now no problems. I suspect that it was because I dirty flashed owain's 63 over the 62 because I had problems with super user and lost root I think. Anyways thanks for the quick reply Harsh you're the best.
[T-Mobile LG G2x] Whyzor:
USB port specs only allow charging at 400-500 mA, while AC charging allows around 800-1000 mA. there are kernels hacks to charge in AC mode even in USB, but it's risking hardware problems w usb port.

Depending on how much hardware a phone is using, such as high brightness, vibrations, sound effects, compass, accelerometer, gps, BT, wifi, cell data (big drainer), all enabled could easily use more than 500mA so it ll still drain even when plugged in.
[T-Mobile LG G2x] IRASadPanda:
I know, but this is specifically a 4.0.4 kernel

Sent from Narnia
[T-Mobile LG G2x] B@je:
Thanks for the info. So by having it OCed it didnt help the charging rate either? You really cleared it up.
[T-Mobile LG G2x] daygen4545:
Correct me if i'm wrong, but wouldn't overclocking slow down charging even more? Since the processor is working harder, it would use more energy correct? If you're trying to get it to charge faster, you should underclock, or set it to underclock to very low speeds while sleeping.
[T-Mobile LG G2x] Harsh:
Guys slow charging is best for phone battery, but under heavy usage charging with AC is only viable option, as usb would not be fast enough.

OC or Stock, battery charing rate would be same, but OC would take more power so you would notice battery filling up slower.

PS: who all have USB host cable to test? :D
[T-Mobile LG G2x] kev0153:
I have a host cable
[T-Mobile LG G2x] B@je:
Yes thats what i said, overclocking didnt help the charging rate.
[T-Mobile LG G2x] FatalityBoyZahy:
Wait, I'm confused!

Do CM9 based ROMs work with the latest baseband now if you're using Harsh's latest kernel?! o_O
[T-Mobile LG G2x] Harsh:
No it does not. Those were experiments wasted. But I have not given up on that yet, just trying too many stuffs all together. USB host, touch led control, and new bb.

Main problem with bb would be that I don't have p999
[T-Mobile LG G2x] jwuerz:
Man. USB host is getting me excited!

One step closer to Ubuntu duel booting!

Hopefully, with Harshs brilliance we will see they day! (After code is distributed by canonical ... of course.)

Thanks for your continued support of the P999 even though you don't own one. :-)
[T-Mobile LG G2x] FatalityBoyZahy:
Ah! Thanks, I didn't really feel like reflashing my phone anyways (Still stock)

But I thought the Tegra 2 wasn't capable of USB Host?
[T-Mobile LG G2x] kesara:
Err... Not being successful the first time does not mean it's wasted, but you already know that.
[T-Mobile LG G2x] cricketAC:
“I NEVER FAILED EVEN ONCE, it just happened to be a 2,000-step process.” ~Thomas Edison (when asked how it felt to fail 2,000 times before successfully inventing the light bulb)
[T-Mobile LG G2x] Harsh:
New debug kernel for ICS to test USB host/otg. Please those with usb host cable try it, and report back. thanks

build-2105 debug

http://www.mediafire.com/download.php?x6bdfg8nbmcnvvm
[T-Mobile LG G2x] kev0153:
I'll try with my host cable tonight when I get home from work. Thanks
[T-Mobile LG G2x] daygen4545:
This might help with the baseband, i got the source code for the 21e and 21y kernels, and i made a list of the files that are changed in the kernel.

nvrm_power_private.h
nvec.c
nvrm_power_dfs.c
max8907.c
max8907_i2c.c
max8907_supply_info_table.h
max8952_buck_i2c.c
board-nvodm.c
clock.h
clock_nvrm.c
common.c
cpufreq.c
suspend.c
tegra2_clocks.c
tegra-nvec.c
nvec_mouse.c
tegra_odm.c
tegra_odm_touch.c
sdhci-tegra.c
sdhci.c
bcmsdh_sdmmc.c
dhd_linux.c
tegra_hsuart.c
spi_mdm6600.c
headset_det.c
star_battery_charger.c
star_bl.c
star_muic.c
star_powerkey.c
nvhost_syncpt.c
nvmap.c
tegra-fb.c
suspend.c
wakelock.c
printk.c

The weird thing is, i didnt find even 1 file that was changed that relates to the baseband? Is it in the system?

Edit: I checked the system, and didn't find any changed files relating to the baseband either.....I wonder what this means?
[T-Mobile LG G2x] Harsh:
board-nvodm.c this file is important, and also responsible for voice code.
[T-Mobile LG G2x] kesara:
Interesting ...

Also audio works fine with wifi calling (in CM7 kernel that harsh put out) .... So it has to do with the difference between how the audio is handled in wifi calling vs how it is done in cellular calls I guess. Could be as simple as device access rights may be?
[T-Mobile LG G2x] samstheman42:
So Awesome

I have been running the Hellfire Sandwich ICS ROM for a little while now and after the recommendation to flash your kernel, I have to say, I am REALLY impressed with the boost in battery life that I've experienced.

Thank you so much for your work with this kernel, it is BALLER!
[T-Mobile LG G2x] xBIGREDDx:
I don't know how long you've had your 2x or if things worked different on it than the G2x, but back at the very beginning of the G2x the Touch LED brightness was independent of the screen brightness, and was just set by apps such as this.

Then at some point during the first few months of CM7, they put something in that linked Touch LED brightness to screen brightness and also hooked them into the Notification system. So finding that code and removing/changing it should be all you need.
[T-Mobile LG G2x] Harsh:
that app can set brightness of touch led as needed, but problem is if your phone is set on auto brightness its always reverted to default set value. It was always same, and never was independent, even on stock roms its same.
[T-Mobile LG G2x] daygen4545:
I looked through the board-nvodm.c file and compared it from 21e to 21y, and it seems LG added a memory patch near the beginning and ends of that file...does this have anything to do with a changed baseband or were they just fixing a memory leak?

Here is what they added near the beginning:

/* memory patch 2011.08.23 start */
#define TEGRA_EMC_MRW 0x00e8
static void __iomem *emc = IO_ADDRESS(TEGRA_EMC_BASE);
static inline void emc_writel(u32 val, unsigned long addr)
{
writel(val, emc + addr);
}

/* read LPDDR2 memory modes */
void tegra_emc_write_mrw(unsigned long addr)
{
emc_writel(0x90000, TEGRA_EMC_MRW);
printk("Sending 0xB0 to TEGRA_EMC_MRW\n");
emc_writel(0x900B0, TEGRA_EMC_MRW);
printk("Sending 0xE0 to TEGRA_EMC_MRW\n");
emc_writel(0x900E0, TEGRA_EMC_MRW);
printk("Sending 0x90 to TEGRA_EMC_MRW\n");
emc_writel(0x90090, TEGRA_EMC_MRW);
/* Sending the test op code per Hynix FAE requested.
0xBD - reducing self-refresh rate from 30 us to 20 us.
*/
printk("Sending 0xBD to TEGRA_EMC_MRW\n");
emc_writel(0x900BD, TEGRA_EMC_MRW);
}
/* memory patch 2011.08.23 end */

And near the end:

/* memory patch 2011.08.23 start */
tegra_emc_write_mrw(9); /* set reflesh rate 20us */
/* memory patch 2011.08.23 end */
[T-Mobile LG G2x] Harsh:
By this they were just fixing memory code, nothing bb related though. But I have looked though many changes for bb related files. And sorry those file I named earlier is not related to it.

here is what you need to look into

/mach-tegra/odm_kit/star/query/nvodm_query.c

If you get some ideas please let me know. And do download CM7 source, just dont depend on v21e sources.
[T-Mobile LG G2x] iDreamless531:
Hey harsh is there a way yhu can add custom LED notifications like n cm7?? I tried front porting myself nd Tried on Owains build 63 but it was a no go thnx n advance
[T-Mobile LG G2x] Harsh:
If its CM7 feature, eventually it will come in CM9. It is ROM feature, to control it. Will come in future into CM9. Not just kernel dependent thing.
[T-Mobile LG G2x] daygen4545:
I looked in that file you mentioned, and found some code related to the baseband.....not exactly sure what it means, but i thought either you or someone else on xda could help with this.....

{
static const NvOdmQueryDapPortProperty s_Property[] =
{
{ NvOdmDapPort_None, NvOdmDapPort_None, { 0, 0, 0, 0 } },
// I2S1 (DAC1) <-> DAP1 <-> HIFICODEC
{ NvOdmDapPort_I2s1, NvOdmDapPort_HifiCodecType,
{ 2, 16, 44100, NvOdmQueryI2sDataCommFormat_I2S } }, // Dap1
// I2S2 (DAC2) <-> DAP2 <-> VOICECODEC
{NvOdmDapPort_I2s2, NvOdmDapPort_VoiceCodecType,
{2, 16, 8000, NvOdmQueryI2sDataCommFormat_Dsp } }, // Dap2
// I2S2 (DAC2) <-> DAP3 <-> BASEBAND
{NvOdmDapPort_I2s2, NvOdmDapPort_BaseBand,
{2, 16, 8000, NvOdmQueryI2sDataCommFormat_I2S } }, // Dap3
// I2S2 (DAC2) <-> DAP4 <-> BLUETOOTH
{NvOdmDapPort_I2s2, NvOdmDapPort_BlueTooth,
{2, 16, 8000, NvOdmQueryI2sDataCommFormat_I2S } }, // Dap4
};

I remember seeing some files changed in the 21y that had i2c in the name, and this says i2s, not sure if those are related at all?

By the way i will take your suggestion in downloading CM7 source, but i will have to do that tomorrow
[T-Mobile LG G2x] iDreamless531:
Ok thanx
[T-Mobile LG G2x] ayysir:
Can someone test USB host on debug kernel? None of my USB host apps say the USB host files are not present in kernel

GDrive Cm9/AOKP Themes Folder (not my themes and these are free themes credit to devs): goo.gl/JnLIS
[T-Mobile LG G2x] xBIGREDDx:
I just loaded my original backup from last April, the V10f stock firmware, and used this app to set my touch LED brightness. Then I went through various backlight settings including 0%, 100%, and Auto brightness, and the touch keys always stayed at exactly where I set them with the app.

A while after that I switched to CM7 and I don't entirely remember how it behaved under that.

EDIT: What a productive night, I think I've finally figured out how github works.

It would appear that the file you probably need to mess with is "lge-kernel-star / drivers / star / star_touch_led.c" although I'm guessing you probably already know that?

In other news, while I'm learning things, am I correct in thinking the baseband is the code that lives on the MDM6200 a.k.a. the radio/modem?
[T-Mobile LG G2x] pmorrsn:
I have your problem about damaged SDcard. I formatted it and now E: can't mount. I can no longer boot into start up, only recovery. I am on HF Phoenix. 2.2. I have played with kernels to improve battery life vs. instability.
[T-Mobile LG G2x] djvoleur:
http://xdaforums.com/showthread.php?p=17258229
[T-Mobile LG G2x] pmorrsn:
I could try to re-install the HFP2.2 from my sdcard. If I click internal/external, on some tries, I can access my external card with my zip files. Otherwise, no Windows pC access for the rest of the day.
[T-Mobile LG G2x] djvoleur:
You can try...but it'll probably still boot back into recovery...
[T-Mobile LG G2x] pmorrsn:
Thanks.

I think you are right, I tried an easier path of just loading a new kernel trinity 50-sv and it was successful, but rebooted into recovery.
[T-Mobile LG G2x] Harsh:
Changelog:

build 2205 Stock

Linux Version 3.0.32

Re-enabled ext3 ability (fix unsupported file system problem)

Increased XZ compression usage.

PS: its stock frequency kernel.... no OC yet. And USB charging mode patch by chad is already there. Look at changelogs of previous builds

And you all know where to find download link :D.. op or links in my sig
[T-Mobile LG G2x] kpizzle:
Why no OC yet?
[T-Mobile LG G2x] ayysir:
Be happy he is even making kernels for p999 be patient
[T-Mobile LG G2x] rosevilletoyota:
trying it out on eagle-blood will let you know how it goes...thanks for all you do.
[T-Mobile LG G2x] Harsh:
OC will follow soon, maybe tomorrow. This release was just middle release as linux version 3.0.32 was released.

Thanks, as sources are same, its not much of a problem. :D

UMS(

U

SB

M

ass

S

torage) probably not working in EB, but have not tested it yet.
[T-Mobile LG G2x] bluenote73:
Hey Harsh

Just wanted to give you some testing feedback on your CM7 kernel 1605.

I am on normal baseband.

I found everything I tested works very well.

Voice good, switching apps VERY snappy, extremely good quadrant score even not overclocked. External SD card available, but not internal SD or phone storage through USB. Excellent browser mark score (95000) with stock browser, and ~ 2900 quadrant.

The only thing I noticed was quadrant CPU score was very low. I know that its the user experience that counts, but in my experience usually a low quadrant in one area is an indicator. I got a very high overall quadrant because the I/O was off the charts and raised the total score. (I was comparing against trinity not OC). But CPU score was lower than even much crappier phones.

Anyways I'm quite pleased with this. I would love to see a OC version and maybe a little investigation on the CPU scores but otherwise I found 0 problems and much "leaked butter" as people around here like to say.

Thanks for your work, hope this helps you.

EDIT: whups. internal SD card not accessible whatsoever and no external SD either through ES file explorer. This is a big problem, hope you can fix it. I have a feeling this is the reason the I/O scores were so high. When I go to storage and try 'mount sd card' (internal) it tells me it is damaged. I can assure you this is not correct though.
[T-Mobile LG G2x] rosevilletoyota:
NO problem accessing SD Via USB using the Android file app
[T-Mobile LG G2x] bluenote73:
Recovering from CM7 1605, even after formatting and restoring nandroid, still recovery-bootloops over and over. (Like a couple of earlier posters said, but I assumed they did something wrong heh)

EDIT: nvflashing the recovery image(s) and then reflashing cwm and restoring nandroid did restore my phone to normal operation. I guess that CM7 kernel does something to *something* other than regular partitions harsh!
[T-Mobile LG G2x] Harsh:
Thanks for your feedback, about SD cards, there is easy fix, just have to revert one commit I made for ICS USB Mass Storage mounting, as those were not required for CM7. And for CPU score I get good score, maybe you need 2-3 tests after closing all apps. I will post new kernel for CM7, when I sort out my USB mounting thing, its giving me too much troubles, complete driver porting.
[T-Mobile LG G2x] ayysir:
Any news on usb host?
[T-Mobile LG G2x] FatalityBoyZahy:
Are you on the latest baseband? And is voice working without Wi-Fi calling?
[T-Mobile LG G2x] cricketAC:
Yes its working with 1805 but its breaking alot of other stuff like haptic feedback for starters. No mounting of SD card (internal and external).
[T-Mobile LG G2x] FatalityBoyZahy:
Eh, it's progress! Haha, I'll last on the stock ROM for now... It sucks though, it really does. and it's probably the only reason why I lost the Windows Phone Challenge -___-
[T-Mobile LG G2x] Whyzor:
Thanks for reporting your testing and saving others some frustrating times. I'm patiently waiting for a stable 3.x kernel for CM7 :)