LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sound problem after using audacity (https://www.linuxquestions.org/questions/linux-newbie-8/sound-problem-after-using-audacity-735279/)

-Merlin- 06-24-2009 08:13 AM

Sound problem after using audacity
 
Hello people,


Two days ago I started mozilla firefox and surfed to a website which streams the sound of air traffic all over the world. After that I started audacity to capture some of it.

The capture failed but more importantly: after that, sound had completely dissapeared on my ubuntu box.

My problem is that I really do not know where to start with finding out what has happened. The soundcard works ok under Windows so it is not a hardware problem.

But where to start?

-first: how can a program ruin my sound settings!?

-Where is the mistake? In the kernel? In one of the kernel modules? In one of the 2 million config files? bug in the driver? Alsa? Pulse? Oss? Esd?

Since I am a computer scientist I feel slightly ashamed, but also increasingly frustrated about the simple fact that I can turn 10000 knobs without ever knowing whether turning a specific knob makes a difference in the first place.

-How to verify what is going on? How to find out where the problem is? How to verify that changing a config file indeed changes something?

Example 1:

Doing a modprobe -l|grep snd gives me about twenty different snd modules loaded in the kernel...So which one is needed and which one is not? How do I know that they work? Is one missing, then how to know that? Was it missing before? Again: how to know that? Wasn't it perhaps needed anyway? Has an option changed? If so, why? And again: how to know that? And so on and so on...

Example 2:

Invoking "alsa force-reload" simply says that several modules have been reloaded. So? Should I look at that anyway? Perhaps reinstalling alsa using synaptic? Perhaps a changed setting in the irq's? Perhaps...perhaps...perhaps....


I' m sorry that this post is turning into a rant but how can you guys keep up in a flood of information which can' t be estimated for relevance anymore as you drown in options and possible explanations? I am feeling more and more schizophrenic...


Anyway, to end a little more constructive and with some enthusiasm: can anyone give me a meta algorithm of what to check/where to search in which order in a verifiable way? My linux box (with sound) has worked very well for many years. I am running xmonad, using latex, emacs, I master a dozen programming languages and programmed my own simple jukebox script just for the fun of it. Doing a complete reinstall just because a soundcard doens't work ironically "sounds" ridiculous to me.


Thanks in advance

ophirg 06-24-2009 08:41 AM

if you have a pulse-audio process running when the audio doesn't work, try killing it.

Code:

pkill pulse-audio
or
Code:

kill -s SIGKILL `pgrep pulse-audio`
if this works, then try to change the default sound output to pulse-audio
i don't know how to do it in gnome, but it should be in the configuration menus.

TITiAN 06-24-2009 09:30 AM

please execute
Code:

aplay -l
and copy+paste the output here, if it's a driver issue the list should be empty (or at least not showing the output device you want to use)

i assume you checked the mixer settings, i think some versions of audacity (or portaudio) can change them

also, try moving the files /etc/asound.conf and ~/.asoundrc somewhere else if they exist, for most people they shouldn't exist

-Merlin- 06-24-2009 02:03 PM

First of all: thanks for your help! Much appreciated.

I did a aplay -l

and here's the output

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 0: Intel ICH [Intel 82801DB-ICH4]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 4: Intel ICH - IEC958 [Intel 82801DB-ICH4 - IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0


As far as I understand, this means that the drivers/kernel modules are correctly loaded?

when I do a sudo alsa reload there does not seem to be any problem, but without sudo I get:
/sbin/alsa: 219: cannot create /var/run/alsa/modules-removed: Permission denied

With sudo I get:

Unloading ALSA sound driver modules: snd-seq-dummy snd-seq-oss snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-seq-device snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-page-alloc.
Loading ALSA sound driver modules: snd-seq-dummy snd-seq-oss snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-seq-device snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-page-alloc.

So this appears to be healthy no?

Then I looked for the files you mentioned.


~/.asoundrc does not exist in my home dir.

/etc/asound.conf does not exist, but asound.names does...


Also no pulse audio is on my machine. Therefore I installed it and tried the alsa restore again. Alsa indeed started complaining that pulseaudio gets in the way. After killing the pulseaudio process alsa reloads as usual so again, this seems to be healthy...any ideas?


Once again, thanks!

tredegar 06-25-2009 05:14 AM

You haven't said that you have checked your alsamixer settings.

-Merlin- 06-27-2009 07:38 AM

Hi,


So... after some searching I finally solved the problem.

Checking all I could imagine to check, I finally took a look at the mixer settings again and tried some different settings.

The total amount of options offered is too big to try them all by hand, so I wrote a small script using amixer to automatically move through all possible permutations of the settings in a simple on/off style with a small sleep in between while playing a simple wav file in the background with mplayer.

After a couple of minutes the machine indeed cranked out some sound.

Apparently audacity has changed my "line jack sense" setting. Reverting it was all that was needed.


Both feeling fairly stupid and happy about having solved the problem with a "brute force" script, I sincerely thank you for your efforts.


M.

craig61107 07-14-2009 03:47 PM

Audacity 1.3.7-3 and ALSA settings
 
Had the same problem: apparently blew off my ALSA settings while trying to configure Audacity 1.3.7-3.

No audio from any applications thereafter. Removing Audacity didn't help.

Finally fixed it with

Code:

# alsactl restore
then reboot.


All times are GMT -5. The time now is 02:00 PM.