yashsingh1/xdaforums huggingface dataset:
[G2 Original Android Development] bigzdog:
I have a problem where it will not connect to wifi unless the screen is on. It never disconnects from wifi once connected as long as I stay in range, just it won't connect unless I turn on screen. Wifi is set to always be on during sleep.

Example: I arrive at home with phone, get on PC, log onto my router and monitor wireless clients. Phone screen still off. No phone on wifi. An hour later there is still no phone on wifi. I then turn on phone screen, I can see no wifi icon in top bar. After a second, wifi icon shows and connects and router shows the client.

I also have this same issue at work. As I walk around the building that is covered by different wireless APs, the phone will disconnect, then never reconnect to wifi until I turn the screen on.

During this time I am getting email notifications so it would still be using mobile data.

Tested with CM12.1 several different nightlies.

I can very reliably cause this by connecting my phone to wifi, start ping to phone ip, then rebooting router. With these roms it will never connect to wifi without turning screen on. With CloudyG2 3.3 rom it will reconnect after a minute of router coming back up. Also my old Atrix HD and Asus TF201 connect quickly also.

I have taken it back to stock with Supersport's method http://xdaforums.com/showthread.php?t=2663369. I then used Ioroot and AutoRec

I then tested with a full wipe of everything except internal storage and clean install of these roms. Kept all default settings and did NOT sign into Google, so no apps were restored/downloaded. Nothing running except what comes with the ROM and still have this issue.

I captured a logcat and below is the timeline.

Phone connected to wifi then screen turned off. Start ping

6:11 pm rebooted router - pings drop

6:12 pm router back online and other wireless devices connected

6:18 pm still no response from phone

6:23 pm turn screen on - see wifi connect - ping starts responding

Logcat

http://pasted.co/4fc50273
[G2 Original Android Development] Superorb:
Why does the notification light turn off after the battery is 100% charged? Every CM-based ROM seems to do this.
[G2 Original Android Development] dr4stic:
Maybe because it's no longer charging at that point?

Look, you've asked the same question here more than once. Clearly either no one has an answer for you, or someone does and doesn't feel like sharing it. The community is small enough for this device and the thread inactive enough that I guarantee people aren't just "missing" your posts. Everyone is seeing them.

If I had to guess, it's probably a general CM thing. But I also don't care enough to look into it. It may not be the answer you want, but I hope you'll stop repeating yourself.

Finally, this isn't a Q&A thread. This is a development thread. Many people get away with asking basic questions because the community is small enough at this point to help each other and avoid annoying the devs. However repeating yourself with the same non-problem (no, your issue is not a problem) is an easy way to annoy the devs.

Thank you.
[G2 Original Android Development] hackwoof:
I checked out the call recording app. I still can only get it to record on my side same as the native. It will not record on the other side. Any suggestions on how you did it?

Also, what was the benefit of changing you selinux to permissive? I did that as well
[G2 Original Android Development] ukguy115:
Can anyone check if accidental wake with prox is working? Used to work halfway but recently not at all.
[G2 Original Android Development] Len:
So...

Audio source : VOICE_CALL

File format: AMR

Quality: 8kHz

try setting those.

benefit? well... I can run ports without pain of changing things in SELinux (yeah, I can't into it yet).
[G2 Original Android Development] hackwoof:
tried settings again for giggles no go. When I use voice_call option regardless of file format (which I tried all) it does not work at all. when i try mic i only get one side. cm12.1 had deactivated the call record and only opened one side which is the caller. I was hoping this could fix unless you had another solution??
[G2 Original Android Development] seanp25:
Something went wrong for me flashing a recent build. On booting, the phone is getting stuck at the CM bootlogo. I have a backup made in TWRP I want to flash black to, but I can't seem to get into recovery.

Any ideas what I can do from here?

EDIT: Nvm, got into recovery. Used adb reboot recovery when the phone was at CM bootlogo.

Anyone know how to fix it when CM gets stuck at bootlogo after a flash? I flashed it with gapps and dt2w fix
[G2 Original Android Development] errikosd:
I can confirm that the phone wakes up in my pocket quite often in 20151020 Nightly.
[G2 Original Android Development] nicky3:
D802, 10.21 from last night,

everything is perfect for now,

adaptive brightness is faster, from dark to lighter room,

feel free and flash...
[G2 Original Android Development] Superorb:
I appreciate the reply, but wouldn't it have been easier for someone to say this was a known problem or something else just to shut me up? Please point me to a Q&A thread and I'll ask questions there going forward. I'm not trying to piss off any devs here, because I do appreciate all they do.

On the stock ROM the green charged light will stay on 24/7 for days, so I was curious if there was a problem with my phone or if it was a known CM issue. It's something I can live with, CM is too good to get rid of.
[G2 Original Android Development] errikosd:
Is dt2w accidental wake-up prevention working?
[G2 Original Android Development] nicky3:
You mean cover sensor and unlock,

don't work, I can unlocking the phone when the sensor is covered
[G2 Original Android Development] AsM0DeUz:
My phone doesn't save the WiFi passwords. Every day I have to fill in the password of all the already known Wi-Fi (home, work...)

It's like that for a long time now. I installed a lot of nightly releases and the problem is still there.
[G2 Original Android Development] marn3us:
It is not CM's fault since i am on D802 as well and never had that problem.

Try clean flashing the nightlies and if that still doesn't work double check your settings
[G2 Original Android Development] seanp25:
I seen the problem with not remembering WiFi passwords also. Only in the past month or so.

I've done a clean flash since then.
[G2 Original Android Development] bigzdog:
bump
[G2 Original Android Development] Flynny75:
Is anyone else having issues with their compass? After recalibration its exactly 90 degrees out compared the same device running stock
[G2 Original Android Development] jaboneros:
cLock widget settings to change clock appearance like bold hours, or changing colors don't work.

build 1023
[G2 Original Android Development] L0nelyE4rth:
It's working bro. Do you fresh flash ?
[G2 Original Android Development] Wiwee:
Hey, im comming from cloudyG2 3.3, can i just wipe and flash cm 12.1 or should i downgrade to kitkat and than flash cm 12.1?

Tnx for help!
[G2 Original Android Development] powwow12:
You can flash it without downgrading
[G2 Original Android Development] jaboneros:
I'm referring to the Digital clock widget, without the weather. When you set that widget it is also labelled as the cLock widget.

As for the cLock with weather, I notice the temperature doesn't go metric even when I set it to be so.
[G2 Original Android Development] jaboneros:
Is your router's WLAN setting on access control list restricted to specific MAC addresses? When I turned on that feature on my router, my G2 disconnects from the WIFI when it sleeps and turns on WIFI again when I wake the phone up.

Disabling this security feature in my router fixes the problem of my phone losing connections when asleep.
[G2 Original Android Development] TheUnladenSwallow:
Hey guys, wanted to show some pictures from the 9/26 snap camera. Not too bad! Also we got the blood moon, top notch photography right there XD
[G2 Original Android Development] bigzdog:
No, not enabled on any of the routers I have tested. Mine is a bit different than your issue. Mine does not have problems staying connected once connected, the problem comes in connecting initially when the phone comes into wifi coverage. It will never connect until the screen is turned on even after being in coverage for hours.
[G2 Original Android Development] dr4stic:
Can someone check to see if their WLAN MAC is changing on each reboot, or after sleeping and waking up?

Access control lists usually work on mac addresses and the mac address should never really change. If the mac is changing constantly, that's a problem. One of the recent rain of changes had something to do with changing the way some address was retrieved. I thought it was bluetooth, but I may have been wrong.
[G2 Original Android Development] Superorb:
Not changing for me, my router is set to deny all devices unless they're on the MAC list.
[G2 Original Android Development] jaboneros:
using the Google My Tracks app on 2 phones, with GPS set to high accuracy, same carrier SIMs, same H+ mobile data. Result was dismal for my G2 on build 1023, it was still searching for signal and didn't start recording. compared to the other phone (Samsung on stock rom) which started recording from the start of my trip.
[G2 Original Android Development] oliver2ooi:
I've searched the thread and it seems no one has found a solution. Am I wrong ?
[G2 Original Android Development] Krsnik:
I'm on an older build (10/2) and have the same behaviour, i.e. the phone needs to be woken up to connect to a Wifi.

Once it's connected the connection is maintained even when the phone goes to sleep. It seems like the phone doesn't scan for Wifi when it's sleeping.

And no, the mac is not changing when the phone wakes up.
[G2 Original Android Development] C--Mon:
Please provide some Logs for you WiFi Problem to the Developers. Nobody can realy help you without it!

BTW: No Problems on WiFi or GPS here on my D802 (intl) with latest nightly from 24.10
[G2 Original Android Development] jaboneros:
[MENTION=3218659]C--Mon[/MENTION], how do you flash a new update - wipe cache, dalvik and system or dirty flash only (no system wipe)?
[G2 Original Android Development] heithered:
I'm hearing good things about snap camera and heard it was in the rom but I don't have it. Is it because I use to stock gapps?
[G2 Original Android Development] Edvin73:
Delete. Effin Tapatalk.
[G2 Original Android Development] VonSohn:
Clean installed 10-25, so far everything's going smoothly. Just one thing, there's no way to get the battery percentage to show up inside the circle or icon in the notification bar. Am I the only one?
[G2 Original Android Development] Nafon:
No its not in the rom yet. You'll have to search the thread for the flashable ZIP
[G2 Original Android Development] errikosd:
Check page 67.
[G2 Original Android Development] LRC1710:
Its awful, its a bad copy of the old KitKat AOSP camera, I flashed it last week and reverted back, It wasn't faster or anything than the regular Google Camera, but painfully uglier tho...
[G2 Original Android Development] bigzdog:
Logs are already posted here http://xdaforums.com/showpost.php?p=63415987&postcount=940

MAC not changing for me either
[G2 Original Android Development] crumbl3d:
How to install?

- This has probably been posted a hundred times but I just want to make sure I'm right. I have read a bunch of guides, watched a bunch of videos on YouTube, all of them slightly different so I'm not sure which steps to follow.

- I started on stock 5.0.2 v30a. Now I've done this:

1) Rooted using this. Everything worked fine.

2) Installed TWRP using Autorec for Lollipop found.

3) Then I found out that the TWRP version Autorec installed was old, so I flashed blastagator's latest TWRP and everything was great.

*4) At this point I messed around with a bunch of stuff like Xposed (which messed up my navbar - G2 Xposed - do not use!!!). I successfully messed up my recovery by trying to use a custom curtain and not bumping it (do not try either). I fixed that by repeating steps 2 and 3. Finally I installed XCam Advanced which works great.

- Now I think I should try a custom ROM. So I've been reading, a lot actually. But it never seems enough. Now I have some questions:

1) Do I need to flash bumped LP bootstack before I flash the ROM and Gapps? I have already used Autorec which to my knowledge bumps and downgrades the bootloader...

2) If I do need to flash it, should I flash JB bootloader afterwards? I found this in a video, probably not a good guide.

3) Finally which steps should I take? I know I must do a Clean wipe (system, data, cache) then flash ROM and Gapps, but are there any steps I'm missing? Noob talking fancy stuff, trying to get a grasp of it! :P
[G2 Original Android Development] errikosd:
Coming from stock LG LP, if you want to flash a CAF based ROM, you do NOT need a bootstack. Just flash ROM + SuperSU + Gapps.

CM12.1 is CAF based, so the previous statement applies to it too.
[G2 Original Android Development] Krsnik:
These logs seem to confirm my statement that wifi-scanning is suspended completely when the phone sleeps (after the disconnect there is nothing wifi-related in the log until the phone wakes up again).

I found an open issue on the AOSP bug tracker describing exactly this problem in 5.1 stock roms for nexus devices (and some reports for OnePlus One).

https://code.google.com/p/android/issues/detail?id=170078

And here's an entry on the Nexus Help Forums:

https://productforums.google.com/forum/#!topic/nexus/6tf7Ve2A7XE

As per the comment from the google project member I turned on wifi verbose logging, maybe the CM team can find a fix for google ;).

I'll also link the logs there, maybe they'll look into it regardless of me using CM.

At 10-25 23:34:01.942 I unplug my wifi box and the phone disconnects.

About 2 minutes later I start my wifi again and wait a few minutes but the phone doesn't connect to the wifi.

At 10-25 23:44:35.020 I unlock the phone and 4 seconds later the phone connects to the wifi again.

The modem log doesn't contain any wifi related entries until 23:44 when the phone is unlocked again.

Logcat

Modem Log
[G2 Original Android Development] chewdaniel:
the bump bootstack includes KK Bootloader if i remember correctly.... also LP Modem, partition tables, etc
[G2 Original Android Development] Jeik:
Do you have the BUMP TWRP recovery?

If you do,then install the LP BUMP bootstacks,then the ROM,and then gapps.
[G2 Original Android Development] KreNtal:
Yes I have. Thanks a lot
[G2 Original Android Development] Lawlrus:
Is it really so hard for people to be pro active for once and try something? Download both and flash to see what works and what doesn't then report back?

