Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-24-2009, 08:13 AM   #1
LQ Newbie
Registered: Apr 2009
Distribution: Ubuntu and Slackware
Posts: 7

Rep: Reputation: 0
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
Old 06-24-2009, 08:41 AM   #2
Registered: Jan 2008
Location: Israel
Distribution: Kubuntu 13.10
Posts: 134

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

pkill pulse-audio
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.
Old 06-24-2009, 09:30 AM   #3
Registered: Mar 2008
Location: NRW, Germany
Distribution: Arch Linux, using KDE/Plasma
Posts: 389

Rep: Reputation: 49
please execute
 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
Old 06-24-2009, 02:03 PM   #4
LQ Newbie
Registered: Apr 2009
Distribution: Ubuntu and Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
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!
Old 06-25-2009, 05:14 AM   #5
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
You haven't said that you have checked your alsamixer settings.
Old 06-27-2009, 07:38 AM   #6
LQ Newbie
Registered: Apr 2009
Distribution: Ubuntu and Slackware
Posts: 7

Original Poster
Rep: Reputation: 0

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.

Old 07-14-2009, 03:47 PM   #7
LQ Newbie
Registered: Apr 2009
Location: Rockford, Illinois, USA
Distribution: Debian (tower), ASUS Xandros
Posts: 8

Rep: Reputation: 0
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

# alsactl restore
then reboot.


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
Audacity cannot record or play sound hacker supreme Linux - Software 5 04-09-2007 11:41 AM
No sound recorded from mic Audacity Ray4389 Fedora 11 08-29-2005 02:50 PM
audacity not capturing sound joelescoulie Slackware 4 05-24-2005 08:26 PM
Problem recording sound with Audacity 1.2 vharishankar Linux - General 5 09-11-2004 12:30 AM
sound is off with audacity install bosewicht Linux - Newbie 0 04-10-2004 10:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:32 PM.

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