openSUSE Forums > Hardware > 64-bit » alsasound needs "rcalsasound restart"

Go Back   openSUSE Forums > Hardware > 64-bit
Forums FAQ Members List Search Today's Posts Mark Forums Read


64-bit Questions specific to 64 -bit hardware (Software questions should be posted in the appropriate software forums)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 30-Aug-2009, 20:48
Puzzled Penguin
 
Join Date: Aug 2009
Posts: 7
klinkigt hasn't been rated much yet
Default alsasound needs "rcalsasound restart"

Hi,

I have a problem concerning sound in openSuSE 11.1 with KDE 4. My problem is, that it works half.

when I restart often only amarok works. no Startsound of kde and also skype says there is no sound.

If I only do a "rcalsasound restart" as root everthing works well. I have sounds in KDE and Skype. I also tried to add the user to audio und pulse* groups but this does not chnge anything.

Is there an better solutions als calling "rcalsasound restart" after each restart?

Thanks
Martin
Reply With Quote
  #2 (permalink)  
Old 31-Aug-2009, 00:29
oldcpu's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Europe
Posts: 10,729
oldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of light
Default Re: alsasound needs "rcalsasound restart"

Quote:
Originally Posted by klinkigt View Post
I have a problem concerning sound in openSuSE 11.1 with KDE 4. My problem is, that it works half.

when I restart often only amarok works. no Startsound of kde and also skype says there is no sound.

If I only do a "rcalsasound restart" as root everthing works well. I have sounds in KDE and Skype. I also tried to add the user to audio und pulse* groups but this does not chnge anything.

Is there an better solutions als calling "rcalsasound restart" after each restart?
klinkigt, if it were me with these symptoms, and if I wished to understand better what was happening, what I would try to do is determine what device was using the sound driver during the various instances you describe.

Sometimes, when one has basic sound functioning, but then it appears to stop in the middle of a session (to be restored after a reboot or restored via "rcalsasound restart") it may be because an application has seized your audio device, and the application is not sharing nor letting go the audio device. To determine what application is using one's sound device, copy and paste the following into a terminal or a konsole:
Code:
lsof /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/*
If one runs the above line at different times, when one's sound is working and not working, one can learn better as to what the output means, and be better able to " point one's finger " at the offending application that has seized the audio device.

So I recommend you run that line, and copy and paste and save the output, in each case you described, ... ie
  • when everything works - boot sound, amarok, Skype
  • when only amarok works
  • after running "rcalsasound restart"
Then compare the various outputs, to see if you can determine the offending application that may have seized the sound when your Skype struggles. Note I do not use Skype, so I can not offer any support there.

Note that "rcalsasound restart" will typically break the hold of any devices that have inappropriately "seized" the sound device.

Also note that for multiple applications to use the sound device at the same time, typically requires one use the ALSA API, or use Pulse Audio, where unfortunately Pulse Audio is buggy, and its use not very understood by many of us (I include myself in that category).

There are some basic sound concepts here (in case you are curious about more details): Sound-concepts - openSUSE

If you wanted to run "rcalsasound restart" automatically at every boot, you can put it in at the end of the /etc/init.d/boot.local file.
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2