No sound with lubuntu

patard Posted messages 258 Status Member -  
mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   -

Hello

I have no sound on my laptop with Ubuntu, neither with the HP nor with the headphones

When I check the volume control in Pulse Audio, everything seems normal

How can I get out of this situation

Thanks to those who know and have a good day to everyone

Bernard

3 answers

  1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940
     

    Hello,

    1) Is the issue related to a recent update? Have you done the hardware checks (non-defective headset, functional speakers connected, speaker volume at a sufficient level)? Have you tested your card under Windows (if you have it in dual boot)?

    2) Is the problem following a restart under Windows? Does it persist if you run:

    sudo alsactl init

    If this command resolves your problem, it’s likely a FastBoot issue (it’s a technique used in Windows to partially disable the sound card for faster reactivation on the next restart... and Linux doesn't like that).

    3) Please indicate the model of the sound card. Can you report the result of the command:

    lspci | grep -i audio

    4) To start narrowing down the problem, can you hear sound with this command:

    aplay /usr/share/sounds/alsa/Front_Center.wav

    If yes, then we can be reasonably reassured regarding the sound card module and alsa, and the suspect would be pulseaudio or pipewire.

    Good luck

    0
  2. patard Posted messages 258 Status Member 8
     

    Hello,

    A big thank you for responding so quickly and clearly.

    I don't know if the issue is due to a recent update. I can go a week without using sound, just for emails and forums or for typing texts with a writer.

    The computer is an old laptop that I am satisfied with, but it doesn't have Windows.

    For the sound card model:

     xxxx@xxxx-Satellite-M70:~$ lspci | grep -i audio 00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03) 

    For the second command, it gives:

     xxxx@xxxx-Satellite-M70:~$ aplay /usr/share/sounds/alsa/Front_Center.wav Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav': Signed 16 bit Little Endian, Frequency 48000 Hz, Mono

    The command generates no sound, neither on the computer's speaker nor on the headphones.

    Thanks again for your help

    0
  3. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940
     

    Hello,

    If the command is not producing any sound, it is likely related to the driver itself or to alsa. Let's explore the various avenues available to us.

    Alsa

    Make sure you have launched it correctly (see FastBoot issues):

    sudo alsactl init

    Then run:

    alsamixer

    ... play a sound in the background, and try adjusting the different sliders to see if it resolves the issue. If it does, run:

    sudo alsactl store

    If none of this resolves the problem, it means the issue lies deeper (either the module or the sound card itself).

    Hardware

    To rule out hardware issues, it would be helpful to let us know if you can get sound when booting into another system (e.g., Windows or a live Linux). If so, we can rule out this possibility, leaving only the module (driver).

    Linux Kernel and Module

    When your computer starts up, in grub, you have the option to go into advanced options and choose which kernel to boot. I suspect that the kernel has been updated, and the new one is deploying a module that does not properly recognize your sound card. The idea would be to see if booting with an older kernel restores sound. If it does, we have found our culprit (it would then be interesting to note which kernel versions work/do not work).

    This page also suggests attempting to pass options to the module that supports your sound card; you can take a look, although I am not very confident since it has been working fine until now.

    Firmware

    Try installing this package:

    sudo apt update sudo apt install firmware-sof-signed sudo reboot

    HDA Codec

    Open the pulseaudio mixer and play a sound:

    pavucontrol

    If the meters are moving but you don't have sound (and we've ruled out hardware issues), the explanation may lie with the HDA codec.

    Indeed, in my case, I have observed that certain updates can make the sound codec inoperative. I then have to use hda-verb to fix the problem. Since these commands are somewhat out of my depth (I cannot explain their meaning), I have put everything into a script fix_sound.sh with the appropriate references:

    #!/bin/sh # Run this if you can't hear the sound while everything seems ok in pavucontrol (gauge animated when playing music) # https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1850439 hda-verb /dev/snd/hwC0D0 0x20 0x500 0x1b hda-verb /dev/snd/hwC0D0 0x20 0x477 0x4a4b hda-verb /dev/snd/hwC0D0 0x20 0x500 0xf hda-verb /dev/snd/hwC0D0 0x20 0x477 0x74 # https://forums.debian.net//viewtopic.php?f=7&t=146640 apt install firmware-sof-signed

    Then:

    sudo chmod a+x fix_sound.sh sudo fix_sound.sh

    If this is indeed the cause of the problem, sound should return instantly.

    Good luck!

    0