Results 1 to 6 of 6

Thread: 12.04 How do I enable Mic without using alsamixer

  1. #1
    Join Date
    Mar 2006
    Beans
    Hidden!

    Question 12.04 How do I enable Mic without using alsamixer

    Now xubuntu have dispensed with the xfce-mixer applet in preference to pavucontrol, I have to enable or unmute my microphone/line-in input with alsamixer. There doesn't appear to be any other way of doing it, or have I missed something?
    No longer participating......

  2. #2
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: 12.04 How do I enable Mic without using alsamixer

    Try using the amixer command. Something like:
    Code:
    amixer sset 'Internal Mic',0 mute
    ...and
    Code:
    amixer sset 'Internal Mic',0 unmute
    You need to replace 'Internal Mic',0 with the actual mixer name that can be obtained by running just:
    Code:
    amixer

  3. #3
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: 12.04 How do I enable Mic without using alsamixer

    OK Toz, that's a good cli alternative,

    I have been using:
    Code:
    amixer set 'Mic',0 'Playback' <'on'/'off'>
    to good effect on another little project

    but is there no applet that will do it?
    No longer participating......

  4. #4
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: 12.04 How do I enable Mic without using alsamixer

    You could create a new launcher that runs a microphone mute toggling script something like this:
    Code:
    #!/bin/bash
    
    #get mic status
    MIC_STATUS=off
    amixer get 'Internal Mic',0  | grep "\[off\]" > /dev/null || MIC_STATUS=on
    
    case $MIC_STATUS in
    	on) amixer sset 'Internal Mic',0 mute ;;
    	off) amixer sset 'Internal Mic',0 unmute ;;
    	*) ;;
    esac
    Then by clicking on the launcher it will toggle the state of the microphone.

  5. #5
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: 12.04 How do I enable Mic without using alsamixer

    Quote Originally Posted by Toz View Post
    You could create a new launcher that runs a microphone mute toggling script something like this:
    Code:
    #!/bin/bash
    
    #get mic status
    MIC_STATUS=off
    amixer get 'Internal Mic',0  | grep "\[off\]" > /dev/null || MIC_STATUS=on
    
    case $MIC_STATUS in
    	on) amixer sset 'Internal Mic',0 mute ;;
    	off) amixer sset 'Internal Mic',0 unmute ;;
    	*) ;;
    esac
    Then by clicking on the launcher it will toggle the state of the microphone.
    Nice Just expressing my amazement that there is no gui way to do this, how would a newbie cope? Nothing shows up in pavucontrol when the mic is plugged in.
    No longer participating......

  6. #6
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: 12.04 How do I enable Mic without using alsamixer

    OK, had a pour over synaptic and found xfce4-mixer. Installed that, and got the old volume mixer back, by adding the volume plugin from Panel (right click) > Add New Items.
    No longer participating......

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •