Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28

Thread: How restart the audio/sound system?

  1. #11
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    19,717
    Blog Entries
    1

    Default Re: How restart the audio/sound system?

    Ok, thanks for sharing that info. It would be good to eliminate PA from the equation. When you think a sound card has 'disappeared', try testing at the ALSA layer. Disable pulseaudio with
    Code:
    sudo setup-pulseaudio --disable
    and use aplay to list your cards and outputs available
    Code:
    aplay -L
    Use that information to try playing a test sound via the appropriate device and output.

    For reference I get (only one sound device to test with unfortunately)....
    Code:
    # aplay -L
    null
        Discard all samples (playback) or generate zero samples (capture)
    default
        Default ALSA Output (currently PulseAudio Sound Server)
    sysdefault:CARD=I82801AAICH
        Intel 82801AA-ICH, Intel 82801AA-ICH
        Default Audio Device
    front:CARD=I82801AAICH,DEV=0
        Intel 82801AA-ICH, Intel 82801AA-ICH
        Front speakers
    surround21:CARD=I82801AAICH,DEV=0
        Intel 82801AA-ICH, Intel 82801AA-ICH
        2.1 Surround output to Front and Subwoofer speakers
    surround40:CARD=I82801AAICH,DEV=0
        Intel 82801AA-ICH, Intel 82801AA-ICH
        4.0 Surround output to Front and Rear speakers
    surround41:CARD=I82801AAICH,DEV=0
        Intel 82801AA-ICH, Intel 82801AA-ICH
        4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=I82801AAICH,DEV=0
        Intel 82801AA-ICH, Intel 82801AA-ICH
        5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=I82801AAICH,DEV=0
        Intel 82801AA-ICH, Intel 82801AA-ICH
        5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    iec958:CARD=I82801AAICH,DEV=0
        Intel 82801AA-ICH, Intel 82801AA-ICH
        IEC958 (S/PDIF) Digital Audio Output
    So, I can run something like the following....
    Code:
    aplay  --device sysdefault:CARD=I82801AAICH /usr/share/sounds/alsa/test.wav
    Code:
    aplay  --device front:CARD=I82801AAICH,DEV=0 /usr/share/sounds/alsa/test.wav
    See if you can get sound from both of your cards.

    BTW, you can use systool to check the current loaded module options
    Code:
    systool -m snd_hda_intel -v
    If we determine that power management is at play here, it is possible to load the snd_hda_intel module so that power saving is disabled.
    openSUSE Leap 15.0; KDE Plasma 5

  2. #12
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    19,717
    Blog Entries
    1

    Default Re: How restart the audio/sound system?

    Quote Originally Posted by deano_ferrari View Post
    Ok, thanks for sharing that info. It would be good to eliminate PA from the equation. When you think a sound card has 'disappeared', try testing at the ALSA layer. Disable pulseaudio with
    Code:
    sudo setup-pulseaudio --disable
    I forgot to mention that you can re-enable PA again with
    Code:
    sudo setup-pulseaudio --enable
    openSUSE Leap 15.0; KDE Plasma 5

  3. #13

    Default Re: How restart the audio/sound system?

    Thanks for the suggestion, Deano.

    Lost the output from this sound card twice today (not uncommon - it is probably more often than that but I just don't notice).
    Code:
    Gzunder:~ # systemctl list-units --no-pager |grep "sound-card1"
    sys-devices-pci0000:00-0000:00:03.0-0000:01:00.1-sound-card1.device   loaded active plugged   Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]                         
    Gzunder:~ #
    Unfortunately, no amount of:
    Code:
    Gzunder:~ # setup-pulseaudio --disable
    Disabling PulseAudio for ALSA...
    Disabling PulseAudio for libao...
    Disabling PulseAudio for SDL...
    Disabling PulseAudio for Timidity...
    Disabling PulseAudio for Phonon...
    Disabling PulseAudio for Kmix...
    Disabling PulseAudio for speech dispatcher...
    Disabling PulseAudio for SoX...
    Setting alsasink/src for gstreamer
    Clearing QEMU/KVM audio setup
    Disabling PulseAudio autospawn...
    Gzunder:~ #
    .. followed by:
    Code:
    Gzunder:~ # setup-pulseaudio --enable
    Enabling PulseAudio for ALSA...
    Enabling PulseAudio for libao...
    Enabling PulseAudio for mplayer...
    Enabling PulseAudio for OSS...
    Enabling PulseAudio for SDL...
    Enabling PulseAudio for Timidity...
    Enabling PulseAudio for Phonon...
    Enabling PulseAudio for Kmix...
    Enabling PulseAudio for speech dispatcher...
    Enabling PulseAudio for SoX...
    Setting auto sink/src for gstreamer
    Enabling PulseAudio for QEMU/KVM
    Enabling PulseAudio autospawn...
    Gzunder:~ #
    ... did not bring it back.
    I do notice that following the --disable, the Task Bar Sound Widgets, change to report "No Output or Input Devices found".
    Then following (10-20sec) the "devices" reappear. No no sound?

    Regards, Martin
    openSUSE Leap 15; KDE Plasma 5.12.5;

  4. #14
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    19,717
    Blog Entries
    1

    Default Re: How restart the audio/sound system?

    I didn't expect simply disabling and re-enabling pulseaudio would bring working sound back. What I wanted you to try was the alsa sound tests (with PA disabled).
    openSUSE Leap 15.0; KDE Plasma 5

  5. #15

    Default Re: How restart the audio/sound system?

    Quote Originally Posted by deano_ferrari View Post
    I didn't expect simply disabling and re-enabling pulseaudio would bring working sound back. What I wanted you to try was the alsa sound tests (with PA disabled).
    Opps.... Sorry! Didn't understand. Let me try again...

    A preliminary point? I have downloaded a test file and called it test.wav.
    Starting simple, I check it plays on both sound cards with:
    Code:
    # aplay -v test.wav
    No protocol specified
    Playing WAVE 'test.wav' : Float 32 bit Little Endian, Rate 44100 Hz, Stereo
    ALSA <-> PulseAudio PCM I/O Plugin
    Its setup is:
      stream       : PLAYBACK
      access       : RW_INTERLEAVED
      format       : FLOAT_LE
      subformat    : STD
      channels     : 2
      rate         : 44100
      exact rate   : 44100 (44100/1)
      msbits       : 32
      buffer_size  : 22050
      period_size  : 5512
      period_time  : 125000
      tstamp_mode  : NONE
      tstamp_type  : GETTIMEOFDAY
      period_step  : 1
      avail_min    : 5512
      period_event : 0
      start_threshold  : 22050
      stop_threshold   : 22050
      silence_threshold: 0
      silence_size : 0
      boundary     : 6206523236469964800
    #
    From this (because I think I will need it later?) I conclude that the format switch (-f) should be S32_LE (stereo, 32 bit, little endian).
    As the above aplay command does not specify a device, I am switching the default sound card with the System Settings | Multimedia | Audio Volume GUI (Systemsettings5).
    This seems to work.

    Next, I get my list of devices:
    Code:
    # aplay -L
    null
        Discard all samples (playback) or generate zero samples (capture)
    default
        Default ALSA Output (currently PulseAudio Sound Server)
    sysdefault:CARD=MID
        HDA Intel MID, VT1828S Analog
        Default Audio Device
    front:CARD=MID,DEV=0
        HDA Intel MID, VT1828S Analog
        Front speakers
    surround21:CARD=MID,DEV=0
        HDA Intel MID, VT1828S Analog
        2.1 Surround output to Front and Subwoofer speakers
    surround40:CARD=MID,DEV=0
        HDA Intel MID, VT1828S Analog
        4.0 Surround output to Front and Rear speakers
    surround41:CARD=MID,DEV=0
        HDA Intel MID, VT1828S Analog
        4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=MID,DEV=0
        HDA Intel MID, VT1828S Analog
        5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=MID,DEV=0
        HDA Intel MID, VT1828S Analog
        5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=MID,DEV=0
        HDA Intel MID, VT1828S Analog
        7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    hdmi:CARD=MID,DEV=0
        HDA Intel MID, VT1828S Digital
        HDMI Audio Output
    hdmi:CARD=HDMI,DEV=0
        HDA ATI HDMI, HDMI 0
        HDMI Audio Output
    hdmi:CARD=HDMI,DEV=1
        HDA ATI HDMI, HDMI 1
        HDMI Audio Output
    #
    I have emboldened the strings that I think I need to use in the --device= switch.
    I suspect that the only devices that I will hear are the 2 defaults and the 3 hdmi?
    This is because I have an HDMI amp plugged into the motherboard sound card and two DisplayPort monitors (with speakers) plugged into the graphics card.

    Firstly, if I try the two "defaults":
    Code:
     # aplay --device=default test.wav
    No protocol specified
    Playing WAVE 'test.wav' : Float 32 bit Little Endian, Rate 44100 Hz, Stereo
    
    # aplay --device=sysdefault test.wav
    Playing WAVE 'test.wav' : Float 32 bit Little Endian, Rate 44100 Hz, Stereo
    #
    And yes, I hear audio from both commands.
    However --device=default, produced audio from the sound card on the motherboard and
    --device=sysdefault produced audio from the sound card on the display adaptor?

    So I now move on to try the other devices.
    Code:
    # aplay --device=front:CARD=MID test.wav
    Playing WAVE 'test.wav' : Float 32 bit Little Endian, Rate 44100 Hz, Stereo
    aplay: set_params:1339: Sample format non available
    Available formats:
    - S16_LE
    - S32_LE
    #
    ... so do I need a format switch? Let me try:
    Code:
    # aplay --device=front:CARD=MID -f S32_LE test.wav
    Playing WAVE 'test.wav' : Float 32 bit Little Endian, Rate 44100 Hz, Stereo
    aplay: set_params:1339: Sample format non available
    Available formats:
    - S16_LE
    - S32_LE
    #
    Nope. No different. And all the other devices result in the same output.
    Have I misunderstood the --device= switch? Why has it (sorta) worked for the --device=default and --device=sysdefault but none of the others devices?

    Regards, Martin
    PS - Sorry that this is getting so involved. It's like spaghetti in there!
    openSUSE Leap 15; KDE Plasma 5.12.5;

  6. #16
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    19,717
    Blog Entries
    1

    Default Re: How restart the audio/sound system?

    Your first and second sound cards (with respect to the HDMI outputs) are listed like this...
    Code:
    hdmi:CARD=HDMI,DEV=0
        HDA ATI HDMI, HDMI 0
        HDMI Audio Output
    hdmi:CARD=HDMI,DEV=1
        HDA ATI HDMI, HDMI 1
        HDMI Audio Output
    #
    So to test the second card you would use...
    Code:
    aplay --device=hdmi:CARD=HDMI,DEV=1 test.wav
    openSUSE Leap 15.0; KDE Plasma 5

  7. #17

    Default Re: How restart the audio/sound system?

    Quote Originally Posted by deano_ferrari View Post
    So to test the second card you would use...
    Code:
    aplay --device=hdmi:CARD=HDMI,DEV=1 test.wav
    Yep, that is what I had guessed! However, as I said earlier, all but the two "defaults" give this output:
    Code:
    # aplay --device=hdmi:CARD=HDMI,DEV=1 test.wav
    Playing WAVE 'test.wav' : Float 32 bit Little Endian, Rate 44100 Hz, Stereo
    aplay: set_params:1339: Sample format non available
    Available formats:
    - S16_LE
    - S32_LE
    #
    Adding the --format=S32_LE option did not make any difference.
    ... so is this an error message? Or a mistake in the command? A complete Red Herring? Or something else?

    Thank you for sticking with this.
    Regards, Martin
    openSUSE Leap 15; KDE Plasma 5.12.5;

  8. #18
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    19,717
    Blog Entries
    1

    Default Re: How restart the audio/sound system?

    Can you try this using the ALSA-supplied '/usr/share/sounds/alsa/test.wav' file please?
    openSUSE Leap 15.0; KDE Plasma 5

  9. #19

    Default Re: How restart the audio/sound system?

    Quote Originally Posted by deano_ferrari View Post
    Can you try this using the ALSA-supplied '/usr/share/sounds/alsa/test.wav' file please?
    Dho.... I'm sorry. I didn't know that those files were on my system. You are dealing with an idiot at this end

    Now that you have put me right, here are the results:
    Code:
    # aplay --device=hdmi:CARD=MID,DEV=0 /usr/share/sounds/alsa/test.wav                        
    Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo                
    # //I hear the test sound on my HDMI Amp connected to the motherboard sound card
    
    # aplay --device=hdmi:CARD=HDMI,DEV=0 /usr/share/sounds/alsa/test.wav
    Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo                
    # //I hear the test sound on my Left-Hand DisplayPort monitor connected to my graphics card
    
    #  aplay --device=hdmi:CARD=HDMI,DEV=1 /usr/share/sounds/alsa/test.wav                        
    Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo                
    # //I hear the test sound on my Right-Hand DisplayPort monitor connected to my graphics card
    WhooooHooooo... I guess this is good....?

    I'll post again later in the day after re-testing, with the above, once I loose the output from my (assumed) default, the --device=hdmi:CARD=HDMI,DEV=0.

    Regards, Martin
    openSUSE Leap 15; KDE Plasma 5.12.5;

  10. #20

    Default Re: How restart the audio/sound system?

    Quote Originally Posted by martinprowe View Post
    I'll post again later in the day after re-testing, with the above, once I loose the output from my (assumed) default, the --device=hdmi:CARD=HDMI,DEV=0.
    Okay.... The Sound card on the graphics controller has gone quiet (for whatever reason)?
    So, I re-run the three aplay <device> test.wav and these are the results...
    Code:
    # aplay --device=hdmi:CARD=MID,DEV=0 /usr/share/sounds/alsa/test.wav                        
    Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo                
    # //I CAN hear the test sound on my HDMI Amp connected to the motherboard sound card
    
    # aplay --device=hdmi:CARD=HDMI,DEV=0 /usr/share/sounds/alsa/test.wav
    Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo                
    # //I CAN NOT hear the test sound on my Left-Hand DisplayPort monitor connected to my graphics card
    
    #  aplay --device=hdmi:CARD=HDMI,DEV=1 /usr/share/sounds/alsa/test.wav                        
    Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo                
    # //I CAN NOT hear the test sound on my Right-Hand DisplayPort monitor connected to my graphics card
    It seems that I must have a problem with Graphics/Sound Card.
    I'll not guess, will you advise on what info I can provide...

    Regards, Martin
    openSUSE Leap 15; KDE Plasma 5.12.5;

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •