LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-21-2006, 02:32 PM   #1
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Rep: Reputation: 30
Sound Problems


After setting my system sounds to start when Linux starts up, I get the following message when trying to use Rhythmbox: "OSS device "/dev/dsp" is already in use by another program" and "Could not pause playback". What can I do to fix this?

And also, when I restart my computer, I have to go and reselect the volume. It goes down to nothing everytime I restart. Any ideas?

Thanks.
 
Old 09-21-2006, 04:31 PM   #2
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 31
OSS is becoming obsolete. Use ALSA instead--that should fix this problem.
 
Old 09-22-2006, 04:29 PM   #3
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
Thanks. Do you have any websites where I might find ALSA for kernel 2.6.16.2-686. The ALSA in my repositories is for 2.4 only.

Thanks.
 
Old 09-23-2006, 01:12 AM   #4
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 31
Here you go:

http://packages.debian.org/stable/sound/alsa-source

If you don't have it installed, then install module-assistant. It makes it very easy to build kernel modules and will turn them into .deb files for you to install with dpkg. You can use module-assistant to build alsa-source from the command line; it will do a lot of the dirty work for you.

Last edited by pda_h4x0r; 09-23-2006 at 01:14 AM.
 
Old 09-23-2006, 09:34 AM   #5
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
When running module assistant I get the following message:

"Warning, /usr/src/linux-headers-2.6.16-2 seems to contain unconfigured kernel source!"

I went past this and tried to build the source, but it fails.

Even after installing the source it still tells me that the source package may not be installed.

Any ideas?
 
Old 09-23-2006, 01:35 PM   #6
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 31
You need Debian's kernel headers to build modules. The Vanilla ones (i.e. from kernel.org) will not work without Debian patches applied. To download already-patched kernel headers, you may need to modify your /etc/apt/sources.list file and add a deb entry for the testing branch to get them. Otherwise, you will have to download Debian's patches for that particular kernel and patch a Vanilla kernel yourself.
 
Old 09-23-2006, 02:29 PM   #7
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pda_h4x0r
You need Debian's kernel headers to build modules. The Vanilla ones (i.e. from kernel.org) will not work without Debian patches applied. To download already-patched kernel headers, you may need to modify your /etc/apt/sources.list file and add a deb entry for the testing branch to get them. Otherwise, you will have to download Debian's patches for that particular kernel and patch a Vanilla kernel yourself.
I did some more research on the unconfigured kernel. Turns out that this is a bug with Module-Assistant that was corrected in a newer version. I installed the never version and now it works. Got the module for ALSA compiled and installed too.

Now, even though ALSA is installed now, I still have the same problem. When I go to Applications/Desktop Preferences/Advanced/Multimedia System Selector there is only the option to choose OSS. Where can I change to ALSA?

Thanks.
 
Old 09-24-2006, 12:29 AM   #8
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 31
Quote:
Originally Posted by LonelyTraveler
I did some more research on the unconfigured kernel. Turns out that this is a bug with Module-Assistant that was corrected in a newer version. I installed the never version and now it works. Got the module for ALSA compiled and installed too.
Okay, that works too

Now you need to run "apt-get install alsa-base alsa-tools alsa-oss alsa-firmware-loaders alsa-utils" as root. After that, run "alsaconf" as root, which will configure alsa to work with your sound card. You may end up losing some OSS stuff--this should be fine.
 
Old 09-25-2006, 06:14 PM   #9
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
I did what you said. When I start my computer now the volume is as it should be, but I still can't play music. When I go to Applications/Desktop Preferences/Advanced/Multimedia System Selector there is still only the option to choose OSS.
 
Old 09-26-2006, 12:14 AM   #10
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 31
To verify that ALSA is indeed working, open up a terminal and run "alsamixer" to adjust your volume if necessary. Then run "speaker-test." If you hear static noise, then ALSA is working.

What GUI are you using? I can't find "Desktop Preferneces/Advanced/Multimedia System Selector" in either GNOME or KDE.
 
Old 09-26-2006, 06:23 PM   #11
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
When running speaker-test I get the following error:
Code:
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
Playback open error: -16,Device or resource busy
I'm using GNOME. You can also get to the advanced icon by typing "gnome-control-center" in terminal.
 
Old 09-29-2006, 10:23 AM   #12
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
There's a "test" button in "Multimedia System Selector" -- does it put out a tone?

BTW the "Multimedia System Selector" is under System -> Preferences with a vanilla Gnome install.
 
Old 09-30-2006, 06:40 AM   #13
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
I get the following error message: "Failed to construct test pipeline for 'OSS - Open Sound System'".
 
Old 09-30-2006, 02:46 PM   #14
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
Any ideas?
 
Old 09-30-2006, 03:47 PM   #15
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
I don't know much about how Debian handles audio, but you could try adding yourself to the audio group (add your user name to the audio entry in /etc/group). Also if you don't have a .asoundrc file you might consider creating one (the alsa homepage gives information about how to do this).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound problems (alsaconf cannot find sound modules.) vmlinuz.gz Linux - Newbie 8 11-12-2008 03:36 AM
Sound problems with via on board sound 8237 Melz_Dark_Angel Linux - Hardware 2 04-06-2006 03:34 AM
Sound problems with ubuntu 4.1 and a realtek sound card linux-novice Linux - Newbie 1 02-18-2006 11:44 PM
Sound Problems: CD works, no system/mp3/video sound tabnaka SUSE / openSUSE 5 01-13-2006 12:33 PM
Problems getting sound to play under Mandrake w/2 sound cards HGeneAnthony Linux - Hardware 1 07-02-2004 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration