Configuring the audio and updating ALSA for CentOS and RHEL 5

Author(s)

Bill Giannikos (Home Page)

Introduction

This guide will help update your version of the ALSA modules under Fedora 8. This is useful for people who's sound is not currently working with their current version of ALSA. For those that don't know, CentOS 5 and Red Hat Enterprise Linux 5 are basically the same thing just with a different name so this guide applies to both.

Notes

We will be using 'nano' as our text editor of choice but you can use whatever you wish.

While this guide is mainly focused to laptop users there isn't any difference for desktop users.

Prerequisites

You should run a full update for your installation to ensure you have all the latest packages installed.

Installing the latest stable ALSA modules

For an easy install we will be using the ATrpms repository.

1. Load up a terminal window if you are in the graphic interface.

2. Switch to the root user by entering the command “su -” (without the quotes) and typing in your root password

3. Edit the file /etc/yum.conf. Using nano we type the command:

nano -w /etc/yum.conf

4. If you have already configured yum to use the ATrpms repository then append “*alsa*” to the end of the “includepkgs” line and skip the next setup. Otherwise continue on.

5. Add the following to the bottom of this file:

[atrpms]
name=EL $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
enabled=1
exclude=*kmdl*i586*
includepkgs=*alsa*

6. Save the file. In nano you press Ctrl-X, answer yes to the “Save modified buffer” question and then press enter on the file name to write.

7. If you have not previously setup ATrpms execute the following command:

rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms

8. Now execute the following command:

yum install alsa-driver alsa-kmdl-`uname -r`

9. Reboot your system and you will be using the updated ALSA module.

Remember that you may need to adjust your volume settings.

If this guide didn't work

If this guide did not work you may like to view the general Configuring the audio guide or use the Audio Tester.


Discussion

Gianni, 2012/11/13 17:57

[root@localhost etc]# yum install alsa-driver alsa-kmdl-`uname -r`
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
atrpms | 2.6 kB 00:00
Excluding Packages from EL 5Client - i386 - ATrpms
Finished
Reducing EL 5Client - i386 - ATrpms to included packages only
Finished
Setting up Install Process
No package alsa-kmdl-2.6.18-194.el5 available.
Resolving Dependencies
–> Running transaction check
—> Package alsa-driver.i386 0:1.0.24-93.el5 set to be updated
–> Processing Dependency: alsa-kmdl-1.0.24-93.el5 for package: alsa-driver
–> Running transaction check
—> Package alsa-kmdl-2.6.18-308.el5.i686 0:1.0.24-93.el5 set to be installed
–> Processing Dependency: /boot/vmlinuz-2.6.18-308.el5 for package: alsa-kmdl-2.6.18-308.el5
–> Processing Dependency: /boot/vmlinuz-2.6.18-308.el5 for package: alsa-kmdl-2.6.18-308.el5
–> Finished Dependency Resolution
alsa-kmdl-2.6.18-308.el5-1.0.24-93.el5.i686 from atrpms has depsolving problems

  1. → Missing Dependency: /boot/vmlinuz-2.6.18-308.el5 is needed by package alsa-kmdl-2.6.18-308.el5-1.0.24-93.el5.i686 (atrpms)

Error: Missing Dependency: /boot/vmlinuz-2.6.18-308.el5 is needed by package alsa-kmdl-2.6.18-308.el5-1.0.24-93.el5.i686 (atrpms)
You could try using –skip-broken to work around the problem
You could try running: package-cleanup –problems

                      package-cleanup --dupes
                      rpm -Va --nofiles --nodigest

The program package-cleanup is found in the yum-utils package.

janaki raman.m, 2011/10/26 01:31

i am installed redhat el 6 in toshiba satellite L500 usb device not working.iam plugnin pen drive or external hdd i will not display

Keith, 2011/09/22 01:50

Awesome, worked on CentOS 5.7. Thanks!

Dave, 2010/10/29 18:05

Thanks for the tutorial.
FYI, in step 7 I had to change the url
from: rpm –import http://ATrpms.net/RPM-GPG-KEY.atrpms
to: rpm –import http://packages.ATrpms.net/RPM-GPG-KEY.atrpms

Fernando, 2010/04/18 00:07

I have a Dell Studio 14 - model 1450 with Centos 5.4 and the only way I can hear a very very low sound is from 1 of the headphones output… no sound from speakers… i have raised all mixer settings to 100% and still a very ver low only on the phones… any advice?

thanks in advance…

MB, 2010/03/08 20:36

Confirmed this works on Centos 5.4 installed on a Virtual Machine (Win 7 Virtual PC 2007) Thanks!!!

Lalit, 2009/03/27 12:28

I have installed RHEL5 in my Desktop the adio is not coming.

saurabh, 2009/01/13 20:12

Hi,
I am using RHEL5. I got the following Error:

yum install alsa-driver alsa-kmdl-`uname -r`
Loading “rhnplugin” plugin
http://dl.atrpms.net/el5Client-i386/atrpms/stable/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: atrpms. Please verify its path and try again

Looking for solution.

Thanks in advance

Saurabh

Bill Giannikos, 2009/01/14 00:19

If /etc/yum.conf, try changing the line:

baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable


to:

baseurl=http://dl.atrpms.net/el5-$basearch/atrpms/stable
nordin, 2008/11/30 23:36

Hello, thank you very much for your effort to put valuable information on this site.
I did all the steps and after “yum install alsa-driver alsa-kmdl-`uname -r`” it installed everything well, it ends with Complete. So I rebooted my machine, but still no sound.

I use CentOS 5 on a 64 bits AMD processor, and EMU 0404 pci soundcard.

An important thing to mention: On the “System” tab of the GUI audio-configuration, I see the alsa driver is 1.0.18a, while the lib and utils packages are of 1.0.14. Is that normal?

Thank you.

Nobody, 2008/07/04 02:10

Thanks alot. My laptop is speaking now ! :)

Enter your comment. Wiki syntax is allowed:
If you can't read the letters on the image, download this .wav file to get them read to you.
 
configuring_the_audio_and_updating_alsa_for_centos_and_rhel_5.txt · Last modified: 2009/09/19 07:52 by billg
Contact Us Sister Sites Privacy Policy Terms of Use
Copyright © 2006-2013 Linwik.com and other authors