HowTo: Ubuntu Linux on HP Pavilion series laptops
16. Audio Subsystem
On Ubuntu Linux Lucid 10.04 and Ubuntu Linux Karmic 9.10 the audio subsystem is fully supported, multichannel support included.
For HP Pavilion DV6 and Ubuntu Linux Lucid 10.04 contributor Flameclaw has reported the following procedure effective in order to have microphone, jacks and audio working correctly, even with skype. Thank you very much for the tip!
1) we have to download and install latest alsa drivers from http://www.alsa-project.org/main/index.php/Main_Page
3) sudo gedit /etc/modprobe.d/alsa-base.conf
4) paste the following options at the bottom of the document, paying attention to not write it double.
options snd-hda-intel model=hp-dv5 options snd slots=snd-hda-intel, snd-hda-intel # 5Dex.DVex+nmP8+5:SBx00 Azalia (Intel HDA) alias snd-card-0 snd-hda-intel # NXNs.HS4OKn_IlZ0:RV620 Audio device [Radeon HD 34xx Series] alias snd-card-1 snd-hda-intel
Concerning Ubuntu Karmic 9.10 an optional package has been made available in order to upgrade the audio drivers to the latest available upstream release. This would help solving most of the problems recent models may be facing [Thanks Mitch Towner and Daniel Chen for the tip!]. In order to install it type
sudo apt-get install linux-backports-modules-alsa-karmic
NOTE: In order to enable the internal microphone in recent models series HP Pavilion DV4, HP Pavilion DV5 and HP Pavilion DV7 you need to add an argument to the main configuration file [thanks to Enrico!].
Open in an editor file alsa-base.conf
sudo gedit /etc/modprobe.d/alsa-base.conf
add at the bottom line (ensure there are no other lines starting with ‘optios snd-hda-intel’ in they are delete them)
options snd-hda-intel model=hp-dv5 enable_msi=1
This way you would gain access to the mixer ‘digital input’ section which would enable you to use the notebook internal microphone. Remember to reboot to make these changes effective!
Bug reference: http://bugzilla.kernel.org/show_bug.cgi?id=12440
Very recent models may have a few issues with microphone and multichannel audio. They can try out latest pulseaudio 0.9.15 (for autoconfiguration issues) and latest alsa 1.0.18 (for multichannel and microphone support).
PULSEAUDIO
To install the updated deb packages by hand download it from http://ppa.launchpad.net/themuso/ppa/ubuntu/pool/main/p/pulseaudio/ and double click on the downloaded .deb file. Done it!
If you instead want to have it automatically updated at every new release all you have to do is adding its repository as a third party software source in System -> Administration -> Software Sources -> Third Party Software: click on ADD button and paste
deb http://ppa.launchpad.net/themuso/ppa/ubuntu jaunty main
You also have to add the PPA authentication key:
gpg --keyserver keyserver.ubuntu.com --recv B88A1AA8 gpg --export --armor B88A1AA8 | sudo apt-key add -
Update the package lists and upgrade the prompted packages
ALSA
If you have decided to try the latest drivers you can use the Bob Nelson script which I have further tweaked in order to prompt you with a choice among few most common modes to try out (download it from here).
Beware that these drivers, despite being stable, do not have any Ubuntu specific patch.
This script supports the following chipsets:
Intel HD Audio ICH6, ICH6M, ESB2, ICH7, ICH8, ICH9, ICH10, PCH, SCH ATI SB450, SB600, R600, RS600, RS690, RS780, RV610, RV620, RV630, RV635, RV670, RV770 VIA VT8251/VT8237A, SIS966, ULI M5461
After downloading it you need to change the permission of the script and make it executable, in a terminal type:
chmod 755 alsa_setup
This command assumes you downloaded the script in your home folder.
What this script does is:
- Download the ALSA modules - Compile the modules - Enables you to test different module options to see which one best suits you [new] - Enables you to test the driver with different configurations [new] - Enables you to undo the changes in case you’ve done the wrong mode choice [new] - Change your /etc/modprobe.d/alsa-base file - Remove the installer filesTo run the script type in terminal window
sudo ./alsa_setup
to see what is your audio CODEC go to System->Preferences->Sound and simply click on any drop down menu to read the code next to HDA Intel (i.e. ALC800)
now confront what mode better suits your specific CODEC by having a look at file
alsa-driver-1.0.19/alsa-kernel/Documentation/HD-Audio-Models.txt
If you need to add a mode not listed in the provided script type in terminal (where auto should be replaced with the correct codec mode)
sudo echo "options snd-hda-intel model=auto" >> /etc/modprobe.d/alsa-base.conf
Users of recent models (eg. dv4-1117) also benefited from enabling Message Signaled Interrupt (MSI)
sudo echo "options snd-hda-intel enable_msi=1" >> /etc/modprobe.d/alsa-base.conf
Ubuntu Wiki has a well done wiki concerning this issue: https://help.ubuntu.com/community/HdaIntelSoundHowto
Related posts:
- Linux Power Saving Tweaks for HP Pavilion laptops
- Call for enabling HP Pavilion internal softmodem
- Ottimizzazioni per il Risparmio Energetico per portatili HP Pavilion su Ubuntu Linux
- [EN] Configure HP Pavilion QuickPlay multimedia buttons in Ubuntu Linux
- Guida per Ottimizzare Ubuntu Linux sui portatili HP Pavilion
- How to update ALSA to latest version easily
- Ad Hoc Wireless Networking in Linux
Go to page 1 2 3 4 5 6 7 8 9 10 11 12 of this post
|
Print This Post
|
Email This Post
Thank you very much, Aldeby, for this great collection of tips! I found it after solving almost all problems in 9.04 and wished that I had found your site much earlier.
One hint for the suspend/hibernate chapter: I run a dv9500 with the most recent BIOS, but after a clean install of 9.10, the machine hung while trying to hibernate. There are two more solutions to this topic, one is to use the package “uswsusp” instead of the default pm-utils. The other is to list modules (mostly wifi) to unload before suspending or hibernating. Google “SUSPEND_MODULES” or have a look here:
http://www.ubuntugeek.com/fix-for-suspend-and-hibernation-problem-for-laptops.html
Best regards,
Uwe
i runed the script setup_alsa and it gets to a point where it says “Choose the mode which best fits you” but when i type my prefered number and i hit enter doesnt do anything.am i doing something wrong?
Makis, why don’t you use an utility like meld to compare the original and your customized script to highlight all the differences (and eventually the mistakes)?
In the audio section, sudo apt-get install linux-backports-modules-alsa-karmic should be sudo apt-get install linux-backports-modules-alsa-karmic-generic.
This site saved my 9.04 + 9.10 ubuntu installations on my HP dv 7 (3165dx) notebook. Thank you! I just did a clean install of Ubuntu 10.04 LTS and everything works perfectly: sound, front audio jacks, wireless card, web cam, etc. I hope this helps If your considering upgrading.
I confirm my flawless upgrade to 10.04 from 9.10 – on the 6th of May 2010 – kra20kra!
Thanks for this wonderful website that helped in the first place, when I doubted about buying this machine for Linux.
So I guess HP should be thankful as well…
Charlot
I’m happy to read your feedback CharlesdArvay!
By the way I haven’t heard a word from HP yet.
They seem way too busy making profit to even bother understanding what the opensource approach is!
Thanks for your detailed site. I look forward to delving in to it. My initial task however is to install 10.04 Server on a Pavillion notebook using an external monitor as the LCD screen is not working. The external monitor initially shows the cdś loading progress and then the screen is completely black. When the off button is pressed the external monitor again details the shutting down process. Is there some way of seeing what is occurring through the whole process? Thanks for any help that can be offered.
Hi Darren!
As far as I recall the external monitor would switch off when the video driver takes control of the video card. As long as is the BIOS controlling both internal and external screens are enabled. You should then be able to enable the external screen from within the driver settings.
But I guess your laptop has a broken screen…
Basically I would suggest you to install the operative system in text only mode (so that you would benefit from the BIOS controller and be able to use the external monitor) and not forget to install SSH support so that you could access via network cable your install. Now it would be fairly easy to enable the external monitor by configuring your laptop driver ( /etc/X11/xorg.conf for instance).
Linux newbit who installed the newest version of Linux Ubuntu 10.04 on my HP Pavilion dv6000 Laptop. Both my wired and wireless connections do not work. Thank you for your help.
Below is the output of sudo lshw -C network
*-network
description: Ethernet interface
product: MCP67 Ethernet
vendor: nVidia Corporation
physical id: a
bus info: pci@0000:00:0a.0
logical name: eth0
version: a2
serial: 00:1b:24:8c:7b:fa
size: 100MB/s
capacity: 100MB/s
width: 32 bits
clock: 66MHz
capabilities: pm msi ht bus_master cap_list ethernet physical mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=forcedeth driverversion=0.64 duplex=full latency=0 link=yes maxlatency=20 mingnt=1 multicast=yes port=MII speed=100MB/s
resources: irq:27 memory:f6488000-f6488fff ioport:30f8(size=8) memory:f6489c00-f6489cff memory:f6489800-f648980f
*-network
description: Network controller
product: BCM4311 802.11b/g WLAN
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:03:00.0
version: 02
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=b43-pci-bridge latency=0
resources: irq:19 memory:f6000000-f6003fff
*-network DISABLED
description: Wireless interface
physical id: 1
logical name: wlan0
serial: 00:1a:73:84:5e:66
capabilities: ethernet physical wireless
configuration: broadcast=yes multicast=yes wireless=IEEE 802.11bg
It seems your hardware is supported. Have you had a look at System -> Administration -> Hardware Drivers to see whether your computer needs restricted drivers?
By the way I find it suspicious to read: *-network DISABLED
If you have installed the default packages and had not modified any file inside /etc by hand you should at least be able to connect via ethernet. Check right clicking on the Network Manager applet if you can tick Enable Networking.
[...] [...]
Broadcom also offers closed STA drivers for those chipsets that aren’t yet covered by the b43 driver. Their compiling instructions are pretty distro-inspesific, I found it easier to connect the laptop to a wired connection and install the same closed driver offered by Ubuntu.
http://www.broadcom.com/support/802.11/linux_sta.php
Thank you for sharing your suggestion Neva!
I’ve added it to the tutorial. Have a nice day!
Hi Aldeby, it’s me again.
This time with an addition to 7. (Touchpad):
Under 9.10 as well as 10.04 I had problems with the touchpad after disabling it with the touchpad’s “on/off”-button. Re-enabling did not work, although the button’s light changed from off to on. Restarting X or rebooting did not work, either.
Cause: The gnome-settings-daemon interferes with the Synaptics touchpad driver and saves the “off” state forever.
Remedy: Run “gconf-editor”, navigate to “apps”-”gnome-settings-daemon”-”keybindings” and change the value of “touchpad” to “” (empty string).
Source: Ubuntu Bug #549727, https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-synaptics/+bug/549727/comments/103
Best regards,
Uwe