yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] SuperSkill:
See first post, "don't dare ask" both butter and hwa!
[LG Optimus 2x] Ryukenden:
We are discussing on butter subject. noone is asking for it... read more carefully
[LG Optimus 2x] FatherJony:
Well, triple buffering and vsync should work if the gpu driver isn't completely worthless. Vsync is supported by Tegra 2 and triple buffering seems to be working in some tegra 2 tablets that have gotten alpha builds of CM10. Cpu boost on touch events might not be possible though, as it's implemented via cpu governor and our tegra2 chipset does not support custom governors. This last bit might change with the ics update but i wouldn't hold my breath...
[LG Optimus 2x] silentmelodies:
You mentioning the governor bit just broke my heart :(
[LG Optimus 2x] FatherJony:
Well, the new ICS kernel might add support for governors but even if it doesn't, a capable developer might think of a workaround. Besides the difference in responsiveness shouldn't be that big, the existing governor already rumps up the cpu freq fairly quickly (although not to the max). The important part concerning frame rates and smoothness in project butter is triple buffering and i am confident that it will work on our device.
[LG Optimus 2x] Benee:
Without a leak it is very hard to say if we get Project Butter. The current userland based implementation is horrible and I wouldn't guarantee that we can enable vsync, 60fps, triple buffering with it. Additionally we don't have source code to any lib. So you can discuss as long as you want about it, without a leak it's really hard to tell.

Same with govenor. A workaround for this is .. yeah nearly impossible. I had a idea in mind to enable govenor (with the current implementation). It was a really hacky idea and maybe even dangerous, so I never wrote it actually.

So back to hacky JB - We have GPS (thanks to pastime) :D only audio to go.
[LG Optimus 2x] Ryukenden:
Yea, hence why i said that probably we will never see a full featured JB rom out there unless LG does a miracle and announce JB update for 2X.

And chances for something like that to happen is like 0.001%
[LG Optimus 2x] FatherJony:
A leak would be enough? Wouldn't you also need the kernel source code?
[LG Optimus 2x] Benee:
With a leak we can check if LG updated the govenor code, the libs in the rom can tell a bit (very vague) if the userland based implementation to a normal kernel one.
[LG Optimus 2x] tonyp:
LG is legally required to publish the source code, that's not the problem.
[LG Optimus 2x] FatherJony:
Yeah i know, i've been involved with oss for years. I was asking about a leak though, LG is required to publish the kernel source code when they actually officially release it. A leak is just binaries and LG doesn't have to provide us with anything (which goes well with their natural modus operandi :P).

So i take it we do need to wait for the official release to be sure about triple buffering. The source code would probably make your life easier when integrating the new drivers in CM10 anyway.
[LG Optimus 2x] huy_gm:
Finally i have a reason to resize those partions.
[LG Optimus 2x] HerrKuk:
Just drop wallpapers and ringtones :p

----------------------------------------------------------------------

arcee: the star, the galaxy R, and the grand X are completely different devices. different components, different resolutions, different radios, different audio amps,different panel manufacturers, different almost everything. The designs have nothing in common other than being T2

tonyp: so it's either LG or nothing?

arcee: yes
[LG Optimus 2x] bihariel:
you can remove the video folder on system/media, it is useless for me so i always remove it to save some space because i am using dual boot on my phone, i resized system partition to 650MB, so i have 325 for each ROM.
[LG Optimus 2x] tonyp:
As mentioned here removing the videos is a good idea, it gives about 10mb of space.

I propose to just merge this: http://review.cyanogenmod.com/#/c/19787
[LG Optimus 2x] bihariel:
Dual boot for Devs and users to have a stable rom and test other roms http://xdaforums.com/showthread.php?t=1856090
[LG Optimus 2x] pastime1971:
update on the volume issue

actually volume was somewhat working.

it is just that it didn't have an immediate effect on the sound (such as playing song)

stopped the song and re-playing then it plays in a new volume. (so... it is working...ish...)

it seems to be merely an issue with updating volume with sound-playing-thread or something.... (will investigate...)

edit: note to myself and any potential debugger:

0. VolumePanel.java

1. frameworks/av/service/audioflinger/AudioPolicyService.cpp > setStreamVolumeIndex #ifdef ICS_AUDIO_BLOB calls ap_set_stream_volume_index w/o device

2. legacy/audio/audio_policy_hal.cpp > #ifdef ICS_AUDIO_BLOB > ap_set_stream_volume_index substittes device = AUDIO_DEVICE_OUT_DEFAULT

3. legacy/audio/AudioPolicyManagerBase.cpp > setStreamVolumeIndex : device == curDevice not satisfied (device = 0x8000, curDevice= 2)

frameworks/av/service/audioflinger/AudioFlinger.cpp > setStreamVolume is called

only after playing song stops and restarts

upon volume change.

edit: that was it. volume fixed. i am pondering on how though. either remove ICS_AUDIO_BLOB for set_stream_volume_index_for_device or fix AudioPolicyManagerBase.cpp for default device OR ditch ICS_AUDIO_BLOB and really make USES_AUDIO_LEGACY independent of ICS_AUDIO_BLOB.

edit: commit submitted to github/vork

https://github.com/pastime1971/andr...mmit/7adf8d502f762bddfbf58ff8ceb5555d44f15f9c

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

https://github.com/pastime1971/android_frameworks_av/commit/f0a5e716b3909f3dc5bae4522f48acf007acd537
[LG Optimus 2x] ethansp:
Little off-topic of the audio problem.

You are getting internet over 3g or radio? I only have it trhough WI-FI. My baseband is 20120521 and tryed with different RIL and no one solve problem. If you tell me you are working ok with other baseband, i will change it instantly :D

Impressive work benee, pastime and tonyp, thank you all!
[LG Optimus 2x] pastime1971:
sorry, can't answer you. i don't have a data plan. (i'm wifi only)

but i wouldn't be surprised if we have some issue with mobile data. that is the next thing once we sort out volume issue.

edit: actually, reading radio logcat, i don't see anything in particular.... :confused:
[LG Optimus 2x] sharvan97:
Looks nice!!

When is the Rom useable?
[LG Optimus 2x] SuperSkill:
Don't ask this! Link provided when these amazing devs decides too!

Thanks alot to all of you participating in this :)
[LG Optimus 2x] pastime1971:
fixed volume issue, see http://xdaforums.com/showpost.php?p=30797954&postcount=65

edit: once benee confirms, i will move on to RIL. hopefully, that will fix the battery consumption. draining 10% per hour instead of 3%...
[LG Optimus 2x] lipisak:
Hi guys,

I have just a small question. Could you write what to change in tutorial (Building CM9) to be able to Build your CM10? I'd like to build it by myself.

Thanks

L.
[LG Optimus 2x] tonyp:
You have to change the git init link to vork instead of cyanogenmod.

-jellybean instead of -ics, that's obvious.

In the local manifest leave only the line with owains vendor files, delete the others.

And you don't need to do any of the fixes mentioned, everything (camera, mobile data etc) is fixed in the sources.
[LG Optimus 2x] lipisak:
Hi again,

but there is no jellybean branch in owain's git mean for vendor files, this error appears:

error: revision refs/heads/jellybean in Owain94/proprietary_vendor_lge.git not found

Thank you

L.
[LG Optimus 2x] tonyp:
You just add a revision="ics" (you could also just git clone, but I figured the local manifest would be easier for people who are following the CM9 build guide).

local_manifest.xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="vendor/lge" name="Owain94/proprietary_vendor_lge.git" remote="github" revision="ics"/>
</manifest>
[LG Optimus 2x] huy_gm:
Then we have an ics leak, unfortunately it is not something that we can boot but a dump file. But it look like everything we need will be put on the table by LG soon.
[LG Optimus 2x] pastime1971:
just a minor update on audio issue (or lack of issue)

it had been done in a hacky way using ICS_AUDIO_BLOB (which we shouldn't need to use.. yes, that was me... sorry)

now it has been cleaned up in a correct way, and has been submitted to github/vork

edit: can someone post a link to SU660 ICS files when extracted ? thanks in advance
[LG Optimus 2x] bihariel:
Here are the files: SU660-ICS-dump.zip

it is a nand backup format (.tar) so can be unzipped with winrar. i hope you can add the drivers to CM9 /10.
[LG Optimus 2x] pastime1971:
audio has been completely fixed, i believe.

output tested by playing songs.

input tested by calling on phone app and kakaotalk messenger
[LG Optimus 2x] albi.i:
Have you managed to use some of the new su660 blobs(drivers or anything)?
[LG Optimus 2x] Benee:
No and won't happen without kernel source.
[LG Optimus 2x] lipisak:
Hi guys,

I finally Made to compile jb. But I compiled IT on virtual machine(Linux) which took About 5 hours:( since then sou released fixed audio. Is IT possible to co pile Just this changed part ?

Thx L.

Odesláno z mého LG-P990 pomocí Tapatalk 2
[LG Optimus 2x] pastime1971:
it may be possible to differential-build

for audio, you need to "make libaudioflinger audio.primary.p990" and possibly audio_policy.default also... (i could be wrong)
[LG Optimus 2x] lipisak:
Which Will require Put the newly created libs Back to already created archive right?

Odesláno z mého LG-P990 pomocí Tapatalk 2
[LG Optimus 2x] hellraiser:
When will we get our hands to try JB

:good: First of all hats off to you guys :victory:

im eager to try JB in my O2x, having finger crossed to see fully funtional JB :fingers-crossed:

now LG has released ICS for SU660 now can we get fully functional JB. :confused:
[LG Optimus 2x] pastime1971:
correct (if i got what you saying correctly). "make libaudioflinger" will rebuild libaudioflinger.so, but it won't put it in a zip.

for that you will have to do something similar to "make otapackage" or something. (but not exactly true for cm. sorry this is beyond my knowledge.)
[LG Optimus 2x] bihariel:
hey pastime, what do you really think about the ics leak for su660, can we use something for CM10? at least gles drivers or hwcomposer?
[LG Optimus 2x] Benee:
I think nope. But will run a test tomorrow. Most likely the communication between the binaries is totally broken and will result in a nice stacktrace. A test should prove it ;)

I think we need to use all or no libs because the total implementation changed. LG really worked hard on this and it looks like we're on a up 2 date implementation (not this old horrible one hehe). So this is a huge update and really kudos to LG for not hacking together something just to save time. The downside is that we really need a new kernel. Maybe a proper JB is possible with this (no guarantee ;) ).
[LG Optimus 2x] pastime1971:
benee is a better person to answer that question (and he did. see above.)
[LG Optimus 2x] pastime1971:
i have a request to anyone who is willing.

when you have a data connection (and possibly when you don't as well), can you check the system property ?

open terminal > type 'getprop | grep dns'
[LG Optimus 2x] Ultramanoid:
:eek: Shocking.

That said, keep up the hackfest ! :D
[LG Optimus 2x] Soulj4h:
So is it possible we'll have hardware acceleration if we get kernel sources for the ICS?
[LG Optimus 2x] lipisak:
Hi, i am unable to build IT now.

Reason:

../com/android/settings/SoundSettings.Java:151 cannot find symbol
Symbol: variable VOLUME_OVERLAY_EXPANDABLE
location: class android.view.VolumePanel
VolumePanel.VOLUME_OVERLAY_EXPANDABLE);

Any clues?

Thx L.

Odesláno z mého LG-P990 pomocí Tapatalk 2
[LG Optimus 2x] bihariel:
Thanks man, this helps me to really understand why we can not make it run.

Enviado desde mi Optimus 2X usando Tapatalk 2
[LG Optimus 2x] Kashamalaga:
First i want to thank to pastime his help for do the great fix for audio. Its working really good! :good:

I helped me so im gonna copy his answer about VOLUME_OVERLAY_EXPANDABLE.

I thought that was merged.. but take a look at:

http://review.cyanogenmod.com/#/c/22334/

http://review.cyanogenmod.com/#/c/22333/

You should find your answers here!

PS. I´ve just updated my macbook-pro mid2009 with a new ssd and +8gb ram and builds JBP990 in 8 minutes! :angel:
[LG Optimus 2x] lipisak:
And Will this get into JB vork repo or It's necessary to Made those changes manually? I'm pretty new to Git...

Odesláno z mého LG-P990 pomocí Tapatalk 2
[LG Optimus 2x] bihariel:
So, that will be posible when lg korea release the source code of su660? we don't even need a leak for the p990?. Our devs can make a usable kernel for p990 using su660 kernel sources?. If yes i think those are good news if lg don't release ics for us.

Enviado desde mi Optimus 2X usando Tapatalk 2
[LG Optimus 2x] Raum1807:
There is something wrong with the class import. The var is declared in VolumePanel.Java and it should be available in SoundSettings.Java via import. Don't know why it doesn't work atm.

These commits are already in the repo. No need to implement them.

You recently synced you repo that's the reason you get this message.

I had the same error. I edited the SoundSettings.java file at line 151 and replaced the VolumePanel. VOLUME_OVERLAY_EXPANDABLE with 1.

Then just restart your brunch p990. It will build perfectly.

Never flashed the ROM though. Please give feedback if sound is finally working.
[LG Optimus 2x] ethansp:
Hi, i've resynced today and getting this error, found that line, but don't understand what you want to say with replace it "with 1".

This is the code:

149	int volumeOverlay = Settings.System.getInt(getContentResolver(),
150	Settings.System.MODE_VOLUME_OVERLAY,
151	VolumePanel.VOLUME_OVERLAY_EXPANDABLE);
152	mVolumeOverlay.setValue(Integer.toString(volumeOverlay));
153	mVolumeOverlay.setSummary(mVolumeOverlay.getEntry());

What are you modified?

Thanks for help.
[LG Optimus 2x] bihariel:
He means this:

149 int volumeOverlay = Settings.System.getInt(getContentResolver(),
150 Settings.System.MODE_VOLUME_OVERLAY,[B][COLOR="Red"]1[/COLOR][/B]);
151
152 mVolumeOverlay.setValue(Integer.toString(volumeOverlay));
153 mVolumeOverlay.setSummary(mVolumeOverlay.getEntry());
[LG Optimus 2x] tonyp:
You just need to do exactly what he said ;)

It can't access/find the VolumePanel.VOLUME_OVERLAY_EXPANDABLE variable which results in the error you get.

You just overwrite it to "fake" it returns 1:

149	int volumeOverlay = Settings.System.getInt(getContentResolver(),
150	Settings.System.MODE_VOLUME_OVERLAY,
151	[B]1[/B]);
152	mVolumeOverlay.setValue(Integer.toString(volumeOverlay));
153	mVolumeOverlay.setSummary(mVolumeOverlay.getEntry());

Edit: bihariel beat me :D
[LG Optimus 2x] andycmc:
wow, beautiful, been looking for it for a long while, will keep waiting ^^
[LG Optimus 2x] bihariel:
In my last compilation, every thing i need for daily use is working, almost the same as CM9. You did a grat job guys.
[LG Optimus 2x] pastime1971:
if you are doing a differential build, it sounds like it didn't recompile the VolumePanel.java which had a new commit merged.

but then it is compiling Settings, then why wouldn't it compile framework ?

"make" process should re-compile whatever was updated. but i had some experiences where it is not entirely true for some files.

when encountering this issue, track down a "module" that needs rebuild and rebuild it. otherwise do a clobber build....
[LG Optimus 2x] lipisak:
Finally the build is complete and seems to be working in all aspects except of one. I have no signal at all. Any clues?

Baseband 420 - is it possible that it is the reason? I downloaded proper ril to this, but still nothing

Thx for answers.

L.
[LG Optimus 2x] tonyp:
Yes, the RIL is still pretty unstable (which is the reason benee doesn't want me to release an alpha build :D).

It might work after a couple reboots.

The only useful thing to do is learn how to properly logcat, follow this tutorial: http://xdaforums.com/showthread.php?t=1726238

logcats + radiologcats are needed (logcat -b radio), although it probably doesn't hold new insights.

If here is anyone else who has knowledge of RILs and is capable of reading radio logcats raise your hand.
[LG Optimus 2x] lipisak:
Ok it seems that it was jast due data connection, wifi and everything else is ok but 2G/3G data connection causes com.android.phone crash...
[LG Optimus 2x] bihariel:
So, we can use the moded boot.img to boot ics leak on p990? as it uses GB partition table, it might work?
[LG Optimus 2x] Raum1807:
Hi tonyp,

just out of curiosity:

Is there any kind documentation of the cyanogenmod build and structure? Or is it just "self-explanatory"?;) I haven't found anything useful yet....besides the wiki and a few forums where people abuse the dev threads to ask for ETAs.

I think a lot of users could contribute something if there was a document outlining the main modules and their connections of cyanogenmod. It is a waste of time if everybody new to the project has to start from scratch.

If you know anything, please share it.

Sent from my LG-P990
[LG Optimus 2x] owain94:
Most of it is self explanatory just read the files

Everything is nicely ordered so it is pretty easy
[LG Optimus 2x] tonyp:
How to build CM10 for the LG 2x

Actually, you just need to follow this guide by XXMrHyde: http://xdaforums.com/showthread.php?t=1737256

Follow Steps 1 - 5.

At step 5 replace the repo init command with this one:

repo init -u git://github.com/vork/android.git -b jellybean

And don't use the local_manifest.xml file there but the one I posted here: http://xdaforums.com/showpost.php?p=30866002&postcount=74

Now skip step 6 and go straight to step 7 (you don't need to do any fixes as everything is already included in the sources).

That should be it (no need for step 8).

Actually I encourage everyone to try it out. It's no black magic and pretty easy - and gives you the nice warm feeling of having created something great on your own (and hey, you're still one of the first to play with jellybean on a 2x!).

I'm sure all devs are happy to help when you run into problems - problems during building do fit way better into xda than 99% of the questions we do get here all day.

.
[LG Optimus 2x] lipisak:
Few points I noticed during using CM10:

* data connection causes FC to com.android.phone (BB + ril I guess)

* relatively huge battery drain (unfinnished ril could be cause)

* it's even faster then CM9 but it could be due nice animations.

* the other side of phone call tells me that the Sound is kind strange (BB + ril i guess)

On the other hand everything else is good and stable even browser rotation.

Seems that google maps grey issue is gone:) OMG this is great:)

