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.
Best Answer
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!