Codec: Realtek ALC260 Mixer: Realtek ALC260 - ALC260 Analog (DUPLEX) Audio device [0403]: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller [8086:27d8] (rev 01) - sound not working on headphones and speakers on HP Compaq dc7600 SFF Base Unit in Ubuntu 9.04

Asked by AJ C.

I installed Ubuntu on my HP Pavillion dv6000 laptop several weeks ago, abnd has since worked a charm.

I have recently upgraded my desktop pc to Ubuntu also, but I have discovered that there is no sound whatsoever.

After much use of the Synaptic Package Manager in a futile attempt to unearth the answer to my problem, I relocate my quest here.

I enquire again; Could anyone have the answer to my seemingly "n00b" problem?

Thanks again, and excuse the long words ;)

--AJ

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
AJ C. (qahne) said :
#1

Did I mention that my desktop machine, the one with the problem, is a HP Compaq dc7600 SFF Base Unit?

OK, thanks in advance,

--AJ

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2

Hi,

In order to gather essential troubleshooting information about your sound card, please first follow this procedure:

Step 1: Open Terminal from "Applications->Accessories->
Terminal"

Step 2: Run the following 2 commands (copy/paste each command into the Terminal and then hit <enter> after each command)

wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh

bash alsa-info.sh

When the alsa-info.sh script asks "Do you want to run this script? [y/n]", press y and then hit <enter> to make sure the script actually runs. Please send us the full terminal output after the script has actually run.

Step 3: Run the following command. The command STARTS with the word cat and ENDS with the word snd. So please copy-paste the ENTIRE command below into a Terminal, press enter, then enter password when sudo asks for password, then press enter again.

cat /proc/asound/cards; sudo aptitude install gnome-alsamixer asoundconf-gtk alsa-utils; asoundconf list; aplay -l; sudo lshw -C sound; ls -lart /dev/snd; cat /dev/sndstat; lspci -nn ; lsmod | grep snd

Step 4: Please post results (copy/paste terminal output) on this thread

Step 5: Please also report on this thread if you cannot hear sound through the speakers, the headphones or cannot hear sound on both.

Step 7: If you are using a dual boot system (with Windows and Ubuntu installed on separate partitions),
then make sure to set the sound volume in Windows to a high level before booting into Ubuntu.
Also make sure to use the special function keys in Windows to make sure the loudspeakers are physically switched ON and working properly in Windows before installing and testing Ubuntu. This step is necessary with certain Toshiba Tecra laptops.

Step 8: Experiment with the audio settings in gnome-alsamixer and asoundconf-gtk until you get sound (hopefully)

Step 9: In System/Administration/Users and Groups , make sure that your user and the root user are members of the following 5 groups:

pulse

pulse-access

pulse-rt

audio

video

Step 10: Run the command gnome-volume-control and set the Sound Theme to "No sounds" (Sound Theme is also accessible via System > Preferences > Sound)

Step 11: Try connecting headphones to different audio jacks/ports on the backpanel of the sound card until you hopefully hear sound

Step 12: If you happen to have two soundcards installed in your pc, one integrated into the motherboard and one inserted into a PCI slot, then try removing the PCI audio card, reboot your pc and retest sound using only the motherboard's soundchip.

======================================================================================================

Please also read the following pages

http://www.ubuntugeek.com/sound-solutions-for-ubuntu-904-jaunty-users.html

http://doc.ubuntu-fr.org/audio_intel_hda (check for correct /etc/modprobe.d/alsa-base.conf options at bottom of this page)

https://help.ubuntu.com/community/SoundTroubleshooting

http://ubuntuforums.org/showthread.php?t=789578&highlight=audacity

for some initial suggestions.

You should add the following string to the /etc/modprobe.d/alsa-base.conf file

options snd-hda-intel model=YOUR_MODEL

Valid model names (that replace YOUR_MODEL) depending on the codec chip, can be found at

http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-jaunty.git;a=blob_plain;f=Documentation/sound/alsa/ALSA-Configuration.txt

If you do not know your codec chip name, you can execute the following Terminal command to find out:

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

Each combination of audio codec, audio mixer and audio device name requires a very specific configuration in the alsa-base.conf file, if the audio chipset does not work out-of-the-box.

Make sure to set all channels to high volume levels in gnome-alsamixer.

Make sure all the different speakers (including 'Front', 'Master', and 'PCM") are NOT muted and NOT set to low volume levels in gnome-alsamixer.

If sound still does not work, try upgrading ALSA to the newest version, reboot and retest sound.

ALSA upgrade procedure is here:

http://monespaceperso.org/blog-en/2009/05/09/upgrade-alsa-1020-on-ubuntu-jaunty-904/

Kind regards,

Mark

Revision history for this message
AJ C. (qahne) said :
#3

caparica@caparica-desktop:~$ wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh
--2009-07-30 00:18:58-- http://www.alsa-project.org/alsa-info.sh
Resolving www.alsa-project.org... 212.20.107.51
Connecting to www.alsa-project.org|212.20.107.51|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;f=utils/alsa-info.sh [following]
--2009-07-30 00:18:59-- http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;f=utils/alsa-info.sh
Resolving git.alsa-project.org... 212.20.107.51
Reusing existing connection to www.alsa-project.org:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: `alsa-info.sh'

    [ <=> ] 26,185 79.5K/s in 0.3s

2009-07-30 00:19:00 (79.5 KB/s) - `alsa-info.sh' saved [26185]

caparica@caparica-desktop:~$ bash alsa-info.sh
ALSA Information Script v 0.4.57
--------------------------------

This script visits the following commands/files to collect diagnostic
information about your ALSA installation and sound related hardware.

  dmesg
  lspci
  lsmod
  aplay
  amixer
  alsactl
  /proc/asound/
  /sys/class/sound/
  ~/.asoundrc (etc.)

See 'alsa-info.sh --help' for command line options.

Automatically upload ALSA information to www.alsa-project.org? [y/N] : y
Uploading information to www.alsa-project.org ... Done!

Your ALSA information is located at http://www.alsa-project.org/db/?f=ff18bb6540fd8bd9e782290c8ea5861e0951b810

Please inform the person helping you.

caparica@caparica-desktop:~$ cat /proc/asound/cards; sudo aptitude install gnome-alsamixer asoundconf-gtk alsa-utils; asoundconf list; aplay -l; sudo lshw -C sound; ls -lart /dev/snd; cat /dev/sndstat; lspci -nn ; lsmod | grep snd
 0 [Intel ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xe04c0000 irq 21
 1 [default ]: USB-Audio - C-Media USB Headphone Set
                      C-Media USB Headphone Set at usb-0000:00:1d.1-2.1, full speed
[sudo] password for caparica:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Initializing package states... Done
Writing extended state information... Done
The following NEW packages will be installed:
  asoundconf-gtk gnome-alsamixer libgconfmm-2.6-1c2{a}
  libglademm-2.4-1c2a{a} libpulse-mainloop-glib0{a} padevchooser{a}
  paman{a} paprefs{a} pavucontrol{a} pavumeter{a}
  pulseaudio-module-zeroconf{a}
The following packages will be REMOVED:
  linux-headers-2.6.28-11{u} linux-headers-2.6.28-11-generic{u}
0 packages upgraded, 11 newly installed, 2 to remove and 0 not upgraded.
Need to get 405kB of archives. After unpacking 72.0MB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Get:1 http://pt.archive.ubuntu.com jaunty/universe asoundconf-gtk 1.6-0ubuntu1 [6444B]
Get:2 http://pt.archive.ubuntu.com jaunty/universe gnome-alsamixer 0.9.7~cvs.20060916.ds.1-2 [53.7kB]
Get:3 http://pt.archive.ubuntu.com jaunty/main libgconfmm-2.6-1c2 2.24.0-0ubuntu1 [31.1kB]
Get:4 http://pt.archive.ubuntu.com jaunty/main libglademm-2.4-1c2a 2.6.7-1 [21.4kB]
Get:5 http://pt.archive.ubuntu.com jaunty-updates/main libpulse-mainloop-glib0 1:0.9.14-0ubuntu20.2 [30.9kB]
Get:6 http://pt.archive.ubuntu.com jaunty/universe pavumeter 0.9.3-1ubuntu1 [29.2kB]
Get:7 http://pt.archive.ubuntu.com jaunty/universe pavucontrol 0.9.7-1ubuntu3 [66.0kB]
Get:8 http://pt.archive.ubuntu.com jaunty/universe paman 0.9.4-1ubuntu2 [92.2kB]
Get:9 http://pt.archive.ubuntu.com jaunty-updates/main pulseaudio-module-zeroconf 1:0.9.14-0ubuntu20.2 [18.4kB]
Get:10 http://pt.archive.ubuntu.com jaunty/universe paprefs 0.9.7-0ubuntu1 [35.2kB]
Get:11 http://pt.archive.ubuntu.com jaunty/universe padevchooser 0.9.3-2ubuntu4 [20.2kB]
Fetched 405kB in 1s (378kB/s)
(Reading database ... 160347 files and directories currently installed.)
Removing linux-headers-2.6.28-11-generic ...
Removing linux-headers-2.6.28-11 ...
Selecting previously deselected package asoundconf-gtk.
(Reading database ... 144047 files and directories currently installed.)
Unpacking asoundconf-gtk (from .../asoundconf-gtk_1.6-0ubuntu1_all.deb) ...
Selecting previously deselected package gnome-alsamixer.
Unpacking gnome-alsamixer (from .../gnome-alsamixer_0.9.7~cvs.20060916.ds.1-2_i386.deb) ...
Selecting previously deselected package libgconfmm-2.6-1c2.
Unpacking libgconfmm-2.6-1c2 (from .../libgconfmm-2.6-1c2_2.24.0-0ubuntu1_i386.deb) ...
Selecting previously deselected package libglademm-2.4-1c2a.
Unpacking libglademm-2.4-1c2a (from .../libglademm-2.4-1c2a_2.6.7-1_i386.deb) ...
Selecting previously deselected package libpulse-mainloop-glib0.
Unpacking libpulse-mainloop-glib0 (from .../libpulse-mainloop-glib0_1%3a0.9.14-0ubuntu20.2_i386.deb) ...
Selecting previously deselected package pavumeter.
Unpacking pavumeter (from .../pavumeter_0.9.3-1ubuntu1_i386.deb) ...
Selecting previously deselected package pavucontrol.
Unpacking pavucontrol (from .../pavucontrol_0.9.7-1ubuntu3_i386.deb) ...
Selecting previously deselected package paman.
Unpacking paman (from .../paman_0.9.4-1ubuntu2_i386.deb) ...
Selecting previously deselected package pulseaudio-module-zeroconf.
Unpacking pulseaudio-module-zeroconf (from .../pulseaudio-module-zeroconf_1%3a0.9.14-0ubuntu20.2_i386.deb) ...
Selecting previously deselected package paprefs.
Unpacking paprefs (from .../paprefs_0.9.7-0ubuntu1_i386.deb) ...
Selecting previously deselected package padevchooser.
Unpacking padevchooser (from .../padevchooser_0.9.3-2ubuntu4_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for menu ...
Setting up asoundconf-gtk (1.6-0ubuntu1) ...
Setting up gnome-alsamixer (0.9.7~cvs.20060916.ds.1-2) ...

Setting up libgconfmm-2.6-1c2 (2.24.0-0ubuntu1) ...

Setting up libglademm-2.4-1c2a (2.6.7-1) ...

Setting up libpulse-mainloop-glib0 (1:0.9.14-0ubuntu20.2) ...

Setting up pavumeter (0.9.3-1ubuntu1) ...

Setting up pavucontrol (0.9.7-1ubuntu3) ...

Setting up paman (0.9.4-1ubuntu2) ...

Setting up pulseaudio-module-zeroconf (1:0.9.14-0ubuntu20.2) ...
Setting up paprefs (0.9.7-0ubuntu1) ...

Setting up padevchooser (0.9.3-2ubuntu4) ...

Processing triggers for menu ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

Names of available sound cards:
Intel
default
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC260 Analog [ALC260 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: default [C-Media USB Headphone Set ], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
  *-multimedia
       description: Audio device
       product: 82801G (ICH7 Family) High Definition Audio Controller
       vendor: Intel Corporation
       physical id: 1b
       bus info: pci@0000:00:1b.0
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=HDA Intel latency=0 module=snd_hda_intel
total 0
crw-rw----+ 1 root audio 116, 2 2009-07-29 19:10 timer
crw-rw----+ 1 root audio 116, 3 2009-07-29 19:10 seq
crw-rw----+ 1 root audio 116, 6 2009-07-29 19:10 controlC1
crw-rw----+ 1 root audio 116, 9 2009-07-29 19:10 controlC0
drwxr-xr-x 2 root root 200 2009-07-29 19:10 .
crw-rw----+ 1 root audio 116, 5 2009-07-29 19:11 pcmC1D0c
crw-rw----+ 1 root audio 116, 7 2009-07-29 23:26 pcmC0D0p
crw-rw----+ 1 root audio 116, 8 2009-07-29 23:26 pcmC0D0c
crw-rw----+ 1 root audio 116, 4 2009-07-29 23:26 pcmC1D0p
drwxr-xr-x 18 root root 4960 2009-07-30 00:22 ..
Sound Driver:3.8.1a-980706 (ALSA v1.0.18rc3 emulation code)
Kernel: Linux caparica-desktop 2.6.28-14-generic #47-Ubuntu SMP Sat Jul 25 00:28:35 UTC 2009 i686
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
HDA Intel at 0xe04c0000 irq 21
C-Media USB Headphone Set at usb-0000:00:1d.1-2.1, full speed

Audio devices:
0: ALC260 Analog (DUPLEX)
1: USB Audio (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
31: system timer

Mixers:
0: Realtek ALC260
1: USB Mixer
00:00.0 Host bridge [0600]: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub [8086:2770] (rev 02)
00:02.0 VGA compatible controller [0300]: Intel Corporation 82945G/GZ Integrated Graphics Controller [8086:2772] (rev 02)
00:1b.0 Audio device [0403]: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller [8086:27d8] (rev 01)
00:1c.0 PCI bridge [0604]: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 [8086:27d0] (rev 01)
00:1c.1 PCI bridge [0604]: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 [8086:27d2] (rev 01)
00:1d.0 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 [8086:27c8] (rev 01)
00:1d.1 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 [8086:27c9] (rev 01)
00:1d.2 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 [8086:27ca] (rev 01)
00:1d.3 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 [8086:27cb] (rev 01)
00:1d.7 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller [8086:27cc] (rev 01)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev e1)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge [8086:27b8] (rev 01)
00:1f.1 IDE interface [0101]: Intel Corporation 82801G (ICH7 Family) IDE Controller [8086:27df] (rev 01)
00:1f.2 IDE interface [0101]: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller [8086:27c0] (rev 01)
3f:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5752 Gigabit Ethernet PCI Express [14e4:1600] (rev 01)
snd_hda_intel 434228 6
snd_usb_audio 90528 1
snd_pcm_oss 46336 0
snd_mixer_oss 22656 1 snd_pcm_oss
snd_pcm 83076 3 snd_hda_intel,snd_usb_audio,snd_pcm_oss
snd_seq_dummy 10756 0
snd_usb_lib 24320 1 snd_usb_audio
snd_hwdep 15108 1 snd_usb_audio
snd_seq_oss 37760 0
snd_seq_midi 14336 0
snd_rawmidi 29696 2 snd_usb_lib,snd_seq_midi
snd_seq_midi_event 15104 2 snd_seq_oss,snd_seq_midi
snd_seq 56880 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 29704 2 snd_pcm,snd_seq
snd_seq_device 14988 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 62756 25 snd_hda_intel,snd_usb_audio,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 15200 1 snd
snd_page_alloc 16904 2 snd_hda_intel,snd_pcm

Revision history for this message
AJ C. (qahne) said :
#4

I cannot hear a sound through headphones and speakers, and no sound is being recognized via the microphone, although they all work perfectly with my HP Pavilion laptop, also running Ubuntu 9.04.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#5

Hi,

Please keep the C-Media USB Headphone Set unplugged and disconnected from your pc while performing the following procedure.

In System/Administration/Users and Groups , make sure that your user and the root user are members of the following groups:

 pulse
 pulse-access
 pulse-rt

Then please try this procedure:

1. copy-paste the following command into the Terminal:

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

2. and add these lines to the end of the /etc/modprobe.d/alsa-base.conf file:

# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd-hda-intel model=hp-dc7600
options snd-hda-intel enable_msi=1

3. Then navigate to System>Preferences>Sound and change everything to ALSA

4. reboot and retest sound on the speakers

5. If sound still does not work, then replace hp-dc7600 with one of the following model options:

 ALC260
   hp HP machines
   hp-3013 HP machines (3013-variant)
   hp-dc7600 HP DC7600
   fujitsu Fujitsu S7020
   acer Acer TravelMate
   will Will laptops (PB V7900)
   replacer Replacer 672V
   basic fixed pin assignment (old default model)
   test for testing/debugging purpose, almost all controls can
   adjusted. Appearing only when compiled with
   $CONFIG_SND_DEBUG=y
   auto auto-config reading BIOS (default)

6. You will have to reboot and retest sound after every model option change to the alsa-base.conf file

Regards,

Mark

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#6

I believe that the alsa-base.conf file should contain the following model option for the HP Compaq DC7600: basic

So the last part of the alsa-base.conf file should look like this:

# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd-hda-intel model=basic
options snd-hda-intel enable_msi=1

-> See this URL for details:

http://www.freedomit.co.nz/index.php/KB-Ubuntu/upgrade-to-ubuntu-904-hosed-sound-on-my-hp-dc7600-usdt.html

Can you help with this problem?

Provide an answer of your own, or ask AJ C. for more information if necessary.

To post a message you must log in.