Skip to content

[BUG] no sound coming from Lenovo on Ubuntu 24.04 #5375

Open

Description

@pankhurijain20

no sound coming from Lenovo on Ubuntu 24.04

Your laptop model: Lenovo IdeaPad Pro 5 14IMH9

Output of:

dmesg | grep sof
aplay -l
uname -a


You're on Ubuntu 24.04 with kernel 6.11+

SOF loads correctly, but no sound from speakers or headphones

Even aplay with plughw:0,0 gives Device or resource busy or silence

Activity

  1. changed the title [-][BUG][/-] [+][BUG] no sound coming from Lenovo on Ubuntu 24.04[/+] on Mar 24, 2025
  2. lgirdwood commented on Mar 24, 2025

    @lgirdwood
    Member

    @pankhurijain20 can you provide the logs. They are missing, you have just provided the commands only.

  3. pankhurijain20 commented on Mar 24, 2025

    @pankhurijain20
    Author

    Please find the logs

    dmesg: read kernel buffer failed: Operation not permitted
    **** List of PLAYBACK Hardware Devices ****
    card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog () []
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (
    ) []
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 () []
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (
    ) []
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: sofhdadsp [sof-hda-dsp], device 31: Deepbuffer HDA Analog (*) []
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    Linux pankhuri-IdeaPad-Pro-5-14IMH9 6.11.0-17-generic thesofproject/sof#1724.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 20 22:48:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
    pankhuri@pankhuri-IdeaPad-Pro-5-14IMH9:
    /workspace

  4. lgirdwood commented on Mar 24, 2025

    @lgirdwood
    Member

    @pankhurijain20 still missing kernel logs.

  5. pankhurijain20 commented on Mar 25, 2025

    @pankhurijain20
    Author

    @lgirdwood Please find the logs
    [ 0.052554] software IO TLB: area num 32.
    [ 0.461841] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
    [ 0.461842] software IO TLB: mapped [mem 0x0000000055c56000-0x0000000059c56000] (64MB)
    [ 0.571888] integrity: Loaded X.509 cert 'Microsoft Windows Production PCA 2011: a92902398e16c49778cd90f99e4f9ae17c55af53'
    [ 0.571898] integrity: Loaded X.509 cert 'Microsoft Corporation: Windows UEFI CA 2023: aefc5fbbbe055d8f8daa585473499417ab5a5272'
    [ 0.571907] integrity: Loaded X.509 cert 'Microsoft Corporation UEFI CA 2011: 13adbf4309bd82709c8cd54f316ed522988a1bd4'
    [ 0.571914] integrity: Loaded X.509 cert 'Microsoft UEFI CA 2023: 81aa6b3244c935bce0d6628af39827421e32497d'
    [ 2.722684] sof-audio-pci-intel-mtl 0000:00:1f.3: enabling device (0000 -> 0002)
    [ 2.722872] sof-audio-pci-intel-mtl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
    [ 2.793701] sof-audio-pci-intel-mtl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
    [ 2.800854] sof-audio-pci-intel-mtl 0000:00:1f.3: use msi interrupt mode
    [ 2.820759] sof-audio-pci-intel-mtl 0000:00:1f.3: hda codecs found, mask 5
    [ 2.820762] sof-audio-pci-intel-mtl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
    [ 2.820766] sof-audio-pci-intel-mtl 0000:00:1f.3: DMICs detected in NHLT tables: 2
    [ 2.824390] sof-audio-pci-intel-mtl 0000:00:1f.3: Firmware paths/files for ipc type 1:
    [ 2.824393] sof-audio-pci-intel-mtl 0000:00:1f.3: Firmware file: intel/sof-ipc4/mtl/sof-mtl.ri
    [ 2.824394] sof-audio-pci-intel-mtl 0000:00:1f.3: Firmware lib path: intel/sof-ipc4-lib/mtl
    [ 2.824395] sof-audio-pci-intel-mtl 0000:00:1f.3: Topology file: intel/sof-ace-tplg/sof-hda-generic-2ch.tplg
    [ 2.826734] sof-audio-pci-intel-mtl 0000:00:1f.3: Loaded firmware library: ADSPFW, version: 2.11.1.1
    [ 2.963547] sof-audio-pci-intel-mtl 0000:00:1f.3: Booted firmware version: 2.11.1.1
    [ 2.977183] sof-audio-pci-intel-mtl 0000:00:1f.3: Topology: ABI 3:29:1 Kernel ABI 3:23:1
    [ 3.059014] input: sof-hda-dsp Mic as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input13
    [ 3.059081] input: sof-hda-dsp Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input14
    [ 3.059155] input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input15
    [ 3.059207] input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input16
    [ 3.059267] input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input17

  6. ujfalusi commented on Mar 25, 2025

    @ujfalusi
    Collaborator

    @pankhurijain20, can you provide the output of alsa-info.sh as first step, then can you try to switch to the legacy HDA stack by adding options snd_intel_dspcfg dsp_driver=1 to for example /etc/modprobe.d/force-legacy-hda.conf and reboot
    You will loose DMIC, but you should be able to verify the Speaker/Headphone issue.

  7. pankhurijain20 commented on Mar 25, 2025

    @pankhurijain20
    Author

    ALSA Information Script v 0.5.3

    This script visits the following commands/files to collect diagnostic
    information about your ALSA installation and sound related hardware.

    dmesg
    lspci
    aplay
    amixer
    alsactl
    rpm, dpkg
    /proc/asound/
    /sys/class/sound/
    ~/.asoundrc (etc.)

    See 'bash --help' for command line options.

    cat: '/sys/module/snd_soc_skl_hda_dsp/parameters/*': No such file or directory
    dmesg: read kernel buffer failed: Operation not permitted
    Automatically upload ALSA information to www.alsa-project.org? [y/N] : y
    Uploading information to www.alsa-project.org ... Done!

    Your ALSA information is located at http://alsa-project.org/db/?f=3704c536e96ba4d32d03b34e18ee1174355a1e55
    Please inform the person helping you.

  8. ujfalusi commented on Mar 25, 2025

    @ujfalusi
    Collaborator

    Can you test with options snd_intel_dspcfg dsp_driver=1 if the speaker/headset is working or not to rule out SOF stack issue?

  9. pankhurijain20 commented on Mar 25, 2025

    @pankhurijain20
    Author

    Actually I dont have /etc/modprobe.d/force-legacy-hda.conf

  10. ujfalusi commented on Mar 25, 2025

    @ujfalusi
    Collaborator

    Actually I dont have /etc/modprobe.d/force-legacy-hda.conf

    yes, you need to create it, then when tested the speaker/headset remove it.

  11. pankhurijain20 commented on Mar 25, 2025

    @pankhurijain20
    Author

    Still its not working

  12. transferred this issue fromthesofproject/sofon Mar 25, 2025
  13. added
    HDAApplies to HD-Audio bus for codec connection
    codecCodec HW or driver restriction
    RealtekIssue with codec/Amp from Realtek
    on Mar 25, 2025
  14. ujfalusi commented on Mar 25, 2025

    @ujfalusi
    Collaborator

    @pankhurijain20, thank you for testing, it looks like a codec configuration issue.
    @KailangYang can you help?

    Manufacturer:      LENOVO
    Product Name:      83D2
    Product Version:   IdeaPad Pro 5 14IMH9
    Firmware Version:  N8CN24WW
    System SKU:        LENOVO_MT_83D2_BU_idea_FM_IdeaPad Pro 5 14IMH9
    Board Vendor:      LENOVO
    Board Name:        LNVNB161216
    
    Codec: Realtek ALC287
    Address: 0
    AFG Function Id: 0x1 (unsol 1)
    Vendor Id: 0x10ec0287
    Subsystem Id: 0x17aa38ce
    Revision Id: 0x100002
    
  15. KailangYang commented on Mar 26, 2025

    @KailangYang

    Codec register looks good.
    We don't have the hardware info of this platform.
    Maybe you can report to Lenovo or Ubuntu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

HDAApplies to HD-Audio bus for codec connectionNot SOF FW/DriverNot using SOF audio FW and driverP3Low-impact bugs or featuresRealtekIssue with codec/Amp from RealtekbugSomething isn't workingcodecCodec HW or driver restriction

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions