No sound from speakers, but headphones work

I found a post in this Ubuntu forums thread answer #2 with a weird solution that works for me.

Boot the system, log in, close the laptop screen, wait for a few seconds, and open it again. Log back into the system and problem solved!!!


try using these commands

sudo apt-get update
sudo apt-get upgrade
sudo apt-get purge linux-sound-base alsa-base alsa-utils
sudo apt-get install linux-sound-base alsa-base alsa-utils gdm ubuntu-desktop

Reboot.

if this not help trying running this script


You need to edit this file /etc/modprobe.d/alsa-base.conf and then add a line in its end. Use the following commands:

sudo gedit /etc/modprobe.d/alsa-base.conf

Now add the following line at its end:

options snd-hda-intel model=generic

Now reboot your computer. It should solve your problem.

Further information:

  • hxxp://www.computerandyou.net/2011/06/how-to-solve-no-sound-through-laptop-integrated-speakers-in-ubuntu-11-04

The link that was posted here is no longer safe to use, and has had its actual link components stripped. The original link is left here for historical purposes, though the link is defused.