Enabling headphones on ubuntu 12.04 LTS

I recently installed Ubuntu 12.04 on my HP Pavilion dv6-6121 TX. Installing Ubuntu was a decision that was inevitable. Ubuntu is a Linux distro. Any Linux distro has advantage over windows when it comes to programmers and in terms of security. Although it has bee difficult for peoples to use linux in past, but in today’s scenario it is very easy to use. And with the advent of Ubuntu it has been made easier a long time ago. Earlier it was said that if you wish to do something on Windows you will find a software for it, while if you wish to do something on Linux just write your software for it. Now-a-days the scenario has changed a bit in the favor of Linux. Now there are lots of software in the Linux armor. We have literally lost the count of it in recent past.

Ubuntu is one the very famous Linux distributions. It’s very easy to use and I like it so I use it for my purposes. I use it for working on OpenCV. I am recently planing to use Matlab on ubuntu. I would like to go all Linux if possible, bu that seems far fetched for now, but still I am trying to switch my regular uses from Windows to Linux. Finding new ways to do my old works efficiently.

Using headphones on Ubuntu had always been an issue for me. Back when I used Ubuntu on my desktop, it had this weird problem of Sound coming out of speakers even when I had my earphones plugged in. And with my brand new installation of Ubuntu 12.04 I had this problem of sound not coming from anywhere, either my laptop speakers or my earphones. There are some solutions available on forums around the internet. However the most simple solution that worked for me is a very simple one; Here it is :

  1. Go to https://code.launchpad.net/~ubuntu-audio-dev/+archive/alsa-daily/+packages
  2. Then one has to choose his/her Ubuntu version for me I am using 12.04 and it’s code is (Precise Pangolin), so I chose the thrd from top and then download the .deb file ( alsa-hda-dkms_0.201301290546~precise1_all.deb ) from there.
  3. Then after downloading the package we have to install it using the dpkg command. To do this we have to run sudo apkg -i <deb file name>. In this case it was sudo dpkg -i alsa-hda-dkms_0.201301290546~precise1_all.deb

Here is the screenshot for the same.

installing dkms
installing dkms

Please note that it says uninstalling rather than installing. It is because of the case that I already had it installed on my system and I was trying to re-install it, that is why it had to first remove it and then install it.

Here is a webpage providing all the information on how to install DKMS and what is it’s purpose. Installing this provides you with the latest ALSA drivers for your Intel High Definition Audio sound cards.

So here is how to enable your headphones on Ubuntu 12.04 LTS and later versions.

Please put in your words.

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s