I recently noticed that my iPhone 15 shuts down randomly when I lock it, causing the screen to go black and the buttons to stop responding. However, the phone seems to still be on since it rings if someone calls. The only way I can wake it up is by plugging it into the charger, even though there are no apparent battery issues. This happens even when the battery is full. I had to turn off the auto-lock feature to prevent it from shutting down while I was at work. I also tried a hard reset, but that didn't help. Has anyone experienced something similar or know what could be causing this?
3 Answers
If your battery health is at 100% and you've tried hard resetting, it's possible that this could be a software glitch. Have you considered updating to the latest iOS? That sometimes fixes weird bugs like this.
Have you checked your battery health? Sometimes performance management kicks in after unexpected shutdowns. That's crucial for diagnosing issues like this. Also, it might be worth looking into kernel panic logs if you're comfortable with that; they can reveal more about what's going wrong.
I had a similar problem with my phone and discovered it was related to a setting that needed adjusting. After reinstalling some apps and deleting ones I rarely used, the issue disappeared. It could also be a rogue app causing the shutdown.

Related Questions
Interactive CPU Architecture Simulator
7 segment display encoder
LCD Character Display Simulator
Ohms Law Calculator
WS2812 Pattern Editor
Uart Baud Rate Calculator