Bah, who am I kidding, I'm an idiot for even asking, its much more logical to make posts all day about it, ask and or talk to five different people and get many difference's in opinion.

---------- Post added at 08:35 AM ---------- Previous post was at 08:34 AM ----------

Hi,

Read.
[G2 Original Android Development] kieranc88:
It's a forum buddy, don't get your knickers in a twist , I did flash it and it booted fine but I just wanted to see if there was a best combination to use,I'm new to g2 and flashing ROMs on this device varies from ROM to ROM. Its not like a nexus where you unlock boot loader and just flash twrp and flash any ROM with little consequence. The ways I've flashed it are "flash bumped bootstack then rom and then gapps and it booted fine, then with the latest nightly I did a clean install with bumped bootstack ,KitKat boot loader then gapps and it works fine also , no matter what way I flash I get the same bugs, random reboots when using chrome or Facebook apps , they freeze then phone reboots sometimes ,random strong vibrations from the phone for no reason lasting a second or two.
[G2 Original Android Development] chewdaniel:
welcome to the world of CAF ROMs :)
[G2 Original Android Development] L0nelyE4rth:
It doesn't happen to me LOL. AFAIK someone just got that problems.
[G2 Original Android Development] Fas1h:
lol *popcorn time*

This thread is fun...

So on topic. If I just wipe system and flash a new build of 12.1 on top of an older nightly, I wont lose any apps or their settings, right?
[G2 Original Android Development] artpopboy:
Any mod to change navigation bar size? Thanks
[G2 Original Android Development] Black_Eyes:
Yes , You won't.
[G2 Original Android Development] dr4stic:
Whatever source mods existed on the power driver for charging weren't carried over. Not all chargers give a clean or proper signal. The previous kernel had mods to the driver to account for those and accept the charger anyway. The new kernel doesn't.

The charger that came with the phone should charge at full speed (whatever that was). Otherwise you'll have to test/replace chargers till you find one that doesn't provide a bad signal. I had the same issue.
[G2 Original Android Development] Alex93917:
[MENTION=2096805]dr4stic[/MENTION] : I charge with original LG charger and original LG cable. I have no problem with CloudyG2 but with CM12.1, charge is very slow.
[G2 Original Android Development] dr4stic:
In that case I'm not sure how to help you. Sorry. My problem was solved by switching TO the factory charger. A samsung tablet charger worked for me as well. I subsequently gifted my amazon purchased charger to a family member.

Have you tried other chargers?
[G2 Original Android Development] Alex93917:
Yes. With all chargers, the charge is very slow in CM12.1. Asus Nexus charger and Sony Z3 Compact charger.
[G2 Original Android Development] bonny_k-9:
There is a bug. I have 2 keyboard. Google and TouchPal. Standard I almost always use TouchPal, but from time to time the system will switch to Google Keyboard. To inform your bug.
[G2 Original Android Development] Fas1h:
So, to start off, loved the ROM, and really awaiting a time when I can actually use it as the basic ROM. For now, I went back to stock.

I was on stock ZVG with autorec twrp, so just wiped and flashed the 3rd nightly.

1. So, the startup setup screen, where it asks you if you want to restore your apps and wifi passwords (after entering google details), I didnt want to restore anything (test run, so didnt see the point in installing 50 apps). Anyway when I opened the list and selected 'Dont Restore' Then it was showing those 'Done' and 'Cancel' buttons in bottom right, but they weren't working. So in the end had to select it to restore anyway. Anyway, not a major bug.

2. I got disconnected from internet and I tried launching 'Google Search' app and obviously it gave me the network error, but along with that also made the homescreen unusable, waited for some seconds but it wouldnt let me do anything nor even open the app drawer. But statusbar and nav bar were working fine.

3. It does have that irritating random vibrate thing.

Ooh camera result is good :D I noticed somebody asked that question earlier.

