HP Pavilion DV5 (PUMA)

HP Pavilion dv5 is a 15.4 inch laptop with 2 types (as far as I know) of hardware platform - AMD PUMA or Intel Montevina. Here we're talking about the PUMA ones.

HP has several different model for dv5 PUMA series, they're basically the same with some slight differences. Following are the models I know:
 * 1001ax
 * 1003ax
 * 1005et
 * 1103ax
 * 1125nr
 * 1250us
 * 1002nr

Hardware

 * CPU:
 * AMD Turion X2 Dual-Core for Notebook QL series
 * AMD Turion X2 Dual-Core Mobile RM series
 * AMD Turion X2 Ultra Dual-Core Mobile ZM series
 * Memory: 2 slots of So-DIMM DDR2, up to 4GB
 * GPU:
 * ATi Radeon HD 3200 (Sharing system memory)
 * ATi Radeon HD 3450 256MB
 * ATi Radeon HD 3650 512MB
 * Display: 1280x800 or 1680x1050, 15.4' inch
 * Multimedia:
 * Sound: ATI SB700 Azalia (Intel HDA)
 * WebCam: Vimicro
 * HDD:
 * internal SATA2 2.5' HDD x 1, up to 500GB
 * eSATA port x 1
 * CD/DVD:
 * SuperMulti DVD+/-/RW with Double Layer support
 * LightScribe SuperMulti DVD+/-/RW with Double Layer support
 * Blu-Ray ROM with SuperMulti DVD+/-R/RW Double Layer
 * Lightscribe Blu-Ray ROM with SuperMulti DVD+/-R/RW Double Layer
 * Network:
 * Wired: Realtek RTL8168 GbE
 * Wireless: Atheros AR928X A/B/G/N
 * Wireless: Atheros AR5001
 * Bluetooth: Integrated
 * Modem: Integrated 56K
 * FireWire: JMicron IEEE1394 Host Controller
 * SD/MS/MMC/XD Reader: JMicron SD/MS/MMC/XD Reader
 * Fingerprint Reader: Validity VFS101

lspci
lspci

lsusb
lsusb

Drivers Used (kernel modules)

 * CPU: powernow_k8
 * GPU: fglrx
 * ACPI: ac battery button thermal
 * Sound: snd_hda_intel snd_pcsp
 * Wireless LAN: ath9k
 * Ethernet NIC: r8169
 * sATA Controller: ahci
 * Card Readers: sdhci_pci jmb38x_ms
 * Firewire: firewire_ohci
 * USB: ehci_hcd ohci_hcd
 * WebCam: uvcvideo
 * Sensors: i2c_piix4 k8temp (with amdfam10 patch)
 * Accelerometer: lis3lv02d
 * BlueTooth: btusb
 * Platform: leds_hp_disk rtc_cmos

Choose a graphics driver from those available for your card and follow the linked guide.

Safe make.conf settings (partial)
using CFLAGS="-march=native -pipe -Os" is making system to run faster

Things Just Work

 * Wireless: just "modprobe ath9k"
 * Ethernet: just "modprobe r8169"
 * Bluetooth: just "modprobe btusb"
 * WebCam: just "modprobe uvcvideo", play with "mplayer tv://"
 * SD/MMC card: just enable "MMC/SD/SDIO card support" ---> "MMC block device driver" in kernel config, drivers section

Sound
If your sound codec isn't detected correctly (aka "no sound from speakers"), you have to manually specify the "model=hp-dv5" and "enable_msi=1" parameters for "snd-hda-intel" to hear a sound from the speaker by adding

to your /etc/modprobe.d/alsa. after that, do:

If you couldn't, restart your computer.

built-in
If the above doesn't work, compile the alsa driver as built-in kernel module. Make sure you make the following edit, change STAC_HP_M4 to STAC_HP_DV5 to match:

Video
Choose from the the available ATI drivers and follow the linked instructions.

Sensors
You need a patched version of k8temp to support AMD family 10 and 11 CPUs. Get the patch here.

Accelerometer
The kernel module lis3lv02d automatically loads and drives the 3-axis accelerometer, but somehow it's not driving the hardware correctly. There're currently two problems: These problems are fixed in the kernel git-tree (2009/02/12).
 * y-axis is inverted
 * The values of the sensors are way too big

Don't even try it just locks up, even with 2.6.29 and 2.6.28. I did not test 2.6.30. (2008/06/13)

Fingerprint Reader
The integrated fingerprint reader is Validity VFS101, which currently doesn't have a driver. For more information look over here.

Untested Peripherals

 * LightScribe
 * i've installed the closed-source lightscribe library but don't have a lightscribe disk, so can't test yet.
 * FireWire
 * PCMCIA Socket
 * eSATA Port