yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Q&A, Help & Troubleshooting] elsrss:
No solution still but from discussions I had I found out also that some galaxy s3 users have the same problem. Also, it was suggested to me to install an app called "Wake lock" to prevent the phone or just its cpu going to sleep mode, as a temporary solution until we hear something from LG or Google. Just installed the app, will update if I see a difference
[Nexus 4 Q&A, Help & Troubleshooting] MildewMan:
I can now conclude that WiFi has nothing to do with the random shutdowns. I had my first one in a while last night, and WiFi was off.
[Nexus 4 Q&A, Help & Troubleshooting] jlear3:
What software are you on? (rom/kernel/bootloader/etc)

Let's try to get everyone's stats so we can narrow this down.

I haven't had it happen a single time since turning off wifi optimization. I've been on francos kernel only changing to new nightlies, 4.2.2 bootloader, and cm10 linao+bionic
[Nexus 4 Q&A, Help & Troubleshooting] MildewMan:
I'm on just the 4.2.2 OTA stock rom, stock kernel, stock bootloader. Only thing I've done is root my device and install CWM.
[Nexus 4 Q&A, Help & Troubleshooting] jlear3:
Do you have wifi optimization off? Or just turned off wifi?
[Nexus 4 Q&A, Help & Troubleshooting] MildewMan:
Well my original theory was that it had something to do with WiFi optimization (page 2 of this thread), so I turned it off. That theory didn't last very long because my phone shut off within a day or two.

My next thought was that it was WiFi period, so I have been turning it off before sleeping for the past week. Last night was my first shutoff since turning it off.

Here's the weird part about it. I think my phone has shut down 5 times since I've had it. 3/5 times, it shut down on a Saturday night/Sunday morning. In fact the first two times were on Saturday nights one week apart. I don't really know what to say the problem is anymore. I think I might just call Google and get a replacement.
[Nexus 4 Q&A, Help & Troubleshooting] elsrss:
I tried having WiFi optimization off but still got a shut down. Everything is stock, very few apps installed.

Things I have tried with no success:

Factory reset, resetting webmail account (some said it was causing fast battery drains), WiFi optimization off, NFC off, and a recovery procedure Google suggested (don't remember the details)

Haven't tried to disable location services yet, some say that worked for them.

One more common element in the power-offs for my wife's phone is that they occur when the phone runs on battery for at least a day and half, while still indicating 30-50% battery remaining (she is a light user), which makes me think that the way that the battery consumption is calculated when the phone is idle, is problematic.
[Nexus 4 Q&A, Help & Troubleshooting] edenist:
Just had the power off occur on me again last night. Second time in 2 weeks and under the same circumstances [battery on charge, about 30% full when I went to sleep. Woke up, phone off, battery full].

There still is next to nothing we can point to in this thread that can narrow any of this down besides speculation [not saying this in a judgemental way, it's just pretty much all we have at the moment as the problem is so random].

One thing has popped into my mind though when thinking about this this morning....

The phones were swapped over with his own, yet his Dad was still experiencing the shutdowns. The only thing that was swapped between these two phones then was the sim card....

This very well could be a Radio issue, or something to do with certain cell network environments.

I have been having issues with my network carrier since I moved into a new place in the city. Basically, calls keep dropping out constantly even though my wife and I have full signal on our phones. Discussing with the network engineers, we believe it is to do with the fact that we are living in an appartment on a high numbered floor with very few tall buildings close by. Our phones can see many more cell towers than when on the ground [all with good signal], so it is undergoing constant negotiation for handover.

Could this issue be related to network settings or some sort of crash/bug in relation to network/cell tower protocols and handovers?

What sort of network conditions are others experiencing? And are crashes isolated to certain locations only?
[Nexus 4 Q&A, Help & Troubleshooting] jhock:
I'm on stock and unrooted, was actually going to root this weekend when my random shut downs began. Glad it happened first so that I didn't think that rooting/flashing was the cause.
[Nexus 4 Q&A, Help & Troubleshooting] jlear3:
Well if we're bringing in cell providers I'm att straight talk, have poor service at home, .27 radio, 4.2.2 bootloader
[Nexus 4 Q&A, Help & Troubleshooting] zach_yu:
I have similar issues.

I've used my phone for 1.5 month, the automatic-shudown-issue just happended recently. I didn't make any change to ROM or rooted. used to upgrade to 4.2.2 but it was 1 month earlier. I thought maybe its may be related to some apps, but I can not remember which app I recently installed.

I used to drop it on the floor and cracked the glass back 2 weeks ago. but it seems alright after that.

annoying!

---------- Post added at 04:02 AM ---------- Previous post was at 03:54 AM ----------

I have similar issues.

I've used my phone for 1.5 month, the automatic-shudown-issue just happended recently. I didn't make any change to ROM or rooted. used to upgrade to 4.2.2 but it was 1 month earlier. I thought maybe its may be related to some apps, but I can not remember which app I recently installed.

I used to drop it on the floor and cracked the glass back 2 weeks ago. but it seems alright after that.

annoying!
[Nexus 4 Q&A, Help & Troubleshooting] reidar.ostrem:
Nothing that I've done has helped on this matter, this only started after updating to 4.2.2 and I'm also starting to think that it might be the radio.

I will be flashing the 4.2.1 factory images again to see if the problem will go away, if so i'll wait until 4.2.3 is released :)
[Nexus 4 Q&A, Help & Troubleshooting] MildewMan:
This problem has been happening to N7 users for quite a while as well. There has to be something built in to Android that is causing this.

http://xdaforums.com/showthread.php?t=1783173
[Nexus 4 Q&A, Help & Troubleshooting] MildewMan:
Ok I've turned on daydream mode (Settings -> Display) when charging. I'm hoping that if the screen stays active, then the phone can't go into what I like to call deep freeze mode ("shutdown" at night).

I will update all about my results.
[Nexus 4 Q&A, Help & Troubleshooting] daviwie:
This issue popped up for me for the first time yesterday afternoon and again this evening. Let me describe it and see who else had a similar experience:

Went to pick up my phone and discovered that it was off. Tried to turn it back on and it wouldn't. Yesterday I held both volume rockers down with the power button and then it turned on (I connected it to AC before attempting this). Today, I simply held the bottom volume rocker down and the power key (not on AC) and the phone turned back on without any issues at all.

Whenever I am home I always leave the phone on wifi and whenever I go out the door I'm either on 2G or 3G. The two times it happened, I've been on wifi but ever since I've had my Nexus 4 since the start of January this problem has never occurred. I've also had 4.2.2 for a while and it never occurred then, either.

If it helps, I'm connected to Drei (Three) in Austria.
[Nexus 4 Q&A, Help & Troubleshooting] :
I know 4 people (including me) with a Nexus 4. We all have 3 Hutchinson (Austria) as provider, yet only my dad has this random reboots, crashes and shutdowns. It happened with the old and the new radio update and with the old and new sim.
[Nexus 4 Q&A, Help & Troubleshooting] elsrss:
So far using the ''wake lock'' app on my wife's Nexus 4 appears to have worked as a temporary solution. She had one shutdown per power cycle at least, now she is on her third power cycle with no shutdown. I will update if this behaviour lasts (or not) in the coming days
[Nexus 4 Q&A, Help & Troubleshooting] edenist:
Another shutdown last night.

A few things to note. It only happens at night, and it only happens at home.

I've stated my previous theory that it may be network related.

As for what is actually happening on the phone, I suspect that the phone may not actually be shutting down, but rather just becoming totally unresponsive and crashing.

Everyone has been talking about the phone being difficult to power on again. I know myself I have to hold down the power button for a while. In other words, this is what you have to do when the phone freezes when in use and you have to hard power off.

Here, the phone is crashing, we have to hard power it off (hold power for 10 seconds), then power it on as normal.

Because the screen is off when. It crashes we have assumed the phone has "shutdown". I'm now of the opinion it has simply just crashed/locked up (which does happen from time to time when I'm using the phone).
[Nexus 4 Q&A, Help & Troubleshooting] aldo90:
I just ordered A nexus 4 from google and I am very sad reading this post, because I had a LG Nitro HD and has very similar problems like the nexus 4, you can check the problems in this thread:

http://xdaforums.com/showthread.php?t=2021611&highlight=bsod
[Nexus 4 Q&A, Help & Troubleshooting] FormerSlacker:
You guys should put the phone in airplane mode at night to see if it's a radio issue.
[Nexus 4 Q&A, Help & Troubleshooting] daviwie:
This actually seems to be a valid theory, because each time I have had this "crash" was at home on wifi. It's only done it twice since I've owned the phone. I'm home all day with wifi on, so I'm curious as to whether or not it will happen again. Will report back with details.
[Nexus 4 Q&A, Help & Troubleshooting] reobedr:
I had the same problem from the moment I got the phone (and immediately installed CM10.1).

For me the unchecking of the Wi-Fi optimisation in the advanced Wi-Fi settings greatly reduced (if not solved) the issue. Didn't have a shutdown/crash in 70 hrs. Also before unchecking one night I had an app constantly refreshing on Wi-Fi during the night, and the phone was fine the next morning. Definitely seems Wi-Fi related...
[Nexus 4 Q&A, Help & Troubleshooting] undergrad:
I had the exact same issue as the thread creator. I called up google and they sent me a replacement phone.

I noticed that the phone also had some issues holding onto a network connection. My advice would be to call up google and have them ship you out a new phone. I was pleasantly surprised by how easily and quickly the process was.
[Nexus 4 Q&A, Help & Troubleshooting] algus:
Sometimes, but 'sleep of death' happens regardless once in a couple of days or even daily. My Nexus hardware revision version is 11 as seen in bootloader.

I just got HTC One SV while Nexus will go to LG service center. Will post later if Nexus gets fixed or not. Unfortunately in my country Nexus is sold by LG (for $600 by the way - without 'sponsorship' from Google), so I can not call Google and get a replacement.

And I attach a screenshot of battery usage during 'sleep of death' which I promised in one of previous posts. Sim card is already pulled out that's why no cellular signal. See that 90 degree drop? It represents a few hours of 'sleep of death'. Battery drain during such 'sleep' seems huge. Or it is a battery indicator/hardware bug, one can only guess.
[Nexus 4 Q&A, Help & Troubleshooting] algus:
I have both Nexus and S3 running with similar settings in same environment. S3 is fine and Nexus randomly goes into 'sleep of death'. Maybe I'm just lucky with S3 and unlucky with Nexus though.
[Nexus 4 Q&A, Help & Troubleshooting] xda6969:
It happened to me a second time today. The first time was 3, maybe 4 weeks ago. I was streaming TuneIn Radio the night before and I could not power the phone on the next morning. I had WiFi on while streaming. Since then, I have not used the app and I keep WiFi off unless I am updating large apps. Today, I turned WiFi on to update a couple apps. I had about 38% battery left. I forgot to turn it back off and about 30 minutes later, I was unable to turn the phone back on. It may have been on but in this "locked state." Anyways, I had to hold the power button down for 10 seconds to get it back on.

I think this issue may very well be WiFi related. I'm not going to RMA yet if Google is not aware of the issue. I might get one that is worse or a refurbished phone. Hopefully we will hear that they discovered an issue regarding this. Until then, I have to remember to turn WiFi off after updating apps. If it happens when WiFi is not on, then our theory is incorrect.
[Nexus 4 Q&A, Help & Troubleshooting] elsrss:
The 'wake lock' app solution finally failed too, unfortunately. My wife's phone had another shutdown with the usual jump in the battery capacity as shown few posts above. What was new is that for 3 hours after that event, the battery level stayed flat, no change at all, despite extensive use. The phone was sent to LG, will know in 2-3 weeks. When I brought the phone back, another Nexus 4 was being returned for the same reason...
[Nexus 4 Q&A, Help & Troubleshooting] alifraser:
I have been having this occur since day 1, although in my case the phone has always re-started itself. I'm not rooted. After it happened a few times (when I was using 3G - - wifi was turned off), I restored factory settings and didn't install any 3rd party apps. It still happened. I slowly added apps and it has still been happening. It happens when I'm in chrome, in settings, in twitter. I have managed to have 21hrs up time without any crashes, however.

Note: I've done nothing to wifi settings but I do have all location services off.

My 15 days is up a week from now, so I can return to G if needs be. Question is, is this a soft or hardware issue? I'd love to root and get AOKP on but I want to know if it's hardware first...
[Nexus 4 Q&A, Help & Troubleshooting] Fusion.Coil:
Throwing my hat in the ring here. Got my N4 early February and noticed this issue two weeks after. I stripped off the three apps I had (did not reload any of them) with a factory reset and had the same thing occur about 4 days later. This did happen once before the OTA so it was not specific to the JB version.

Now it happens randomly, sometimes not for days, sometimes once a day for 2-3 days, then not again for a few more days. It has happened after I have charged the phone, or when I get home at night after being out all day. Happens sitting on my desk or when I drop it in my pocket after checking the time. Leave the screen on and have it auto-turn off or hit the power button to shut the screen down. Nothing I can reproduce. Really hard to pinpoint when this occurs so I have no idea what to even say to Google support to describe this.

At first I suspected it had to do with updating apps from the Play store since every time I'd 'revive' my phone (holding the power button for +5 seconds) I would have an play store icon telling me something updated or had an update waiting. Set those to autoupdate but still having this happen. I also have noticed that when this happens, the LED msg indicator light still functions, but the buttons and screen do not respond without restarting the phone. But I have had it update automatically and prompt me to update and it has woken up just fine. It is not overheated as it sits on my desk when I am not walking around or on the bus and it is in the 20-30s Fahrenheit since I got the phone. Happened with and without the bumper on it. I am suspecting the proximity sensor now, but don't think that would disable the power button from waking it up.

I am at a loss. I may submit an email in the coming days about it to Google Support and see if they have any more/new info on this situation.
[Nexus 4 Q&A, Help & Troubleshooting] xda6969:
Different issue. Yours is rebooting and I think there may be a separate thread for random reboots.
[Nexus 4 Q&A, Help & Troubleshooting] fallout0:
I have the same issue and it sucks. I'm always worried the phone is dead and I won't be able to receive any calls. My old LG Optimus 2X has the same issue and it took them a year to fix. Beginning to think this is just what LG does. Make **** everything.
[Nexus 4 Q&A, Help & Troubleshooting] xda6969:
How did they acknowledge and describe the issue? How did they finally fix it?
[Nexus 4 Q&A, Help & Troubleshooting] elsrss:
Well, regarding wifi and network provider issues, my wife and I use the same wireless network at home and work, we have the same network provider and bought Nexus 4 from the same place, same day. We both have wifi optimization off and same screensaver settings, we both installed a webmail account in our phones and the same basic applications (what's up, Skype, etc.). Only her phones (both the initial and the replacement) had the auto shut down problem. I wonder what would happen if I recover her backup on my perfectly working Nexus 4. That may be a definite test of whether it's a software or hw issue but I am not sure if to risk it.
[Nexus 4 Q&A, Help & Troubleshooting] zeon.ua:
Nexus 4 shutting down randomly

Hello everybody,

I was able to recording video with the shutdown issue.

Can somebody look into logcat and video on youtube?

I use 4.2.2 stock firmware with no modifications, it's even wasn't rooted.

I was trying to start the phone with no sim cart inserted, with cleaned all data (doesn't matter, issue still exist)

Youtube video ID is uhS8gOKhi-4

Pastebin logcat file url in video description.
[Nexus 4 Q&A, Help & Troubleshooting] daviwie:
OK, mine died last night while it was charging.

I picked up my phone, pressed the button to turn the screen on (usually I always turn it off overnight, but not tonight) and it wouldn't come on. The status light blinking away just fine, but I wasn't getting any screen at all. Again had to force restart by holding down the lower volume rocker and the power button.

I'm really afraid to bring my device back to where I bought it and exchange for a new one and still have the same problem.

EDIT:

This is definitely not a shutdown issue, though, but rather a crashing issue. My status light was on, but the phone just cannot recover from this crashed state or whatever it is. No idea why this is happening, but for my it's always happened on wifi and over extended periods of uptime (more than 24 hours).
[Nexus 4 Q&A, Help & Troubleshooting] kiwiBeans:
I thought I'd just chime in with my experience - maybe a pattern will emerge (I've read this whole thread though, and it still seems too inconsistent).

I'm unlocked, rooted, running stock 4.2.1 (don't want to update, have to deal with that annoying nag notification in the meantime). No special kernel or anything. I don't recall ever having this problem until this past weekend. I returned home from a trip abroad and was in Canada, where I have no cell reception (I'm from the states). So my phone had been on airplane mode, but I was connected to the hotel's wifi. I set my alarm, and went to bed. I woke up the next morning wondering why my alarm didn't go off. Same thing as others have stated: I picked up the phone and tried to turn the screen on with no response. It took a minute of various lengths of power button depression before the phone began to boot up from being off. Again, this is the first time I've ever experienced this. At home, I almost always have wifi on when I go to sleep, though sometimes it is off for whatever reason. Along with the usual random reboots, and lately the various unresponsiveness when waking from sleep and trying to enter my PIN to unlock, followed by a reboot, all of this is very disconcerting.
[Nexus 4 Q&A, Help & Troubleshooting] The Chadd:
Started after 4.2.2

My Nexus 4 (not rooted) was working great until I installed 4.2.2. That was when I started seeing random reboots (separate thread). As of this week, *instead* of the random reboots, I get the sleep of death everyone is describing on this thread. I'm wondering if they are actually related. Strange strange creature.
[Nexus 4 Q&A, Help & Troubleshooting] algus:
So I've been to LG service center twice so far. Last week my Nexus was reflashed. It did not help. Sleeps of death continued. Today it got its motherboard replaced. I'll see how it goes this time and report back.

Overall the service is surprisingly nice, fast (no queues) and professional at my place.

My phones' old motherboard will get its internal logs (privacy anyone?) inspected to help lg engineers find whats wrong.

Edit: I'd like to add that new motherboard hardware revision number is 10. The one which was initially in the phone had revision 11.
[Nexus 4 Q&A, Help & Troubleshooting] algus:
I'd like to add that new motherboard hardware revision number is 10. The one which was initially in the phone had revision 11.
[Nexus 4 Q&A, Help & Troubleshooting] Fusion.Coil:
Has anyone fully discharged their battery? I am trying this now - used the battery up this weekend to the point the phone would no longer turn on. Then plugged in and charged to full. Fingers crossed in the hopes that somehow the phone was erroneously shutting down because it was misreading the battery level. Long shot, but at this point, the only thing left is to call Google and ask them about it.
[Nexus 4 Q&A, Help & Troubleshooting] toturi:
n4 shutdowns