But really looking forward to trying more builds of this ROM.
[G2 Original Android Development] TheUnladenSwallow:
delete.
[G2 Original Android Development] kieranc88:
The restore bug is gapps specific I think , if you try a different gapps this shouldn't happen.
[G2 Original Android Development] errikosd:
Camera quality is nearly awful. Got some pictures in a sunny day here and the result is disappointing.
[G2 Original Android Development] KreNtal:
For the 1. Try putting the phone in landscape and back in portrait when it happens
[G2 Original Android Development] joedajoester:
Not sure if that has any relation to my phone disconnecting from wifi during sleep sometimes and only reconnects as soon I turn on the screen again. Its been present across all of the cm12.1 nightlies for a while now.
[G2 Original Android Development] Len:
no clue then... I can't record using dialler, don't care thou... but with this app which I posted, I have no problems. Have you enabled it in settings?

Maybe you want try my build?
[G2 Original Android Development] hackwoof:
Yes I would what is the name and link of your build? If you would like you can pm me please let me know. Thank you.
[G2 Original Android Development] serhangelgor:
any way to fix prevent accidental wake up feature? Please help me
[G2 Original Android Development] errikosd:
At this moment I think your best bet is to use the 20151006 build.

Maybe we could report the issue, but I wouldn't bet on a fix anytime soon as development is aimed towards CM13.
[G2 Original Android Development] trongfif1592:
i turned on " double tap to screen on " but knock on is not working

i tap 5 times and screen on.

please help me how to use knock on

i use g2 ls980
[G2 Original Android Development] dr4stic:
The dt2w feature works best with the accidental wake protection turned off.

The accidental wake protection never worked properly for me in the 7 months I've had this phone. Unlocking the phone was always a pain and once I turned off this feature, unlocking became much, much easier.
[G2 Original Android Development] trongfif1592:
i just turn off this feature and reboot the phone but knock on still not working :(

i used stock and miui before and knock on working perfectly on them

please help me again
[G2 Original Android Development] dr4stic:
If you're on the proper bootstack and it's still not working, then I'm not sure what more I can do. Sorry :(
[G2 Original Android Development] trongfif1592:
thank you so much

now, i don't know what is bootstack? :D

i flash cm12 when i am using miui v7 4.4
[G2 Original Android Development] dr4stic:
The supported bootstack for CM-12.1 D802 can be found here: https://github.com/lg-devs/bootstacks/tree/master/d802/lp ... If you are using any other devices, go here: https://github.com/lg-devs/bootstacks/tree/master/, click on your device and then go into the "lp" folder.

This bootstack is basically the radio, sensors and other stuff from stock lollipop. If you were using a KitKat MIUI before, there's a chance you have an older unsupported bootstack. If you want to cover all your bases, download the loki one, but either of the two listed at the link should work fine.
[G2 Original Android Development] trongfif1592:
thank you so much for your help
[G2 Original Android Development] trongfif1592:
i download bootstack lp loki for ls980. i flash this bootstack, then flash rom and gapp but knock on still not working. :(

5 taps screen on :(
[G2 Original Android Development] L0nelyE4rth:
That's problem in some ppl get it. It's weird problem
[G2 Original Android Development] ethereal_mist:
5 taps screen on here too on D800.
[G2 Original Android Development] beatschubser:
Secure Settings doesn't work properly with the latest nightlies. E.g. "Airplane mode on/off" throws an error when executed via Tasker. Can anyone confirm?
[G2 Original Android Development] trongfif1592:
and what do you do to fix it?
[G2 Original Android Development] ethereal_mist:
I didn't even know if it worked at all till I read your comment and found out it needs to be tapped 5 times.

Nothing. I don't know how to fix it. I posted thinking somebody would know how to fix it.
[G2 Original Android Development] Treboeth:
For those having problems with DT2W. If you use Nova Launcher and an app called Screen Off and Lock this gives you the working feature.

Works perfectly on my D802.

It adds a couple of mb to your usage,but I love DT2W.
[G2 Original Android Development] madhuranand007:
Installing first time CM on my G2, Running super smoothly. BRAVO

Facing 1 problem, I love Xposed a lot but when installing it give me bootloop. :(

Any one please send me the link of files to make it working plz
[G2 Original Android Development] bigzdog:
Thanks, this is great. At least I know I know it is a known issue with all Android. I had a terrible time finding anyone else with this problem. I guess my search terms were not quite right.
[G2 Original Android Development] chewdaniel:
if i remember correctly current version of xposed won't work with the current build of r24. sorry but u will not get any xposed-related support here
[G2 Original Android Development] jbmatson:
The official xposed v75 and up work fine with CM12.1. I'm running the xposed-v75-sdk22-arm.zip version without any bootloops.

You can find it here: http://xdaforums.com/showthread.php?t=3034811