LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-11-2008, 04:56 AM   #1
a.almeida
LQ Newbie
 
Registered: Feb 2008
Location: Luxembourg, Europe
Distribution: Ubuntu 10.04
Posts: 7

Rep: Reputation: 0
Unhappy Recurrent audio failure in openSuse 10.3


My hardware is a Toshiba P20-S303, the distribution is openSuse 10.3 (Linux 2.6.22.16-0.2-default i686) and I use KDE (3.5.7 "release 72.6").
Sometimes the sound doesn't work. The only message I get about this is when I try to play a video with Mplayer: "[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy".
When I'm lucky after rebooting everything works again.
Is there an easy way of restarting the sound module without rebooting?
Thanks for your hints!
Antonio Almeida
 
Old 02-11-2008, 11:41 AM   #2
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
Do you have two sound/music software running at the same time?
One software might lock the sound card for it's use. Some applications accept to share resources other don't ...

ALSA is usually used in Linux to output. You can restart alsa by doing:
Code:
/etc/init.d/alsa-utils restart
alsa-utils is a init.d startup script which brings alsa up when the OS boots.
If the sound system is working then it quits then most likely you have a software that's causing alsa to hang up.
 
Old 02-12-2008, 09:10 AM   #3
a.almeida
LQ Newbie
 
Registered: Feb 2008
Location: Luxembourg, Europe
Distribution: Ubuntu 10.04
Posts: 7

Original Poster
Rep: Reputation: 0
Every time immediately after the start I check if the Mplayer fails and shows the warning on the sound device or not. Sometimes it does and sometimes not, so I don't see which other programme could be running after the start. I also checked in Yast and couldn't find any other sound programme but alsa. I've just tried to run the instruction "/etc/init.d/alsa-utils restart" but I always get the message "-bash: /etc/init.d/alsa-utils: No such file or directory". I also tried in vain to find it in other directories. Yast definitely shows alsa-utils version 1.0.14-27 to be installed.
Do you have another hint?
Cheers,
Antonio
 
Old 02-12-2008, 09:39 AM   #4
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
OpenSUSE might name the script that reboots alsa differently. Please do this:
Code:
ls -l /etc/init.d
Then try to look for a reference to alsa. You have to excute the script from within that folder with a restart switch. The way you do that is:

Code:
./alsa???? restart
where the question marks stand for whatever the name of the script is.

It looks like Mplayer for some reason is locking up your sound card. I would also view the file /var/log/messages in a text editor and see if there is any error messages or warnings coming from Mplayer. That might give you an idea.
 
Old 02-12-2008, 10:15 AM   #5
a.almeida
LQ Newbie
 
Registered: Feb 2008
Location: Luxembourg, Europe
Distribution: Ubuntu 10.04
Posts: 7

Original Poster
Rep: Reputation: 0
Wow! That's it! The programme is "alfasound" and the "restart" switch does work!
Many thanks!
Antonio
 
  


Reply

Tags
audio, failure, opensuse


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Opensuse online update failure pwabrahams Linux - Software 1 02-11-2008 10:30 AM
MP3 Audio support openSuse 10.2 Sir Loin Linux - Distributions 3 10-03-2007 07:46 AM
failure to install opensuse 10.2 after boot from cd digitaldivider667 Linux - Hardware 5 06-25-2007 09:45 AM
recurrent cronjob Thulemanden Linux - Software 1 07-15-2006 05:57 AM
Recurrent I/O failure: motherboard related? ryanreich Linux - Hardware 3 04-22-2005 02:43 PM


All times are GMT -5. The time now is 10:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration