yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] pastime1971:
Change Ia4d40be5: star-common: Adjust call routing

*star-common: Adjust call routing

**Still not perfect, but should cover the most common usecase (regular phone calls).

**This needs to be properly hacked into nvrm_daemon :\

http://review.cyanogenmod.com/#patch,sidebyside,8857,1,prebuilt/incall-audio
[LG Optimus 2x] wfd:
Some words about camera.

With old libcamera there was laggy front cam and smooth back cam, with new libcamera front is smooth, back is laggy in dark conditions. Unfortunately, Skype don't work with old libcamera.
[LG Optimus 2x] pastime1971:
when did we get a new libcamera ?
[LG Optimus 2x] wfd:
Arcee changed it 5 october here https://github.com/koush/proprietary_vendor_lge/tree/gingerbread/p990/proprietary/lib

Since we have a little camera lags. If you get this lib from older nightlies, cam will be more smooth, but no skype video.
[LG Optimus 2x] t830mc:
I've tried this patch by manual replacement of incall-audio in /system/bin with appropriate permissions. While testing other side barely understood what i've said. I'm using bb/ril 622.

So I guess this sux or I done something wrong.
[LG Optimus 2x] pastime1971:
well, maybe you can try 218 bb/ril.

did the register values tell you anything ? (see http://xdaforums.com/showpost.php?p=18354863&postcount=9832)
[LG Optimus 2x] t830mc:
Help needed!

Trying to analyze wolfsonmicro 8994 (O2X sound card chip) registers during call in order to compare it with cm7.1 setup. I'm hoping to learn why stock firmware has good sound quality and CM7.1 doesn't.

I need someone with stock firmware to do following:

cat /sys/devices/platform/star_wm8994/data - during call

and

cat /sys/devices/platform/star_wm8994/data - when there is no call in place

I need the result of those commands after execution.

I would appreciate any help on this side.
[LG Optimus 2x] therealmarv:
Done. Used Modaco V20i stock firmware and (if this matters) baseband 0725.
[LG Optimus 2x] Sckank:
This is really interesting. Following this like a hawk.
[LG Optimus 2x] t830mc:
OK I set your values and testing it now. It seems bit less distorted on my side. Other side do not complain and said my voice is crystal clear.

If someone else want's to try these values please feel free, since I could be subjective about sound quality.

Replace this file in /system/bin

Set 755 (rwx r-x r-x) permissions

Don't forget to backup original one in case you don't like what you hear.

P.S. My mother confirmed that she can hear me better then usual. (perhaps I should call more often)
[LG Optimus 2x] TrymHansen:
Whoa, if that's true I'm going CM7 soon. People are complaining about background noise to me all the time, though my end of the conversation sounds clear. Waiting for confirmation.
[LG Optimus 2x] aremcee:
I've taken the values for the microphone volume (0x1a and 0x1b) from that, and moved the back-loop disable to nvrm_daemon. It should be in the next nightlies.
[LG Optimus 2x] Rusty!:
Left myself 2 voice mails, one with the CM7 incall-audio, one with yours. Your one seemed to have less 'noise' too it :)
[LG Optimus 2x] t830mc:
Yipieee
[LG Optimus 2x] Sckank:
Wow is going the right way. :) Try that with a noisy background too :D
[LG Optimus 2x] rQvsnaps:
Works perfectly :) much better quality on the other end
[LG Optimus 2x] sibbor:
@t830mc: Thank you. I've tested one call and the person I called said it was "much better", and he also got a O2X.

Thanks for the quick commit. Really liking the progress you're providing. The Android community is amazing!
[LG Optimus 2x] barmyman:
comparing two total call audio quality, in stock firmware and CM7 with the fix - which is better? and is this incall audio fix is included in 170 build? thanks in advance for reply
[LG Optimus 2x] Rusty!:
In theory, it should be identical to stock quality. It will be in #171 or you can manually push nvrm_daemon & incall-audio I guess.

Edit: If anyone is desperate to test without waiting for a kang or using ADB, this should do it: http://www.mediafire.com/file/8vara3bf5k7uz4p/cq-signed.zip
[LG Optimus 2x] vadonka:
much better quality even with the 502/530 bb&ril. i try it with some new baseband too.
[LG Optimus 2x] nfin1te:
Sorry to say, but this prevents my phone from booting.

Does nothing, screen stays black after 2nd LG logo.

Nightly170 / Vorkkernel
[LG Optimus 2x] :
I got another BSOD now while browsing (Using Dolphin Browser Mini). This has happened quite a few times before.

The phone suddenly becomes unresponsive and after a few seconds the screen turns off and gets the BSOD. Here's the logcat

http://pastebin.com/dDE4GdkJ
[LG Optimus 2x] _Vegas:
Same here..

:confused:
[LG Optimus 2x] nfin1te:
Just reflash CM via CWM - worked as a fix for me.

Will wait for Nightly171 now :D
[LG Optimus 2x] temasek:
Booting up KANG now. - Usual place if u interested...in about 5 mins. (minus.com UP, mediafire 5 min)

Will call my wife next room and try it out. :)
[LG Optimus 2x] djmcnz:
Are you using Watchdog? If so you'll not get a lot of sympathy I'm afraid:

W/Watchdog( 1110): *** WATCHDOG KILLING SYSTEM PROCESS: com.android.server.PowerManagerService

Not good...

Why on Earth it would try and kill that I have no idea.
[LG Optimus 2x] Imperticus:
Been getting BSODs after long phone calls, and after leaving the phone on charge over night. Still not stable enough to be used as a regular ROM.
[LG Optimus 2x] vadonka:
extract incall-audio and nvrm_daemon from the zip file

copy this two files to the sdcard root

go to the adb shell

mount -o remount,rw /system

rm /system/bin/incall-audio

rm /system/bin/nvrm_daemon

cp /sdcard/incall-audio /system/bin

cp /sdcard/nvrm_daemon /system/bin

chmod 0755 /system/bin/incall-audio

chmod 0755 /system/bin/nvrm_daemon

chown root:shell /system/bin/incall-audio

chown root:shell /system/bin/nvrm_daemon

reboot
[LG Optimus 2x] :
I just use it to force close unresponsive apps sometimes. Never knew it would Autokill a process:confused:
[LG Optimus 2x] Sckank:
Its been a long time since I had a bsod with CM. Am I the only one or what?!
[LG Optimus 2x] Sckank:
So what do you think? :)
[LG Optimus 2x] nfin1te:
You could also use CMs "built-in" taskkiller - holding the back key for 2 secs (only if enabled via settings -> apps -> dev settings). Works only for the active app ofc.
[LG Optimus 2x] temasek:
For me to know, for u to find out.

Just try it out yourself :p

Joking.....my wife cuts my phone, shouts at me and say "WTF....I'm just next room!!!!"
[LG Optimus 2x] t830mc:
I havn't got bsod for a week. Btw regarding new incall values, call quality is like on stock now.
[LG Optimus 2x] :
Stock as in stock CM7 with no custom kernel or stock as in LG stock Froyo?
[LG Optimus 2x] t830mc:
Lg one
[LG Optimus 2x] vadonka:
using stock cm7, stock kernel, no bsod since 3 days

with cq fix sound quality is much better, however im on bb530 for now. audio quality is fine with 530 without the cq fix, but i hear the difference with this bb too.i will updated bb to 725 soon and try the cq fix with this.
[LG Optimus 2x] baliriot:
:D post of the day! :D
[LG Optimus 2x] mas2112:
It showed Locus Pro as consuming almost 100% of the battery... Actually, it COULD be that an app update is causing most of the battery drain. If GPS or 2G/3G was causing the battery drain, would Android be able to detect it? Or would it just attribute it to the app?

Actually, I notice now that battery drain in general is worse with my current nightly build (147). I don't know how to measure this though... What apps are you guys using to track battery usage?
[LG Optimus 2x] vadonka:
i often chat my brother in facebook while he is in the neighboor room. once i open the door while he is masturbating and i just sad: "drop it!"

