Announcement

Collapse
No announcement yet.

Microphone not working

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Microphone not working

    Hi, all. I cannot record audio. Modules loaded by default:
    $ lsmod | fgrep snd
    snd_hda_codec_hdmi 32040 4
    snd_hda_intel 33390 3
    snd_hda_codec 104802 2 snd_hda_codec_hdmi,snd_hda_intel
    snd_hwdep 13668 1 snd_hda_codec
    snd_pcm 96755 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
    snd_seq_midi 13324 0
    snd_rawmidi 30547 1 snd_seq_midi
    snd_seq_midi_event 14899 1 snd_seq_midi
    snd_seq 61896 2 snd_seq_midi,snd_seq_midi_event
    snd_timer 29991 2 snd_pcm,snd_seq
    snd_seq_device 14540 3 snd_seq_midi,snd_rawmidi,snd_seq
    snd 68266 15 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd _hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_s eq_device
    soundcore 12680 1 snd
    snd_page_alloc 18529 2 snd_hda_intel,snd_pcm
    I can run alsamixer and see that Mic & Front Mic are both muted, so I unmute both by pressing M. When Mic is unmuted strange noise starts coming from the speakers. Anyway, mic's not recording. I use "rec" (sox) to record sound into a WAV file. The Mic's working fine in WinXP. I've plugged it in correctly. Please help, the need to configure tons of software in order to get sound working both ways in Kubuntu is frustrating.

    #2
    Re: Microphone not working

    Kubuntu Forums - Top 20 Kubuntu FAQs & Answers - #6. No Audio: http://kubuntuforums.net/forums/inde...opic=3099811.0

    Ubuntu Community Docs:
    - https://help.ubuntu.com/community/SoundTroubleshooting
    - https://help.ubuntu.com/community/So...otingProcedure


    Searching with: "ubuntu 11.10 microphone not working"
    (This is only one example, the solution is depending your hardware)

    -> http://askubuntu.com/questions/77888...n-ubuntu-11-10
    --> https://bugs.launchpad.net/ubuntu/+s...er/+bug/849967
    ---> https://wiki.ubuntu.com/Audio/UpgradingAlsa/DKMS


    At here with the 11.10

    Symptoms:

    a)The recording of the line-in is not working - I'm hearing the sound from the speakers but not from the recorded clip.

    b)I can't find the correct setting with the alsamixer.

    c)The recording was working with the 10.10.


    Workaround/fix:

    Copying the alsa settings from the 10.10 with the alsactl and using them with the 11.10.

    1) with the 10.10 (or with the liveCD):
    Code:
    alsactl -f /home/oneline/asound.state store
    2) moving the asound.state to the 11.10 home directory

    3) with the 11.10:
    Code:
    alsactl -f /home/oneline/asound.state restore

    man alsactl:
    NAME
    alsactl - advanced controls for ALSA soundcard driver

    SYNOPSIS
    alsactl [options] [store|restore|init] <card # or id or device>

    DESCRIPTION
    alsactl is used to control advanced settings for the ALSA soundcard drivers. It supports multiple
    soundcards. If your card has features that you can't seem to control from a mixer application, you have
    come to the right place.

    COMMANDS
    store saves the current driver state for the selected soundcard to the configuration file.

    restore loads driver state for the selected soundcard from the configuration file. If restoring fails
    (eventually partly), the init action is called.

    OPTIONS
    ...
    -f, --file
    Select the configuration file to use. The default is /var/lib/alsa/asound.state.
    Have you tried ?

    - How to Ask a Question on the Internet and Get It Answered
    - How To Ask Questions The Smart Way

    Comment


      #3
      Re: Microphone not working

      Thanks, I've tried following this link:
      https://help.ubuntu.com/community/So...otingProcedure
      and searched the page for "mic", first hit where it says to try pavumeter and press F4 in alsamixer. Everything in alsamixer was fine and turned on.

      p.s.: what if I just purge pulseaudio? Is that supported? Will sound still work? I remember using no sound daemons in Debian at all, just plain ALSA, and everything was perfect, with the ability to mix separate audio streams "in the box" i.e. I could listen to two different songs with mpg123. Then I thought I'd try Kubuntu...

      Comment


        #4
        Re: Microphone not working

        im pretty much as an expert here in the audio department in my own mind. I have audio working on my system and also recording and in video game recording and such. Pulseaudi and alsa mixer are mixed results according to your pc hardware so we are going to do this first. audio software recorders usually is tuned for pulseaudio recording and if your harware isnt supported, then you will have a problem.


        commands without pound sign please! in terminal
        Lets do this. #sudo apt-get install audacity
        launch the aplication and open a new terminal and put this command in
        #amixer -q set "Mic" Capture 0%;
        and then
        #amixer -q set "Mic" Capture 0%;

        at this point, hit the record button on audacity and make sure your mic is pluged in and mic volume on the mike is hardware set to record like the "on switch" yaya i know but i cant believe how many people forget to do these simple tests.


        now speak into the mic and hear your voice.

        If the problem above is not resolved, then.....

        alsamixer and fix audio
        #kate ~/.pulse/client.conf
        and add "autospawn = no" without quotes

        save file and reboot and then start from the top with opening up audacity and using the commands to activate the recorder. You can also do this from the alsa mixer but I'm using the commands to bypass my inability to see whats in your mixer.

        if the above works fine for you, create a script to automate opening up and closing your mic automatically when you activate your recording and deactivate your recording for piece of mind. If you know how to make a executable script and swap the command in the start audacity button, here it is.
        --------------------------------------------------


        #!/bin/bash
        sleep 4 && amixer -q set "Mic" Capture 100%;
        sleep 2 && amixer -q set "Mic" Playback 0%;
        sleep 2 && audacity
        sleep 4 && amixer -q set "Mic" Capture 0%;
        exit


        -------------------------------------------------

        I'm also an expert in having High definition television on the kde desktop with video recording and also TVtime recording and such for analog vhs to digital archival backup. been doing this for a long time. and of course, this sense of being the ultimate debugger comes with expirience and sometimes i feel its in my mind. lol 8)

        Comment


          #5
          Re: Microphone not working

          #amixer -q set "Mic" Capture 0%;
          amixer: Invalid command!
          BTW, I recall adding this line to /etc/modprobe.d/alsa-base.conf to get the sound working at all after upgrading to Kubuntu 11.10.
          options snd-hda-intel model=generic
          I don't have a laptop, mine is a custom-built PC. Mobo is Gigabyte P35C-DS3R with internal audio.

          $ lspci | fgrep -i audio
          00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
          01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)

          Maybe I need to tweak ALSA config and choose another model, not "generic"?

          Comment

          Working...
          X