yashsingh1/xdaforums huggingface dataset:
[LG Optimus 4X HD] ze7zez:
Please write accurately, whether you bought exactly the battery which is recommended by LG?

Only the original model ensures the best fit between charger, P880 and the battery.

Find out more on pages Battery University.

It would be ideal if you measured the battery capacity before and after the boot, measuring directly the internal resistance.

---------- Post added at 16:54 ---------- Previous post was at 16:28 ----------

Do not you lack a sense of humor! :laugh:
[LG Optimus 4X HD] enetec:
We are going OT and losing the center of problem... :rolleyes:

This isn't a problem of different cables or batteries (all of quality and/or stock original one...).

The problem *is* that we have quite 1%/h of battery drains with (what that should be...) a power off phone.

This shouldn't happens and it has never happened with ICS/JB/KK/LP/MM ROMs I've tested on p880. Only with this and I don't know how or why.

My test don't want to be the best or perfect, *but* they have been done in exact the *same* conditions and should have reported (about) the same results. And this doesn't happen because of the issue presence.

I could do more, but results are clear: after 5 days powered off the phone is unable to turn on or boot even if previously fully charged and is unable to boot (bootloops) with plugged charger. Only by TWRP trick I can recharge enough the battery to make it boot fine after.

Again: I'm only reporting... this isn't at all a problem for me, I've a Moto Z and a d802... My p880 nowdays is only a test device to discover Nougat and make some tests for me...;)
[LG Optimus 4X HD] ze7zez:
No one you do not want to offend.

This is a discussion.

Together we are trying to bring out all the facts possible, to facilitate drawing conclusions.
[LG Optimus 4X HD] Phil_Smith:
[MENTION=5461026]kessaras[/MENTION] is absolutely right here!
[LG Optimus 4X HD] kessaras:
There isn't an electric device in the world that don't lose battery even when it's off.

For example I got an electric cigar , I fully charge it and if I let it a week switched off I find it with empty battery.

And I say again , this is not a problem. You like it or not that's how things work.
[LG Optimus 4X HD] enetec:
Well, to be honest, this can happens with a not so well calibrated battery... :rolleyes:

---------- Post added at 07:20 PM ---------- Previous post was at 07:18 PM ----------

Please, simply reread my tests full post with attention... ;)

---------- Post added at 07:25 PM ---------- Previous post was at 07:20 PM ----------

This is clear. Simply I was trying to avoid a not-so-useful subthread when, if you (intended as "you all"...) reread the full post, fact are already clear and anyone can repeat himself tests and see...

Please note that English is not my first language and sometimes I could be "rude" in unwanted way... :rolleyes:

Sorry for this and... I wish you all an Happy Christmas! :highfive:
[LG Optimus 4X HD] Phil_Smith:
Which would mean, that the battery doesn't show what is actually happening, right?
[LG Optimus 4X HD] Phil_Smith:
Strange... as in twrp 2.8.6 I'm unable to format /data using f2fs after changing /cache and /data to it. It'll always use ext4fs. Is this happening to anyone else?

Also reboot to recovery from within recovery doesn't work for me. The device would freeze at the LG logo.
[LG Optimus 4X HD] oF2pks:
Which rom did you try ?

Normally (on tf700 and others), the rom's fstab is hybrid and twrp'fstab has only ext4 & emmc; AND you can choose between ext4 or f2fs.

In the wolf 2.7.1, rom'fstab is ext4 & emmc, and twrp'fstab has only f2fs & emmc.

So I can make a 3.0.3 with dedicated twrp'fstab on f2fs for data+cache(+system?), which won't be hybrid: only f2fs. Can you tell if wolf'2.7.1 works with ext4 for system+cache+data?

Remember that recovery.img and boot.img can be unpack/repack with same tools http://xdaforums.com/showthread.php?t=2319018 (like anykernel)

When testing, people use to reboot_to_recovery after every change to fs via recovery, to check the move.
[LG Optimus 4X HD] Phil_Smith:
The problem isn't ROM-related. I'm trying to:

wipe -> advanced wipe -> select cache -> repair/change file system -> change file system -> f2fs