THX for this guys ... as soon as I get sallary I will send some € as donation for your good work:)

Odesláno z mého LG-P990 pomocí Tapatalk 2
[LG Optimus 2x] Raum1807:
Thanks, but no thanks. That was not what I meant. My mistake, I didn't make myself perfectly clear: Compiling ROMs is not an issue. I am interested in the internal structure of the ROM. I thought you had some docs or links to in-depth information. But it appears that there is no such thing...

Never mind and thanks anyway!
[LG Optimus 2x] tonyp:
Why should I never mind, now that I get your question I can properly help you ;)

I do follow enough xda threads after all hehe.

The best thing I have for you is this post: http://xdaforums.com/showpost.php?p=30802167&postcount=73

And don't worry, I wanted to get more detailed build instructions out anyway, now they're here :)
[LG Optimus 2x] Raum1807:
Thanks owain94, I will follow the breadcrumbs. Just thought there was some overview or scheme for the CM-ROMs. Would make everything a lot easier...

May your O2X rest in peace!

---------- Post added at 12:22 AM ---------- Previous post was at 12:13 AM ----------

That's a nice overview. Good as a starting point. Will save me some time actually. I knew you had a guide you could lead me to. If you ever stumble across more in-depth information, please do not hesitate to post it. Thanks.
[LG Optimus 2x] huy_gm:
How about making a port for g2x. I never heard about ril or get ril on p999. it may not be a issue on that flatform:rolleyes:
[LG Optimus 2x] pastime1971:
battery state update is somehow flaky since two days ago or so... maybe longer...

it doesn't update as it should.

left it connected to a charger over night, and this morning it said 50% charged. rebooted and it said 97%. (probably it overchaged itself for hours, i guess.)

it is connected to usb right now, and battery jumps every time i reboot the phone.
[LG Optimus 2x] Wimz3n:
Im no developer (yet anyway). But i have had a problem similar to this with a few custom roms.

Sometimes when i have to reboot my phone it wont ask for pin and wont connect to mobilenetwork.

The thing is that battery state seems to go crazy at the same time. Sometimes it shows 50% and charging wont move it. Restarting may leave 100% and a few hours later it is still at a 100%.

In this case i reflash the rom and its ok for a few days.

Oh, and one more issue is that it says that baseband is unknown.

No idea if this helps at all. Just shared the thought.
[LG Optimus 2x] Ultramanoid:
I've noticed this in different builds of CM10 for other devices. Battery goes crazy sometimes for no apparent reason. From 40% up in a minute to 67% or stays fixed in 80% for hours and then goes down to 30% at once... Rebooting doesn't change a thing, it might show 47% after reboot and 78% a couple minutes later. Doesn't happen all the time though, just once in a while.

:confused:
[LG Optimus 2x] ethansp:
I've got a logcat radio, and some issues with data connection (seems the only issues in radio).

