My audio device not working

10,674

Solution 1

Try F5 in alsamixer.

you will see All possible options. maybe there is something muted by default.

what do you see pressing F2 and F6?

Solution 2

It sounds like you are missing a sound module. Here are some ideas you can try:

  • Since the soundcard is correctly detected (your headphones work), it sounds like you are either missing the module that controls the pc speakers, or you have the speakers muted. Have you tried switching devices by hitting F6 in alsamixer? If you switch from default to 0 HDA ATI SB, you may get more options. On my system, I get many more channels, including "Front". Make sure that "Front" is set to maximum volume.

  • The alsa-info.shscript should give you some more useful information. Try running it and linking to its output please:

    $ wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh && chmod +x ./alsa-info.sh && ./alsa-info.sh
    

    That way we can check what modules you have loaded and if anything is missing.

  • alsaconf is a script to configure alsa. Although it is no longer included in the alsa-utils package, it may still be worth looking into. I found an old version here.

Share:
10,674

Related videos on Youtube

71GA
Author by

71GA

Updated on September 18, 2022

Comments

  • 71GA
    71GA over 1 year

    I have been setting up a new CrunchBang Linux and my sound doesn't work. When I type lspci -v command and alplay -l command in command prompt I can see that my sound card is connected and detected.

    Results:

    ziga@ziga-laptop:~$ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: SB [HDA ATI SB], device 0: HDA Generic [HDA Generic]
      Subdevices: 0/1
      Subdevice #0: subdevice #0
    

    More results:

    ziga@ziga-laptop:~$ lspci -v
    00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)
        Subsystem: Hewlett-Packard Company Device 1604
        Flags: bus master, slow devsel, latency 64, IRQ 16
        Memory at 90400000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: HDA Intel
    

    Well I've figured out that my audio card model is ATI SBx00 and I can't find it on www.alsa-project.org although my soundcard already worked with alsamixer when I was using Xubuntu 12.04. And it also worked with previous versions of CrunchBang Linux. So I've tried to reconfigure alsamixer by using command alsamixer, pressing F5 and then increasing all sliders to the max like shown below.

    ┌───────────────────────────── AlsaMixer v1.0.23 ──────────────────────────────┐
    │ Card: HDA ATI SB                                     F1:  Help               │
    │ Chip: Realtek ID 270                                 F2:  System information │
    │ View: F3: Playback  F4: Capture  F5:[All]            F6:  Select sound card  │
    │ Item: PCM [dB gain: 0.00, 0.00]                      Esc: Exit               │
    │                                                                              │
    │                       ┌──┐     ┌──┐     ┌──┐     ┌──┐                        │
    │                       │▒▒│     │▒▒│     │▒▒│     │▒▒│                        │
    │                       │▒▒│     │▒▒│     │▒▒│     │▒▒│                        │
    │                       │▒▒│     │▒▒│     │▒▒│     │▒▒│                        │
    │                       │▒▒│     │▒▒│     │▒▒│     │▒▒│                        │
    │                       │▒▒│     │▒▒│     │▒▒│     │▒▒│                        │
    │                       │▒▒│     │▒▒│     │▒▒│     │▒▒│                        │
    │                       │▒▒│     │▒▒│     │▒▒│     │▒▒│                        │
    │                       │▒▒│     │▒▒│     │▒▒│     │▒▒│                        │
    │                       │▒▒│     │▒▒│     │▒▒│     │▒▒│                        │
    │                       │▒▒│     │▒▒│     │▒▒│     │▒▒│                        │
    │                       │▒▒│     │▒▒│     │▒▒│     │▒▒│                        │
    │                       └──┘     └──┘    L└──┘R    └──┘                        │
    │                                       CAPTURE                                │
    │                     100<>100 100<>100 100<>100 100<>100                      │
    │                      Master <  PCM   >Capture  Digital                       │
    │                                                                              │
    └──────────────────────────────────────────────────────────────────────────────┘
    

    When in alsamixer i tried to hit F2 and this menu pops out:

    ┌───── Select File ──────┐
    │/proc/asound/version    │
    │/proc/asound/cards      │
    │/proc/asound/devices    │
    │/proc/asound/oss/devices│
    │/proc/asound/timers     │
    │/proc/asound/pcm        │
    └────────────────────────┘
    

    Below i will paste outputs of all of all menu options, here it goes:

    ┌───────────────── /proc/asound/version ─────────────────┐          
    │Advanced Linux Sound Architecture Driver Version 1.0.21.│          
    └────────────────────────────────────────────────────────┘          
    ┌──────────────── /proc/asound/cards ─────────────────┐            
    │ 0 [SB             ]: HDA-Intel - HDA ATI SB         │            
    │                      HDA ATI SB at 0x90400000 irq 16│            
    └─────────────────────────────────────────────────────┘            
    ┌─────── /proc/asound/devices ───────┐                  
    │  2:        : timer                 │                  
    │  3:        : sequencer             │                  
    │  4: [ 0- 0]: digital audio playback│                  
    │  5: [ 0- 0]: digital audio capture │                  
    │  6: [ 0- 0]: hardware dependent    │                  
    │  7: [ 0]   : control               │                  
    └────────────────────────────────────┘       
    ┌ /proc/asound/oss/devices ┐
    │  0: [0- 0]: mixer        │
    │  3: [0- 0]: digital audio│
    │  4: [0- 0]: digital audio│
    └──────────────────────────┘
    ┌──────────── /proc/asound/timers ─────────────┐               
    │G0: system timer : 4000.000us (10000000 ticks)│               
    │P0-0-0: PCM playback 0-0-0 : SLAVE            │               
    │P0-0-1: PCM capture 0-0-1 : SLAVE             │               
    └──────────────────────────────────────────────┘               
    ┌─────────────────── /proc/asound/pcm ────────────────────┐          
    │00-00: HDA Generic : HDA Generic : playback 1 : capture 1│          
    └─────────────────────────────────────────────────────────┘        
    

    When i press F6 i get the menu for selecting sound card which looks like this:

    ┌───── Sound Card ──────┐
    │-  (default)           │
    │0  HDA ATI SB          │
    │   enter device name...│
    └───────────────────────┘
    
    • 71GA
      71GA over 11 years
      I just found out that my soundcard works if i plug in my headphones, but it doesn't work if i unplug them.
    • CL.
      CL. over 11 years
      Which version of CrunchBang, and which audio codec, are you using?
    • 71GA
      71GA over 11 years
      I have a CrunchBang v 2.6.32.5-amd64 and alsamixer is version 1.0.23.
    • darnir
      darnir over 11 years
      Do check if your audio works after a cold boot, BEFORE you start X-Server.
    • 71GA
      71GA over 11 years
      Not yet. How can i do that?
    • rubo77
      rubo77 over 11 years
      You could check if your Soundcard works fine with a live-CD
    • erch
      erch almost 11 years
      @71GA - I also use Crunchbang [10] and found that PN Mixer [the software behind the speaker symbol in your taskbar handling ALSA] must be set definitely to 'headphone speaker' or 'onboard audio' to work on the chosen channel and that the system doesn't seem to detect if, say, headphones are plugged in or not.
  • 71GA
    71GA over 11 years
    I have installed kernel 3.5 packed with Arch Linux distribution and i get a the same error. This must be some sort of a bug. I ve seen many threads complaining about this on other forums and no solution exists yet.
  • 71GA
    71GA over 11 years
    I did edit my post according to your suggestions.
  • erch
    erch almost 11 years
    changing the whole distro because of a currently not so proper working audio device seems like a very Windowish solution [reboot, else reinstall].