yashsingh1/xdaforums huggingface dataset:
[G2 Original Android Development] dolo3000:
Screen won't turn on after a while (tapping & power button) and during calls

Hi all,

i faced the same issue as pbkhphk with the lock screen.

After a while the screen won't turn on when tap or use the power button.

Sometimes the screen turn on after a while when i clicked the power botton. Often it helps to activate the camera with double-clicking the power botton.

The problem is also that when i got a call the device vibrates but the screen won't turn on, so it's not possible to answer the call.

How i installed the Lineage OS 15.1

- I've used the installation instruction from the lieange os webseite https://wiki.lineageos.org/devices/d802/install

- I have had Lineage OS 14.1 already in use for about 1 year

1. First i've create a backup of the apps, the storage and the os (twrp)

2. after that i updated TWRP from 3.1.0 to 3.2.3 and create the os backup one more time with the current TWRP version

3. now i wiped the data (Format Data) and also the Cache and System under "Advanced Wipe"

4. then i installed the Lineage OS 15.1 image (from 24 Sep.)

5. finally i installed the GApps (ARM, 8.1, pico) and rebooted the phone

The first boot was sucessfull so i started to install the apps and configure the phone.

Later i faced the problem with the screen as discribed above.

6. I've already tried to boot to recovery mode and delete the Dalvik Cache, but this dosen't resolve the problem.

Does anyone faced the same problems and have an hint or found a solution?

Best regards,

Dolo
[G2 Original Android Development] gabyonyx:
I noticed similar problem, but with lineage 16.
[G2 Original Android Development] john_22_online:
I'm use expanded desktop always hide both everything first open lock no problems. But 30 minute later lock screen hang on black screen. I really like full screen use my d802. I hope this will fix soon. Thanks. :fingers-crossed:
[G2 Original Android Development] joelfschmidt:
lg g2 d805

Hi! Thank you for your work. I use version 14.1 for d802 on my lg g2 d805. it works perfectly. But I can not install 15.1 for d802 on my g2 d805. Thank you very much for your work, congratulations.
[G2 Original Android Development] gkarthik16:
This is an age-old bug we have been facing across several devices. I have this issue on my OnePlus 5T as well (haven't updated in a long time, so not sure if it is fixed for the 5T).

The easiest solution is to not enable expanded mode for all apps. Instead, enable it on an app-by-app basis.

See here --> https://xdaforums.com/showpost.php?p=76031607&postcount=926
[G2 Original Android Development] pejicgoran:
Lg B!gboy camera works without any bug and makes better pictures as snap in dark places.

I have not any issues with screen lock.Works just fine everything.
[G2 Original Android Development] JuraP:
Hi, guys, Dirty flashed from unofficial version, afterwards lots of apps FCed, so I have to reinstall them. What I'm facing now is, that GPS can't get a fix so all navigation apps are not working. Is that a system bug - anyone else with this issue? It's D802 international version. thx
[G2 Original Android Development] phkhphk:
Hi i disable expanded desktop

i turn it on manualy for all aps

now lock screen work good for me

thanks to the developers

it feel just like buy new phone :)

return ambiant display and hide app will be nice
[G2 Original Android Development] dolo3000:
Hi there,

yeah thanks! After i read the post from john_22_online i deactivated the "expanded mode" and now the

issues with turn on the screen after lock seem to be gone.

Thanks to gkarthik16 and john_22_online.

I will also try to enabe the "expanded mode" for single apps not for all apps.

Regards,

Dolo
[G2 Original Android Development] mrLoma:
Hey I updated to 15.1 yesterday.

Adaptive screen didn't work the first boot I tried enabling disabling , nothing , after a reboot it works again.

Strange part is that I have 3 entries about ambient display when I look for it in settings.

1 in battery that it's called adaptive screen brightness and one in display called ambient display. They toggle the same variable, when you change one, it changes the other.

The 3rd one opens a different menu called ambient display with the text "when to show ".

All in all I think there is some confusing between adaptive screen brightness and ambient display with some devs.

Ambient display is a way to show notifications of the screen is not unlocked afaik.

On another note I tried to enable face unlock in smart lock, but it wasn't there. Since it's a gapps thing I reinstalled gapps , but trusted face is still nowhere to be found.

The build looks good and stable tbh , good work devs :good:
[G2 Original Android Development] runekock:
This seems to be a general problem:

https://xdaforums.com/android/software/pa-gapps-continuation-t3098071/post77657234

Maybe it is because open gapps uses face unlock files from nougat on 32 bit devices (no 32 bit Oreo stock roms seem to exist for any phone at all)
[G2 Original Android Development] alvinprimo:
Its Official now..
[G2 Original Android Development] BiG_FooT:
Regarding the ambient display issue, did you upgrade by dirty flashing on top off LOS 14.1?

LOS 15.1 does not include ambient display yet if I read it well
[G2 Original Android Development] mrLoma:
Yeah, I did like it said on the official site. I did also get some weird data/cache corruption this morning.

XDA app crashed on opening and the icons on my launcher were all scrambled.

When I find some time this weekend i'll try to do a clean install.
[G2 Original Android Development] Beastage:
Hi peeps, I updated my G2 (used as offilne nav device) to 15.1 from 14.1 , the update was smooth , in fact it was so smooth I decided to give it to my dad , so I booted into recovery and wiped data and storage , flashed again 15.1 rom and gpapps just like I did before with dirty upgrade ... now it doesn't boot, loops into recovery! so strange that dirty upgrade worked fine and clean install does not boot.

Any suggestions? I think I might re-install 14.1 then do an upgrade again. --- just tried this and it is the same , what is going on....

BTW I am on latest TWRP for LG G2.
[G2 Original Android Development] bernida:
-Wipe->Advanced Wipe->System+Cache

-Wipe->Format Data (type yes) --- Back up the internal memory before (pictures music etc)!

-Reboot to TWRP Recovery

-Copy zips and install them again

This will fully reset your phone and allow you to start from scratch
[G2 Original Android Development] dafresh:
in lineage 15.1 i can not detect my wifi which using channel 13 (2,4ghz).

Cant find an option to set the wifi country code
[G2 Original Android Development] Beastage:
Sadly didn't help, I think I need to format recovery and reinstall... something signals the bootloader to boot into recovery.

I want to try and run fastboot oem fb_mode_clear but the device doesn't respond to fastboot commands :(
[G2 Original Android Development] exception82:
Hi,

I had the same issue, 15.1 installation worked fine, but rebooting the system always ended in recovery mode (TWRP).

What fixed it for me was resetting the "misc" partition manually (see here: https://xdaforums.com/showpost.php?p=71797169&postcount=2)

Note that the linked post is for LG G5. What I did was a complete delete of "misc", which is not the recommended way. (I found the better approach after I already deleted the complete partition).

For people having trouble with "error 7" during 15.1 installation, try upgrading your recovery image. Upgrading from TWRP 2.x to latest 3.x worked for me.

And a big THANKS to all the people making 15.1 running on the LG G2!!
[G2 Original Android Development] Skyjumper_GR:
I have the same issue. If i will set under "system Profiles" and will edit in a Profile the "Preferred network types" it will crash!
[G2 Original Android Development] cauch_y:
Hi

I have a problem with live display. Automatic brightness is very low even if set to 100%. If I switch back to constant brightness it works ok (I did clean install of official build).

Is it possible to switch off highlighting pressed numbers on lock screen with pin? It makes easier to read the pin number over the shoulder.
[G2 Original Android Development] bernida:
I'm having the same issue. A reboot will fix it for me. There was another user above for which this was also true.

Weirdly enough, it's reproducable by wiping dalvik cache AND cache partition in TWRP at the same time.

But ONLY both. Wiping only one of them will not cause it to happen. Only if dalvik and cache are wiped at the same time will the auto-brigthness stop working the next time you boot. After a reboot everything is fine though.

I dirty flashed from 14.1
[G2 Original Android Development] cauch_y:
[MENTION=4894132]bernida[/MENTION]

I was pretty sure I have seen someone with similar problem. Unfortunately reboot is not helping. Automatic brightness seems stuck on one level nevertheless of slider position.
[G2 Original Android Development] phkhphk:
Hi

i download last update 2018-10-01

i could install only manualy

now boot back to recovery

try to install agin same

try to install last week

same thing reboot to recoverty

please help

edit : return to 14.1 first ?

thanks
[G2 Original Android Development] mrLoma:
I just had the same issue. Ota update doesn't seem to work all the time.

I ended up resetting everything which didn't help.

What seemed to help is clearing the misc thing

In the terminal

dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc

I backed out up to be sure before doing it like this

dd if=/dev/block/platform/msm_sdcc.1/by-name/misc /sdcard/miscBU.img

Not sure if it's the best or right way, but it looks like it worked for me.

Edit:

Warning , yoDevil posted a better fix, with a flashable fixboot.zip . use that one ;)

