UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I recently installed Ubuntu 9.04 on my computer. It works fine, except there's no sound. My sound is an integrated chipset on my P4x400 motherboard. I was able to get a driver on Windows, but there is no such one for Linux. I was wondering if anyone had any advice.
00:00.0 Host bridge: VIA Technologies, Inc. P4X333/P4X400/PT800 AGP Bridge (rev 03)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI Bridge
00:0a.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
00:0d.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 4000] (rev c1)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
kernel module.
The first step is to run the command
Code:
lsmod | grep snd
to list just your loaded sound moules. Is snd-cmipci in the list.
If its missing, do
Code:
modprobe snd-cmipci
to attempt to load it.
By now, your sound card module is loaded, try lspci again, or you have encountered an error. Either post the error, if there is one, or try your sound again.
Try this, to continue the process (note: this often works, but might not, and may not work if you are not using ALSA)
Open a console, and as root user, type 'alsamixer' or 'alsaconf'.
Alsaconf is a process that you just need to select and click stuff like Yes/No; it's pretty intuitive and should put your sound system in some sort of basically working state..
Alsamixer on the other hand, requires you to adjust the mixer settings using the M key for MUTE/UNMUTE, and the arrow keys to move L/R and to slide things up/down. Particularly important are the Master Volume, Front Volume (usually-- or whatever label applies to the laptop's speakers) and the PCM device. Make sure that these items are not muted (they should show a 00 not a MM at the bottom of the slider) and that their volumes are reasonably UP, not down.
After using Alsamixer, hit ESC to exit, and type 'alsactl store' to save the settings.
Personally, I would run Alsaconf first, and see if that works for you, and then (whether it works or not) try Alsamixer, just so you can see it and know what settings you have available.
Good luck!
Sasha
PS - Generally, root user does not exactly exist on Ubuntu. Use SUDO in this case.
With alsamixer, you use the ARROW keys to move left/right from slider to slider, or to move a slider up/down.
Use the <M> key to mute/unmute a setting (a slider).
The goal is to make sure that the Master Volume is UP, the PCM volume is UP, and whatever slider corresponds to your speakers is UP. As well, make sure you do not see a MM at the bottom of these sliders; this means it is MUTED. Press <M> to change the MM to a 00 (meaning UNmute).
When all done, hit ESCAPE to exit alsamixer, and type 'alsactl store' to save the settings.
All right, I did that. Everything appears to be on that needs to be on.
OK, now using whatever Control Panel or System>Sound settings area is offered by Ubuntu, can you re/start and/or test your sound system, and do you now have sound?
Silly too, but: Is the volume turned up on the computer?? (Our laptop has a little volume dial)
EDIT -- maybe disregard the volume dial bit, I don't know what gave me the idea this is a laptop.
Last edited by GrapefruiTgirl; 07-31-2009 at 03:04 PM.
Something that GrapefruiTgirl omitted is that most sound cards can do digital and analogue output but only one at a time and digital takes priority if you try to do both.
Be sure that any control with IEC or SPDI/F in its name is muted. Those are digital controls.
On laptops, you may also need to mute the Headphone output.
snd_cmipci is the ALSA driver for your card. You also appear to have all the other things you need to make alsa sound work. In a terminal, try
Code:
mplayer -ao alsa </path/to/sound/file>
this forces mplayer to use alsa for its sound. It will work out for itself what sort of sound file you have asked it to play.
If that fails, do you have any USB sound devices connected?
Do
Code:
lsmod | grep snd
and look in the output to see if snd_usb_audio is listed. Its used for Webcams with microphones, USB headsets and things like that.
If you have snd_usb_audio loaded, look at the module load order. Things loaded first are at the bottom of the list
snd_usb_audio must be above snd_cmipci or your system will default to using snd_usb_audio, which you don't want.
Something that GrapefruiTgirl omitted is that most sound cards can do digital and analogue output but only one at a time and digital takes priority if you try to do both.
Be sure that any control with IEC or SPDI/F in its name is muted. Those are digital controls.
On laptops, you may also need to mute the Headphone output.
Ok, turned off anything with IEC in its name.
Quote:
snd_cmipci is the ALSA driver for your card. You also appear to have all the other things you need to make alsa sound work. In a terminal, try
Code:
mplayer -ao alsa </path/to/sound/file>
this forces mplayer to use alsa for its sound. It will work out for itself what sort of sound file you have asked it to play.
Nope, silence.
Quote:
If that fails, do you have any USB sound devices connected?
Do
Code:
lsmod | grep snd
and look in the output to see if snd_usb_audio is listed. Its used for Webcams with microphones, USB headsets and things like that.
If you have snd_usb_audio loaded, look at the module load order. Things loaded first are at the bottom of the list
snd_usb_audio must be above snd_cmipci or your system will default to using snd_usb_audio, which you don't want.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.