since this incident he often lock his door and communicating only with facebook.

i dont know its more like a sad or a funny thing, but i always laugh when i remember of this :)

---------- Post added at 03:42 PM ---------- Previous post was at 03:40 PM ----------

try system panel
[LG Optimus 2x] djmcnz:
lol.

As long as he wasn't masturbating while he was talking to you on facebook... yuck. :eek:
[LG Optimus 2x] temasek:
Post of the week :eek:
[LG Optimus 2x] _Vegas:
Same,

back cam is laggy in dark conditions:(
[LG Optimus 2x] vadonka:
its better to not think about the carpet what is in his room. my mom think my brother tip out some food to the carper, but i know it, that is not food...

thank good now im live with my girlfriend and going home not too often :)
[LG Optimus 2x] ThePigletWhisperer:
Cool story bro.

: P
[LG Optimus 2x] machtwerk:
Weird twist this thread is taking, lol :D

Me too. No BSOD for 2+ weeks!
[LG Optimus 2x] vadonka:
in time i flashed the 725 bb and using getril to mach the ril for this.

cq fix already installed.

sound quality is better than before but worser than the bb530 or stock.

i think i stick with the bb530
[LG Optimus 2x] t830mc:
Is the quality acceptable with 725?
[LG Optimus 2x] vadonka:
eeee, still too distorted to me :(

its seems like that the audio volume is overamplyfied, or something. i change the in call volume to lower levels, but the distortion is still not gone. my call partner is on the other side hear me fine but what is hear is still too loud.
[LG Optimus 2x] Konkhra:
Me too. That sucks.

Guys, there isn't a way to change this thing like it was before? With full framerate?

It's better to have a video with full framerate, even in dark conditions, that with a laggy video.
[LG Optimus 2x] rejj:
FWIW; Just did some quick testing on a friends SGS2 CM "Stable", it exhibits the same symptoms with Sensor lock ticking on, it did not however appear to attribute batterydrain to camera app/gallery/dialer (maybe my testing was flawed or too limited, but I had access to his device for a short time only).

For fun I've launched all the sensor using apps I could think of, which seems to divide reported drain amongst the apps equally.

Could it be that somewhere in a driver for sensor it's reporting drain by a factor that is good for stock rom but for our device it's off by a magnitude of 10|100|1000|random(55555) for use with CM ?
[LG Optimus 2x] _Vegas:
use the old libcamera.so instead of the new
[LG Optimus 2x] 75markus:
yes, me too :)
[LG Optimus 2x] pastime1971:
your side volume could be a different issue.

maybe try sibbor's in call volume fix app ?

---------- Post added at 08:29 AM ---------- Previous post was at 08:25 AM ----------

if anybody wonders, my list thread has been moved to "LG Optimus 2x > Optimus 2x General >

CyanogenMod-7 : List of working features and what not"
[LG Optimus 2x] vadonka:
already installed incall volume fixer
[LG Optimus 2x] aremcee:
That's arguable. Majority rule applies, and most people prefer clearer pictures to faster video.
[LG Optimus 2x] pastime1971:
i prefer clear picture to video rate as well.

@aremcee,

on the side note, did you have a chance to look at pull request to lge-kernel-star ?

didn't see much difference in terms of stability, but it looks like they are some clean up, at least.

benee looked at it and said they looked good.

i would be interested in what you think of them...

thanks in advance.

https://github.com/CyanogenMod/lge-kernel-star/pulls
[LG Optimus 2x] biasquez:
Where is video app on latest nightly? I don't found it...

from Optimus 2x
[LG Optimus 2x] Konkhra:
Hi aremcee (Tuga Rulez :)).

Yes, that's arguable, but i don't know how people prefer a laggy video even more bright, than a faster video, because it's not cool to see a video that isn't smooth and clear and becames blurry until you stop the camera.

Can't you implement an option in the Camera, for us to choose to turn off or on that option?

Thanks.
[LG Optimus 2x] aremcee:
AEC is mostly irrelevant on video, but it's terribly important for stills. With the previous HAL, shots taken under less-than-ideal conditions were often grainy and almost always too dark. And most people use the camara for pictures much more often than for videos.

And no, AEC can't be disabled, as far as I can tell.
[LG Optimus 2x] t830mc:
@aremcee Is it possible to change HDMI resolution? Through nvrm, /sys or is it hardcoded? I would really appreciate if you could provide more info about this!
[LG Optimus 2x] markop90:
Great work guys!!
[LG Optimus 2x] barmyman:
So as i understand, BSOD is a WatchDog issue. So, maybe the way out is to take it from stock and put into this ROM?) If nobody want to try, i'm gonna try this weekend)
[LG Optimus 2x] :
Loud and clear, no distortion? :-)
[LG Optimus 2x] djmcnz:
Err... no. Read more.
[LG Optimus 2x] therealmarv:
Big thanks to t830mc and aremcee!!!

You guys rock. Just gone back (from modaco V20i) to CyanogenMod and applied your voice patch t830mc on the 7.1 stable version (before I jump to the next nightly with voice patch included).

Done 2 quick call testing and girlfriend saying my call quality is the same as before with the stock V20i (and she was hearing very good when I used CyanogenMod in the past... now she cannot hear that anymore.. hehe).

FYI: CyanogenMod is also way faster in responsiveness than stock V20i. Especially you can see that when doing pinch & zoom on large websites. There are some sort of micro-lags on the stock rom. It feels more clunky.

THANK you! :D
[LG Optimus 2x] wfd:
Is there some way to disable mediascanner for external sdcard?
[LG Optimus 2x] nrkabul:
Possibly you could create a .nomedia file in the root folder, but that might only work for subfolders.
[LG Optimus 2x] t830mc:
xdaforums.com/showthread.php?t=1007630

Is this ok for your needs?
[LG Optimus 2x] tulox:
Hello. Do I have to wipe my device if I want to flash the newest nightly version over stable version?
[LG Optimus 2x] Rusty!:
No, flash away.
[LG Optimus 2x] wfd:
No, .nomedia is not suitable for my needs. I tried to mount external sdcard into _ExternalSD, like in stock, but in that case mediascanner deletes all images on external sd.
[LG Optimus 2x] gtamax:
I have 3 problem, i need help =(

1. Every night my 2x shutting down! And after need the charger to power on. It is a case that every night the battery where fully discharge? (battery life from 13.00 to night between 1.00-6.30, it indifferent if i use lot or little)

2. When i turn on the screen they doesn't turn off, i need to press the power button.

3. Battery calibration don't work! The % is always 100!

PS: the cm is very beautiful, but with this problem i can't use! (and i don't like rom stock) =(

Excuse for my bad english, but i'm italian.
[LG Optimus 2x] :
Just create an empty file ".nomedia" in the directories you don't want to scan. Might need some time or a reboot to pick up.

Edit: Oops, never mind...
[LG Optimus 2x] yodanutz01:
what build are you using ? 1st problem happened to me also.
[LG Optimus 2x] gtamax:
nightly 168

the problem 2. and 3. i can ignore...but the first no
[LG Optimus 2x] yodanutz01:
try using latest 170 build. i see how it works
[LG Optimus 2x] b3ndech0:
no :)

10 chars
[LG Optimus 2x] gtamax:
i say every time, try with last build, but every time i have the same problem.

only the second problem is new by flashing nightly 168.
[LG Optimus 2x] machtwerk:
Did you perform a full wipe and/or format /system before trying to flash again?

Concerning your 2nd problem: have you checked settings -> display -> display timeout? Should be set to 1min by default.

Never had these problems myself save the first one, but that was about 150 nightlies ago.
[LG Optimus 2x] gtamax:
Before flashing i have format all and wipe all.

the timeout i set to 1min.

if i can calibrate battery, i can see if the first problem is related to the battery.

