3

My speakers work correctly, but when I plug in my headphones, they don't work. I am running Ubuntu 10.04.

My audio card is Realtek ALC259 My laptop model is a HP G62t a10em

In another thread someone fixed a similar issue (headphones work, speakers not) folowing this:

sudo vi /etc/modprobe.d/alsa-base.conf (or some other editor instead of Vi) Append the following at the end of the file:

alias snd-card-0 snd-hda-intel options snd-hda-intel model=auto

Reboot

but it doesnt work for me.

Before making and changes to alsa, this was the output:

alsamixer gives me this: alsamixer output Audio card is a HDA ATI SB

Things I did: followed this HowTo but now no hardware seems to be present (before, there were 2 items listed): sound preferences - hardware tab is empty

Now, alsamixer gives me this:

alsamixer: relocation error: alsamixer: symbol snd_mixer_get_hctl, version ALSA_0.9 not defined in file libasound.so.2 with link time reference

I guess there was and error in the alsa-driver install so I began reinstalling it.

cd alsa-driver*            //this works fine//
sudo ./configure --with-cards=hda-intel --with-kernel=/usr/src/linux-headers-$(uname -r)   //this works fine//
sudo make    //this doesn't work. see ouput error below//
sudo make install

Final lines of sudo make:

hpetimer.c: In function ‘snd_hpet_open’:
hpetimer.c:41: warning: implicit declaration of function ‘hpet_register’
hpetimer.c:44: warning: implicit declaration of function ‘hpet_control’
hpetimer.c:44: error: expected expression before ‘unsigned’
hpetimer.c: In function ‘snd_hpet_close’:
hpetimer.c:51: warning: implicit declaration of function ‘hpet_unregister’
hpetimer.c:52: error: invalid use of undefined type ‘struct hpet_task’
hpetimer.c: In function ‘hpetimer_init’:
hpetimer.c:88: error: ‘EINVAL’ undeclared (first use in this function)
hpetimer.c:99: error: invalid use of undefined type ‘struct hpet_task’
hpetimer.c:100: error: invalid use of undefined type ‘struct hpet_task’
hpetimer.c: At top level:
hpetimer.c:121: warning: excess elements in struct initializer
hpetimer.c:121: warning: (near initialization for ‘__param_frequency’)
hpetimer.c:121: warning: excess elements in struct initializer
hpetimer.c:121: warning: (near initialization for ‘__param_frequency’)
hpetimer.c:121: warning: excess elements in struct initializer
hpetimer.c:121: warning: (near initialization for ‘__param_frequency’)
hpetimer.c:121: warning: excess elements in struct initializer
hpetimer.c:121: warning: (near initialization for ‘__param_frequency’)
hpetimer.c:121: error: extra brace group at end of initializer
hpetimer.c:121: error: (near initialization for ‘__param_frequency’)
hpetimer.c:121: warning: excess elements in struct initializer
hpetimer.c:121: warning: (near initialization for ‘__param_frequency’)
make[1]: *** [hpetimer.o] Error 1
make[1]: Leaving directory `/usr/src/alsa/alsa-driver-1.0.9/acore'
make: *** [compile] Error 1

And then sudo make install gives me:

rm -f /lib/modules/0.0.0/misc/snd*.*o /lib/modules/0.0.0/misc/persist.o /lib/modules/0.0.0/misc/isapnp.o
make[1]: Entering directory `/usr/src/alsa/alsa-driver-1.0.9/acore'
mkdir -p /lib/modules/0.0.0/misc
cp snd-hpet.o snd-page-alloc.o snd-pcm.o snd-timer.o snd.o /lib/modules/0.0.0/misc
cp: cannot stat `snd-hpet.o': No such file or directory
cp: cannot stat `snd-page-alloc.o': No such file or directory
cp: cannot stat `snd-pcm.o': No such file or directory
cp: cannot stat `snd-timer.o': No such file or directory
cp: cannot stat `snd.o': No such file or directory
make[1]: *** [_modinst__] Error 1
make[1]: Leaving directory `/usr/src/alsa/alsa-driver-1.0.9/acore'
make: *** [install-modules] Error 1
[SOLUTION]

