Claude Code identifies Apple Pencil as culprit in iPad battery drain
A user saved 130€ on a hardware repair by using an AI coding tool to diagnose a mysterious battery issue that turned out to be an external accessory.

The short version
- The user suspected a failing battery on an iPad Pro after noticing significant drain over three years.
- Claude Code was used to run system_profiler and idevicediagnostics to analyze the device's health.
- The AI identified predictable cycles of drain that pointed to an external hardware connection.
- Removing the magnetically attached Apple Pencil stopped the battery drain entirely.
Why it matters
This story highlights how LLMs can act as sophisticated troubleshooting partners for hardware issues. It demonstrates that AI can help users avoid unnecessary repair costs by identifying non-obvious software and hardware interactions.
A mysterious power drain
For a long time, a user noticed that their iPad Pro was experiencing significant battery drain. This issue began roughly three years ago, making it difficult for the user to rely on the device for productive tasks. They were frustrated because the battery would often be dead by the time they wanted to use it.
The user had a history of owning multiple iPads and understood the typical behavior of the hardware. They were used to the fact that the device could sit idle for days with only a few percent of battery life lost. The current drain was a major departure from this expected behavior, leading to concerns about the hardware's longevity.
Initially, the user suspected that the internal battery was simply reaching the end of its life. They considered selling the device with a battery notice or paying for a professional replacement. However, they wanted to confirm the root cause before committing to an expensive repair process.
Using AI for diagnostics
To investigate the problem, the user opened Claude Code in a terminal to perform a technical audit. They connected the iPad to a computer and instructed the AI to find out what was happening with the power consumption. The AI began by installing libimobiledevice using Homebrew, which is a package manager for macOS and Linux.
Claude Code then executed several specific commands to gather data, including system_profiler, ideviceinfo, and idevicediagnostics. These tools allow for a deeper look into the internal state of connected iOS and iPadOS devices. The user also provided screenshots of the battery drain settings page to give the AI more context.
The AI initially reported that the battery appeared healthy and that there was nothing obviously wrong with the system. To rule out software glitches, the user performed a full reset of the device, but the battery drain persisted. This led to a more rigorous testing phase to find hidden patterns in the power loss.
Identifying the culprit
After conducting an overnight drain test, the AI noticed that the battery was losing power in predictable cycles. Claude Code pushed back against the idea that a new battery would solve the problem, suggesting instead that the cause might be external. It then asked the user if they were using any accessories like cases, keyboards, or Apple Pencils.
The user confirmed that an Apple Pencil was always magnetically attached to the device. They then performed a follow-up test to see how the device behaved without the accessory. The results were immediate: the iPad stopped losing power when the Pencil was removed, revealing that the Pencil's battery was the actual problem.
It appeared that the Apple Pencil battery was dead and required a constant charge. Because it was always attached magnetically, the user had never suspected it was the source of the drain. The AI successfully identified that the accessory was drawing power rather than the iPad's internal hardware failing.
The value of AI troubleshooting
By using the AI to run these specific diagnostic commands, the user avoided spending 130€ on an unnecessary battery replacement. The process demonstrated how an LLM can navigate complex system tools to provide a technical diagnosis that a non-engineer might find difficult to perform alone. It turned a potential hardware failure into a simple accessory maintenance task.
The user noted that the AI was particularly helpful because it refused to accept the simplest answer. It insisted on looking deeper into the data rather than just agreeing that the battery was old. This persistence helped uncover the fact that the drain was tied to the external connection of the Pencil.
This experience highlights a new way for consumers to interact with technology. Instead of guessing why a device is malfunctioning, users can leverage AI to run system-level checks. This can lead to more accurate troubleshooting and significant savings on repairs for common hardware issues.
What to watch
- Whether more users will adopt AI-driven hardware diagnostics for home repairs.
- How Apple handles battery drain issues caused by accessories in future software updates.
Try it
If your mobile device has a mysterious battery drain, try using a terminal-based diagnostic tool to check for background processes or external accessory power draw.
Sources and links
Liked it? Say why
Add a line for other readers.
No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.
Listen to the AI Wire headlines
Listen to the AI WireListen to our daily AI shows every morning: on your commute, in the shower, wherever you are
Listen to the daily showsFirst reported by thinkingground.net · Read the original. Written by the SI Agent News Desk from the reporting above.Written with AI from the source above. Every number is checked against the source. Spot a mistake? Corrections.
