Skip to content

Gentoo 2007.0 on HP Pavilion DV6520ea

The HP Pavilion is a mid-end laptop.

As I firstly update the gentoo-wiki article and this post, I suggest to read the gentoo-wiki article, as it may be slightly more up to date. It can be found here


 

 

HARDWARE Gentoo on HP Pavillion dv6520ea

 

From Gentoo Linux Wiki



This article is part of the Hardware series.
Laptops TV Tuner Cards Wireless Servers Storage Other Hardware Motherboards Related

Introduction

 

Booting Gentoo 2007.0

 

Booting Gentoo 2007.0

 

Contents

[hide]

  • 1 Introduction
    • 1.1 Specs
    • 1.2 Output of hardware identification tools
      • 1.2.1 lspci
      • 1.2.2 lsusb
    • 1.3 What doesn’t work
    • 1.4 Battery life
  • 2 Installation procedure
    • 2.1 make.conf
      • 2.1.1 CFlags
      • 2.1.2 USE flags
      • 2.1.3 Other
    • 2.2 Required files
    • 2.3 Hardware configuration
      • 2.3.1 Graphics
      • 2.3.2 Audio
      • 2.3.3 Webcam
      • 2.3.4 QuickPlay touch keys
      • 2.3.5 Wireless
      • 2.3.6 Framebuffer
      • 2.3.7 Memory card reader
      • 2.3.8 Bluetooth
      • 2.3.9 ACPI
      • 2.3.10 Fingerprint scanner
      • 2.3.11 Touchpad enhancement
    • 2.4 Application configuration
  • 3 Known issues
  • 4 See also/Additional sources

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.

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

Output of hardware identification tools

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)

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

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.

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).

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:

  1. download needed installation files
  2. 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.

make.conf

You ‘ll have to configure the rest of /etc/make.conf options (GENTOO_MIRRORS,SYNC,LINGUAS,etc) by yourself.

CFlags

x86_64 64-bit
CFLAGS=”-march=nocona -O2 -pipe -msse3″
CXXFLAGS=”${CFLAGS}”
CHOST=”x86_64-pc-linux-gnu”
MAKEOPTS=”-j3″

x86 32-bit
CHOST=”i686-pc-linux-gnu”
CFLAGS=”-march=prescott -O2 -pipe -fomit-frame-pointer”
CXXFLAGS=”${CFLAGS}”

USE flags

hal, lm_sensors, acpi, dri, posix, threads, wifi, dvdread, cdr, usb, 3945, opengl, alsa, -oss, bluetooth

Other

ALSA_CARD=”hda-intel”
VIDEO_CARDS=”vesa intel i810″
INPUT_DEVICES=”keyboard mouse evdev synaptics”

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.

Hardware configuration

Most of the hardware used in this laptop is not new, so you won’t have any difficulties configuring it.

Graphics

You have to use xf86-video-i810 intel driver > 2.1.0.

echo x11-drivers/xf86-video-i810 ~arch >> /etc/portage/package.keywords # Substitue arch with your architecture, ie x86, amd64
emerge xf86-video-i810

DRI won’t work on a kernel < 2.6.22. You shall enable it though in the kernel configuration.

Linux Kernel Configuration: gentoo-sources-2.6.22-r8

 

 Device Drivers  --->
  Character devices --->
   <*> Intel 440LX/BX/GX, I8xx and E7x075 chipset support
   <*> Direct Rendering Manager (XFree86 4.10 and higher DRI support)
   <M> Intel I810
   <M> Intel 830M, 845G, 852GM, 855GM, 865G
   <M> i915 driver

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)

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

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

Wireless

ipw3945 works flawlessly. I don’t know about iwlwifi. For ipw3945:

emerge ipw3945
emerge ipw3945d
emerge wpa_supplicant
emerge wireless-tools
Linux Kernel Configuration: gentoo-sources-2.6.22-r8

 

 Networking  --->
  Wireless --->
   <*>Improved wireless configuration API
   <*> Generic IEEE 802.11 Networking Stack
   <M> IEEE 802.11 WEP encryption (802.1x)
   <M> IEEE 802.11i CCMP support
   <M> IEEE 802.11i TKIP encryption
 Cryptographic options
  <*> AES cipher algorithms
  <*> ARC4 cipher algorithm
  <*> Michael MIC keyed digest algorithm
  <*> SHA256 digest algorithm
  <*> SHA384 and SHA512 digest algorithms

Framebuffer

Intel X3100 won’t work ok with uvesafb to get 1280×800.
vesafb works ok for 1024×768. 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

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)

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

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)

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 PORTAGE_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

Note: If you ‘ve used the fingerprint scanner in windows, it will take you a lot of tries to get used the way fprint scans. You ‘ll get 9/10 logins as failed. Keep in mind that you have to pass your finger always with the same speed.

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.

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

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.

See also/Additional sources

Additional information, from inside and outside gentoo-wiki:


$Id: Gentoo_on_HP_Pavilion_dv6520ea.wiki,v 1.6 2007/12/08 17:38:28 streamkid Rel $

One Trackback/Pingback

  1. streamkid’s page › Fingerprint login (pam_fprint) on Wednesday, December 5, 2007 at 12:43 pm

    […] this guide, here is what you need to do in order to be able to login/su by using your fingerprint. The […]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*