yashsingh1/xdaforums huggingface dataset:
[LG Optimus L9 P760, P765, P768, P769] leolawliet:
A dev that worked on my old device may be able to help you, he's managed to get Linaro fully working no issues whatsoever. It was also an LG device, not so different.

As for benchmark scores, it doesn't matter it may not look different in scores but you will feel the difference throughout everyday use. I didn't see much difference in score with my old device as well but the phone performed much better. The optimizations help, you got my support on getting Linaro on our device so I will try my best to help out, I just can't do anything from source myself.
[LG Optimus L9 P760, P765, P768, P769] AntonX:
Kernel versions may be different, one may work but not the other. Many drivers are most probably different too.

I have tried -O3 with every optimization switch that allegedly is turned with O3 switched off, but it still won't boot. So left -O2 and added few switches from -O3. It seems to work. I added few more and it booted but would randomly shutdown. So I removed some and am testing now. It seems very fast, but with 1350Mhz the phone is so freakishly fast anyway that it's hard to say is there benefit or not.

I probably will not use any extra switches for the Android itself, only leave them for kernel. The size may become prohibitive.

I'm also trying to fight the infamous wlan_rx_wake wakelock which is very bad on my phone, but I'm failing so far. The omap4 and LG wireless code is way different (LG probably being newer), I tried to port but there are just too many interrelated files. So probably will not be able to do anything about it.
[LG Optimus L9 P760, P765, P768, P769] Kid_Ding:
OK [MENTION=4206297]leolawliet[/MENTION] let's not impose too much onto [MENTION=360947]AntonX[/MENTION] we would still like to keep his dev knowledge around lol
[LG Optimus L9 P760, P765, P768, P769] keen_arene:
I flashed this x/u boot over v20d, should it be over v20b instead?

my screen is not flipped.

also I cannot install latest cyanogenmod in recovery, that error 7 thing

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

ok I flashed x/u boot via fastboot/omap4boot method, and got flipped screen. Still cannot put on cyanogenmod.

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

ok success!

here's what I did (for posterity) flashed (in fastboot/omap4boot method) "recovery-clockwork-touch-6.0.3.1-p760", after flashing p1 and p2 (april 19 2013 version) to their respective x and u boots. I did this within v20d, with the unlocked bootloader (though it had not shown the unlocked bootloader screen during software updates).

Thank you for your help. We really need to revise this guide, its not enough to get to the end.
[LG Optimus L9 P760, P765, P768, P769] leolawliet:
Thanks for looking into it AntonX really I'm glad to see it was attempted.

I'm not trying to come off that way my bad if it seems like that :(
[LG Optimus L9 P760, P765, P768, P769] Kid_Ding:
Only a joke bro, I think its safe to say that we all get excited about the possibilities that may come to the p769. My bad too
[LG Optimus L9 P760, P765, P768, P769] captaincrook:
Ditto. We have a billion guides for unlocking and fixing stuff but none of them seem thorough and simple enough (though that is a topic for another thread).

On topic, is there anything large blocking 1080p recording? It's just the last issue I have before I unlock and move on up from stock.
[LG Optimus L9 P760, P765, P768, P769] kuma82:
What's up people, I just stumbled upon an nice thread, dedicated to modifying internal & external storage http://xdaforums.com/showthread.php?t=1716124

This method involves formatting & partitioning the sd card.

I'm currently checking it out and I will report my findings later,

P.S.

Don't be afraid to beat me to the punch, if anyone has anything to share, please do ;)
[LG Optimus L9 P760, P765, P768, P769] kevev:
Is anyone else having terrible battery life?

I have switched the CPU governor from Interactive to Conservative since noticing that the CPU jumps from 200Mhz to 1Ghz without stepping anywhere in between.

With the Conservative governor the CPU will step up and down properly. I was hoping this would help but it has not.
[LG Optimus L9 P760, P765, P768, P769] AntonX:
Install BetterBatteryStats and see if some wakelock keeps the phone awake. Look for partial and kernel wakelocks.

I'm having trouble with wlan_rx_wake kernel wakelock on my network so I have to keep WiFi off during sleep. Otherwise battery life is pretty good.

Stepping up fast is normal even for interactive governor, otherwise you'd have intermittent hiccups in audio, video, etc.

New kernel picked lots of upstream commits and will have few patches for interactive. Maybe I'll post an update today.
[LG Optimus L9 P760, P765, P768, P769] Tablechair:
I had a pretty crazy bug today. I took a picture and went to attach it to an MMS. The messenger app told me "you cannot send this attachment" and forced closed. I then went to the gallery and the pic was gone. Then apps started crashing and both internal and external storage wouldn't show up in file manager. I'm at work and needed a functioning phone for the day so I restored a backup of my stock ROM. Seems to me something got screwed up with the storage swap script.
[LG Optimus L9 P760, P765, P768, P769] kevev:
Thanks. I will install that program. I keep wifi off so that should not be causing my battery drain.

With the Interactive governor the CPU never hits any of the clock speeds in between 200Mhz & 1Ghz. It goes from 200Mhz to 1Ghz. I don't think that is normal...

Also, another issue is that I can't install any APKs. "App not installed" is the error I get. I have to place the APK in /system/app/ and reboot then I am able to run the apps. Very weird...

Update: It was the damn SD swap init script. I removed it then rebooted and now I can install APKs. :D
[LG Optimus L9 P760, P765, P768, P769] AntonX:
Strange. How are you checking? If you install a program that show CPU statistics, such as SetCPU, you'll see how much time CPU spends at each frequency. Or you can check this file, it keeps statistics too (in x10ms):

/sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
[LG Optimus L9 P760, P765, P768, P769] kevev:
I was using Voltage Control. It looks like BatterBatteryStats can read the cpu usage state also. The device is scaling properly now. It must have been a fluke from when I was switching between all of the governors.
[LG Optimus L9 P760, P765, P768, P769] AntonX:
OP updated

Watch for bugs, there are quite a bit of changes in this release.

Device:

Picked few commits from p760, one is related to audio high frequency filtering and overall loudness.

Kernel:

Massive merge with common Android kernel. Many changes are unrelated to our device, but quite a few are. Kernel version is now 3.0.31.

Replaced audio codec with one from LG JB kernel. I think it's more stable, but needs some testing.

Few performance tweaks, entropy adjusted, noatime enforced on volume mounts.

Built with Linaro 4.7. Couldn't use full -O3, the kernel won't boot. So it's -O2 with some specific optimization switches turned on. The kernel size grew a bit. If you notice any sudden crashes or reboots let me know and I'll roll some things back.

Added smartassV2 governor and SIO scheduler. Can add more but not sure it's necessary.

Default governor is set to Interactive, default scheduler to Noop.

Repo synced today.

Note: I see that p760 device is gradually adding SELinux support. I'll wait a bit and see what's going to happen with it.
[LG Optimus L9 P760, P765, P768, P769] Kid_Ding:
Wow! This is amazing! Its very snappy. The volume is much louder. I actually have to turn down all switches one notch down as max will have some distortion. For those that want benchmarks here you go.

[MENTION=4206297]leolawliet[/MENTION] you have requested linaro and [MENTION=360947]AntonX[/MENTION] has granted it
[LG Optimus L9 P760, P765, P768, P769] halomademeapc:
Hi, I'm fairly new to this device (had it a smidge over two weeks) and have finally gotten the bootloader unlocked. I have a couple of questions about this ROM.

1) My first is on the SD card mounting. I see the external mounted as sdcard0, however when I go to storage in the settings app, it shows a total capacity of 2GB rather than my 16GB SD card. Is the settings app just reporting this incorrectly and app data (my main concern is google play music) is being stored on the external SD card, or do I need to make a switcheablepair in build.prop or something to enable that?

2) On my former device (galaxy player 5.0), to get 4.2.2 to fit into our /system partition, we had to mount Samsung's /app as /system/app so there would be room for everything. as a result, each time you re-flashed the rom or an update, you had to re-flash gapps and any mods you had. is this still the case on this device or is it different?

Edit:

3) On stock, I got full bars here at my desk, but after installing this I only get 1-3. Is there a radio driver or custom kernel I need to flash?
[LG Optimus L9 P760, P765, P768, P769] kevev:
Remove the sdcard script from /system/etc/init.d/ it does not work. Reboot and your mounts will be /storage/sdcard0 /storage/sdcard1

We only need to flash the gapps one time.

Did you come from the latest 20D or 20F ROM? They have newer radios that may help. I came from Wind MObile 21B and my radio is LGP769AT-00-V21b-302-490-APR-17-2013
[LG Optimus L9 P760, P765, P768, P769] halomademeapc:
1. I removed the script and it worked but external SD is still sdcard1. I tried some built.prop mods like

ro.vold.switchablepair=/storage/sdcard0,/storage/sdcard1 and persist.vold. switchexternal=1 just to see if they might happen to work and also took some shots at vold.fstab but that one looks different than on other devices I've used. Any who, all of my attempts ended with internal SD still as sdcard0 and the external not even mounting. Is there another option or should I just symlink data for large apps?

2. Sweet, thank you

3. I came from V20D and my baseband version is LGP769AT-00-V20d-TMO-US-MAR-16-2013. I searched the forum for "radio" and got a radio.zip that improved it, but its still a bit spotty and drops occasionally.

---------- Post added at 11:19 PM ---------- Previous post was at 10:39 PM ----------

Bluetooth dies not appear to be working properly. When I try to use my ireless headset, I'm greeted by deafening static.

Oh and one more thing (I feel like Colombo, sorry), is there any way go get the CRT light beam screen off animation instead of the fade?
[LG Optimus L9 P760, P765, P768, P769] kevev:
Too many questions!! :p

That is the best we have been able to do with external sd.

I wonder if your SIM got damaged during the flash. I have had this happen before on another device. It is rare. You could try flashing stock to see if the radio is OK.

I haven't tried bluetooth yet. Maybe someone else can help with that one.

The CRT animation may be in settings somewhere.
[LG Optimus L9 P760, P765, P768, P769] animusFL:
I tried Bluetooth with my lil speaker, worked fine. 7/12 build
[LG Optimus L9 P760, P765, P768, P769] leolawliet:
These scores are amazing :D
[LG Optimus L9 P760, P765, P768, P769] shockah486:
Is there any other way to remove the SD card script? Would love to try this out but had a lot of issues with the other cm10.1rom and the SD card swap script.
[LG Optimus L9 P760, P765, P768, P769] leolawliet:
Hey sup [MENTION=360947]AntonX[/MENTION] I got some build.prop tweaks I'd like to share, as for everyone else if you know how to apply these, please test them out and see how they effect your device and let everyone know if it helped in any way :)

## - Additional Tweaks - LeoLawliet ##

## Graphic & Performance tweaks ##

# GPU tweaks
debug.composition.type=gpu
debug.composition.type=cpu
debug.egl.hw=1
debug.sf.hw=1
ro.sf.compbypass.enable=0

# 3D performance
persist.android.strictmode=0
ro.min_pointer_dur=1
ro.secure=0

# Enable hardware 3D
hw3d.force=1

# 16BIT transparency , Smother Scrolling
persist.sys.use_16bpp_alpha=1

# Enable 16 BIT
debug.fb.rgb565=1

# Fluid UI
persist.service.lgospd.enable=0
persist.service.pcsync.enable=0

# Enable harware egl profile
debug.egl.profiler=1

# Enable tile rendering
debug.enabletr=true
persist.sys.composition.type=gpu