wipe -> advanced wipe -> select data -> repair/change file system -> change file system -> f2fs
​

which works. But then when I want to...

wipe -> format data -> "yes"
​

... it always does the format to ext4.

(So this always happens before I install any ROM)

I don't know too much about the compiling part (sounds like a solution (?)).

As to whether the option to format /system to f2fs should be implemented - I don't think this is necessary, as the benefits from f2fs are only in write speed. I think the read speed is even a little worse under f2fs. As /system most often is mounted read-only during runtime, this option better shouldn't be used, I think.

Yes, I often had to find that out, when everything was reverted back to ext4, before I figured out the right procedure.

Thanks for the tool link!

But does the latter part mean, that reboot to recovery obviously works for you, as you are the 'tester'? (Think this might be a stupid language-related question, but who knows)
[LG Optimus 4X HD] oF2pks:
Okay, I tested everything on /cache only, and it works fine except cold_boot_twrp; I will explain more in Wolf's f2fs dedicated thread soon.

I checked O3T and mate9 : only /data is used with f2fs fstab
[LG Optimus 4X HD] rafradek:
For some reason my phone cant boot to charge mode after powering off while plugged in. It loads the system instead.
[LG Optimus 4X HD] Phil_Smith:
Check:
[LG Optimus 4X HD] eekthecat:
Amazing! You bring my phone back to live! Thanks you alot
[LG Optimus 4X HD] b886b:
Didn't know if this is gonna help with the slow IO on our device as our device differs quite a lot from the S2, but to me it seems that they are able to somehow improve their performance using this. Maybe some of our entrepreneurs can shed some light on this.

https://xdaforums.com/galaxy-s2/development-derivatives/rom-brickbug-aftermath-speeding-t2843238
[LG Optimus 4X HD] Salman Al-Badgail:
Random FC's are low for now, FC's were happening due to heavy multi-tasking.
[LG Optimus 4X HD] kessaras:
Don't be in a hurry to suggest a solution before you actually test it :D

io , why io is slow ? io is input/output not the interface. what this rom suffers from is something like a lag after a few days of use.

And what heavy multitasking ? Here i had fc's with only launcher running lol

~EDIT: Sal, you are on this rom now ? Maybe you could test my script and see if going with 3 or 4gb of ram for a few days here on nougat will stabilize it ? Low ram could be a problem, we don't know until we test it. Linux tend to cache to disk when there is not enough ram and try keep running the foreground procedures with active ram. Maybe 1gb is not enough
[LG Optimus 4X HD] Salman Al-Badgail:
No FC's for launcher for me.

FC's are with (NFS & Football games) WhatsApp, Youtube, Snapchat & Insta. using it side by side makes phone hot.

Everything works perfect for now.
[LG Optimus 4X HD] kessaras:
buh , here i had FCs with only launcher, nothing else. When opening adiutor , crash. Opening google photo, crash. Too many crash. Maybe i should lend it to obama to throw it with a rocket on some building haha.

Read above. Maybe ram solve the lag
[LG Optimus 4X HD] Salman Al-Badgail:
hhaahahah, he will throw on me hehheheheh. Yeah might be ram solved it. ;)
[LG Optimus 4X HD] b886b:
Yes, I total understand the lagging after continuous usage, what I have read from S2 forum is that they suffer pretty much the same kind of lag after prolong usage and this seems to be solved by the trimming method. I am not in anyway professional and just trying to see if that can be implemented to our device.:)

How is the testing of f2fs goes??? Did it solve the lagging problem??? For now, I just restart my device every 2-3 days that kind of alleviate the problem.
[LG Optimus 4X HD] kessaras:
f2fs works great and the phone is very fast. the thing is that cm12 and cm11 are anyway fast and stable. to trim is easy it only needs a script to run ~once a day for example. But i test it i remember two months ago and it worked but only for a couple of days, then it lagged again. we will see.

ill flash nougat again and perform a couple of test for a few days. if i have any news , i'lll announce them.
[LG Optimus 4X HD] b886b:
Looking forward to that, good to hear that f2fs works great. If I remember correctly, u are on oF2pks's build?? Which build are u using???
[LG Optimus 4X HD] Salman Al-Badgail:
ROM is stable, speed is good. multi-tasking is allowed upto a certain extent only, after exceeding a limit leads to FC's
[LG Optimus 4X HD] oF2pks:
The S2 thread is related to infamous brickbug on old Samsung eMMC only, and is not relevant on recent phones anymore.

Instead of rebooting, you can try Chainfire' app : recently and track "heavyweight" active app (in recent minimal list) that can cause lags; also you should use latest 2.79 SuperSu.

Of course, using minimal Deltadroid gapps can reduce "heavyweight" apps (microG/dynamicPermission would be even better...). Soon or later Xposed will come to aosp7 and will help you to care on lags.

Concerning f2fs , I made a dedicated twrp3.0.3 for /data_f2fs_only:

if p880 is not your only device,

you can give a try (but leave /system and /cache to ext4); there is no risk of brick but you need to know bootloader/fastboot recovery/format and re-flash rom, to bring back a normal ext4_rom.

Formatting whole /data to f2fs takes time and will erase all your personal files. Also nandroid/data are not cross-compatible between ext4 & f2fs.

Latest [MENTION=5799877]csk1jw[/MENTION] aosp7 uses hybrid fstab2, but cold boot to twrp_fstab can lead to mismatch on partitions mounts interpretation:

/dev/block/platform/sdhci-tegra.3/by-name/LNX /boot emmc defaults defaults
/dev/block/platform/sdhci-tegra.3/by-name/SOS /recovery emmc defaults defaults
/dev/block/platform/sdhci-tegra.3/by-name/APP /system ext4 noatime,noauto_da_alloc,barrier=0,ro wait
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data f2fs noatime,nosuid,nodev,nobarrier,flush_merge,inline_xattr,inline_data,inline_dentry wait,check,encryptable=/dev/block/platform/sdhci-tegra.3/by-name/FOT
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 noatime,nosuid,nodev,barrier=0,data=ordered,noauto_da_alloc,journal_async_commit,errors=panic wait,check,encryptable=/dev/block/platform/sdhci-tegra.3/by-name/FOT
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache f2fs noatime,nosuid,nodev,nobarrier,flush_merge,inline_xattr,inline_data,inline_dentry wait,check
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 noatime,nosuid,nodev,barrier=0,data=writeback,noauto_da_alloc,errors=panic wait,check
/dev/block/platform/sdhci-tegra.3/by-name/CAL /cal ext4 nosuid,nodev,barrier=1 wait
/dev/block/platform/sdhci-tegra.3/by-name/DRM /persist-lg ext4 nosuid,nodev,barrier=1 wait
/dev/block/platform/sdhci-tegra.3/by-name/MLT /mpt ext4 nosuid,nodev,barrier=1,data=ordered wait
/devices/platform/sdhci-tegra.2/mmc_host/mmc2* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
/dev/block/platform/sdhci-tegra.2/by-num/p1 auto auto defaults recoveryonly
/dev/block/zram0 none swap defaults zramsize=268435456

If you encounter troubles, please report in f2fs thread : https://xdaforums.com/showthread.php?t=2799610&page=9

I will make an unmodified latest aosp7 csk1jw iodak/anykernel, with included iodak/fstab2_swap to csk1jw/data_f2fs_only_"hybridless" (or ext4_all back), for more compatibility, soon.
[LG Optimus 4X HD] b886b:
Unfortunately, my P880 is my only phone so I am kinda reluctant to try f2fs, even I am so tempted to do so:). I think I will wait a bit longer to see if our developers can solve the sluggish problem before rushing into anything as I rely heavily on this phone and don't have any money to replace this.

I am already using pico open gapps and light apps and the lag just come after a few days without restarting and I swipe away any apps once I exit them.
[LG Optimus 4X HD] kessaras:
latest. watch date on his file hosting.

me , i'm going to flash again nougat and this time do some digging if i find the reason behind the lag
[LG Optimus 4X HD] oF2pks:
Maybe I'm wrong, but I just checked KAdiutor for CPUconservative , SWAP100Mo on aosp7 and everything looks OK ?

