Every phone has its issues and quirks, and the Nexus 5 is no exception to this rule. One of the most common troubleshooting questions asked by its owners is "Why does my Nexus 5 keep shutting off or restarting?" where the device suddenly decides to reboot or power off randomly on its own.
There are multiple potential causes to this issue, so there are multiple fixes—but we've got all of the common troubleshooting tips and solutions covered below. And these tips apply to the Nexus 5X, Nexus 6, and Nexus 6P as well.
There's a fairly widespread issue with the power button on the Nexus 5. As the phones are starting to get a little older these days, the internal switch that sits directly beneath your power button can become stuck, which leads to the phone "thinking" someone is holding the power button down, and in turn, causes the Nexus 5 to continuously reboot. If this is the root of your problem, there are four things you can do.
There's a slight chance that your issue may be caused by something really simple such as dirt, grime, or even pocket lint jammed in-between the power button and frame. If that looks like your issue, check out our full guide on fixing stuck buttons for some cleaning tips.
Yes, that's right—go ahead and give the power button a good thump. It probably won't work, but there's an outside chance you might jostle your power button back into working order. It'd be a good idea to return to the previous tip and clean your power button area in case you dislodged some debris.
Try freezing your phone—literally. Pop your Nexus into the freezer for about 15 minutes, but be careful not to leave it in too long, since condensation may build up on the inside of your display. But if you're lucky, the cold air will cause the materials your power button is made out of to contract, which will then free it up.
The last option is nowhere near as convenient as the other three, but it's the most logical. Take your Nexus 5 into the local cell phone repair shop and let them know about your issue. Chances are, the technician will already be aware of this problem and can fix it rather easily, so it shouldn't be too expensive.
If your random reboots are not being caused by a hardware issue, that really only leaves one cause—software. And when it comes to software, the most common reason that your phone might be rebooting is because of a bug in your kernel.
If you've installed a custom kernel, this is likely the root of your problem. The independent developers that create custom kernels don't have a team of software engineers running quality control like Google does, so the best thing to do would be to reinstall the stock kernel. The stock kernel for the Nexus 5 can be extracted from the factory images package at this link, then flashed via fastboot.
Okay, so let's say you're not running a custom kernel and your power button is mechanically sound. That really only leaves one likely cause—a buggy custom ROM.
If you've installed a custom ROM, chances are you did it for a reason and would prefer not to go back to the stock firmware for your device. While reverting to stock is definitely an option using the factory images and fastboot, a second solution would be to look for an update to your custom ROM. Updating is simple—just flash the newer version on top of the existing installation in custom recovery—and there's a good chance that the update will fix your rebooting issue.
Keep Your Connection Secure Without a Monthly Bill. Get a lifetime subscription to VPN Unlimited for all your devices with a one-time purchase from the new Gadget Hacks Shop, and watch Hulu or Netflix without regional restrictions.