Results 1 to 5 of 5

Thread: Headphone/Speaker automatic switching

  1. #1
    Join Date
    Mar 2011
    Beans
    24

    Question Headphone/Speaker automatic switching

    Hi,

    I am an absolute newbie to Ubuntu. Is there a way that in Ubuntu Maverick that I could just plug in my headphones in and the speakers automatically get cut off and the headphones come on? Also when the headphones are unplugged that the speakers would come back on?

    I have followed many tutorials and troubleshooting steps that instruct me to reinstall alsa and remove pulse. The only thing I can do to enjoy like a normal human is to go into "pavucontrol" and set the output to "Analog headphones" for the speakers to cut off and the headphones to play the music. Once I'm done I have to set the output back to "Analog Output" in "pavucontrol". Nothing seems to be muted in the alsamixer.

    Please help me.

    Thanks,
    Barney.

  2. #2
    Join Date
    Aug 2011
    Location
    /dev/null
    Beans
    96
    Distro
    Ubuntu

    Re: Headphone/Speaker automatic switching

    Don't know whether this will work, but have you tried running dpkg-reconfigure on the packages of pulseaudio and alsamixer (you need sudo)?

  3. #3
    Join Date
    Jan 2012
    Location
    UK
    Beans
    94
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Headphone/Speaker automatic switching

    you should try running these commands at terminal

    Code:
    sudo dpkg-reconfigure pulseaudio
    then when done

    Code:
    sudo dpkg-reconfigure alsamixer
    Don't Preach Linux, Mention Linux

  4. #4
    Join Date
    Jan 2012
    Location
    UK
    Beans
    94
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Headphone/Speaker automatic switching

    it worked?
    Don't Preach Linux, Mention Linux

  5. #5
    Join Date
    Mar 2011
    Beans
    24

    Re: Headphone/Speaker automatic switching

    Hi,

    Sorry for the delay in replying. It didn't work. It says that alsamixer is not installed. But I have it installed. It somehow doesn't recognise it.

    Code:
    sudo dpkg-reconfigure pulseaudio
    [sudo] password for barney: 
     * PulseAudio configured for per-user sessions
     * PulseAudio configured for per-user sessions
    
    sudo dpkg-reconfigure alsamixer
    Package `alsamixer' is not installed and no info is available.
    Use dpkg --info (= dpkg-deb --info) to examine archive files,
    and dpkg --contents (= dpkg-deb --contents) to list their contents.
    /usr/sbin/dpkg-reconfigure: alsamixer is not installed
    I still have to go to pavucontrol to use the headphones.

    Thanks for replying so soon guys

    [EDIT]
    If you are interested, this is the troubleshooting that I followed: https://help.ubuntu.com/community/So...otingProcedure
    I followed it till step7!
    Last edited by barneyjoseph; April 4th, 2012 at 05:28 PM.

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
  •