Also I did instal with twrp3.0.3 with queue zips without problem: just webview<DeltaGapps<calSync... then SuperSU2.79.

It keeps my secondary roms hidden safe (cm12 & lgJB) : just flash back multirom/trampoline zip back for 2nd (AND restore boot/twrp for aosp7).

Anyway I got the lib/modules for future aosp7ak, with fstab2/data automatic switch f2fs/ext4, hope [MENTION=5461026]kessaras[/MENTION] [MENTION=7008914]Phil_Smith[/MENTION] will try it, I didn't try f2fs because I need my 2nd multirom compatibility...
[LG Optimus 4X HD] masmoe:
Anyone use ram expander on this ROM?

I successfully installed ram expander but always fc when open the application.
[LG Optimus 4X HD] kessaras:
ram expander is history and useless on a phone with slow hard disk

https://xdaforums.com/optimus-4x-hd/general/zram-customisation-t3523785
[LG Optimus 4X HD] oF2pks:
Okay , I updated a latest aosp7 unmodified anykernel in f2fs thread : https://xdaforums.com/showthread.php?t=2799610&page=10 for cm12 nameless2.1 aosp6...
[LG Optimus 4X HD] kessaras:
[MENTION=5799877]csk1jw[/MENTION] https://github.com/CyanogenMod/android_bootable_recovery

[MENTION=5799877]csk1jw[/MENTION] https://github.com/CyanogenMod/android_bootable_recovery
[LG Optimus 4X HD] mrbambocha:
Minimum Google Apps

I saw that I need the

webview

from google and that only exist in the stock version.

Is there any way to

trim the gapps

to the bare minimum for what is needed to run with this ROM?

(and what are the bare minimum apps for this rom to work?)

I saw this guide but unsure of what to do with the gapps-config file:

https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options
[LG Optimus 4X HD] enetec:
Webview even exists as separate module...
[LG Optimus 4X HD] Phil_Smith:
Simply use deltadroid gapps

For now the two of them will do (direct links):

7.1.1 base package

webview
[LG Optimus 4X HD] mrbambocha:
Thanks alot!

Whats the difference between this and the open gapps site / packages?
[LG Optimus 4X HD] Phil_Smith:
Main difference (regarding your initial post) is that this one is "modular". That means you can choose any component separately (so you can install only what is wanted or needed).

Open Gapps offers packages that have fixed components. You can choose a package, but you most certainly will also have a couple of things installed you don't necessarily need.

The gapps config file is a way to give you more control when choosing such a package, but I for myself also like minimalistic gapps, and for that deltadroid is the way to go.

You can simply use the play store afterwards, if something's missing.
[LG Optimus 4X HD] mrbambocha:
I get Launcher3 crash at startup, I saw that other got the same problem but got around it by installing 3praty launcher,

but i cant get past the error message, just keeps popping up. what do i do?
[LG Optimus 4X HD] b886b:
U can flash pixel launcher with icon packs and wallpapers together with the rom, in that way u will not have the launcher crash problem.
[LG Optimus 4X HD] mrbambocha:
How do i do that? just download the apk and flash in recovery? And where do i get the icons and wallpapers?
[LG Optimus 4X HD] b886b:
Head to this thread, download the gapps base. then proceed to download

oogle Pixel Launcher addon for 5.0.2+

Google Pixel Launcher Icons addon for 7.1.1+

webview

Then u should be good to go.
[LG Optimus 4X HD] kessaras:
if you have a pc

adb install <your launcher.apk>

if you don't have a pc, get one :p

joke
[LG Optimus 4X HD] mrbambocha:
Im trying to install CWM to see if it works better then TWRP but after i run "adb reboot bootloader" and then "fastboot flash recovery cwm.img" it just stops at <waiting for device>. Any ideas?

* It finds my phone when running "adb devices"
[LG Optimus 4X HD] Phil_Smith:
This happens because you need different drivers for fastboot mode than for adb.

Are you using Windows? If so, you most probably will see a yellow triangle on the driver for "Android Device" in device manager, when in fastboot mode. If this worked before and it suddenly doesn't, your drivers are out of date. As it can't do any harm anyway, the first step would be to update them.

So open "Android Studio.exe" and do

-> configure -> Android SDK

and update everything offered there.

Then select "Launch Standalone SDK Manager" and update the "Google USB Drivers" under "Extras".

Now go back to device manager and check if you can select "Android Platform Sooner Single ADB Interface" when doing (in fastboot mode):

right-click on the yellow triangle driver -> properties -> driver -> update driver -> search computer -> select from list.

If you can, do so and it's gonna work again. If not, reply and report what further problems you encounter ; )
[LG Optimus 4X HD] oF2pks:
Check (NEW!) Google adb/fastboot lightweight releases : https://www.xda-developers.com/google-releases-separate-adb-and-fastboot-binary-downloads/

1- Within twrp2.8.6 and after, you can directly flash any recovery.img: just tick install + right/lower "[zip#image]".

2- You can also use flashify app to flash boot & recovery images : https://play.google.com/store/apps/details?id=com.cgollner.flashify&hl=en

(3- I will make a zip to flash soon for twrp)

I just uploaded a new TWRP3.0.3 (omnirom6)

with adb authorized : https://xdaforums.com/optimus-4x-hd/development/recovery-custom-twrp-3-0-3-0-2016-12-16-t3533444

; your vote is awaited.

For your safety, whatever device or rom, always take time to check that adb is working during (~2/3) bootanimation : "adb devices" should return your device ID and running; AND install an app able to flash recovery images :

flashify

, twrp, flashfire....
[LG Optimus 4X HD] b886b:
I downloaded the adb in your post. How about the driver of adb??? Is that if my usb can detect my phone then I will be able to use adb??????
[LG Optimus 4X HD] csk1jw:
Hey, this is *NOT* a Nexus phone. "adb reboot bootloader" won't get you into fastboot. To get into fastboot mode, use "adb reboot oem-unlock". Then you can use *SOME* fastboot commands.

CORRECTED.

"adb reboot bootloader" or "adb reboot oem-unlock" both bring up the LG fastboot.
[LG Optimus 4X HD] Phil_Smith:
Yes. adb detects your devices, when the correct drivers are present.

You can also go ahead and add the path to the platform-tools folder (e.g. "C:\Android\platform-tools" or however you named it / where ever you saved it), let's call it X, to the system PATH by:

right-klick on "computer" / "this pc" -> properties -> advanced system settings -> advanced tab -> environment variables

Edit "Path" variable under "system variables" by selecting it and clicking "edit".

In win7 go to the end of "variable value", type a semi-colon and add X after it.​

In win10 add X by clicking "new"​

Don't know about win8 right now, but it's gonna be one of the two ways.​

Doing so, you can simply type adb / fastboot commands in your cmd window, without always pointing to the save location of your platform-tools folder.
[LG Optimus 4X HD] b886b:
Thanks for your clarification and tip. So u are on 7.1.1 or cm11(with data & cache in f2fs)???
[LG Optimus 4X HD] Phil_Smith:
No problem.

Right now I'm on cm11 with /data and /cache in f2fs. Got this to work using the [MENTION=5799877]csk1jw[/MENTION] 6/7 kernel.

Will install 7.1.1 again and test out f2fs and other fun stuff, when [MENTION=5799877]csk1jw[/MENTION] releases a new update.
[LG Optimus 4X HD] Phil_Smith:
Works great!

Here are the google usb drivers, which are needed for the phone to get recognized in fastboot mode:

https://developer.android.com/studio/run/win-usb.html
[LG Optimus 4X HD] oF2pks:
I believed "adb reboot oem-unlock" was only needed for unlocking LG JB bootloader (ie = prim-origin lg JB's bootloader).

IMHO "adb reboot bootloader" is better and works with all roms & "authorized" recoveries & fritzcola MRtrampoline. It's also the official rule from twrp.me/4X HD:

adb reboot bootloader

fastboot flash recovery twrp.img

fastboot reboot

I used >20 times this week 100% OK.

BTW, I don't get why you miss microG & "adb reboot recovery" in your incredible top aosp7 (which actually lacks future wip Xposed ...)

Anyway, I will add soon a twrp303.zip (adb/authorized), to flash under CWM.

Nota-joke: if you keep working on aosp7.1.1, we will soon get an amazing locked Pixel ML...
[LG Optimus 4X HD] ze7zez:
If I can add something.

On one of my device with TWRP 3.0.2.0 and CM11 completely does not work:

adb reboot bootloader

While

adb reboot bootloader

on the other device stock rom with root - android resets to factory settings.

Damn, at this moment I restore backup. :mad:
[LG Optimus 4X HD] kessaras:
This rom works on f2fs fine. We only have a problem with superuser here.

After flashing rom our twrp has bug and needs reboot to recovery to flash other stuff like gapps and here we need superuser.

After flashing rom we lose the reboot to recovery command and we are without superuser access too so we can't use flashfire to flash something.

We either need to fix twrp either add supersu in the rom and it will work on f2fs great.

---------- Post added at 08:34 PM ---------- Previous post was at 08:29 PM ----------

Hey Phil you try something when you have time?

I just got an idea.

If after downloading this rom, you add supersu apk in /system/priv-app and then flash rom

Wouldn't then the supersu app inside have access to write the missing binary?
[LG Optimus 4X HD] oF2pks:
https://su.chainfire.eu/#embed-rom
[LG Optimus 4X HD] kessaras:
OK :p no test. Better include it in rom zip
[LG Optimus 4X HD] Phil_Smith:
No, seems like this is not entirely true.

Just flashed stock to hopefully get rid of that hybrid ril thing, which sort of doesn't let me sleep.

Tried "adb reboot bootloader" but that led me to the "now ready" senseless screen.

"adb reboot oem-unlock" on the other hand put me into fastboot mode.

---------- Post added at 21:44 ---------- Previous post was at 20:46 ----------

I got f2fs and root to work on this ROM. Can't remember the trick though right now...

Which f2fs twrp have you been using? The only one really working for me (and always keeping reboot to recovery from within recovery) still is 2.7.1
[LG Optimus 4X HD] kessaras:
3.0.3
[LG Optimus 4X HD] Phil_Smith:
Okay, then maybe you can try 2.7.1 to maneuver around the reboot to recovery issue.

Think I did fine using twrp 2.7.1 and supersu 2.79 (not the system mode version!)
[LG Optimus 4X HD] Salman Al-Badgail:
Anyone up with latest supersu.zip, if yes please let me know. Also if possible attached it here.

Thanks.
[LG Optimus 4X HD] Phil_Smith:
There you go:

SuperSU 2.79
[LG Optimus 4X HD] b886b:
It seems that SuperSU does not get along well with f2fs....

https://xdaforums.com/showpost.php?p=70492947&postcount=8793
[LG Optimus 4X HD] oF2pks:
Looks we already have this fix (old kernel) : https://github.com/CyanogenMod/lge-kernel-p880/blob/cm-12.1/fs/f2fs/file.c

const struct file_operations f2fs_file_operations = {
.llseek	= f2fs_llseek,
[B]	.read	= do_sync_read,[/B]
[B]	.write	= do_sync_write,[/B]

BTW : I have CWM 6.0.5.1 under the hood with added f2fs, but it needs more fixes to properly mount fstab; so if any has links for f2fs' patches, let me know. The idea is to format first with TWRP then flash CWMf2fs.img + reboot + install compatible rom, and stay with CWM until ext4/data back wanted.
[LG Optimus 4X HD] Phil_Smith:
Well, this is manually doable on our device - and thanks for pointing us there! It is even supposed to be done once in a while automatically, but who knows... Maybe doing it manually every day or so, might solve the lag problem in aosp versions after all...

Go ahead and do

adb shell
fstrim -v /data
fstrim -v /cache
fstrim -v /system

and you're good to go in a few seconds.

For people who don't use adb, there is a free tool simply doing those three commands in the play store (requires root).
[LG Optimus 4X HD] csk1jw:
New buid 20170114

New build is up.