How to Fix Face ID TrueDepth Camera Sensor Failure on iPhone 11
1. Issue Overview & Symptoms on iPhone 11
The iPhone 11 utilizes a proprietary 8-pin Lightning receptacle (not USB-C/Type-C) for charging and data transfer. A persistent false liquid ingress warning manifests as the “Liquid Detected in Lightning Connector” alert banner (UIAlertController style) appearing on the Lock Screen or within Settings > Battery > Battery Health & Charging, despite zero moisture exposure. The alert triggers the powerd daemon to negotiate a USB Power Delivery (PD) suspend via the ApplePMU driver, effectively disabling the kIOPMUChargerConnectionTypeLightning charging pathway. Users observe: (1) Inability to charge via wired Lightning cable (wireless Qi charging remains functional), (2) Accessory enumeration failure (CarPlay, wired headphones, LDAC DACs) due to the IOUSBHostInterface rejecting device descriptors, (3) Syslog entries in os_log subsystem com.apple.iokit.IOUSBHostFamily showing kIOUSBHostPortStatusChange with kIOUSBHostPortChangeOvercurrent or kIOUSBHostPortChangeConnect spam, (4) The thermald daemon reporting erroneous kThermalSensorTypeMoisture readings (virtual sensor ID 0x1A) exceeding the kThermalThresholdCritical trip point (typically 1.8V threshold on the ADC channel monitoring the ID pin impedance). This false positive effectively bricks wired I/O until the capacitive moisture sensor array (integrated into the Lightning flex assembly J1900) discharges or the AppleS5L8960xPMGR firmware resets its debounce state machine.
2. Subsystem Architecture & Failure Mechanics
The Lightning receptacle on iPhone 11 (APN 821-01800-A) interfaces directly with the PMIC (Power Management Integrated Circuit) — Apple/Dialog A2374 (PMU) via the CHG_IN, ID, D+, D-, GND, VBUS, ACC_DET, and MOIST_DET nets. The liquid detection mechanism is not a simple mechanical switch; it is an impedance spectroscopy circuit. The PMU applies a low-amplitude AC excitation signal (typically 1kHz–10kHz) across the MOIST_DET and GND pins (pins 4/5 on the Lightning spec) and measures the complex impedance (Z = R + jXc) via an internal 12-bit SAR ADC.
Under normal dry conditions, the impedance is >1MΩ (open circuit). Presence of conductive fluid (water + ions) creates a parallel resistive path, dropping impedance to <50kΩ. The ApplePMGR firmware (running on the PMU’s embedded Cortex-M3 core) implements a debounce state machine: STATE_DRY -> STATE_DEBOUNCE (3 consecutive samples < threshold) -> STATE_WET. In STATE_WET, the PMU asserts the GPIO_LIQUID_DET_N interrupt line to the Application Processor (A13 Bionic, T8030). The xnu kernel’s IOPMrootDomain receives this via the AppleARMPlatformExpert and triggers the IOServiceMatching for AppleUSBHostPort to set property kIOUSBHostPortPropertyLiquidDetected = true.
Failure Mechanics: False alarms stem from three primary vectors: (1) Corrosion/Contamination on Pin 4/5 (ID/Moisture pins): Oxidation (Cu2O) or organic residue (skin oils, pocket lint) lowers baseline impedance into the “grey zone” (100kΩ–500kΩ), causing thermal noise to trigger the debounce counter. (2) PMU Firmware Stuck State: A watchdog timeout during a previous genuine wet event leaves the PMU state machine latched in STATE_WET without clearing the MOIST_DET ADC calibration registers. (3) EMI/Ground Shift: Faulty third-party chargers injecting common-mode noise on VBUS/GND couples into the high-impedance MOIST_DET trace (antenna effect), mimicking the AC signature of liquid. The AppleSMC driver does not expose a user-space reset for this PMU state machine, necessitating a full PMU power cycle (Battery Disconnect) or DFU-mode firmware reload.
3. Pre-Flight Diagnostic Checklist
- Visual Inspection (10x Loupe): Inspect Lightning receptacle pins 4 (ID) and 5 (Moisture/GND sense). Look for green/white corrosion (copper carbonate), bent pins shorting to shield, or compacted debris bridging Pin 4/5 to Pin 1 (GND).
- Wireless Charge Verification: Place on Qi charger. Confirm
Battery Health & Chargingshows “Charging via Wireless”. If wired charging fails but wireless succeeds, isolates fault to Lightning PHY/PMU path, not battery gas gauge (BQ27546) or PMU buck converters. - Accessory Enumeration Test: Connect Apple Lightning-to-USB3 Camera Adapter + USB-A flash drive. Open
Files.app. Failure to mount confirmsIOUSBHoststack suspension. - Console.app / idevicesyslog: Filter subsystem
com.apple.iokit.IOUSBHostFamilyforLiquidDetectedorPortStatusChange. Count frequency of interrupts. - Hardware Revision Check: Settings > General > About > Model Number (tap to reveal ‘A’ number). iPhone 11 = A2111, A2221, A2223. Verify not a repaired unit with aftermarket Lightning flex (often missing Moisture Det calibration resistors).
- Backup Integrity: Verify recent iCloud or Finder (macOS 13+) encrypted backup exists before DFU/restore procedures.
4. Terminal & Diagnostic Commands
Requires macOS (Ventura 13.6+ / Sonoma 14.5+ / Sequoia 15+) with libimobiledevice suite installed via Homebrew (brew install libimobiledevice ideviceinstaller libirecovery). Device must be in Normal Mode (Booted to SpringBoard) or Recovery Mode for irecv commands.
# 1. Real-time USB Host Kernel Logging (macOS Host)
# Requires SIP disabled or 'log' command privacy approval (System Settings > Privacy & Security > Analytics & Improvements)
log stream --style syslog --predicate 'subsystem == "com.apple.iokit.IOUSBHostFamily" AND eventMessage CONTAINS "Liquid"' --info --debug
# 2. Extract PMU Thermal/Moisture Sensor Registers via ideviceinfo (Normal Mode)
ideviceinfo -k com.apple.iqmobile.thermal.sensors | grep -i moisture
# Expected Output (Dry): "MoistureSensorValue" = "0"; "MoistureThreshold" = "1800" (mV ADC code)
# 3. Trigger sysdiagnose on Device (Hardware Buttons: Vol Up, Vol Down, Hold Side Button 10s+ until vibrate)
# Retrieve via Finder/Configurator 2 or:
idevicecrashreport list
idevicecrashreport copy ~/Desktop/sysdiagnose_liquid.tar.gz
# 4. Check PMU Firmware Version & Boot Args (Recovery Mode required)
irecv -q
# Look for: "PMU FW: 2.3.0" (Example). Compare against IPSW BuildManifest.plist for current iOS version.
# 5. Low-Level USB Device Descriptor Dump (Normal Mode) - Verify Port Capability Flags
lsusb -v -d 05ac:12a8 2>/dev/null | grep -A 20 "bDeviceClass\|bMaxPacketSize\|wMaxPacketSize\|bmAttributes"
# Note: 12a8 is generic iPhone 11 PID in Normal Mode. Check bmAttributes Bit 7 (Self Powered) == 0 (Bus Powered expected).
# 6. Force PMU Cold Reset via IPSW Restore (DFU Mode) - NUCLEAR OPTION
# Download correct IPSW for iPhone 11 (iPhone12,1) for target iOS (e.g. 18.2)
# ./futurerestore -t -s -b -p -m --no-baseband --latest-sep --latest-baseband
# WARNING: Requires valid SHSH2 blobs (APTicket) for non-current signing window. Use standard Finder Restore if on latest signed iOS.
5. Step-by-Step Remediation Protocols
Protocol Alpha: Non-Invasive Electrical Decontamination & State Machine Reset (Success Rate: ~65% for Contamination)
- Power Off: Settings > General > Shut Down. Wait 30s for PMU rails (BUCK0-BUCK7, LDO0-LDO15) to fully discharge.
- Isopropyl Alcohol Flush (99% IPA): Using a precision syringe (0.5mm needle), inject 0.2mL 99% IPA directly into the Lightning receptacle. Target the center channel (Pins 4/5). Do not use compressed air (forces debris deeper).
- Mechanical Agitation: Insert/remove a known-good Apple Lightning cable (MFi certified) rapidly 15-20 times. This physically wipes the gold-plated contacts (Pin 4/5) against the plug blades, breaking oxide layers.
- Evaporation Dwell: Leave device port-down in a warm (35°C/95°F), low-humidity (<20% RH) environment for 45 minutes. Allow IPA to fully evaporate from the
MOIST_DETtrace capacitance. - Hard Reset (PMU Power-On-Reset): Press Volume Up, Release. Press Volume Down, Release. Press and Hold Side Button. Continue holding past the "Slide to Power Off" slider until screen goes black, then Apple Logo appears (~20-30s total hold). This triggers
PMU_RESET_Nassertion, clearing theApplePMGRmoisture state machine RAM. - Verification: Boot to Lock Screen. Connect Lightning cable. Observe for "Liquid Detected" banner. Check
Settings > Battery > Battery Health & Chargingfor "Liquid Detected" warning text.
Protocol Beta: Software Stack Reset & PMU Calibration Refresh (Success Rate: ~25% for Firmware Latch)
- Backup: Finder (macOS) > Device > "Back up all data to this Mac" > Encrypt Backup > Back Up Now.
- Erase All Content and Settings: Settings > General > Transfer or Reset iPhone > Erase All Content and Settings. This wipes
/var/root/Library/Lockdownpairing records and/var/mobile/Library/Preferencesbut does not touch PMU NVRAM or Firmware. - Setup as New: Do NOT restore backup yet. Test Lightning port with cable immediately at "Hello" screen (Setup Assistant runs as
rootmobile user, minimal daemons). - If False Alarm Persists: The fault is hardware/PMU firmware level. Proceed to Protocol Gamma.
- If Cleared: Restore Backup via Finder. Monitor for 24h. Recurrence implies backup corruption (unlikely) or time-dependent corrosion growth.
Protocol Gamma: DFU Mode Firmware Re-provisioning (Success Rate: ~95% for PMU Firmware Corruption/Calibration Drift)
- Enter DFU Mode (Device Firmware Upgrade):
- Connect to Mac via Lightning.
- Press Vol Up, Release. Press Vol Down, Release.
- Hold Side Button (Screen stays black).
- At 8 seconds, add Volume Down button (Hold Side + Vol Down).
- At 15 seconds total, Release Side Button, Keep Holding Vol Down for 5 more seconds.
- Screen remains black. Finder/iTunes shows "iPhone detected in Recovery Mode" (DFU shows no logo).
- Restore via Finder (macOS 10.15+): Select "Restore iPhone". This downloads the latest signed IPSW (iOS 18.2+). Critical: This flashes the PMU Firmware (ApplePMGR), SEP Firmware (Secure Enclave Processor), Baseband Firmware, and iBoot/Bootloader. It performs a full
NORerase and rewrite, resetting PMU ADC calibration fuses for theMOIST_DETchannel. - Post-Restore Validation: Setup as New. Test port immediately. If "Liquid Detected" appears in DFU/Recovery mode (Finder shows "Accessory Not Supported" or port dead), the Lightning Flex Assembly (J1900) or PMU (U2300/U2400) has physical failure. Requires microsoldering replacement.
6. Hardware & Telemetry Parameter Matrix
| Parameter | Symbol / Register | Normal Operational Range (Dry) | Failure Threshold (Wet/False Positive) | Measurement Point / Method | iPhone 11 Specifics (A13 / PMU A2374) |
|---|---|---|---|---|---|
| Moisture Detection Impedance | Z_MOIST (Pin 4/5 to GND) | > 1.0 MΩ (DC) / > 500 kΩ @ 1kHz AC | < 50 kΩ (Triggers STATE_WET) | Lightning Receptacle Pins 4/5 (PMU ADC Channel 7) |
PMU Internal 12-bit SAR ADC. Threshold Register: PMU_MOIST_THRESH =
|
Comments