LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-22-2006, 11:51 PM   #1
umichLinux
LQ Newbie
 
Registered: Mar 2005
Distribution: Debian 3.1, Red Hat 9 Linux
Posts: 23

Rep: Reputation: 15
Gnome freezing . . . related to sound?


Hello all,

I've been tinkering with my sound setup for a while now, trying to get everything to work, and work simultaneously if possible. I upgraded my kernel to 2.6.14.3, and compiled Alsa as modules. I followed instructions here (also this google cache, the site seems to be down) to use Alsa and ESD to handle the multiple sounds. However, now my gnome panel periodcally freezes when I click a launcher (it's supposed to make a sound then). it doesn't happen every time I try to launch a program, just occationally. I do get the startup sounds, and if I can manage to open a program, sound seems to work fine otherwise. I've tried having my system monitor open to systematically kill processes to see which may be the culprit, but it freezes with the panel. (btw, when the panel freezes, it won't respond to clicks or anything, but any programs that I do have open work perfectly fine)

I can boot into the old kernel (where, unfirtunately, sounds do not work) and gnome is stable as can be imagined.

Anyone have any clues as to what may be causing this? Also, what other methods can I use to kill processes and possibly restart them to aid in diagnosis?

additional details about my setup can be found in this previous post, or if there is any other information that would be helpful, I can post it.
 
Old 01-23-2006, 01:04 PM   #2
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
you can type ps -A |more at a command line (preferably outside x).

then type: kill #### (ie whatever process # shows for something you want to shut off).

as far as making 'all' sound work at one time.. i never heard that linux can do that.

usualy depending on what you are trying to do, only one or two sound protocols can be 'on' at one time (ie alsa and oss)... otherwise you are looking for trouble.

but afaik (and i work in sound a little bit) linux sound system is fragmented and in flux very much, so hence this issue.

if you are 'heavy' into multimedia, i suggest a debian type system (custom to your likes) .. with one os dedicated to servers and one for users.

good luck.

Last edited by halvy; 01-23-2006 at 01:05 PM.
 
Old 01-23-2006, 02:01 PM   #3
umichLinux
LQ Newbie
 
Registered: Mar 2005
Distribution: Debian 3.1, Red Hat 9 Linux
Posts: 23

Original Poster
Rep: Reputation: 15
thank you, I'll try those commands and get back with what I've found out.

From what I have read, both Alsa and ESD are meant to take multiple sounds in and play them simultaneously ... this is supposed to be part of what makes alsa an improvement over oss, and esd better than having no sound daemon. As well, getting "all" sounds to work at one time may be an overstatement, I'm really just looking for two or three sounds simultaneously (for instance, music via xmms, and audio gaim notifications, and system bells all being able to happen at once if need be)

I am, in fact, running Debian 3.1. I used the howto linked in my first post because I knew that debian and ubuntu are closely related.

Quote:
if you are 'heavy' into multimedia, i suggest a debian type system (custom to your likes) .. with one os dedicated to servers and one for users.
As for this, I don't really understand what you're suggesting, could you elaborate?

thanks for your help!

umichlinux
 
Old 01-23-2006, 05:27 PM   #4
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
Quote:
Originally Posted by umichLinux
..because I knew that debian and ubuntu are closely related.


As for this [ie seperate os for server and user], I don't really understand what you're suggesting, could you elaborate?

thanks for your help!

umichlinux
nothing is closely related to debian

as far as me suggesting that you have two different os's for servers and users..

servers would be for, lets say you wanted to run an internet radio station, with a web site for it as well, and possibly other 'business' like applications..

well that could be done, but at the expense of being able to have a system 'dedicated' for the user solely.

in other words, there are (or can be) great trade offs when trying to make EVERYTHING you want to do, into one system.

so (in my opinion) it is better (ie easier, quicker, more 'stable' to have systems for each type of needs.

it is not impossible to 'combine' these things, but it is nearly impossible... without serious 'trade off's'.

this is one reason you will see many distros have seperate os version for 'server' (or business) and one regular one.

Last edited by halvy; 01-23-2006 at 05:30 PM.
 
Old 01-25-2006, 02:55 PM   #5
umichLinux
LQ Newbie
 
Registered: Mar 2005
Distribution: Debian 3.1, Red Hat 9 Linux
Posts: 23

Original Poster
Rep: Reputation: 15
ok, so I tried killing various processes, and I found that killing the first instance of esd unfreezes everything, but it also kills my system sounds for the rest of the session. (only the sounds when clicking launchers on the panel, etc. other apps that use alsa still work)

I went through all the programs that I want to use sound in, and they are all configured to use alsa, so my thought is that I could simply get rid of esd all together. Unfortunately, when I try to remove esound-common using apt-get, it tells me that a ton of programs rely on it, including packages "gnome" and "gnome-desktop-environment." I guess I don't need to remove esound, but I would like it if it wouldn't crash gnome.

The first question is why does esd freeze gnome? is it something to do with how I have it configured? Can I fix it?

The second question is (with the thought that this may be easier) can I switch the output of my system sounds to use alsa directly instead of esd (which uses alsa indirectly)? I figured that this was what gstreamer did (I have that set to use alsa), but maybe not?

thanks
umichlinux

P.S. I don't think I'm hardcore enough to need to run a separate system for what I want to do . . . I'm just trying to do some simple multitasking. yes, if I were trying to run a webserver or ssh server, etc, I would probably use a separate machine.
 
Old 01-25-2006, 04:48 PM   #6
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
esd freezes gnome because you are using it as a protocol.

i know that sounds stupid, but esd is very old and i'm not even sure it is being supported (but i think it is being replaced slowely by gnome -alsa).

it was for gnome originally-- i think, like you said, seperate instances, via demeons.

yes, use alsa (or better yes, oss) for input and output with gstreamer setup.

that is what i use, and have found to be most 'overall' best set up for playing whatever i wanted to.

however still be advised that 'sometimes' programs will require you to 'shut off' sound server (which controls systems sounds) in order for them to work.

but this is rare and i'v only found it to be necessary when using vlc.

so leave esd in there.. it will not hurt anything (as long as you don't rely on it).

this way, when other programs require it, it will be brought 'up'.

i usually also put and keep as many protocols like esd (ie poly, nas, etc).. unless i KNOW it will be a serious issue (or like in your case, you can't un-install it, becuase gnome will croke).

anyway i'm glad your making some progress.

Last edited by halvy; 01-25-2006 at 04:50 PM.
 
Old 01-27-2006, 02:40 PM   #7
umichLinux
LQ Newbie
 
Registered: Mar 2005
Distribution: Debian 3.1, Red Hat 9 Linux
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by halvy
yes, use alsa (or better yes, oss) for input and output with gstreamer setup.
ok, I have set alsa as the input and output for gstreamer, but my system sounds still want to use esd. It seems that either gnome uses exclusively esd for it's system sounds, or there is a setting somewhere else that I have to change (I've looked all over, but haven't found anything yet).

for the time being I have fixed the freezing by having the sound system (esd) disabled at boot, but in my mind this is a temporary solution. In theory, esd shouldn't be crashing . . . do you have any insights into why it is? (/etc/esound/esd.conf below for reference)

thanks,
umichlinux

Code:
[esd]
auto_spawn=1
spawn_options=-terminate -nobeeps -as 2 -d default
spawn_wait_ms=100
# default options are used in spawned and non-spawned mode
default_options=
 
Old 01-27-2006, 05:57 PM   #8
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
well you might have solved your problem by shutting it off at boot.

nothing wrong with that.

and if you fooled apt by going in there and ripping esd out.. you would be wishing you didn't when a prog wanted to call it up.

i would not worry about the 'why' of it, because that is something the programmers who wrote esd are suppose to do.

unless you have a reason to worry about that, i would move on to something more productive from this point on.

let it go man
 
  


Reply


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
SuSE v.10 with Gnome and related puzzlements pofadda SUSE / openSUSE 3 12-11-2005 03:18 PM
Gnome related questions kam_kenneth Linux - Newbie 8 11-03-2004 10:02 AM
Hostname problem related gnome tentolga Linux - Networking 2 08-27-2004 04:59 AM
GNOME Freezing Problem Kyle Linux - General 2 02-13-2004 01:08 PM
Need help with applications freezing (something wine and inet_addr related) gandhix Linux - Software 0 11-29-2003 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:53 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration