![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Multimedia & Video Have multimedia question? ATI, Nvidia, Sound cards. Just ask here. |
|
|
Thread Tools | Display Modes |
|
|
#1 | |||
|
Ubuntu Extra Shot
![]() Join Date: Dec 2005
Location: Mississauga, ON, Canada
Beans: 245
Kubuntu 6.10 Edgy
|
Comprehensive Sound Problem Solutions Guide v0.5e UPDATE - The instructions on this page have a new home at Comprehensive_Sound_Problems_Solutions_Guide I'm still leaving a copy here in the meantime, until I am happy with the layout there. Version History (DD-MM-YY) 28-06-06 - version 0.1 - initial creation 28-06-06 - version 0.2 - alsa-source guide added 28-06-06 - version 0.3 - alsa-drivers from alsa-project guide added 29-06-06 - version 0.4 - multiple sounds and multiple cards support added 02-07-06 - version 0.4 - fixed mistake spotted by Jvaldezjr 04-07-06 - version 0.5a - layout changes - starting on MIDI guide - Read *EXPERIMENTAL* 04-07-06 - version 0.5a - added part on saving sound settings so they are restored after reboot. 11-07-06 - version 0.5b - added guide for doing a *fresh* kernel installation 13-07-06 - version 0.5c - minor layout edit - moved *fresh* kernel above compilation to see if it is more help and if it solves more problems. 15-07-06 - version 0.5d - usage update 17-07-06 - version 0.5e - added Advanced Guides by other Ubuntuers 21-08-06 - Initial phase of moving page to UDSF 23-08-06 - Added a Further Reading section - first link thanks to segalion. 12-11-06 - version 0.6 - finally added "Adding the current user to the audio group" - and a few formatting fixes Background / Notes / Warnings
General Help - Start here if you have no idea why sound is not playing (1) Go to a shell and type: Code:
aplay -l
(2) Type this into the shell: Code:
lspci -v
(4) Now go back to the shell and type Code:
sudo modprobe snd- For example, my driver is a via82xx so I would type, sudo modprobe snd-via82xx.
Getting the ALSA drivers from a *fresh* kernel Sometimes, sound might be configured correctly, but for some reason or another (tinkering) it stops working. One way to go back to the old setup is to reinstall Ubuntu. However, this step is actually quite unnecessary since you are reinstalling everything because of one thing. A faster way, is to just remove the problematic packages and reinstall them cleanly. (1) Remove these packages Code:
sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils (2) Reinstall those same packages Code:
sudo apt-get install linux-sound-base alsa-base alsa-utils VERY IMPORTANT NOTE: Ubuntu (GNOME) users have reported that packages 'gdm' and 'ubuntu-desktop' are removed after removing the linux-sound-base packages. If this happens, then do the following Code:
sudo apt-get install gdm ubuntu-desktop (3) Reboot VERY IMPORTANT NOTE: Xubuntu (XFCE) users have reported that packages 'gdm' and 'xubuntu-desktop' are removed after removing the linux-sound-base packages. If this happens, then do the following Code:
sudo apt-get install gdm xubuntu-desktop (3) Reboot Now you may ask "I already had the packages, so why did I go through the trouble of removing them, then installing them". The answer lies in the --purge option which removes all the extra information that accumulated from tinkering and upgrading. After doing a purge then install, the packages are unpackaged as if it they are brand new. (4) At this point, try using Code:
aplay -l
ALSA driver Compilation
Using alsa-source
If you get no error messages, you will have installed the drivers successfully.
Using drivers from alsa-project - update I now recommend using the stable version 1.0.12
Code:
If you get no errors from doing the above then you have successfully compiled alsa-drivers from source. Resume this guide from General Help step 4. Using alsamixer
Do this step to ensure that your alsamixer settings are reloaded with each boot. First make sure you have your settings just the way you like them in alsamixer. Then do Code:
sudo alsactl store 0 Getting more than one application to use the soundcard at the same time
Configuring default soundcards / stopping multiple soundcards from switching Note: This section assumes that you have installed each soundcard properly.
Code:
options snd-C index=0 Adding the current user to the audio group A very common cause for a user to not have sound is not having his/her username in the /etc/group. Thanks to rustybutt for this simple check. Code:
grep 'audio' /etc/group Code:
audio:x:29: Code:
audio:x:29:ubuntu Code:
audio:x:29:root Code:
sudo nano /etc/group Code:
audio:x:29:root Code:
audio:x:29:root:moocow Hit CTRL + 0 to save, then CTRL + X to exit. That's the end of that Getting MIDI To Work - *EXPERIMENTAL* This section assumes you can successfully hear sound from your soundcard. First of all, make sure that you actually have a MIDI port on your soundcard. Most onboard soundcards do not have a MIDI port. Next, open up this file: Code:
sudo nano /etc/modprobe.d/alsa-base Then add this options line Code:
options <snd module name here i.e. snd-via82xx> mpu_port=0x330 OR if you already have a options line for this soundcard add Code:
mpu_port=0x330 The default MIDI port is 330. You should verify this number in your BIOS if you are not sure. If the number is not listed, it is most likely that the number is 330 (add the 0x for the file). If you get no errors, you have successfully installed your MIDI port. At the moment, I do not know if any further configuration is necessary. Miscellaneous Tips and Tricks Here are a few things that other people have dug up over the course of this guide. Not all tips are meant to work for all hardware (believe me hda-intel will probably have like a mini guide of it's own one day).
Quote:
Quote:
Further Reading http://www.sabi.co.uk/Notes/linuxSoundALSA.html - Some advanced reading on ALSA - thanks segalion To Do: Important - no particular order
Related Getting keyboard multimedia keys to work - http://doc.gwos.org/index.php/MultimediaKeys (I personally like the non-keytouch route - configuring xmodmap and then using gnome-keybindings or for KDE (System Settings >> Regional and Language Settings >> Keyboard Shortcuts). The xmodmap route also works for XFCE, but I do not how to configure XFCE application keybindings. Posts / References /Credits MultipleCards from alsa.opensrc.org Every single sound problem error post I have read ![]() The Ubuntu community for being energetic, dynamic, and polite Last edited by LordRaiden; November 12th, 2006 at 10:55 PM.. |
|||
|
|
|
|
|
#2 |
|
Ubuntu Extra Shot
![]() Join Date: Dec 2005
Location: Mississauga, ON, Canada
Beans: 245
Kubuntu 6.10 Edgy
|
Re: Comprehensive Sound Problem Solutions Guide
Bumping this post since I think it is ready to be used by people having trouble with sound. I'll do my best to field questions and make changes to this guide as needed. If you are an experienced Ubuntu user, please help out with testing, verifying, and helping people who use this guide.
Thanks in advance
__________________
Comprehensive Sound Problems Solution Guide | ALSA Bugtracking https://bugtrack.alsa-project.org |
|
|
|
|
|
#3 |
|
First Cup of Ubuntu
![]() Join Date: Apr 2006
Beans: 7
|
Re: Comprehensive Sound Problem Solutions Guide
Excellent. Thank you.
I had a problem with multiple card switching and reported it as a bug. Are options in alsa-base (also suggested to me on launchpad) workaround or solution? Im definitely interested in midi (new yamaha dx-305 sitting just next to pc). |
|
|
|
|
|
#4 |
|
Ubuntu Extra Shot
![]() Join Date: Dec 2005
Location: Mississauga, ON, Canada
Beans: 245
Kubuntu 6.10 Edgy
|
Re: Comprehensive Sound Problem Solutions Guide
Options in alsa-base would be a solution. alsa-base is a part of the official Ubuntu Repositories, so they would be considered a solution. The alsa-drivers from alsa-project would be considered a workaround until Ubuntu incorporates the official 1.0.11 stable into alsa-base.
__________________
Comprehensive Sound Problems Solution Guide | ALSA Bugtracking https://bugtrack.alsa-project.org |
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() Join Date: Jun 2006
Beans: 9
|
Re: Comprehensive Sound Problem Solutions Guide
it just helped ma mute computer to speak up..is there sum comprehensive graphx driver problem solutions guide too...
|
|
|
|
|
|
#6 |
|
Ubuntu Master Roaster
![]() Join Date: Oct 2004
Location: Netherlands
Beans: 2,968
Ubuntu 8.04 Hardy Heron
|
Re: Comprehensive Sound Problem Solutions Guide
great guide! I'm sure this will help a lot of users!
__________________
my blog : http://ubuntudemon.wordpress.com Feisty/Gutsy/Hardy Quick Guide (including multimedia playback) http://ubuntuforums.org/showthread.php?t=567507 Ubuntu Customization Guide http://www.ubuntuforums.org/forumdisplay.php?f=159 |
|
|
|
|
|
#7 |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2005
Beans: 100
Kubuntu 7.04 Feisty Fawn
|
Re: Comprehensive Sound Problem Solutions Guide
Excellent guide- I've just reinstalled Dapper, so I'll retry my sound issues with this guide, and see what happens.
**Update*** I went through the steps like you mentioned, and I believe it is working like it is supposed to. I'll post if I have more problems in another thread, but as of right now I'm getting 5.1 sound. The only problem I had was when I rebuilding the alsa drivers with alsa-source. The command "dpkg-reconfigure alsa-base" didn't produce anything- there was a pause at the prompt, then that was it. Something ran, but I got no feedback as to what it did. So I went through the steps with the module-assistant method, and so far so good. Also, I never was able to get any output when I did "sudo modprobe snd-" and hit tab. So I went through with the loading the module anyway (my case it was snd-intel8x0). When I added that module to my /etc/modules file and rebooted, I believe that fixed it. However, when I checked to see if the module was loaded (lsmod | grep snd) the only thing I saw that was close to snd-intel8x0 was snd_intel8x0. Is there a different between using the - and the _ , or is it still the same module, and should I have added snd_intel8x0 to /etc/modules? Thanks Last edited by Jvaldezjr; July 2nd, 2006 at 05:09 PM.. |
|
|
|
|
|
#8 |
|
Gee! These Aren't Roasted!
![]() |
Wonderful!
If only all howto type things where broken down into the nice "tree" you made. (I'm refering to the succes/failure thing) It was very easy to understand, even for a noob like me |
|
|
|
|
|
#9 |
|
5 Cups of Ubuntu
![]() Join Date: Jun 2006
Beans: 28
Ubuntu 6.06
|
Re: Comprehensive Sound Problem Solutions Guide
Tried it, and have yet to have success. I am using a Gigabyte nVidia nForce 4 motherboard, and the alsa-project has nothing set for it, or what I can make of it.
![]() |
|
|
|
|
|
#10 |
|
Ubuntu Extra Shot
![]() Join Date: Dec 2005
Location: Mississauga, ON, Canada
Beans: 245
Kubuntu 6.10 Edgy
|
Re: Comprehensive Sound Problem Solutions Guide
Jvaldezjr - Thanks for the comments - you found an error in my instructions - it was supposed to read
Code:
sudo apt-get dpkg-reconfigure alsa-source ubuntu_demon - thanks for the comments and the sticky!!! linish - glad I could help. Video gets a bit tricky and most of the work has been done. I might make a guide that links to all the relevant guides for ATI/NVIDIA/free drivers. acorn22 - thanks for the comments. I tried to make it as new-user friendly as possible and I assume that the new-user has no previous knowledge whatsoever. This characteristic, IMO, makes the guide longer, but more thorough and less ambiguous. starmartyr - I think your sound card driver is th intel8x0.
__________________
Comprehensive Sound Problems Solution Guide | ALSA Bugtracking https://bugtrack.alsa-project.org Last edited by LordRaiden; July 3rd, 2006 at 03:34 PM.. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|