# Graphics Enhancement
#Raise photo and video recording quality
ro.media.enc.hprof.vid.bps=8000000
ro.media.enc.hprof.vid.fps=75

#Raise JPG quality to 100%
ro.media.enc.jpeg.quality=100
ro.media.dec.aud.wma.enabled=1
ro.media.dec.vid.wmv.enabled=1
ro.media.cam.preview.fps=75
ro.media.codec_priority_for_thumb=so

# Better Video/Audio Streaming
media.stagefright.enable-player=true
media.stagefright.enable-meta=true
media.stagefright.enable-scan=true
media.stagefright.enable-http=true
media.stagefright.enable-record=true

## Improvements ##

# Navbar control (0=on,1=off)
qemu.hw.mainkeys=0

# Better in call voice quality
ro.ril.enable.amr.wideband=1

# Disable Zygote loader
ro.wmt.blcr.enable=0

# Faster boot
persist.sys.shutdown.mode=hibernate
ro.config.hw_quickpoweron=true

# Better scrolling responsiveness
windowsmgr.max_events_per_sec=90
ro.max.fling_velocity=15000
ro.min.fling_velocity=10000

# Touchscreen responsiveness
touch.presure.scale=0.001

# No ringtone delay
ro.telephony.call_ring.delay=0

## Battery Tweaks ##

# Save power in sleep mode
ro.ril.disable.power.collapse=1

# WiFi scan interval
wifi.supplicant_scan_interval=180

# Better battery life
ro.config.hw_fast_dormancy=1
ro.config.hw_power_saving=true

# SuperCharger Installation Marker #
[LG Optimus L9 P760, P765, P768, P769] kevev:
Install a file explorer/manager app from the market that allows root access. You should be able to remove the script that way.
[LG Optimus L9 P760, P765, P768, P769] halomademeapc:
Flipping around on the home screen isn't quite as smooth as on my Galaxy Player (same sgx540 GPU, single core 1ghz processor) even though my galaxy player also has a live wallpaper going. Are there any kernels or something to improve ui performance?
[LG Optimus L9 P760, P765, P768, P769] kevev:
Awesome! Can you have the MD5 in the OP so that we can verify the download? Thank You. :D

Update: I found a bug I think. My proximity sensor is not working after updating. Anyone else?
[LG Optimus L9 P760, P765, P768, P769] shockah486:
for the SETCPU app, do you guys use the option 'set on boot' for main, voltages and governor?

Just wondering if there is any benefit or if its already implemented.

Without setting it at boot, got a 3420 benchmark.

Thanks again Antonx and everyone helping this progress!

---------- Post added at 02:12 PM ---------- Previous post was at 01:42 PM ----------

I also think I'm having issues which may be related. When I'm in call and the screen saver goes on, I can usually move to look at the phone and it will wake up automatically so I can see the length of the call or hang up. However, when I do this on this rom, I have to press power to wake it up.
[LG Optimus L9 P760, P765, P768, P769] AntonX:
Proximity sensor not working - confirmed. Must be one of the gcc optimization switches that killed it, I haven't touched its code. Will figure out which one and repost.

As for MD5, I compile the performance kernel separately and replace it in the final ZIP later, so MD5 will not match anymore. Maybe later if I switch to a different build routine when I can compile Android and kernel with the same compiler. Now I'm having issues compiling Android itself with 4.7, just too many things there are specifically preset for 4.6 toolchain.
[LG Optimus L9 P760, P765, P768, P769] kevev:
No problem. Thank You for your hard work. :)

To get the md5 easily use this command on the final zip: `md5sum romfile.zip`
[LG Optimus L9 P760, P765, P768, P769] AntonX:
Any command line tool that would do it on Windows? I just don't know, never needed it.
[LG Optimus L9 P760, P765, P768, P769] AntonX:
Fixed proximity sensor. It was not related to any optimizations, it was a real bug in LG sensor driver code. Strange that nobody else noticed it before, especially because it's been there forever and affected all p760 models. The bug was kind of random though, a function return was missing and later a check was made on this indeterminate return. So all of a sudden we got "lucky" and stumbled upon this bug.

Will post a fix tomorrow.
[LG Optimus L9 P760, P765, P768, P769] Kid_Ding:
I've been looking into this. Try hash droid off the market

https://play.google.com/store/apps/details?id=com.hobbyone.HashDroid
[LG Optimus L9 P760, P765, P768, P769] AntonX:
Need something faster, via command line but on Win. I do 95% of things (editing, file manipulations, etc.) from Windows with FAR Manager so it has to be a command line tool.
[LG Optimus L9 P760, P765, P768, P769] Kid_Ding:
I've never heard of far manager prior to this. Thanks for sharing.

http://plugring.farmanager.com/plugin.php?pid=759

"A tool for viewing, extracting, removing, adding (creating), testing and comparing files with MD5-sum. Written to be used in conjunction with FAR Manager."
[LG Optimus L9 P760, P765, P768, P769] AntonX:
Some old plugin, I'm on FAR 3.0, it may not work with it. I'll look later, maybe I'll find something newer.
[LG Optimus L9 P760, P765, P768, P769] kevev:
I have used this one for a long time:

http://www.etree.org/md5com.html

Put it in your $PATH and you can run it from anywhere.
[LG Optimus L9 P760, P765, P768, P769] kevev:
Another possible bug here. Calls go silent a lot on latest build. This was not happening on last build.
[LG Optimus L9 P760, P765, P768, P769] AntonX:
OP updated

Fixed a bug in LGE ADPS-9190 proximity sensor kernel driver.

I synced the repo and did full rebuild today, but there is not a lot of changes to CM code, so if you don't want to reinstall the whole ROM you can just flash the kernel to fix the proximity sensor:

kernel_p769_jb_ocuv_antsvx.zip
[LG Optimus L9 P760, P765, P768, P769] AntonX:
Anybody else confirming? I can revert to CM omap4 audio codec and see if it fixes it.
[LG Optimus L9 P760, P765, P768, P769] kuma82:
I have the same problem as well. It's more or less random though. lol, but then again, I don't receive a lot of calls ;)
[LG Optimus L9 P760, P765, P768, P769] AntonX:
OK, here is a test kernel built with regular omap4 audio codec. Run if for some time and see if it's better. If yes I'll revert the commit completely, if no then it must be some other issue.

kernel_p769_jb_ocuv_antsvx_TEST.zip
[LG Optimus L9 P760, P765, P768, P769] kuma82:
will do thanks.

question, do you think if I decompile the boot.img and edit the some of the ram-disk files, to remove/edit some of the symbolic links and ect.

# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root

export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated

# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy

mkdir /storage/sdcard1 0000 system system

I've been comparing the ram-disk files for stock and yours. So far all I get is a boot loop and I can't get a logcat from adb and inside /data is no tombstone dir.

I even added

persist.service.adb.enable=1 to the build.prop

I think the reason for not being able to get a logcat, is because I wiped my system and installed a fresh CM (with my modified boot.img)

So does it take more than just properly editing the ram-disk to make the changes, or does the kernel have more to do with it.