but it will a case that every night turn off and need charge.
[LG Optimus 2x] aremcee:
I've written this multiple times, and this will be the last: Stacked mounts will cause data loss.
[LG Optimus 2x] HotBuller:
CM v7.1.0 on O2X

Just installed v7.1.0 (stable) of CyanogenMod on my LG Optimus 2X and it work like a charm. So far no problems encountered - it's fast and seems to hold the battery longer than stock 2.2.2 Android for O2X. I also like all the extra CM settings for tweaking the UI.

Great job CM team.

:)

HotBuller
[LG Optimus 2x] gtamax:
i've flashing the last nightly 171.

for 2nd problem: it present after they checked options: Applications > Develop > Awake on charge
[LG Optimus 2x] gasgasgas:
Try to use Spare Parts-> Battery Use (Uso batteria) and check all the options of the first drop down window ex. Cpu usage (utilizzo cpu) and most important Partial Wakeups ( Utilizzo riattivazione parziale).

In my case latitude and hootsuite were the battery killers.

Also check, Settings-> Phone Info (Informazioni sul telefono)-> Battery usage and see what app is sucking battery.

Added: what time do you go to sleep and how mych battery do you have left at that time?

With spare parts and battery usage you should find out what is the real problem, I have CM 167 and the battery is great.

Also consider that on this forum some people are crazy for battery usage and they disable everything possible, that's why they have huge battery life but in my opinion they simply don't use their smartphone, 12-15 hours is a decent time if you have latitude and facebook syncing for example
[LG Optimus 2x] gtamax:
the problem isn't the life of battery but every night turn off.

(standby 50%, inactive 49% and display 2%)

