【Bug】openKylin 3.0 内置声卡 codec 识别为 Generic 0000,模拟输出消失,仅剩 Dummy Output

openKylin 3.0 内置声卡失效:codec 识别为 Generic 0000,模拟输出消失,仅剩 Dummy Output

一、环境

我添加来openkylin 构建源,最近来了一次更新,出现这个问题,不知道是普遍还是特例,DS帮忙写的反馈

  • 系统:openKylin 3.0
  • 内核:uname -r
  • 硬件:Intel Cannon Lake PCH cAVS + Realtek ALC269VB
  • 音频栈:PipeWire 1.6.2 + WirePlumber

二、问题描述

2026-10-09 开机后内置扬声器突然无声。系统设置 → 声音中“输出”显示为“无”,音量 0%,仅剩 Dummy Output。Type-C 外接声卡(FIIO KA15)声音完全正常。

三、关键输出

bash

$ cat /proc/asound/card0/codec#0 | head -5 Codec: Generic 0000 Generic Vendor Id: 0x00000000

bash

$ pactl list cards short 49 alsa_card.pci-0000_00_1f.3 alsa

pactl list cards 中活动配置为 off ,可用 profile 仅剩 HDMI 和 pro-audio,没有 output:analog-stereo 。

bash

$ wpctl status Sinks: * 34. Dummy Output [vol: 1.00]

bash

$ sudo modprobe -r snd_hda_intel modprobe: FATAL: Module snd_hda_intel is in use.

四、已尝试

  • 重启 PipeWire / WirePlumber:无效
  • pactl set-card-profile alsa_card.pci-0000_00_1f.3 output:analog-stereo+input:analog-stereo :报错“失败:无此实体”
  • 重载 snd_hda_intel :失败,提示模块被占用
  • alsamixer 中无 Speaker / Headphone / PCM 控件

五、补充验证

插入 Type-C 声卡 FIIO KA15 后:

bash

$ pactl list short sinks 101 alsa_output.usb-FIIO_FIIO_KA15-01.analog-stereo PipeWire s32le 2ch 48000Hz RUNNING

声音正常。证明 PipeWire、ALSA、USB 音频通路均无问题,故障严格局限于内置 HDA 声卡 codec 初始化失败。

六、可能原因

内核 snd_hda_intel 未能正确探测 Realtek ALC269VB,codec 退化为 Generic 0000 Generic ,导致模拟输出 profile 全部消失。可能由近期内核更新、HDA 电源管理、SOF/HDA 驱动冲突引起。

七、期望结果

内置声卡恢复识别为 Realtek ALC269VB ,并自动创建 output:analog-stereo ,系统声音设置中出现“扬声器”或“模拟输出”。

八、建议修复方向

  • GRUB 启动参数添加 snd-hda-intel.model=alc269 或 snd_intel_dspcfg.dsp_driver=1
  • 创建 /etc/modprobe.d/audio-fix.conf :

conf

options snd-hda-intel model=alc269 power_save=0 options snd_intel_dspcfg dsp_driver=1

然后 sudo update-initramfs -u 并重启

  • 检查近期内核更新,必要时回退旧内核

九、附件(请补充)

  • sudo dmesg | grep -i -E "snd|hda|sof"
  • uname -a
  • dpkg -l | grep linux-image

我的也是没有声音,装2.0是有声音,但是装2.0后发现鼠标几秒就休眠,需要点击一下才能动,很不方便