I've had the phone for about 2 weeks; even after the 4.2.2 OTA I've had the phone go into sleep of death at least 4 times and have had it turn itself off while charging twice.

Has anyone had better experience after switching to a custom kernel ?
[Nexus 4 Q&A, Help & Troubleshooting] sincro:
I've had my phone for a month now. During the first two weeks it shut down 6 times, always at night which is a pain as I use the alarm. I have since then been using airplane mode at night and have had no further problems until yesterday.

Yesterday the phone shut down/locked up during the day... The interesting thing is that I know within a couple of minutes as to when it failed. I checked my phone as I arrived home at 13:30, it was okay. Two things happen in the following couple of minutes, the phone would have switch over to wifi as I walked into the house and a text was sent to both my wifes phone and mine from my son asking that one of us collects him from a mates house. I didn't see the text (no notification) until a couple of hours later when I noticed the phone had shut down. Luckily the wife was on the way out as I came in.

I got the phone back on and the text appeared and showed the correct time it was sent which was 13:32.

For me the problem seems to be radio related. As mentioned the phone is okay when in airplane mode.

My phone is completely standard (301K)
[Nexus 4 Q&A, Help & Troubleshooting] MildewMan:
Thought I'd update. I have not had a random shutdown since turning on daydream mode when charging (of course last time I updated on something it shut down that night).

Just make sure that you let your screen turn off on its own when you put it down to activate DD mode. I don't know how bright the screen is because I turn it over at night, but the background is almost pure black, so it's probably not bright.
[Nexus 4 Q&A, Help & Troubleshooting] Fusion.Coil:
Has anyone chatted with the folks at Google (if you got your phone from the Play Store) about this issue yet? Is this a returnable situation (within the 1 year warranty)?
[Nexus 4 Q&A, Help & Troubleshooting] varshil:
Yes you can opt for a rma
[Nexus 4 Q&A, Help & Troubleshooting] VidMan:
I have had this issue since upgrading to 4.2.2 BUT it only occurs for me during or after I charge the phone with the AC adapter. Since using the wireless charging orb, I have not had this problem return.
[Nexus 4 Q&A, Help & Troubleshooting] algus:
No sleeps of death for a week. Replacing motherboard fixed this issue for me. Though it was kind of a hardware downgrade (rev 11 to rev 10), I don't see any difference other than there are no more sleeps of death.
[Nexus 4 Q&A, Help & Troubleshooting] elsrss:
Got back the phone from LG in Germany. Apparently they said they found a software error and they fixed it through an update. I am not sure how true this is as the problematic phone had the latest android version.... Let's wait and see