before the stable release every night i charge the 2x, but it turn off however. and i need to turn on in the morning (and the alarm doesn't sound xD).

but if i can't calibrate the battery i can't see the % of battery =(
[LG Optimus 2x] t830mc:
Anyone willing to test this incall tuning setup?

I was not satisfied with "other end" call quality. There was too much noise and static, so I rip off additional registry values from v20j LG stock ROM. I put it in incall-audio file and give it a try, I find now call quality *MUCH* better then it was with first suggestion.

Anyone willing to test? Looking forward for your comments?

Howto:

1. replace incall-audio in /system/bin

2. Change permissions to 0755 on /system/bin/incall-audio

3. Change ownership to root:shell on /system/bin/incall-audio
[LG Optimus 2x] aremcee:
Er... These are the exact same values included since the last nightly.
[LG Optimus 2x] therealmarv:
Hmm, I downloaded your zip and compared incall-audio with your last post. They are the same! So there won't be any difference :p
[LG Optimus 2x] t830mc:
Other end quality is the same?
[LG Optimus 2x] barmyman:
maybe you uploaded an old file? cause the edition time, size... everything is the same)
[LG Optimus 2x] therealmarv:
Do you mean compared to latest nightly? I'm running CM 7.1 stable with your incall-audio fix you posted yesterday. And this fix is binary the same as posted from you today.
[LG Optimus 2x] t830mc:
Sorry here is the right one.

att removed for your safety
[LG Optimus 2x] pastime1971:
so, i guess you added echo "0x29 0x20".

do you see it make a difference ? (well, scratch this question...)

what is 0x29 register for ?

edit: just looked at the new upload. you added many more. is echo "0x25 0x1178" correct ???

edit: i believe 0x25 is speaker, 0x1c is left headset out, and 0x1d is right headset out ? (says old sound boot by vork)
[LG Optimus 2x] t830mc:
I compared and adjusted values I see at v20j. I'm driving now I can't help much right now. Google for w8994 register.h for more info.

BR
[LG Optimus 2x] pastime1971:
i did try to search before, but i guess i wasn't seeing it.

could you post me a link when you have a chance ? (NOT WHILE YOU'RE DRIVING...)

drive safe...

edit: never mind. found it.
[LG Optimus 2x] aremcee:
0x25 is CLASSD (output boost flags), 0x1c/1d are the headset.

0x20 and 0x21 are also left/right front speaker, 0x26/0x27 are the back speaker's left/right channels, so neither of these flags will make a difference on the microphone.

Additionally 0x29 is composed of 4 bits representing different components (routing and volume), so setting an absolute value is dangerous;

To make a long story short: I strongly recommend not using this.
[LG Optimus 2x] barmyman:
just flashed latest CM7. is this okay that my phone does not see any audio in music player or pictures\video in galery? can i fix this by enabling "Internal to external" option in vorkKernel before flashing it? thanks in advace
[LG Optimus 2x] t830mc:
ATT removed. However I had impresive results.
[LG Optimus 2x] therealmarv:
I ask myself if this improves something on headset or handsfree mode.
[LG Optimus 2x] aremcee:
0x25, maybe. The others will be overridden by the actual volume setting from the user.
[LG Optimus 2x] aremcee:
Maybe on the output, since the input (microphone) values were the same :)
[LG Optimus 2x] pastime1971:
@ aremcee

could you comment on pull request #7 on lge-kernel-star ?

were they non-crucial fixes ?

thanks in advance.
[LG Optimus 2x] aremcee:
#7 is mostly cosmetic, and I haven't had the chance to try it yet.
[LG Optimus 2x] barmyman:
somebody knows anything?really need fast help(( internal to external otion didn't help...
[LG Optimus 2x] pastime1971:
#1, flashing latest... so, can't answer that yet.

#2, i believe that is really a question for vork thread.

edit: well, now it sounds like whole thing should be in vork thread, now that you mention "internal to external option"
[LG Optimus 2x] barmyman:
no, the problem existed in 165 build too, and audio/video can't be indexed in default nightly(without vork) i just metioned vork as i am trying to do smth with this..but nothing helps(
[LG Optimus 2x] pastime1971:
ok. got you.

i'm flashing it... so, give me a min.

edit: you had this problem in #165, but not since #166, then again in #171 ?

edit: what about file manager ? can you see those media files from filemanager ?
[LG Optimus 2x] wfd:
barmyman, beware from using external to internal mount, because:
[LG Optimus 2x] barmyman:
i flashed just 165 and 171, so... i got always got that problem( yea, i can see everything in filemanager... can even play every media file through it, but no index in music or galery (

+it is all okay with stock..but i hate stock)
[LG Optimus 2x] pastime1971:
just to be clear, by "external to internal mount", you mean "Settings > CM Settings > Application settings > Use internal storage", right ?

not mounting external as /mnt/sdcard/_External ?
[LG Optimus 2x] t830mc:
I was clearly talking about output on the other end. With present values in incall-audio I hear GSM radio buzzing on second phone. So I took without thinking all values that were different in CM7's registers and v20j registers (even speaker sound volume values) and after that I had clear sound on the other end.

I didn't care if 0x29 is smart to use or not, I tried it and luckily didn't fried anything.

But I set states of wm8994 registers equally to v20j and had very good output on other end.

So the question is which is smart way to set soundcard in most adequate mode to have acceptable sound quality on the other end?

And btw. aremcee I respect you, I have donate to you, showing that I respect your time, work and vast amount of knowledge you posses. But you are arrogant which sometimes affects your perception.

So having all this in mind, I send you gentle F*** you, and please remove A2DP (Bluetooth audio) DOES NOT WORK. STOP ASKING! from the OP.
[LG Optimus 2x] pastime1971:
just to be clear, when you say "output on the other end", you mean the other person that you hear on your phone, right ?

"on the other end" is a bit confusing, i must say...

but, yeah i knew that you were talking about what you hear, not

"your voice the other side hear" which was the original target of aremcee's commit

.
[LG Optimus 2x] t830mc:
Sorry english is not my native language. Let me try put it this way!

my end 0----------------- call line -----------------O other end

And BTW don't change anything call quality is good now. I have wiped and reflashed. ?!?!?!?
[LG Optimus 2x] GoDzPlaY:
Can't find the SD card on any file manager!!!!

Tweak link plz !!!!!!
[LG Optimus 2x] Rusty!:
Internal SD = /mnt/emmc

External SD = /sdcard