Skip to content
How to Fix Overnight Battery Drain During Background Indexing on iPhone 16: Complete Diagnostic ManualMappleCare Community ↗

How to Fix Overnight Battery Drain During Background Indexing on iPhone 16: Complete Diagnostic Manual

By • • 5 min read

1. Issue Overview & Symptoms on iPhone 16

On iPhone 16 (A18 Bionic, iOS 16–18.2), the overnight battery drain manifests as a 30–50% state-of-charge (SoC) loss over a 6–8 hour sleep window while the device is on Wi‑Fi, connected to power‑nap‑eligible networks, and ostensibly idle. Users report the Battery Usage screen (Settings ▸ Battery) showing DuetActivitySchedulerDaemon (dasd) and DuetHeuristic-BG consuming 40–60% of background activity time, with CoreSpotlight and Metadata indexing cycles persisting despite Background App Refresh being disabled. The device remains warm to the touch (skin temperature 38–42 °C) and the PMIC (Power Management IC) logs reveal repeated PMU_SLEEP_ABORT events triggered by dasd wake‑ups. In the sysdiagnose archive, powerlog shows SleepWakeUUID transitions every 12–18 minutes, each accompanied by a kIOReturnSuccess on the AppleSMC PMU rail but a subsequent kIOReturnTimeout on the NAND controller as the indexing journal flushes. No kernel panic banner appears; instead, the UnifiedLogging subsystem emits dasd: [ERROR] Indexing loop detected, retrying… at default log level, which is suppressed from user‑visible consoles. The BatteryHealth daemon (batteryd) records a CycleCount increment of 0.15 per night, accelerating chemical aging. This behavior is specific to the iPhone 16’s 3 nm A18 E‑cores which remain powered during dasd indexing due to an incorrect IdleExitLatency hint in the IOPlatformPlugin property list.

2. Subsystem Architecture & Failure Mechanics

The failure originates in the interaction between the Duet Activity Scheduler (DAS) and the CoreSpotlight/Metadata indexing pipeline. On iPhone 16, the dasd daemon (PID 1‑child of launchd) evaluates DuetHeuristic policies stored in /var/db/duet/heuristics.plist. These policies reference BatteryLevel, ThermalState, and NetworkReachability keys. A regression in iOS 17.4 (persisting through 18.2) causes the DuetHeuristic-BG policy to misclassify the device as ThermalState == Nominal even when the PMIC reports DieTemperature > 40 °C via the AppleSMC SMC_TC0D sensor. Consequently, dasd schedules com.apple.metadata.mds.index and com.apple.corespotlight.index tasks with kDuetPriorityUserInitiated instead of kDuetPriorityBackground.

When the indexing tasks launch, they acquire a dispatch_source_t timer on the E‑core cluster (CPU 0‑3) via pthread_workqueue_addthreads. The mds (Metadata Server) and corespotlightd processes open APFS snapshot handles on the Data volume (/dev/disk1s1) and iterate the B‑tree catalog nodes using fsctl(FSCTL_GET_DIR_ENTRY). Each iteration forces the NAND controller (Apple S8000 controller) to exit DeepPowerDown state, drawing ~350 mA on the VCC_NAND rail. The PMIC (Apple PMU‑G13) cannot re‑enter STANDBY because the E‑cores hold a PMU_POWER_GATE lock via the IOPlatformPlugin IdleExitLatency value of 0 µs (should be 150 µs). This creates a livelock: dasd wakes the SoC every 12 min, indexing runs for 3–5 min, PMIC aborts sleep, battery drains.

The UnifiedLogging subsystem captures this as dasd: [ERROR] Indexing loop detected, retrying… but the log level is default, hidden from Console.app unless log config --mode "level:debug" is set. The powerlog binary format (parsed via log show --style syslog --predicate 'subsystem == "com.apple.powermanagement"') reveals SleepWakeUUID churn. No kernel.panic occurs because the watchdog timer is satisfied by the periodic wake‑ups. The root cause is a malformed IOPlatformPlugin dictionary in /System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/ACPI_SMC_PlatformPlugin.kext/Contents/Resources/ for iPhone17,2 (iPhone 16) where IdleExitLatency is missing for E‑core cluster.

3. Pre-Flight Diagnostic Checklist

  • Verify iOS version: Settings ▸ General ▸ About ▸ Software Version (must be 16.0–18.2).
  • Confirm overnight drain >25% with device on Wi‑Fi, Low Power Mode off, Background App Refresh off.
  • Check Battery ▸ Battery Usage ▸ Last 24 Hours for DuetActivitySchedulerDaemon / dasd >30% background time.
  • Ensure no third‑party MDM profile forces com.apple.managedconfiguration.mdm indexing policies.
  • Validate Settings ▸ Privacy & Security ▸ Analytics & Improvements ▸ Share iPhone Analytics is ON (required for sysdiagnose upload).
  • Connect to macOS (Ventura 13.5+ / Sonoma 14.2+) with Xcode 15.2+ and libimobiledevice 1.3.0+ installed.
  • Backup via Finder (encrypted) before any remediation.

4. Terminal & Diagnostic Commands

Run the following on the paired macOS host with the iPhone 16 in Trust This Computer state. Use idevice_id -l to get UDID.

# 1. Capture a full sysdiagnose (requires device passcode unlock)
idevicesyslog -u  -o ~/sysdiagnose_$(date +%Y%m%d_%H%M%S).log &
sleep 5
idevicedebug -u  run sysdiagnose
# Wait 2–3 minutes, then pull the archive
idevicecrashreport -u  -o ~/sysdiagnose_archives/
# 2. Extract powerlog entries for dasd wake-ups
log show --style syslog --predicate 'subsystem == "com.apple.powermanagement" AND (eventMessage CONTAINS "dasd" OR eventMessage CONTAINS "SleepWakeUUID")' --last 24h --source ~/sysdiagnose_archives/.sysdiagnose_archive > ~/dasd_powerlog.txt
# 3. Inspect Duet heuristic plist on device (requires AFC2 or SSH via checkra1n/palera1n on 16.0–16.7.2; not possible on 17+ without exploit)
# For iOS 16.x with checkra1n:
ssh root@ "cat /var/db/duet/heuristics.plist" > ~/heuristics.plist
plutil -p ~/heuristics.plist | grep -A2 -B2 "DuetHeuristic-BG"
# 4. Query PMIC thermal sensors via IOKit (macOS host with iPhone in DFU/Recovery not needed; use ioreg over USB)
ioreg -r -c AppleSMC -k TC0D -k TC1D -k TH0P -k TH1P
# 5. Verify IdleExitLatency property for E-core cluster (requires kextstat on macOS with AppleInternal SDK; not user-accessible).
# Alternative: check if Apple has released a supplemental update addressing the property.
softwareupdate --list --include-config-data
# 6. Monitor real-time dasd scheduling via os_log (requires macOS Console.app or log stream)
log stream --predicate 'subsystem == "com.apple.duet" AND category == "scheduling"' --style compact

5. Step-by-Step Remediation Protocols

Protocol A – Non‑Destructive Configuration Mitigation (iOS 16–18.2)

  1. Disable Background App Refresh globally: Settings ▸ General ▸ Background App Refresh ▸ Off.
  2. Disable Siri & Search suggestions for all apps: Settings ▸ Siri & Search ▸ toggle off Show in App Library & Spotlight, Show When Sharing, Show When Listening.
  3. Turn off Location Services ▸ System Services ▸ Significant Locations (reduces dasd heuristic triggers).
  4. Enable Low Power Mode permanently: Settings ▸ Battery ▸ Low Power Mode ▸ On (forces dasd to use kDuetPriorityBackground).
  5. Force a dasd heuristic reset: Settings ▸ General ▸ Transfer or Reset iPhone ▸ Reset ▸ Reset All Settings (preserves data, clears /var/db/duet/ caches).
  6. Reboot: Press & release Volume Up, press & release Volume Down, hold Side button until Apple logo appears (iPhone 16 hard reset).
  7. Observe overnight drain for 2 nights. If drain <5%, stop here.

Protocol B – Targeted Daemon Throttling via MobileConfig (Supervised Devices Only)

  1. On macOS, create a .mobileconfig payload using Apple Configurator 2 or profiles CLI:
cat > ~/ThrottleDasd.mobileconfig <<'EOF'




  PayloadContent
  
    
      PayloadType
      com.apple.duet.activity.scheduler
      PayloadVersion
      1
      PayloadIdentifier
      com.mapplecare.duet.throttle
      PayloadUUID
      $(uuidgen)
      PayloadDisplayName
      Duet Dasd Throttle
      DuetHeuristicOverrides
      
        DuetHeuristic-BG
        
          Priority
          2 
          AllowBattery
          
          RequireThermalNominal
          
        
      
    
  
  PayloadDescription
  Forces dasd background tasks to lowest priority and requires thermal nominal
  PayloadDisplayName
  Dasd Throttle Profile
  PayloadIdentifier
  com.mapplecare.profile.dasdthrottle
  PayloadOrganization
  MappleCare
  PayloadRemovalDisallowed
  
  PayloadType
  Configuration
  PayloadUUID
  $(uuidgen)
  PayloadVersion
  1


EOF
  1. Install via Apple Configurator 2 ▸ Devices ▸ ▸ Profiles ▸ + ▸ Select ThrottleDasd.mobileconfig.
  2. Reboot device (hard reset as above).
  3. Validate via log stream --predicate 'subsystem == "com.apple.duet"' that new tasks show priority=2.

Protocol C – Deep System Recovery (Clean Restore + DFU Firmware Re‑provision)

  1. Ensure macOS has latest iTunes / Finder support (macOS 14.2+).
  2. Download the exact iPhone17,2_18.2_22C152_Restore.ipsw from https://ipsw.me (verify SHA‑256).
  3. Enter DFU Mode on iPhone 16:
    1. Connect USB‑C to Mac.
    2. Press & release Volume Up.
    3. Press & release Volume Down.
    4. Hold Side button 10 s (screen stays black).
    5. While holding Side, press & hold Volume Down 5 s.
    6. Release Side, keep holding Volume Down 10 s until Finder shows “iPhone in recovery mode”.
  4. In Finder, hold Option (macOS) / Shift (Windows) and click Restore iPhone. Select the downloaded IPSW.
  5. After restore, choose Set Up as New iPhone (do NOT restore backup yet).
  6. Run overnight test (Protocol A steps 1–4) for 1 night. If drain resolved, restore encrypted backup via Finder.
  7. If drain persists post‑clean‑restore, escalate to Apple Hardware Diagnostics (AST2) for PM
Still running into this issue on your iPhone or Mac?

Share your OS version, device model, and exact error code in our independent peer Q&A rooms.

Ask in Community Forum →