After screwing it all up, someone mentioned why not trying using the packages in Synaptic - so I did. 
I have reinstalled the following packages and rebooter:
-alsa-hda-realtek-ignore-sku-dkms
-alsa-modules-2.6.32-25-generic
-alsa-source
-alsa-utils
-linux-backports-modules-alsa-lucid-generic
-linux-backports-modules-alsa-lucid-generic-pae
-linux-sound-base
-(i think i listed them all)

After rebooting, the audio worked, both in speakers and headphones.
I have no idea which is the package that made my audio work, but it certainly was one of them.

[/SOLUTION]
Pedro
  • 171

7 Answers7

5

My solution may seem the dumbest but it worked great for me: put your laptop in suspend closing the lid, open it up again and it's fixed.

Pitto
  • 1,978
2

HPG2t Help: Speakers don't work - check post #4:

I think I've managed to solve this problem. At least for the moment, my speakers are working. What I did was install the drivers from the realtek site. Specifically, the Unix driver on their page for High Def Audio Codecs. Here's the link:

http://218.210.127.131/downloads/dow...onn=3&DownType ID=3&GetDown=false

I downloaded the tar ball, unpacked it, and followed the instructions in the file Readme.txt. I had previously installed the packages necessary for compiling I think ("build-essential"). I rebooted once and it still didn't work but then I noticed my gnome-alsamixer was missing, so I reinstalled that, and then on reboot the speakers began to work. Hopefully, it stays that way.

1

i have a vaio. i tried this from "hdaintelsoundhowto" and it worked. this command shows model no. of the sound chip.

cat /proc/asound/card0/codec* | grep Codec

output:

Codec: Conexant CX20590

Codec: Intel CougarPoint HDMI

then i typed: sudo nano /etc/modprobe.d/alsa-base.conf

and added this to the file at end: options snd-hda-intel model=CougarPoint HDMI

then: sudo alsa force-reload

it worked.

Piyush
  • 11
1

This Might be a similar issue I just fixed in my laptop give it a try, here are the details of the fix:

I would say first undo all the other changes you made.

Sound not coming out of speakers, only headphones, on laptop FIXED.

The speakers on my laptop Dell Studio XPS 1640 were not working after experimenting with several modules and models, I decided to give it a try on Windows (should've try it sooner, try it first if you are doing double boot), I was expecting them to work but they did not, which meant it was a problem in the hardware not the codecs, module or model.

The codec of my sound card is using on ubuntu 11.10 is 'STAC92HD73', I added the following option to my alsa-base.conf file and rebooted.

#add this at the end of /etc/modprobe.d/alsa-base.conf

options snd-hda-intel model=no-jd

After reboot sound is comming out from both laptop speakers and headphone jacks (at the same time, but no biggie just go to sound settings and select 'analog headphones' for output when only listening to headphones, also make sure analog speakers is selected for output after reboot), it seems the headphone jack-detection broke and that is why sound was not comming out of the speakers. Adding the no-jd (no jack detection) fixed the issue.

Hope this helps, it was driving me nuts for the last two weeks.

edgar
  • 11
1

If you have an Intel audio card, as it seems,you can try this:

  • Open /etc/modprobe.d/alsa-base.conf
  • Add this line at the end options snd-hda-intel model=z71v position_fix=1
  • Restart and check if it works.

I had this issue on a Asus laptop and this solution worked fine.

skalka
  • 1,565
0

I reported this problem as a bug for 11.10. i have the same symptom. Bug #882170. it would be good with those viewing this who have the same bug reported it by going to Launchpad, searching for the bug number and click this bug affects me too.

Alex
  • 56
0

Open a terminal, run alsamixer and check for any muted channels which could cause this. Other than that some details on the make of your soundchip and hardware wouldn't hurt.

nem75
  • 1,669