https://xdaforums.com/lg-g2/orig-development/rom-lineageos-15-alpha-d802-t3707239/post77779998
[G2 Original Android Development] phkhphk:
thanks for answer try it now lineage logo appere

but again boot to recovry
[G2 Original Android Development] ihatebarrels:
I always do "semi-clean" install to update nightly

From 15.1 (download latest build + gapps):

-reboot recovery

-format system + cache

-flash latest build + gapps

-wipe cache -> reboot system

no problem
[G2 Original Android Development] phkhphk:
big thank to mrLoma & ihatebarrels

after some retries it boot again

:good:
[G2 Original Android Development] MachiavelliBs:
[MENTION=5530490]cauch_y[/MENTION] i im your situation with the automatic brightness .
[G2 Original Android Development] wtflawlxd:
Same issue here after trying to install the OTA update from 1 oct 2018: the phone was rebooting to the recovery (blastagator's TWRP version 3.2.3-0) no matter what I did.

I resolved following your advice:

dd if=/dev/block/platform/msm_sdcc.1/by-name/misc of=/sdcard/miscBU.img
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc

Thank you mrLoma :D.

I never had this problem before, even though I've installed Lineage and Cyanogenmod a lot of times.
[G2 Original Android Development] n@vier:
[MENTION=5586231]qwertyu123[/MENTION] [MENTION=5031300]blastagator[/MENTION] same problem as above with OTA update I got a bootloop in recovery (3.2.3-0) ...I don't know where is the problem I guess it's something related to LOS OTA update....
[G2 Original Android Development] qwertyu123:
Anyone can provide a logcat?, as you say it could be OTA related.
[G2 Original Android Development] n@vier:
Unfortunately I can't because I solved the problem flashing a nandroind backup of AEX. I hope someone can provide you a log if you didn't get that problem...
[G2 Original Android Development] phkhphk:
hi after last update how big is system ?

my become 6.4 gb

thanks
[G2 Original Android Development] mrLoma:
No problem I followed other advice first to format everything and reinstall everything, which didn't help, so I'm still trying to recover all my data :rolleyes:

So when I got it working again, I posted here to let you all know, so we don't all have to do all this.

Most is almost back in order now.

no logcat though , sorry.
[G2 Original Android Development] mohayta:
Why there is a compatibility problem with instagram ? Besides that, rom is good so far, thanks.
[G2 Original Android Development] dmaster2016:
hi.

first of all.....thank you so much for that great ROM and many thanks to the developer and all contributors.

lineage os 15.1 original

d802

latest blastgator 3.2.3.0

my device also gone UNBOOTABLE with the latest OTA

not all of us are tech savvies to solve things with one command line......

eventually i succeeded with the terminal commend mentioned above

i deleted my device completely so i to have no logs to provide:(

will this be happening in the next OTA?

i dont know if the lineage developer and blastgator are the same person

but something CLEARLY is wrong.

THANK YOU again.

will stay tuned as always......;)
[G2 Original Android Development] aleasto:
To everyone having issues after yesterday's ota: were you coming from a cleanly flashed first official build, or you had dirty flashed the first official build over an unofficial?
[G2 Original Android Development] n@vier:
I came from a clean flash of official LOS 15.1 and updated via OTA with TWRP 3.2.3-0 with the result of a bootloop in recovery.

PS: even unrooted
[G2 Original Android Development] guanellaluigi:
Hi [MENTION=4742143]YoDevil[/MENTION],

in my case it was a clean install.

To be precise, the situation isn't a bootllop (meaning the system re-boots automatically without user intervention) it is a situation where you can manually reboot, but it doesn't matter if you specify "system" or recovery, you end up always in recovery.
[G2 Original Android Development] mrLoma:
I did a dirty flash from 14.1 to 15.1 , that seemed OK. Next ota kept booting in to recovery no matter what.
[G2 Original Android Development] phkhphk:
clean flash

solve by change misc so i cant give log
[G2 Original Android Development] aleasto:
Ok issue acknowledged and reproducible.

For the time being I made a recovery flashable script to get you out of recovery loop. All of your system,data is safe and untouched.

You will still be on the previous lineage version and should not attempt to OTA again.

You can safely perform a manual dirty flash if you want to update.

Currently looking for a fix in time for the next OTAs.
[G2 Original Android Development] woda:
same here,

what helped:

adb shell dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc count=1 bs=32

You can also go to the TWRP terminal and run: dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc count=1 bs=32

found it here: https://xdaforums.com/showpost.php?p=71661297&postcount=4
[G2 Original Android Development] dmaster2016:
that's right for me to!!!

15.1 from 14.1

step by step to the "info"

worked like a charm!

later the first update screwd everything up!
[G2 Original Android Development] Skyjumper_GR:
I noticed an issue while disconnecting the Bluetooth connection. When music is playing and you turn off Bluetooth on your headphones, the music will continue to play through the smartphone and will not automatically stop.

In 14.1 the music stoped automaticali.
[G2 Original Android Development] wtflawlxd:
About the people that zeroed misc, should we restore the backup and apply the fix?

I zeroed because of bootloop from OTA upgrade, now the phone works fine with the latest update (1 oct 18) manually flashed.
[G2 Original Android Development] qwertyu123:
Restoring the backup of misc partition should also fix the issue. If you got backup you dont need the fix, its always better to use your backup.
[G2 Original Android Development] mrLoma:
I think he means the backup of the bootlooping misc.
[G2 Original Android Development] qwertyu123:
Then yeah, restore the backup and apply the fix instead of zeroing.
[G2 Original Android Development] popxunga:
One old little doubt: Is the misc partition recovered by flashing the stock kdz ?
[G2 Original Android Development] qwertyu123:
No, it doesnt
[G2 Original Android Development] zonzo3:
I had the same issue after upgrading via OTA from a fresh clean install of the 15.1 rom. Your zip fixed the reboot in recovery mode, thanks a lot amico connazionale!
[G2 Original Android Development] cauch_y:
Hi,

it's it possible that sensors bug related to device encryption is persistent? My device is encrypted and I have no access to any sensor. I have seen some posts from May related to this problem. Has it been solved?
[G2 Original Android Development] alvinprimo:
For anyone dont have backup This code work..thanx
[G2 Original Android Development] mrLoma:
That actually made it boot, but wasn't the correct fix, download the zip from yodevil a few post later, put the misc back and flash the zip.

https://xdaforums.com/lg-g2/orig-development/rom-lineageos-15-alpha-d802-t3707239/post77779998
[G2 Original Android Development] alvinprimo:
How we restore the misc back up? Im not rooted
[G2 Original Android Development] mrLoma:
You only need to restore the misc of you did the dd command line.

It's basically doing the same line as the backup but than switch the input and output file (if and of)

Don't do the 2nd line with zero again.
[G2 Original Android Development] coolhandfluke:
We had an OTA bootloop to TWRP which needed / misc to be zeroed or reloaded in lineage 14.1 which was resolved in the 28/3/17 OTA, If you can still access the nougat changelogs you might find some help there. Blastagator also looked into the issue and may be able to shed some light on it
[G2 Original Android Development] aleasto:
EDIT: OTA updates are now working if coming from 22/10 build or later. Sorry for the issues this caused.

Attention please

In order to install OTA updates you'll need to update your recovery

We've tried getting in touch with [MENTION=5031300]blastagator[/MENTION] but we couldn't get an answer just yet, and since the next nightly release is only few days away i'll share my build of TWRP

Note that this is still mostly blastagator's work, rebased over lineage-15.1 device tree to fix the OTA issue.

I'm only going to share it for d802 variant, because that's what I could test and I really don't want to break anyone's recovery

If you're on any other variant, you should avoid OTA updates and manually dirty flash instead!

Also, d802 users, if you can live without OTAs for some time, i'd suggest to keep using blastagator's latest recovery and just dirty flash lineage updates.

I'll also share again my script to get out of recovery loop in case you didn't update recovery and accidentally install an OTA
[G2 Original Android Development] blastagator:
What change did you make so I can update my tree and rebuild?
[G2 Original Android Development] aleasto:
No specific change, I just took lineage-15.1 branch and kanged the most relevant changes you have on your cm-14.1-twrp branch, like this: https://github.com/YoDevil/android_device_lge_g2-common/commits/twrp. I used stock lineage-15.1 kernel and Omni build environment, so there might be other factors into play.. Can you just try rebasing your commits over lineage-15.1 and see if it works? Feel free to pm me a test build for d802 if you don't want to go through testing an OTA update!
[G2 Original Android Development] ronFenomeno:
I just got a question on playing video through the browser. There is a play button on the video player. However, once i press it, it just pause again. Is there anyone facing the same problem?
[G2 Original Android Development] mrlelee:
Odd touchscreen

Hello guys.

The touchscreen is strange in this 15.1 version. Instead it was perfect in the 14.1.

Any way to fix or calibrate?

Thxs
[G2 Original Android Development] wtflawlxd:
I restored the backup I've made with

dd if=/sdcard/miscBU.img of=/dev/block/platform/msm_sdcc.1/by-name/misc

Then I installed "fixboot.zip" from YoDevil and rebooted successfully to LineageOS :highfive:
[G2 Original Android Development] mrLoma:
So is it a known issue, that you can't start the phone while (fast/ac)charging?

I ran out of battery yesterday, plugged it in after 10min I tried starting the phone saw the lg logo and than the charging animation again.

I had to stop charging to be able to boot in to system.

I'm not sure of it's the os or the recovery that handles this though.
[G2 Original Android Development] metteduch:
Yes I also reported it once. Should be added to OP so people are aware.
[G2 Original Android Development] alvinprimo:
Same here..
[G2 Original Android Development] wirbelg2:
+1

But already in 14.1.
[G2 Original Android Development] bernida:
Yep, I believe this was the case since at least CM13

It's something in the kernel/bootpartition architecture, not sure if it will be ever fixed

But not a huge issue imo.

It also only exists when you plug the charger in before trying to power the phone.

If your battery is dead, press the power button until you see the LG logo and quickly plug in the usb cable -> normal boot.

If your battery is dead to the point where it won't even power up the LG logo, just let it charge in that charging mode for a couple of minutes.

Then if you're stuck in that charging mode: simply unplug, longpress the power button (~15s, LG logo will appear and disappear once or twice) -> (this will force a battery reconnect) -> power on normally and quickly plug in the cable as soon as the LG logo appears (as described above)
[G2 Original Android Development] 4Freedom:
Removed.
[G2 Original Android Development] cauch_y:
Sorry for shameless self bump. Does anyone with encrypted device have problem with sensors (e.g. proximity, ambient light, gyroscope)? I can't read from any of them with CPU-Z or AIDA. Screen auto rotate doesn't work, the same with locking the screen on a phone call and auto adjusting screen brightness.

Encryption process took about 10 minutes when every warning and disclaimer stated it will take around an hour. Device had formatted data but still it's quite a discrepancy. In logcat I can see "sensor or listener is null".

Looking forward for your help.
[G2 Original Android Development] everb00b:
Screen rotation does not work at all.

High battery drain since 0110 build.
[G2 Original Android Development] raymccoy007:
Hello,

i just tried to update from LineageOS 14.1 to 15.1.

So i downloaded open_gapps-arm64-8.1-nano-20181007.zip und lineage-15.1-20181001-nightly-d802-signed.zip to a usb_otg stick and enabled the developer options. Then i started the recovery boot. I tried to install lineage-15.1-20181001-nightly-d802-signed.zip but i got the error 7.

Can you tell me what goes wrong?
[G2 Original Android Development] popxunga:
You need to flash a recent version of TWRP as stated in the requirements. For now use the 3.2.3 [MENTION=4742143]YoDevil[/MENTION] patched version available from post #1053.

You should also use the open gapps ARM and not the arm64 version.
[G2 Original Android Development] mrLoma:
I don't use encrypted data, but for me screen rotation works fine
[G2 Original Android Development] clampazzo:
I have exactly the same bug. Flashed over encrypted 14.1, no sensors at all. Then clean flashed 15.1 with formatting data - everything (rotation, proximity, etc) is working. Encrypted the phone (it also took about 10-15 minutes), and again all sensors are gone.

I tried to find any related bugs in los tracker, with no luck. So, I'm not even sure if it is general 15.1 bug, or something device specific.

I'm running unencrypted for now, since it's my daily phone
[G2 Original Android Development] jopxda:
Upgraded from 14.1 as described in post #981. Almost everything seems to be working. Thanks! :good:

The only exception so far is Android Auto (from apkmirror, as it is not yet available from Play Store here) that gives ""google play services doesn't seem to be working right now"" message and quits. If anyone has solved this, please share.
[G2 Original Android Development] buaser:
I'm still experiencing imap auto sync problem with stock email app. Manual sync works fine. Auto sync does not work, even if it's turned on. I'm on latest build.