At least some MBP&#x27;s and iPhones do this too (e.g. mine). In my opinion (though less reliable than the sibling&#x27;s because I&#x27;m an ME not a EE) impedance detection is probably the easiest way to do this.