yashsingh1/xdaforums huggingface dataset:
[LG Optimus 4X HD] ze7zez:
That's right!

It's a paradox.

Fast system.

If you do not install gapps and do not connect your phone to the internet, the system will not complete its full configuration and many services will still try to do the job.

The battery is heavily consumed.

Slow system.

If you install gapps and connect your phone to the internet, the system will complete its full configuration and many services will finish the job for a while.

After this time, many services can be switched off or switched on only periodically.

The battery is consumed depending on the amount of work done by the running applications and system services that run in the background.
[LG Optimus 4X HD] asgz:
After read your advise, without comparing previous builds and doesn't thinking lag I directly installed gapps. And than lag is begun. Restarted phone but still laggy. Android system draining battery issue still continue. Installing gapps and waiting finishing 'full configuration' doesn't solve my problem. Can I live like that ? of course :) its not big issue but I prefer to give this information to our last lovely developer thats all..
[LG Optimus 4X HD] ze7zez:
This ROM is what it should be. :good:

Let's be happy that the OP carefully upgrades it from version to version.

If You get the knowledge, for example, from the great guide Most up to date guide on CPU governors, I/O schedulers and more!, then you will be able to configure the system yourself for your individual needs.
[LG Optimus 4X HD] asgz:
Deleted
[LG Optimus 4X HD] b886b:
Anyone else is experiencing lag during Spotify playback when the phone screen is off？ is there anything I can do to minimize that？？
[LG Optimus 4X HD] csk1jw:
New build 20170831

New build is up.

Night Light is now available from Settings->Display. It seems to work fine even though Google calls for HWC2.0 support, which our vendor blobs do not have. But thanks to grouper blobs, we still have the Google's standard compliant HWC1.1. I don't know about the side-effects of enabling Night Light without HWC2.0, but likely have some performance and power impact due to extra color transformation operation from CPU or GPU.

OpenGapps installation config template was updated to retain AOSP Launcher3 even though Pixel Launcher is installed. AOSP Launcher3 was updated to use similar 5x5 workspace as in Pixel Launcher.
[LG Optimus 4X HD] andy_96:
Big thanks for your great work on that old device :)
[LG Optimus 4X HD] ze7zez:
RAM is enlarged by 2MB

Good news that after upgrading from v0819 to v0831 RAM has grown by 2MB!

My configuration of v0819 and v0831 is identical.

Now the AOSP v0831 has 970 MB of RAM, it's almost as much as Stock ROM, which has 971 MB of RAM. :good:
[LG Optimus 4X HD] asgz:
[MENTION=5799877]csk1jw[/MENTION] sir its time to release Android O for LG P880 :)
[LG Optimus 4X HD] dilbertfunny:
poor performance after install nougat on p880

hello experts,

i"m a newbie here...

Followed the steps and installed the nougat ROM (p880-ota-eng.nzh54dz.zip) with 7.1 gapps (open_gapps-arm-7.1-stock-20170902.zip) using the TWRP. Everything went smooth, but the performance is really bad :(. for e.g. :

- if I have to bring up the keyboard, it takes 30/40secs. every key stroke is painfully slow, but seem to get better after i type a couple of chars :confused:

- launching chrome took forever... had to click on "wait" and finally it shows-up... this behavior goes on with every other app..

This for me is very a frustrating experience, especially when i plan to use my p880 as mainstream phone for some time (I lost my real phone in a Barcelona metro)

questions:

could this behavior be as I installed the full version of gapps 7.1 (490mb) stock?

am i missing any special tweak or optimization?

any pointers appreciated..

many thanks in advance...

cheers...
[LG Optimus 4X HD] raodone:
That such a friend, well I am not an expert in the matter but I still have time with this device and I don't go as bad as you describe, if it serves you I comment what I did so that the device doesn't work so slow, uninstall Google app, browser chorme, (I use one called VIA I recommend), also remove other tools that I do not really use as Google apps for music, books, Maps, calendar and others, I just kept the most vital, and I never forget to clear cache and force stopping apps that run in the background and do not use frequently, also remember that when synchronizing with your Google account the device is quite slow or when updates are updated apps.

Remember also to have the latest version of the Open Gapps and the ROM, I use the previous to the latter that came out and works well, I will soon update to the last one that releases 2mb of RAM more :D

I hope I have helped you, sorry for my bad English :)

PD: Waiting Android O desperately for our device :D
[LG Optimus 4X HD] b886b:
If you use a lot of gapps then you can try using the config file provided by the op. On the other hand if you just use the play store and the other Google services are not vital to you then you can install Pico gapps, that is more lightweight.
[LG Optimus 4X HD] sourly64:
Thats right :good: Iam using opengapps pico http://opengapps.org/ with webview zip.Recovery is TWRP 3.1.1.0 https://www.androidfilehost.com/?fid=817550096634795352 (Use Flashify)
[MENTION=5799877]csk1jw[/MENTION] Thanks for your developing in this device :good:

Rom works really good fast and smooth,but two things in mentioned many times before. Sound and performance lags

Example, i test the performance with a game like RealRacing3,sometimes by first start the sound is working normal,

but after a few minutes the sound is broken and the phone lags a bit.Sometimes the performance is normal with no sound

no lags.After new start maybe it works normal with sound and good performance and loses sound after some minutes.:confused:

But anyway thanks again for developing :good:
[LG Optimus 4X HD] b886b:
the latest ROM solved the screen off Spotify playback lag. Great work. And I tested out the night light function, though it has performance impact it is not as Hugh as what I first imagined. Overall it is a great addition to this awesome ROM. However, after turning on schedule function of night light to turn on automatically on sunset of my phone didn't enter deep sleep and drains 30 percent of my battery overnight.

For gaming performance, I think it's more of a limiting of the hardware... With three hardware this old, running 3d game is kinda painful...
[LG Optimus 4X HD] sourly64:
For gaming performance, I think it's more of a limiting of the hardware... With three hardware this old, running 3d game is kinda painful...

Thats not really true about hardware.I played this game on old S2 and it works :cool:
[LG Optimus 4X HD] oF2pks:
https://xdaforums.com/android/apps-games/app-runinbackgroundsetter-v1-0-t3637705
[LG Optimus 4X HD] ze7zez:
1. I installed Real Racing 3 on stock ROM 4.1.2.

2. I started the game, which downloaded 400 MB.

3. I rode on the race track and closed the application and shut down the internet.

4. I copied Real Racing 3_5.4.0.apk and /Android/data/com.ea.games.r3_row on PC.

5. I started the AOSP (clean installation without gapps)

6. I copied data from PC to /Android/data/com.ea.games.r3_row

7. I installed Real Racing 3_5.4.0.apk on AOSP

8. I have already started the game many times and have not noticed any problems.
[LG Optimus 4X HD] ze7zez:
Night Light

Unfortunately, after switching off it is even worse:

24% drain per 1h

It is better not to touch this switch until it is repaired by the OP.
[LG Optimus 4X HD] ze7zez:
Run_in_background

ROOT

Releases RunInBackgroundPermissionSetter

Download app-release-v1.4.apk

RunInBackgroundPermissionSetter only works with root privileges.

NO ROOT

If you want to enable/disable processes running in the background without root, please read the tutorial Freeze app background processes without root android nougat.

In brief.

1. Get information about <package_name> using, for example

Application Inspector 2.9 MB

or App Inspector 520 KB

or by using the command line:

adb shell pm list packages -f > package_name.txt

2. Enable USB Debugging Mode [ + Use USB to Transfer files - only for AOSP in LG P880 ] and execute commands:

adb shell
cmd appops set <package_name> RUN_IN_BACKGROUND ignore
[LG Optimus 4X HD] csk1jw:
It is unlikely that I can do anything to the Night Light, I simply enabled this feature from the Android framework. It is what it is.
[LG Optimus 4X HD] b886b:
There is workaround. I set turn on automatically to off and status of night light is set to off too. Then I set the night light in the pull down menu then whenever I need night light I will use that toggle. The battery drain is gone and I can still use night light.
[LG Optimus 4X HD] EPa:
I also tried with default gapps and had huge lags to the point I reverted back to stock jellybean.

Now I am willing to try again with pico gapps.

So, if I get pico gapps, do I need to do something to include webview (OP days make sure webview is included) or is it already included in pico version of the open gapps?
[LG Optimus 4X HD] b886b:
No, it's not included, u need to download that separately from here.

https://xdaforums.com/android/software/app-minimal-gapps-gapps-lp-20150107-1-t2997368
[LG Optimus 4X HD] Salman Al-Badgail:
Thanks MAN !!!!! ;)

Really appreciate your hard work :good:

Anyone up with the latest build comment, I want to know about battery drain and performance on this latest build.?? :laugh:

GOOD DAY
[LG Optimus 4X HD] b886b:
The performance is great and battery life is decent.:good:
[LG Optimus 4X HD] EPa:
CPU-Z reports clock speed 51 MHz - 1.50 GHz but real time max for any CPU core only goes up to 1000 MHz ???

---------- Post added at 11:02 PM ---------- Previous post was at 10:50 PM ----------

Rebooted. Now it goes up to 1300MHz. Who knows, maybe after 10 reboots it goes more than 2 GHz [emoji1] [emoji1] [emoji1]
[LG Optimus 4X HD] EPa:
1400 MHz last offer [emoji2]
[LG Optimus 4X HD] EPa:
So this rom is probably the best ever for P880. OP you are amazing, thank you.

For now I have only one problem, which made me read the whole thread: video recording.

At some point one mentions that 1080p is lagging and gets the answer about reading the post concerning slow I/O on this device etc.

But I don't think this is the case here, because I am talking (apart from real time screen updating during recording of about 2 fps) about a resulting 1080p video of bitrate 3 Mbps max, 22 FPS (during daylight).

I know performance would be worse than stock because of not available closed source LG camera drivers, but I think this is too much of a drop.

3 Mbps bitrate on 1080p is unwatchable.

Is this the performance you guys are getting also?

If not, any pointers on what could be wrong?

My setup:

- official CWM recovery 6.0.4.5

- open gapps arm 7.1 pico

- webview from delta gapps

- Magisk v14.0

So far (~24 hours) phone runs great otherwise.
[LG Optimus 4X HD] InterrtuptoR:
Dude you can't always have 1.5 GHz, there is temp throttling which reduces the clock, and on some kernels (such as stock) all cores cant be on 1.5 at the same time (prob bcs of overheating)...
[LG Optimus 4X HD] farzamshch:
Hello . I installed this custom ROM.

But when I open apps like google, music, messaging and so on, these apps will be closed with error.

Also, WebView does not work.

I installed rom and gapps with cwm 6.0.4.5.

First I installed ROM with twrp, but the gapps were not installed with twrp. Then I installed both with cwm.

How can this problem be solved?

I had another question. When I flashed the official v20c rom with lg flashtool 2014, the phone did not go up in the first turn and stayed on the lg logo. But if I go to original recovery in the same situation and wipe & reset the phone , then the phone will go up easily.

Why this problem occurs?

Sorry My english is not good
[LG Optimus 4X HD] ze7zez:
Installation

You need to have custom recovery that can flash multiple zip files without having the reboot. I personally use the official CWM 6.0.4.5 so the instructions will be based on that with no external SD.

>Coming from other ROMs

- wipe userdata/cache

- format /system

- apply ROM zip

- apply Webview zip (deltadroid)

- apply Gapps zip ...or more Gapps if using modular Gapps

- format /data and /data/media

- reboot
[LG Optimus 4X HD] raodone:
I'm experiencing problems with the mobile network, when trying to make a call I appear invalid number a couple of times and sometimes appears mobile network unavailable, on the other hand sometimes I can not unlock the device, the screen remains off and I have to restart the device, someone else happens to this?
[LG Optimus 4X HD] csk1jw:
New build 20170919

New build is up.

Google had only pushed September 2017 security patch for AOSP 8.0.0 and 7.1.1. I am not sure if 7.1.2 will ever get it as all Google devices on 7.1.2 have been updated to 8.0.0. Only Nexus 6 and 9 are left at 7.1.1, and that's probably the reason the patch is available there. However, according to the timeline, their last security patch is October 2017. So let's hope Google will continue to refresh 7.1.2 branch for many, many "XDA-supported" devices fed on AOSP sources. :) I cherry-picked the high profile BlueBorne CVEs, but the vulnerability scanner from Play Store still report the device as Vulnerable. So don't ask me why.

I also reverted PackageManagerService behavior to that of Kitkat, so that periodically refreshing OpenGapps in /system will clean up the same copies installed from Play Store in /data to free up the space. I strongly believe this should be the case, and I hope other devs will follow suit, so I am posting the change here to make it easier for others to track it down

diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
index b6a9940..c9d2be2 100644
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
@@ -6944,7 +6944,7 @@ public class PackageManagerService extends IPackageManager.Stub {
// version of the new path against what we have stored to determine
// what to do.
if (DEBUG_INSTALL) Slog.d(TAG, "Path changing from " + ps.codePath);
- if (pkg.mVersionCode <= ps.versionCode) {
+ if (pkg.mVersionCode < ps.versionCode) {
// The system package has been updated and the code path does not match
// Ignore entry. Skip it.
if (DEBUG_INSTALL) Slog.i(TAG, "Package " + ps.name + " at " + scanFile

Finally, the continued kernel modernization has greatly improved the snappiness feel of the device with respect to touch and scrolling responsiveness. This is an area that no benchmark can measure. My personal experience with the new kernel on LG-P880 Nougat ROM has been very positive.
[LG Optimus 4X HD] raodone:
Great work my friend [MENTION=5799877]csk1jw[/MENTION], Thanks for what you do for our device, I would like to know what possibilities exist that we can enjoy the new Android 8.0.0?

Sorry my bad english :(
[LG Optimus 4X HD] Baile:
Can anyone confirm that Firefox is now running with the latest build?
[LG Optimus 4X HD] ze7zez:
If you are so inquisitive, then me too.

Which of these versions of Firefox do you ask?
[LG Optimus 4X HD] Baile:
the latest playstore firefox and firefox beta

firefox focus was running with the previous build
[LG Optimus 4X HD] Baile:
Finally I've tried the new one, firefox does not work. All other apps work fine and behaviour of OS is very smooth.

So I can recommend it except you want to install gaming apps.

Big thanks to dev!
[LG Optimus 4X HD] EPa:
Can you please comment on video recording so that I know whether there's something wrong with my setup?
[LG Optimus 4X HD] Baile:
That's not what I'll do. Maybe someone else here can do that, but I guess this is not the right place here.
[LG Optimus 4X HD] EPa:
So this is the right place to report that Firefox doesn't work, but not video recording on this ROM?

A "yes video is working fine" or "no" would suffice, but I guess it's too much work. Thanks.
[LG Optimus 4X HD] Baile:
Sorry, i misunderstood your question.

I thought, i should provide you a video from my setup with comments. :confused::confused:

Please, excuse me!
[LG Optimus 4X HD] EPa:
Ok, obviously a misunderstanding.

So, is 1080p video recording usable for you with this rom?
[LG Optimus 4X HD] andy_96:
No, it lags very hard. 720 is ok
[LG Optimus 4X HD] ze7zez:
I checked that Firefox does not work.

There are problems visible in logcat.

You attach to the post compressed logcat file and wait patiently until OP will find time and will be interested in solving the problem.
[LG Optimus 4X HD] Baile:
For me with OpenCamera FullHD works.
[LG Optimus 4X HD] Baile:
"Cameras in Custom ROMs: How Developers Make Hardware Work without Source Code"

https://www.xda-developers.com/came...opers-make-hardware-work-without-source-code/

This article is very helpful explaining why devs come to a limit due to old BLOB/hardware driver.

So we should not expect, all things go perfectly.
[LG Optimus 4X HD] andy_96:
few seconds and openCamera crashed
[LG Optimus 4X HD] ze7zez:
Obviously, the latest version of Open Camera 1.4 is not working.

Maybe some older version works fine.

It does not matter.

Not about the "Open Camera" discussion began, but about the lag when recording video at 1080p resolution.

To find out about the problem, everyone can do the experiment themselves.

Just point your camera at your own mouth, talk continuously and record 30 seconds.

It is certain that there will be no synchronization between audio and video.

Images with recording parameters are not worth anything. You can put in the trash.
[LG Optimus 4X HD] Baile:
On my setup Open Camera 1.40 is working fine.

mp4 flie is correctly created with syncronous av.

But display is extremly laggy during recording,

Remember my setup is very special (no gapps, no webview at the start etc.), therefor i can't comprehend your issues.
[LG Optimus 4X HD] Baile:
After analyzing video file with mediainfo i can confirm camera function is not working correct.

Posted screenshots show false data (bug in mx player).

Complete name : ...VID_20170926_073812.mp4

Format : MPEG-4

Format profile : Base Media / Version 2

Codec ID : mp42 (isom/mp42)

File size : 3,88 MiB

Duration : 10s 240 ms

Overall bit rate : 3 175 kb/s

Encoded date : UTC 2017-09-26 05:38:23

Tagged date : UTC 2017-09-26 05:38:23

com.android.version : 7.1.2

Video

ID : 1

Format : AVC

Format/Info : Advanced Video Codec

Format profile : Baseline@L4.1

Format settings : 1 Ref Frames

Format settings, CABAC : Nein

Format settings, RefFrames : 1 frame

Format settings, GOP : M=1, N=30

Codec ID : avc1

Codec ID/Info : Advanced Video Coding

Duration : 9s 685 ms

Bit rate : 2 921 kb/s

Width : 1 920 Pixel

______________________________________________________

Height : 1 088 Pixel

______________________________________________________ ???

Original height : 1 080 Pixel

Display aspect ratio : 16:9

Original display aspect ratio : 16:9

Frame rate mode : variabel

______________________________________________________

Frame rate : 16,933 FPS

______________________________________________________ ???

Minimum frame rate : 7,606 FPS

Maximum frame rate : 23,006 FPS

Color space : YUV

Chroma subsampling : 4:2:0

Bit depth : 8 bits

Scan type : progressiv

Bits/(Pixel*Frame) : 0.083

Stream size : 3,37 MiB (87%)

Title : VideoHandle

Language : Englisch

Encoded date : UTC 2017-09-26 05:38:23

Tagged date : UTC 2017-09-26 05:38:23

mdhd_Duration : 9685

Audio

ID : 2

Format : AAC

Format/Info : Advanced Audio Codec

Format profile : LC

Codec ID : mp4a-40-2

Duration : 10s 240 ms

Source duration : 10s 251 ms

Source_Duration_FirstFrame : 11 ms

Bit rate mode : konstant

Bit rate : 96,0 kb/s

Channel(s) : 1 Kanal

Channel positions : Front: C

Sampling rate : 44,1 kHz

Frame rate : 43,066 FPS (1024 SPF)

Stream size : 120 KiB (3%)

Source stream size : 120 KiB (3%)

Title : SoundHandle

Language : Englisch

Encoded date : UTC 2017-09-26 05:38:23

Tagged date : UTC 2017-09-26 05:38:23

mdhd_Duration : 10240
[LG Optimus 4X HD] pesartom:
since this is the most active thread im asking here

what is the best rom+kernel for this device in terms of gaming performance?

battery consumption is not important for me.

has anyone tested that and had a good result?

right now im using omni 4.4 + iodak cm kernel
[LG Optimus 4X HD] sourly64:
Hello everyone, especially csk1jw for his work:good::good:

I would like my experiences with the new build from 19.9.

For me, the new is not as stable as previous, so I changed back to the build from 30.8.

I had battery drain and the performance is significantly worse. Also I had different mobile connections. All in all for me not good for daily use:(

I'm on the CWM Touch Recovery 6.0.4.5 from OP

Always use the latest opengapps pico

Webview is the latest I could find as zip from 3.7.2017

SuperSU is the 2.82

Thanks for the development and hope that many will follow :good:

Regards
[LG Optimus 4X HD] MoonWalker92:
what is the best build of this ROM ?

can you give me link ?
[LG Optimus 4X HD] sourly64:
For me build from 20.8. The link is in OP ;) ,but i know there is only the newest one.Maybe you have to ask dev csk1jw for help :cool:
[LG Optimus 4X HD] ze7zez:
:good:

The OP decided we were just going forward and not looking back.

If the next ROM is going to work better in the future, please send logcat and your own suggestions and observations that can be used by the ROM author.
[LG Optimus 4X HD] csk1jw:
That's probably due to fsync_enabled being reverted to "Y" for a more stock ROM data safety characteristic. Anyway, the sysfs interface is still available. Please check if you can get back the perf after setting fsync_enabled to "N".

$ echo "N" > /sys/module/sync/parameters/fsync_enabled

Here's my hypothesis about fsync_enabled:

- If your datasets is small, then fsync_enabled = "N" can potentially cache them in RAM and provide instant response for outstanding IOs. Since datasets is small, in case of write-back it can hardly lag the system.

- If your datasets is large, then fsync_enabled = "N" can lag the system because the write-back of large amount of data will stall the system.

- For EXT4, fsync_enabled = "N" gives a substantial boost to the snappiness of the system, but file system is prone to corruption on "adb reboot". For my case, which I used a write-reducing tweaked EXT4 by disabling journal, I had observed 2 corruptions, and one of which I had to factory reset. The 2nd one had some settings reverted to factory defaults, likely SQL database corruption.

- For F2FS, fsync_enabled = "N" only gives marginal improvement, but file system is more robust even with fsync_enabled = "N". I had never experienced any corruption out of "adb reboot". SQL db heavy apps tend to benefit substantially from F2FS.

I had gone back to EXT4 for the meantime due to kernel modernization efforts and testing, so that I can still recover from bad boot.img by going into recovery with the buttons combo. But I also do frequent "adb reboot oem-unlock" to flash new boot.img, and that's when I observed the corruptions.

I currently do not have data if the normal typical EXT4 with journal would make the situation any better, but having journal on EXT4 would reduce the file system performance due to excessive writes, which is really bad for the old device like LG-P880.
[LG Optimus 4X HD] Baile:
[MENTION=5799877]csk1jw[/MENTION]

I noticed that there are no writes in Lost.dir folder on the external SDcard now.

I guess that is related to "fsync_enabled = Y".

Am I right?

This goes probably deeper into the ext4 stuff.
[LG Optimus 4X HD] ze7zez:
[HD 1080] audio-video synchronization

Thank you! A little more I understand.

Your proposal to replace Y by N is effective. :good:

Now audio-video synchronization is acceptable.

Little attention to everyone:

Do not worry that the display image jumps during recording.

The file is saved correctly.
[LG Optimus 4X HD] Baile:
I noticed after reboot fsync_enabled = "Y" is set again.

And with "N" camera behaves exactly as with "Y"