I know the legacy, 0 and emulated dirs started with android 4.2 (we really don't need this stuff on a phone)
[LG Optimus L9 P760, P765, P768, P769] AntonX:
Ha, you think I haven't tried changing these? :) Don't work very well. It seems to be a good idea to just change EXTERNAL_STORAGE to /storage/sdcard1 so all apps that request access to external storage with getExternalStorageDirectory (file: android\frameworks\base\core\java\android\os\Environment.java) would get the external SD instead. But unfortunately if I set it like this Zygote fails to mount it because it cannot chown /storage/sdcard1. I think in 4.2.2 Zygote expects internal SD card to be emulated, so it calls mountEmulatedStorage on sdcard1 and fails (file: dalvik\vm\native\dalvik_system_Zygote.cpp) I'm still looking at it but I doubt it's fixable, Google f-ed it up pretty good this time.

Btw there are more files involved, one is in our device tree (device\lge\p769\overlay\frameworks\base\core\res\res\xml\storage_list.xml) and of course I tried changing it too.

Here is Android tech info on storage:

http://source.android.com/devices/tech/storage/index.html

Comparing to stock may not work very well because the latest stock is still 4.1.2 and Google changed to the new storage scheme in 4.2.2. So all those neat tricks to swap cards that worked in 4.1.2 JB ROMs don't work on 4.2.2.

But - if anybody has any ideas, lets try them.
[LG Optimus L9 P760, P765, P768, P769] kuma82:
Thanks for the reply, Yeah i've edited the storage_list.xml as well, yeah sigh... Android F it Up for sure ):

---------- Post added at 01:56 PM ---------- Previous post was at 12:59 PM ----------

Here is something else i tried

I removed the /system/bin/sdcard and after a reboot all legacy was removed (of course), but as you know, I couldn't install any apps. I think I did to much, when I firsted edited the ram-disk, I'm check it out some more later (stubborn). The sad thing is (I think), even if we do get it working, it might be to unstable anyways, to many things to go back and tweak.
[LG Optimus L9 P760, P765, P768, P769] kevev:
Thanks Dude. Will test now.

Update: Stuck at LG logo after flash. Won't boot.
[LG Optimus L9 P760, P765, P768, P769] leolawliet:
Running awesomely here
[LG Optimus L9 P760, P765, P768, P769] kevev:
Did you flash it over the ROM he just released or the ROM from 2 days ago?
[LG Optimus L9 P760, P765, P768, P769] leolawliet:
Newest
[LG Optimus L9 P760, P765, P768, P769] kevev:
Finally! My phone was not downloading the complete file. Browser acting wack. Running new test kernel now. :)
[LG Optimus L9 P760, P765, P768, P769] kuma82:
Update:

Well the audio had stopped working with the new kernel. Actually I think it was mostly my doing, had to many tweaks and etc.

I'll try the test kernel again on a clean system. As of right now, I'm chill for a bit, lol. I spent the last hour thinking I bricked my device (wouldn't go pass the u-boot "LG"). I'm switching to TWRP. I couldn't format, unmount, or restore a backup by the default options (kept getting error on the data partiton). I even tried fastboot erase data (gave me an error partition doesn't exist). (WRONG) The only thing that worked for me was running a adb shell in recovery, typed umount /data, and installed a rom. I was so relieved to get it working again. I think the problem happened while sideloading the new rom to the phone, or I was in adb when I started flashing. I'll upload the recovery.log later.

Update: Update: Lol, fastboot didn't work because the command is, fastboot erase userdata,

Sorry [MENTION=360947]AntonX[/MENTION] for going off topic, just wanted to share what happened and for everyone to take care with CWM :eek:
[LG Optimus L9 P760, P765, P768, P769] kevev:
Scary stuff man. Sometimes it's better to just leave it alone and enjoy the stability. :D I lost count how many times I have bricked all the devices I have owned.
[LG Optimus L9 P760, P765, P768, P769] leolawliet:
Hey [MENTION=360947]AntonX[/MENTION] may I have permission to use your ROM as a base ROM? Of course I'll give proper credit :)
[LG Optimus L9 P760, P765, P768, P769] AntonX:
Sure.

I'd wait a day or two, a new update may be coming. I just had a brain fart and I think I know what to do with swapping external and internal SD the right way. It should be absolutely seamless, plus one of the benefits will be that App2SD will work. Will try later today.
[LG Optimus L9 P760, P765, P768, P769] kevev:
I placed 2 long calls and the audio did not drop. I believe you fixed the audio issue. Thank You! ;)