HP Pavilion dv7-1160er Intel HDA sound not work

Hello everyone! :slight_smile:
A week ago I bought an HP Pavilion dv7-1160er notebook. Most of features work correctly but I can’t revive my sound card. I know it is OK because it functions perfectly under Windows Vista. I’ve read related posts but they haven’t helped me (maybe I’m so stupid :’( ).
That’s the information I’ve collected using recommendations from other threads:

http://www.alsa-project.org/db/?f=2be73b44578a676c60d820eae5bf873ab95dee11

# lspci | grep -i intel | grep -i audio
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)

My /etc/modprobe.d/sound file (after playing with it):

# cat /etc/modprobe.d/sound
alias sound-slot-0 snd-hda-intel
options snd slots=snd-hda-intel
options snd-hda-intel model=hp-m4
alias snd-card-0 snd-hda-intel

Sound modules are loaded in memory:

# lsmod | grep -i snd
snd_pcm_oss            42476  0
snd_mixer_oss          14720  1 snd_pcm_oss
snd_seq                52256  0
snd_seq_device          7336  1 snd_seq
snd_hda_codec_nvhdmi     2980  1
snd_hda_codec_idt      51608  1
snd_hda_intel          25032  0
snd_hda_codec          70952  3 snd_hda_codec_nvhdmi,snd_hda_codec_idt,snd_hda_intel
snd_hwdep               7172  1 snd_hda_codec
snd_pcm                75844  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer              19724  2 snd_seq,snd_pcm
snd                    62348  11 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_hda_codec_nvhdmi,snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore               6660  1 snd
snd_page_alloc          8452  2 snd_hda_intel,snd_pcm

# uname -a
Linux linux-65em 2.6.27.19-3.2-pae #1 SMP 2009-02-25 15:40:44 +0100 i686 i686 i386 GNU/Linux

linux-65em:/home/midgop # rpm -qa | grep alsa
alsa-utils-1.0.19.git20090221-1.2
alsa-plugins-1.0.19.git20090224-1.3
alsa-oss-1.0.17.git20080715-2.21
alsa-1.0.19.git20090224-1.1
alsa-tools-1.0.19.git20090120-1.12
alsa-plugins-pulse-1.0.19.git20090224-1.3
alsa-driver-kmp-pae-1.0.19.20090301_2.6.27.19_3.2-1.1
alsa-firmware-1.0.19.git20090120-1.1

linux-65em:/home/midgop # rpm -qa | grep pulse
pulseaudio-module-zeroconf-0.9.12-9.6
libpulsecore4-0.9.12-9.6
libpulse-browse0-0.9.12-9.6
pulseaudio-utils-0.9.12-9.6
pulseaudio-module-x11-0.9.12-9.6
pulseaudio-module-bluetooth-0.9.12-9.6
pulseaudio-module-lirc-0.9.12-9.6
libpulse0-0.9.12-9.6
libxine1-pulse-1.1.15-20.8
pulseaudio-0.9.12-9.6
pulseaudio-esound-compat-0.9.12-9.6
libpulse-mainloop-glib0-0.9.12-9.6
alsa-plugins-pulse-1.0.19.git20090224-1.3
pulseaudio-module-jack-0.9.12-9.6

linux-65em:/home/midgop # rpm -q libasound2
libasound2-1.0.19.git20090224-1.1

If the sound works I’ll erase Vista with less pity :wink:
Thank you!

P.S/ Sorry for my awful English.

i hope this helps
wiki.debian.org/InstallingDebianOn/HP/Pavilion_dv7

it helped me (it my system and it works almost ok)

Thankyou for replying to this post. I try to reply to most sound threads, but I clearly missed this one.

I’m a bit surprised that solution works. The HP DV7 has an Codec: IDT 92HD71B7X hardware audio codec, where the following model options are applicable according to the HD-Audio-Models.txt file for 1.0.19 of alsa:

STAC92HD71B*
============
  ref		Reference board
  dell-m4-1	Dell desktops
  dell-m4-2	Dell desktops
  dell-m4-3	Dell desktops
  hp-m4		HP dv laptops

Not one of those model options is equal to “3stack-dig” which is what the debian user used. In addition, the debian user noted they edited an /etc/modprobe.d/alsa-base file. OpenSUSE uses the /etc/modprobe.d/sound file instead.

I note the debian user still reports some Alsa (1.0.16 , 2.6.26-1-amd64) issues with sound wrt the headset and internal front channel.

I’ll make a separate post as to what I believe should be applied.

Thanks for all the information. Your installed applications look find, but your /etc/modprobe.d/sound file does not look right.

Try the various options from that I listed in my previous post, changing your /etc/modprobe.d/sound file to each of them, one at a time … ie for hp-m4 apply the following to the /etc/modprobe.d/sound file (and save the change):

options snd slots=snd-hda-intel
options snd-hda-intel enable_msi=1 model=hp-m4
alias snd-card-0 snd-hda-intel 

and then restart the alsa sound module with su -c ‘rcalsasound restart’ and then restart one’s mixer and the test the sound.

If “hp-m4” does not work, replace it with “dell-m4-1” such that the /etc/modprobe.d/sound file looks like:

options snd slots=snd-hda-intel
options snd-hda-intel enable_msi=1 model=dell-m4-1
alias snd-card-0 snd-hda-intel 

and then restart the alsa sound module with su -c ‘rcalsasound restart’ and then restart one’s mixer and the test the sound.

If that does not work, try “dell-M4-2” (instead of “dell-m4-1”, restart alsa, restart mixer, test …etc … doing that for each of dell-m4-1, dell-m4-2, dell-m4-3, ref ).

Also, some important things. I note this in your mixer:
[INDENT]
!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [Intel]

Card hw:0 ‘Intel’/‘HDA Intel at 0xdf300000 irq 22’
Mixer name : ‘Nvidia MCP78 HDMI’
Simple mixer control ‘Master’,0
Mono: Playback 37 58%] -20.25dB] [on]
Simple mixer control ‘Front’,0
Front Left: Playback 37 58%] -20.25dB] [on]
Front Right: Playback 37 58%] -20.25dB] [on]
[/INDENT]I’ve read that the alsa controls for the HP-DV5 and HP-DV7 are not linear, and that one only gets sound at the very top end of the volume scale. Hence 58% is too low. Test at 95% and back off that level once sound is established.

Also, when testing for basic sound, a simple test to see if your sound works, is to open a konsole or xterm, and type (it may be easier to copy and paste this into your konsole/xterm): speaker-test -Dplug:front -c2 -l5 -twav

Note Linux is case sensitive, and “D” is not the same as “d”. To stop the above test, while the konsole/xterm has the mouse focus, press <CTRL><C> on the keyboard. Note you should check your mixer settings (kmix if using KDE, and alsamixer if using Gnome) to ensure that PCM and Master Volume are set around 95%. Back off once sound is established. Note the test for surround sound is different.

If that test yields errors, try instead this more simple test:speaker-test -c2 -l5 -twavYou should hear a ladies voice say ‘FRONT RIGHT’,‘FRONT LEFT’ five times.

If there is no sound from either test when using a konsole (or xterm) as a regular user, try as user root. ie type “su” (no quotes, and enter root password when prompted) and then try the test line. If you get sound with root permissions, but you got no sound as a regular user, then you probably have a permissions problem.

that debian user is me :slight_smile:
and it was partly working.
no that i changed it to your suggestion i get better results.
i am using model=dell-m4-2 and i am getting sound from Front speakers
when i start the system and if i plug in the headseat and the mic the Front spkear is turned off and i can record sound with the headset’s mic and hear sound with the headset too.

i am using alsa 1.0.18 with kernel 2.6.26 - amd64

thanks :slight_smile:

Thank you very much for your feedback! The fact is I’ve installed Kubuntu 9.04 Alpha 5 x86_64. There was no /etc/modprobe.d/sound after installation so I created it with

options snd-hda-intel enable_msi=1 model=hp-m4

Then restarted alsa with

sudo alsa force-reload

and it worked! :slight_smile: I’ll try this SUSE.

I’ve read that the alsa controls for the HP-DV5 and HP-DV7 are not linear, and that one only gets sound at the very top end of the volume scale. Hence 58% is too low.

You’re right, they’re not linear. They seem to be exponential so it’s quite a problem to use “Volume UpDown” keys at laptop panel - one click and speakers are out loud >:(
But the sound isn’t still all right. The sticker says the notebook has “Triple Bass Subwoofer”. It works under Windows but not Linux. Got any idea how to make it function? Of course, it is not critical but sound quality is much better with it.

Ubuntu are known for passing their bug fixes to debian, where debian may or may not pass the bug fixes upstream. The end result being that Ubuntu often do things “the Ubuntu way” and other distributions do things “the Linux way”. … OK, so I AM exaggerating a lot. … but there are significant differences in how Ubuntu do things.

To get get help on optimizing Ubuntu sound, you really need to go to the Ubuntu forum or to IRC freenode #alsa. Even if you had openSUSE running, I don’t have a functioning 2.1 nor 5.1 sound system, so I don’t have any advice re: Triple Bass Subwoofer.

I’ll try get sound working under SUSE LiveCD.

Sound was working ok on my DV7.

Just upgraded the kernel and sound is borked.

Tried oldcpu’s suggestions posted above and get this error

rcalsasound restart
Starting sound driver: hda-intelWARNING: Error inserting snd (/lib/modules/2.6.27.19-3.2-default/kernel/sound/core/snd.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_hwdep (/lib/modules/2.6.27.19-3.2-default/kernel/sound/core/snd-hwdep.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_timer (/lib/modules/2.6.27.19-3.2-default/kernel/sound/core/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_pcm (/lib/modules/2.6.27.19-3.2-default/kernel/sound/core/snd-pcm.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_hda_intel (/lib/modules/2.6.27.19-3.2-default/kernel/sound/pci/hda/snd-hda-intel.ko): Unknown symbol in module, or unknown parameter (see dmesg)

???

What are you doing? The suggestions I gave were tuned to user midgop. Why are you trying suggestions specific and optimised to another user?

Hold on now oldcpu.

Don’t get your dander up :slight_smile:

Got things working using your post in another thread.

The error I posted above in this thread was caused by a type.

Got things working by upgrading alsa per your link to an alsa upgrade how-to.

Can’t find that thread now but thanks for your hard work on sound issues!

You are the go-to man for sound issues:)

OK, glad its working for you now.

Note I typically ask users for specific information, and then tailor my response to what their configuration may be. So its not uncommon that the solutions I suggest need to be put in context with respect to the user’s configuration.

I know your very methodical and that pays off for us flounderers :slight_smile:

Thanks again.

I looked for the thread listing the alsa update link but couldn’t locate it.

It was where you had applied the latest kernel update to your lappy.