/RILJ ( 1532): [0191]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILC ( 1006): [0191]> GET_NEIGHBORING_CELL_IDS
D/RIL ( 1006): onRequest(lge-ril): request:75 (GET_NEIGHBORING_CELL_IDS), DLC:6, sState=[4]
D/RILC ( 1006): [0191]< GET_NEIGHBORING_CELL_IDS fails by E_REQUEST_NOT_SUPPORTED
D/RILJ ( 1532): [0191]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED

D/RILC ( 1006): [UNSL]< UNSOL_NETWORK_REGISTRATION_ERROR {30}
D/AT ( 1006): AT[6]> AT+XRAT=1,2
E/RILJ ( 9883): Exception processing unsol response: 1043Exception:java.lang.RuntimeException: Unrecognized unsol response: 1043

/RIL ( 1006): onRequest(lge-ril): request:22 (OPERATOR), DLC:6, sState=[4]
D/GSM (10095): [GsmDCT] onReceive: action=android.net.wifi.STATE_CHANGE
D/RILC ( 1006): [0008]> GPRS_REGISTRATION_STATE
D/RIL ( 1006): onRequest(lge-ril): request:21 (GPRS_REGISTRATION_STATE), DLC:6, sState=[4]
D/AT ( 1006): AT[5]< +CME ERROR: 100
D/AT ( 1006): dlc[5] atchannel: at_send_command_full() end; err:0
D/RILC ( 1006): [0004]< TONE_DIAL fails by E_GENERIC_FAILURE
D/AT ( 1006): AT[5]> AT+CLCC
D/RILC ( 1006): [0009]> REGISTRATION_STATE
D/RIL ( 1006): onRequest(lge-ril): request:149 (GET_REGISTRATION_STATE), DLC:6, sState=[4]
D/RILJ (10095): [0004]< RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE error: com.android.internal.telephony.CommandException: GENERIC_FAILURE