May 18, 2010 In both XP and Vista I could have the speakers and the headphones plugged in together, both playerd noise, and I could use one or the other by plugging them into the front and back audio jacks. This enables me to play games during day with speakers, and then at night with head phones, and no reaching round under my desk to remove cables.
I guess this question already had the answer here but I can't find it. I'm using 12.04.
Update:
The problem is that I can hear the sound from my laptop's speakers even if I plugged in my headphones. Headphones is just standard stereo headphones. And the most interesting thing is that all was working just a week ago.
I tried to play with pulseaudio
and alsamixer
settings - no results.
16 Answers
Original Solution
Go to Realtek official site, accept the disclaimer, then download the audio driver for linux/unix. You need to select version 3 for Kernel 3 or later.
Setup necessary tools to compile this driver.
sudo apt-get install build-essential gcc make
Extract the downloaded file, run
sudo ./install
file from a terminal after going to the extracted folder to compile the driver.Read the
Readme.txt
file for more information.Install gnome-alsamixer by this command.
Open the gnome-alsamixer by typing alsamixer in the dash.
Select the 'Auto mute mode' in the new window.
Reboot and see whether it fixed now. (Step 6 and 7 might not necessary). Automute will automatically enabled upon restart
Solution 2:
I have just found another solution:
(It worked for me with Only S/PDIF profile, Sound from both headphone and speaker and not being able to switch profile)

Add this ppa by the command
Update packages list. by
Then install 'alsa-hda-dkms' package:
Reboot, And See the result!
BraiamFollow these steps to automatically mute your speakers when plugging in headphones:
- Open Terminal (Ctrl+Alt+T)
- Type:
alsamixer
and press Enter/Return - Select the correct sound device by pressing F6
- Navigate to the right with → (Right Arrow key) until you highlight Auto-Mute
- Press ↑ (Up Arrow key) and select Enabled (or Line Out)
- Press Esc to exit
I also had this problem on my HP laptop. I found a post and take one of the advice, which suggests adding two lines to the bottom of the file /etc/modprobe.d/alsa-base.conf
:
save it and reboot. It works for me!
David FoersterHad this issue on XUbuntu 12.04, reviewed this page, installed the gnome-alsamixer package
, ran gnome-alsamixer
, checked the 'Headphone Jack Sense' option in the gnome-alsamixer GUI screen that came up, verified the problem is resolved. Thanks!
The command sudo apt-get install gnome-alsa-mixer
did the trick for me on my Compaq nw8000
.
I could enable the Headphone Jack Sense option and now it switches the audio to the headphone when I plug-in my head phones.
LucioI had the same problem on 13.04 with an Asus X201E, and tried the gnome-alsamixer
solution but it failed as the gnome-alsamixer crashed with 'No idea what to do for mixer element 'Auto-Mute Mode'!'. So I opened the command line alsamixer
and navigated to the Auto-Mute Mode using the arrows (only Auto-Mut is visible in the terminal window) and set it from Disabled to Enabled. Now connecting the headphones mutes the internal speakers.

What worked for me was to run alsamixer and enable the auto-mute option. I did this while the headphones were connected and everything started working perfectly.
after upgrading from 15.04 -> 15.10 and now on 16.10 (where problem started)
the only resolution that worked for me was to do a full reinstall
This one worked for me perfectly.
Edit
/etc/modprobe.d/alsa-base.conf
as super-user with you favourite text editor, e. g.:At the end of the file paste the following:
Save and Reboot.
If this does not work, change in the second line the part about model=dell-m4-1
to model=hp-m4
.
Try plugging in your headphones properly. This happened to me once and then after fixing that pin of the headphones correctly it worked properly.
Pranit BauvaPranit BauvaI had the same exact problem with a fresh install of Xubuntu. I tried a buch of things including typing alsamixer in terminal. The option was not there for me to turn on the Headphone Jack Sense. I installed gnome-alsamixer and found the Headphone Jack Sense option, checked it and alas no audio from the pc speakers while headphones are plugged in. This worked for me.
Sound From Headphones And Laptop Speakers
Running alsamixer
in terminal worked for me, set it to Auto Mute and you should find your machine will play sound through one or the other rather than both
Play Sound From Headphones And Speakers
in alsamixer, try using arrow key Up, then turn everything up to 100% and you will see the right bar turns up. After that turn down arrow key to % you like. Now it should be down together and your right speaker will work on both sides.
Jens EratOn an Asus X551MA I was having this problem as soon as I replaced Windows with Ubuntu 14.04. Even if I muted the speakers in aslamixer
, they would come back on unexpectedly.
When I got to step three in this troubleshooting procedure, that seems to have fixed everything. It's a long complicated command which installed various packages, so I'm not sure which part(s) were really necessary:
Simply just go to the alsamixer (alsamixer in terminal) and use the right/left arrow keys to navigate to the speakers setting and click M. This will disable the speakers but not the headphones.
This worked for me (Ubuntu 14.04 LTS running on Compaq NC6120 laptop):
- Ctrl+Alt+T (to open terminal)
- Type
alsamixer
- Press → until you get to the 'Headphone Jack Sense' option
- Press m to enable (automatically mute the speakers when headphone is plugged in)
protected by AnwarNov 29 '16 at 13:28
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?