HP Pavilion dv6520ea
From Gentoo Linux Wiki
| Laptops • TV Tuner Cards • Wireless • Servers • Storage • Other Hardware • Motherboards • Related |
[edit] Introduction
Contents |
The pavilion dv6520ea is a mid-end laptop, and costs around ~800€. It is available in two configurations: one with intel's x3100 and one with nvidia's 8400m. This tutorial is for the intel version, but it should be pretty more the same for the nvidia version, except X.org configuration.
[edit] Specs
- Intel Core 2 Duo 7100 @ 1,80GHz (Merom Core, 667MHz FSB, 2MB L2)
- 1GB DDR2 @ 667MHz (I got mine with 2GB)
- 120GB Sata 5400rpm Seagate
- Intel 965GM Chipset (X3100 graphics)
- Ricoh 5in1 card reader
- Ricoh IEEE1394 Firewire controller
- Realtek RTL8101E (NDIS 6.0) 10/100 Ethernet Controller (GigE)
- Intel PRO/Wireless 3945ABG
- Intel HDA Sound with Realtek ALC268 controller
- AuthenTec AES2501 Fingerprint reader
- Intel SATA AHCI controller
- Hewlett-Packard 1.3MP Built-in webcam
- Chicony Electronics Quick-Launch keys
- Motorola SM56 Data Audio Fax modem
- 1x XpressCard 34/54 slot
[edit] Output of hardware identification tools
[edit] lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c) 00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c) 00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c) 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 03) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03) 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03) 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03) 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03) 00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (rev 03) 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03) 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03) 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03) 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3) 00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03) 00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03) 00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03) 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03) 02:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02) 06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 01) 07:09.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05) 07:09.1 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22) 07:09.2 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 12) 07:09.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12) 07:09.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)
[edit] lsusb
Bus 5 Device 1: ID 0000:0000 Bus 7 Device 3: ID 03f0:171d Hewlett-Packard Bus 7 Device 1: ID 0000:0000 Bus 4 Device 1: ID 0000:0000 Bus 2 Device 3: ID 04f2:b015 Chicony Electronics Co., Ltd Bus 2 Device 1: ID 0000:0000 Bus 6 Device 2: ID 08ff:2580 AuthenTec, Inc. Bus 6 Device 1: ID 0000:0000 Bus 1 Device 1: ID 0000:0000 Bus 3 Device 1: ID 0000:0000
[edit] What doesn't work
- The 56k modem
- XpressCard slot (I don't have such a card to test if it works)
- Brightness control Warning: You cannot set brightness in any way. vbetool doesn't set it, and if you set it from windows, it's cleared in linux boot.Note: Brightness is changed though when you plug/unplug power cord.
- Keyboard leds Note: When you are logged in in a framebuffer'ed console, and get a kernel panic, caps led starts blinking.
[edit] Battery life
Frequency scaling should be used. Using the ondemand governor, and with *normal* usage, including wifi, it should last for ~2hrs for the 6-cell battery, and ~5hrs for the 12-cell battery (which is available as an accessory. If you are doing a x86 installation, be sure to install and experiment with intel's powertop (see reference section).
[edit] Installation procedure
Installation has a tricky part. Because 2007.0 cds do not see neither the wired ethernet nor the wireless ethernet, you have two options:
- download needed installation files
- use another livecd (ie ubuntu, knoppix)
I preffer the 1st way, since the other 2 distros I like (slack, which doesn't have a livecd and ubuntu) do not play ok with this hardware.
[edit] make.conf
You 'll have to configure the rest of /etc/make.conf options (GENTOO_MIRRORS,SYNC,LINGUAS,etc) by yourself.
[edit] CFlags
See CPU section.
[edit] USE flags
hal, lm_sensors, acpi, dri, posix, threads, wifi, dvdread, cdr, usb, opengl, alsa, -oss, bluetooth
[edit] Other
ALSA_CARD="hda-intel"
VIDEO_CARDS="vesa intel i810"
INPUT_DEVICES="keyboard mouse evdev synaptics"
[edit] Required files
Procceding with the installation.
If you choose installation method 1, here are the files you 'll need (or newer ones if there are available):
genpatches-2.6.22-3.base.tar.bz2 genpatches-2.6.22-3.extras.tar.bz2 genpatches-2.6.22-6.base.tar.bz2 genpatches-2.6.22-6.extras.tar.bz2 genpatches-2.6.22-7.base.tar.bz2 genpatches-2.6.22-7.extras.tar.bz2 genpatches-2.6.22-9.base.tar.bz2 genpatches-2.6.22-9.extras.tar.bz2 gentoo-headers-2.6.22-3.tar.bz2 gentoo-headers-2.6.22.tar.bz2 grub-0.97-patches-1.0.tar.bz2 grub-0.97-patches-1.4.tar.bz2 grub-0.97.tar.gz linux-2.6.22.tar.bz2 splash.xpm.gz r8101-1.004.00.tar.bz2 (realtek's driver module for the r8101e. can get it from here r8101-1.005.00.tar.bz2 (only this version compiles on >= 2.6.23. it's not available for download, email me if you want it.
Copy all the files above in /usr/portage/distfiles, and follow the manual. When you are asked to installed the kernel, issue emerge =gentoo-sources-2.6.22-r8. Do not install anything else but grub.
After booting to the new installation, install the r8101 driver module, configure your network, and you are ready.
[edit] Hardware configuration
Most of the hardware used in this laptop is not new, so you won't have any difficulties configuring it.
[edit] CPU
See this HowTo.
[edit] Graphics
See this guide.
[edit] Audio
If you built alsa into the kernel, you 'll have the problem that alsa works ok, but the sound card is always muted, and can't be unmuted. You will have to use the alsa modules provided outside the kernel.
emerge alsa-headers emerge alsa-driver merge alsa-utils
| Linux Kernel Configuration: gentoo-sources-2.6.22-r8 |
Device Drivers --->
Sound --->
<M> Sound card support
Advanced Linux Sound Architecture --->
< > Advanced Linux Sound Architecture
Open Sound System --->
< > Open Sound System (DEPRECATED)
|
[edit] Webcam
You need 3rd party software to use the webcam.
emerge linux-uvc modprobe uvcvideo
You 'll check a new device at /dev/v4l/video0. Use uvcview to get content from the camera.
| Linux Kernel Configuration: gentoo-sources-2.6.22-r8 |
Device Drivers --->
Multimedia devices --->
<*> Video For Linux
[*] Enable Video For Linux API 1 compatible Layer (NEW)
[*] Video capture adapters
[*] Autoselect pertinent encodes/decoders and other helper chips (NEW)
[*] V4L USB devices (NEW) --->
<M> USB video devices based on Nogatech NT1003/1004/1005
<M> USB SN9C1xx PC Camera Controller support
<M> USB ZR364XX Camera support
|
[edit] QuickPlay touch keys
You need to remap the keys to work with xmodmap. These are the key codes to put in /etc/X11/Xmodmap:
keycode 144 = XF86AudioPrev keycode 162 = XF86AudioPlay keycode 153 = XF86AudioNext keycode 164 = XF86AudioStop keycode 160 = XF86AudioMute keycode 174 = XF86AudioLowerVolume keycode 176 = XF86AudioRaiseVolume
[edit] Wireless
See this guide.
[edit] Framebuffer
Works ok for 1024x768. Append to /boot/grub/grub.conf:
vga=0x318
or
vga=792
| Linux Kernel Configuration: gentoo-sources-2.6.22-r8 |
Device Drivers --->
Graphics support --->
<*> Support for frame buffer devices
<*> VESA VGA graphics support
VESA driver type (vesafb) ---> #If you plan to run X.org, do not use vesafb-tng. It breaks console switching when using <Ctrl><Alt>F1-6
<M> Intel 830M/845G/852GM/855GM/865G/915G/945G support (EXPERIMENTAL)
[*] DDC/I2C for Intel framebuffer support
|
[edit] Memory card reader
Works like a charm. If you don't have automatic module loading enabled,
modprobe mmc_block
I have tested it with mmc, sd and ms pro.
| Linux Kernel Configuration: gentoo-sources-2.6.22-r8 |
Device Drivers ---> <M> MMC/SD card support ---> <M> MMC block device driver <M> Secure Digital Host Controller Interface supprot (EXPERIMENTAL) <M> Windbond W83L51xD SD/MMC Card Inteface support <M> TI Flash Media MMC/SD Interface support (EXPERIMENTAL) |
[edit] Bluetooth
Works quite good. Unfortunately, has a lot of stuff depending on gnome (or kde, whatever you choose. Less stuff on gnome version though).
emerge gnome-bluetooth emerge bluez emerge openobex emerge bluetooth-applet
| Linux Kernel Configuration: gentoo-sources-2.6.22-r8 |
Networking support --->
<M> Bluetooth subsystem support --->
<M> L2CAP protocol support
<M> SCO links support
<M> RFCOMM protocol support
[*] RFCOMM TTY support
Bluetooth device drivers --->
<M> HCI USB driver
[*] SCO (voice) support
|
[edit] ACPI
This CPU supports frequency scalling and some other nice features. You have to turn on the acpi USE flag from the beginning.
emerge acpid rc-update add acpid default
| Linux Kernel Configuration: gentoo-sources-2.6.22-r8 |
Power management options ---> [*] Power Management support [*] Software Suspend (Hibernation) ACPI (Advanced Configuratioon and Power Interface) Support ---> [*] Sleep States [*] /proc/acpi/sleep (deprecated) [*] Procfs interface (deprecated) <*> AC Adapter <*> Battery <*> Button <*> Fan <*> Processor <*> Thermal Zone <M> Toshiba Laptop Extras <M> Smart Battery System (EXPERIMENTAL) CPU Frequency scaling [*] CPU Frequency scaling [*] Enable CPUfreq debugging <*> CPU frequency translation statistics <*> 'powersave' governor <*> 'userspace' governor for userspace frequency scaling <*> 'ondemand' cpufreq policy governor <*> Intel Enhanced SpeedStep (deprecated) <*> ACPI Processor P-States driver [*] /proc/acpi/processor/../performance interface (deprecated) |
[edit] Fingerprint scanner
You have to use fprint. Unfortunately, this is not in portage yet. You have to create a custom overlay.
mkdir -p /usr/local/portage/bioapi/app-misc/fprint_demo cd /usr/local/portage/bioapi/app-misc/fprint_demo wget http://www.reactivated.net/fprint/ebuilds/fprint_demo-0.4.ebuild ebuild fprint_demo-0.4.ebuild digest mkdir -p ../../media-libs/libfprint cd ../../media-libs/libfprint/ wget http://www.reactivated.net/fprint/ebuilds/libfprint-0.0.4.ebuild ebuild libfprint-0.0.4.ebuild digest mkdir -p ../../sys-auth/pam_fprint cd ../../sys-auth/pam_fprint wget http://www.reactivated.net/fprint/ebuilds/pam_fprint-0.2.ebuild ebuild pam_fprint-0.2.ebuild digest echo PORTDIR_OVERLAY=\"/usr/local/portage/bioapi/\" >> /etc/make.conf # or edir apropriately if you already have other custom overlays emerge libfprint pam_fprint fprint_demo ... vim /etc/pam.d/system-auth in the second line add: auth sufficient pam_fprint.so
[edit] Touchpad enhancement
emerge synaptics
Synaptics has a daemon which will allow you to deactivate the touchpad while typing, so you don't accidentaly touch it.
synd -d -i 1
Where -d is daemonize, and -i the time interval that has to pass before it activates the touchpad again, in seconds.
[edit] Application configuration
- Example X.org configuration for 1-head: here
- Example X.org configuration for 2-head: here
- Audio recording: To use the onboard stereo mics, for recording select Front mic and experiment with Front mic boot and Capture mixers
- kismet: source=ipw3945,eth1,ipw3945
[edit] Known issues
- On kernels <= 2.6.21-r4, if you have the wireless switch to off while booting, you get a terminal lock-up.
- On kernels <= 2.6.19-r5, I didn't get DRI to work.
[edit] See also/Additional sources
Additional information, from inside and outside gentoo-wiki:
$Id: Gentoo_on_HP_Pavilion_dv6520ea.wiki,v 1.7 2007/12/16 14:33:39 streamkid Exp $
