Mac 插着外置耳机睡眠后,第二天唤醒后外置耳机声音设备有概率消失
系统信息
OS: macOS 15.6 24G84 arm64
Host: Mac16,1
Kernel: 24.6.0
Uptime: 8 mins
Packages: 52 (brew)
Shell: zsh 5.9
Resolution: 1512x982, 2560x1440
DE: Aqua
WM: Quartz Compositor
WM Theme: Blue (Dark)
Terminal: tmux
CPU: Apple M4
GPU: Apple M4
Memory: 3497MiB / 24576MiB
简要描述
外置 3.5mm 耳机插孔连接设备盒盖休眠后,第二天唤醒后有概率找不到外置耳机设备,具体表现如下:
是否必现:否
复现步骤:
- 3.5mm 插孔插入外置耳机一整天
- 电脑盒盖睡眠
- 第二天后唤醒
预期状态: 外置耳机正常,自动切换为外置耳机声音设备
异常状态:
- 声音设备选择扬声器,无外置耳机设备
- 重新插拔耳机设备无效
- killall coreaudiod 刷新音频设备无效
- 退出重新登录无效
- 创建新账户切换登录无效
- 重启设备有效
复现频率:大约每周1-2次
系统日志
正常情况下耳机插拔有日志输出:
➜ Kernels log stream --predicate 'sender == "AppleCS42L84Audio"'
Filtering the log data using "sender == "AppleCS42L84Audio""
Timestamp Thread Type Activity PID TTL
2025-08-19 10:24:24.686171+0800 0x19971 Default 0x0 0 0 kernel: (AppleCS42L84Audio) DCID Detected :Unplugged
2025-08-19 10:24:27.807826+0800 0x670 Default 0x0 0 0 kernel: (AppleCS42L84Audio) DCID Calc Impedance with dacval:1018 diff:1 Trim offset:131 grad:117 hp_pulldown_meas:109
2025-08-19 10:24:27.807853+0800 0x670 Default 0x0 0 0 kernel: (AppleCS42L84Audio) DCID rload:63 pulldown_r:1138 impedance:60 mode:2 hs4IsGnd:0
2025-08-19 10:24:27.811118+0800 0x670 Default 0x0 0 0 kernel: (AppleCS42L84Audio) DCID Detected :Low Impedance
2025-08-19 10:24:27.825137+0800 0x670 Default 0x0 0 0 kernel: (AppleCS42L84Audio) Ring is fully plugged. Trigger MicDetect if headphones
2025-08-19 10:24:27.988000+0800 0x670 Default 0x0 0 0 kernel: (AppleCS42L84Audio) Skipping DCID since it is already set
问题出现时耳机插拔无任何日志输出
完整日志:
PS:隔壁低版本内核(好像是 24.4?)小伙伴无此问题
[标题经过版主编辑]
原标题:插着外置耳机睡眠后,第二天唤醒后外置耳机声音设备有概率消失