Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Command Line Help for Sound Troubleshooting

  1. #1
    Join Date
    Apr 2008
    Beans
    4,377
    Distro
    Ubuntu 9.10 Karmic Koala

    Command Line Help for Sound Troubleshooting

    Command Line Help for Sound Troubleshooting

    This is an addendum to

    http://ubuntuforums.org/showthread.php?t=843012

    so if you are looking for troubleshooting help you should really start there.

    When troubleshooting a sound problem it is important to gather as much information as possible. Here are a bunch of commands you can execute from a terminal that will gather that information. These commands are very simple and will not do anything but display information.

    The terminal is where you execute commands. The line you write these commands to is called the command line. You can open a terminal by going to Applications/Accessories/Terminal.

    These are the commands we will be using. You can copy them from here with ctrl-c and paste them in terminal with ctrl-shift-v and then hit enter to execute them. Do this one at a time.

    Code:
    lspci
    
    lsusb
    
    cat /proc/asound/cards
    
    cat /proc/asound/modules
    
    aplay -l
    
    arecord -l
    Since you will want to save this information you can copy it from terminal by highlighting the information you want to save with the cursor and using ctrl-shift-c to copy it. You can then use ctrl-v to paste it to a tomboy note or some other notepad.

    These listings following are the actual results of using these commands on my machine. I have 5 hardware sound devices. A sound chip on my motherboard, a pci sound card, a HDMI sound chip on my graphics cards, a usb webcam, and a usb headset. This is how we find them and gather information about them.

    lspci will list all the pci devices the system can detect. Of importance for sound troubleshooting are devices listed as Audio device or Multimedia audio controller and the usb controllers for my usb devices. As you can see, 3 of the devices are detected and 6 usb controllers so thing are looking good so far. There is the Audio device: ATI....SBx00 Azalia which is my on-board sound chip. There is the Audio Device: ATI...RV635 Audio Device which is my HDMI chip on my HD3650 graphics card. There is the Multimedia Controller: C_Media 8738 (rev 10) which is my C-Media 8768 PCI sound card.
    Code:
    lspci
    00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge
    00:02.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (ext gfx port 0)
    00:07.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 3)
    00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [IDE mode]
    00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
    00:12.1 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI1 Controller
    00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
    00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
    00:13.1 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI1 Controller
    00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
    00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3a)
    00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller
    00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia
    00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller
    00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
    00:14.5 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI2 Controller
    00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
    00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
    00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
    00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
    01:00.0 VGA compatible controller: ATI Technologies Inc Mobilitiy Radeon HD 3600 Series
    01:00.1 Audio device: ATI Technologies Inc RV635 Audio device [Radeon HD 3600 Series]
    02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
    03:05.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
    To find the usb devices we need to use lsusb. It will list everything connected by usb. It sees my multicard reader, my C-Media usb headset (which is a Plantronics) and my Logitec webcam.

    Code:
    lsusb
    Bus 007 Device 002: ID 05e3:070e Genesys Logic, Inc. X-PRO CR20xA USB 2.0 Internal Card Reader
    Bus 007 Device 001: ID 0000:0000  
    Bus 006 Device 001: ID 0000:0000  
    Bus 004 Device 003: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
    Bus 004 Device 001: ID 0000:0000  
    Bus 005 Device 001: ID 0000:0000  
    Bus 003 Device 001: ID 0000:0000  
    Bus 002 Device 001: ID 0000:0000  
    Bus 001 Device 003: ID 046d:08d7 Logitech, Inc. 
    Bus 001 Device 001: ID 0000:0000
    Now we will use cat /proc/asound/cards. cat is short for concatenate or add to the end. It will take a file and add it to the end of the standard output which is the terminal screen. /proc is a sort of virtual directory where processes hang out. So to find out what the process asound, which is the sound process, has found for sound cards/hardware devices we use cat /proc/asound/cards
    Code:
    cat /proc/asound/cards
     0 [CMI8768        ]: CMI8738-MC8 - C-Media CMI8768
                          C-Media CMI8768 at 0xe800, irq 21
     1 [SB             ]: HDA-Intel - HDA ATI SB
                          HDA ATI SB at 0xfe9f4000 irq 18
     2 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                          HDA ATI HDMI at 0xfeaec000 irq 17
     3 [U0x46d0x8d7    ]: USB-Audio - USB Device 0x46d:0x8d7
                          USB Device 0x46d:0x8d7 at usb-0000:00:12.0-3, full speed
     4 [default        ]: USB-Audio - C-Media USB Headphone Set  
                          C-Media USB Headphone Set   at usb-0000:00:13.1-1, full speed
    As you can see, asound has all the cards. It has even numbered them for us and told us what irq interrupts or usb controllers they are using .

    Now we should see which alsa modules these cards are using. For that we use cat /proc/asound/modules.
    Code:
     cat /proc/asound/modules
     0 snd_cmipci
     1 snd_hda_intel
     2 snd_hda_intel
     3 snd_usb_audio
     4 snd_usb_audio
    As you can see, the C_Media card is using the cmipci module, the two HDA devices are using the snd_hda_intel module and the usb devices are using the snd_usb_audio device module.

    Now we will use aplay-l to get some other specific information. aplay-l will list for us all the outputdevices hiding in our hardware and tell us their addresses. My C-Media card is card 0 and has a PCI DAC/ADC (DAC, digital to analog converter, ADC analog to digital converter) as device 0. It also has a 2nd DAC as device 1 and a IEC958 (digital) as device 2. My on-board sound chip is card 1 and has ALC883 Analog as device 0 and ALC883 Digital as device 1. My HDMI chip is card 2 and device 3 on the graphics card and the usb headphones are device 0.
    Code:
    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: CMI8768 [C-Media CMI8768], device 0: CMI8738-MC8 [C-Media PCI DAC/ADC]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: CMI8768 [C-Media CMI8768], device 1: CMI8738-MC8 [C-Media PCI 2nd DAC]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: CMI8768 [C-Media CMI8768], device 2: CMI8738-MC8 [C-Media PCI IEC958]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: SB [HDA ATI SB], device 0: ALC883 Analog [ALC883 Analog]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: SB [HDA ATI SB], device 1: ALC883 Digital [ALC883 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 4: default [C-Media USB Headphone Set  ], device 0: USB Audio [USB Audio]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    This is critical information for configuring direct hardware addressing. The standard is hw(card),(device). Thus my C-Media primary output is hw0,0 and the digital is hw0,2. The HDMI output of my graphics card is hw2,3. The webcam, card 3, is not listed here as it has no output, no speaker, only a microphone for capture.

    Now we will see what our hardware can give us for capture devices. arecord -l will list for us all available hardware that can capture sound for us to record with. As you can see, there are some changes from aplay -l. For one thing, there is no device 1 on the C-Media card. This is because device 1 is for rear speaker surround sound playback only. card 3 is now listed. That means the mic on the webcam is available, yay.

    arecord -l
    **** List of CAPTURE Hardware Devices ****
    card 0: CMI8768 [C-Media CMI8768], device 0: CMI8738-MC8 [C-Media PCI DAC/ADC]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: CMI8768 [C-Media CMI8768], device 2: CMI8738-MC8 [C-Media PCI IEC958]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: SB [HDA ATI SB], device 0: ALC883 Analog [ALC883 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: SB [HDA ATI SB], device 1: ALC883 Digital [ALC883 Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: SB [HDA ATI SB], device 2: ALC883 Analog [ALC883 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 3: U0x46d0x8d7 [USB Device 0x46d:0x8d7], device 0: USB Audio [USB Audio]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 4: default [C-Media USB Headphone Set ], device 0: USB Audio [USB Audio]
    Subdevices: 1/1
    Subdevice #0: subdevice #0


    Now we have a ton of information about my hardware.
    We know that my C-Media8768 card is actually a C-Media8738-MC8 (rev10) PCI card on irq 21. It has a primary DAC/ADC input and output at hw0,0 and a second DAC for output only at hw0,1 and digital input and output at hw0,2and it is using the cmipci alsa module. We also know that my SB x00 Azalia HDA Intel chip on the motherboard is a ALC883 with analog and digital input and output and is using the snd_hda_intel module and is hw1. We know the HDMI output on my gpu is hw2,3 and that both of my usb devices are detected at hw3,0 and hw4,0 and we have their IDs. All this without trying to find the owners manual or opening the case up or spending hours searching the forums and google.

    If you are having trouble with sound starting and stopping and pulseaudio crashes you can run pulseaudio from a terminal in verbose mode and gather a lot of information.

    In a terminal type
    Code:
    killall pulseaudio
    
    pulseaudio -vvv
    This can pinpoint problems with alsa drivers, pulseaudio and applications.

    You should save this information somewhere that is easy to get to and cut and paste from. I use tomboy notes myself.

    If you are posting for help in the forums it is very important that you can share this information or it can be very difficult to help you. It is also important to give information on the make and model of your machine especially as there are many solutions that are very specific for certain machines.

    Now you can return to the 10,000 page guide fully armed and if that does not help you now have enough information to obtain help from others.

    http://ubuntuforums.org/showthread.php?t=843012
    Last edited by markbuntu; April 20th, 2009 at 10:48 PM.

  2. #2
    Join Date
    Dec 2008
    Beans
    11

    Re: Command Line Help for Sound Troubleshooting

    Hi All..

    I have some problem with my laptop. when i tested for sound cards i got following information.

    lspci
    00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge
    00:01.0 PCI bridge: Hewlett-Packard Company Unknown device 9602
    00:04.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 0)
    00:05.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 1)
    00:06.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 2)
    00:07.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 3)
    00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode]
    00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
    00:12.1 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI1 Controller
    00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
    00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
    00:13.1 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI1 Controller
    00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
    00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3a)
    00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller
    00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia
    00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller
    00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
    00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 11h HyperTransport Configuration (rev 40)
    00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 11h Address Map
    00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 11h DRAM Controller
    00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 11h Miscellaneous Control
    00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 11h Link Control
    01:05.0 VGA compatible controller: ATI Technologies Inc RS780M/RS780MN [Radeon HD 3200 Graphics]
    01:05.1 Audio device: ATI Technologies Inc RS780 Azalia controller
    08:00.0 System peripheral: JMicron Technologies, Inc. Unknown device 2382
    08:00.2 SD Host controller: JMicron Technologies, Inc. Unknown device 2381
    08:00.3 System peripheral: JMicron Technologies, Inc. Unknown device 2383
    08:00.4 System peripheral: JMicron Technologies, Inc. Unknown device 2384
    09:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)
    0a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 02)


    Bus 005 Device 003: ID 046d:09b8 Logitech, Inc.
    Bus 005 Device 001: ID 0000:0000
    Bus 006 Device 001: ID 0000:0000
    Bus 004 Device 001: ID 0000:0000
    Bus 003 Device 002: ID 03f0:171d Hewlett-Packard
    Bus 003 Device 001: ID 0000:0000
    Bus 002 Device 001: ID 0000:0000
    Bus 001 Device 002: ID 093a:2510 Pixart Imaging, Inc.
    Bus 001 Device 001: ID 0000:0000

    cat /proc/asound/cards
    0 [SB ]: HDA-Intel - HDA ATI SB
    HDA ATI SB at 0x92500000 irq 16
    1 [HDMI ]: HDA-Intel - HDA ATI HDMI
    HDA ATI HDMI at 0x92410000 irq 19

    cat /proc/asound/modules
    0 snd_hda_intel
    1 snd_hda_intel

    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: SB [HDA ATI SB], device 0: STAC92xx Analog [STAC92xx Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0

    arecord -l
    **** List of CAPTURE Hardware Devices ****
    card 0: SB [HDA ATI SB], device 0: STAC92xx Analog [STAC92xx Analog]
    Subdevices: 2/2
    Subdevice #0: subdevice #0
    Subdevice #1: subdevice #1

    I am looking for STAC9250 which has the model as m6...however when i modified the alsa-base code to the above mentioned m6 nothing works...Can you please help me fix this???

  3. #3
    Join Date
    Mar 2008
    Beans
    335

    Re: Command Line Help for Sound Troubleshooting

    I just wanted to give you a shout out and thank you for your efforts to help make it easier for folks but more importantly it helps those of us who are trying to help others trouble shoot their systems .. Thanks, Great effort

  4. #4
    Join Date
    Apr 2008
    Beans
    4,377
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Command Line Help for Sound Troubleshooting

    So, you have a gateway NX something???
    That option does not seem to work for all of the NX series.
    If it is a pa6 you can try the pa6 option.

    Which ubuntu are you using?
    If it is Intrepid you might want to consider upgrading to ALSA 1.1.19 if none of the available options work for you. It may or may not improve your situation though and will make kernel updates a pain. Be sure to read through the post before doing anything.

    http://ubuntuforums.org/showthread.php?p=6589810

  5. #5
    Join Date
    Dec 2008
    Beans
    11

    Re: Command Line Help for Sound Troubleshooting

    Oooops I'm sorry to have posted at the wrong place...

    However my problem is solved..after running the command

    a)cat /proc/asound/cards
    b)Instead of looking at the HDA ATI SB, I verified the alsa mixer gnome for the chip which listed as IDT 92HD71B7X
    c)This looks like dell-series under 92hd71b* series in the list
    d)Modifying the alsa base model=dell-m4-1 and restarting my laptop.....geeeeee the sound works


    Thanks and sorry guys

  6. #6
    Join Date
    Apr 2008
    Beans
    4,377
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Command Line Help for Sound Troubleshooting

    Well, I am glad you figured that out....

  7. #7
    Join Date
    Feb 2009
    Beans
    2

    Re: Command Line Help for Sound Troubleshooting

    Thanks for the tut. I was with you until I got this:

    russell@MCP:~$ aplay -l
    aplay: device_list:207: no soundcards found...
    russell@MCP:~$ arecord -l
    arecord: device_list:207: no soundcards found...
    russell@MCP:~$ /proc/asound/cards
    bash: /proc/asound/cards: No such file or directory

    Of course, the rest of your instruction wasn't much help after this.

    BACKGROUND:
    I had sound playing through both the external speakers and the headphones (no headphone jack override). A few posts suggested updating the ALSA drivers, which I did by running alsa_setup.sh. Now I have no sound at all and the volume control says it can't recognize any devices. On top of that, when I try to adjust volume in Firefox (Pandora radio, for example) the screen goes grey and I have to force quit.

    What's confusing is that "lspci" DOES find the card:

    00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
    00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 03)

    I'm just seriously confused and I keep making it worse. Help.

    Thanks.

  8. #8
    Join Date
    Apr 2008
    Beans
    4,377
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Command Line Help for Sound Troubleshooting

    Well, lspci just asks the bios for the hardware so that means the system still knows its there. There are some options for the AC'97. There is some info about that here

    http://ubuntuforums.org/showthread.php?t=843012

    You can always go back to the old ALSA. Directions fir that should be where you got the directions for using the script.

  9. #9
    Join Date
    May 2008
    Location
    france
    Beans
    14
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Command Line Help for Sound Troubleshooting

    Helloneed help
    I have 8.10 in a packarg bell laptop easynote RS65-M023FR pn=PC28E01502
    windows = sound ok; ubuntu no sound +

    here is my config

    cat /proc/asound/cards
    0 [Intel ]: HDA-Intel - HDA Intel
    HDA Intel at 0xfdcf8000 irq 22
    1 [HDMI ]: HDA-Intel - HDA ATI HDMI
    HDA ATI HDMI at 0xfddec000 irq 17

    cat /proc/asound/modules
    0 snd_hda_intel
    1 snd_hda_intel

    aplay -l
    **** Liste des PLAYBACK périphériques ****
    carte 0: Intel [HDA Intel], périphérique 0 : ALC663 Analog [ALC663 Analog]
    Sous-périphériques: 0/1
    Sous-périphérique: #0: subdevice #0
    carte 1: HDMI [HDA ATI HDMI], périphérique 3 : ATI HDMI [ATI HDMI]
    Sous-périphériques: 1/1
    Sous-périphérique: #0: subdevice #0

    I have upgraded to ALSA 1.0.19 without problem, and tryed to check every single sound control (also tryed headset)
    Result is zero sound
    I have not made changes to my alsa base file

    I am desperate to get the sound working, any help or step by step (yes tryed the forums...) checking wellcome
    This is making me mad


  10. #10
    Join Date
    Apr 2008
    Beans
    4,377
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Command Line Help for Sound Troubleshooting

    You can look here, there is a listing for the Easynote

    http://ubuntuforums.org/showthread.php?t=1043568

    You can also go here for more help


    http://ubuntuforums.org/showthread.php?t=843012

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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