Gentoo Linux on hp dv9500t

Last Updated: 18 Jul 2007

Introduction

This is a compatibility status for running 32 bit 'x86' Gentoo Linux on an hp dv9500t laptop computer. The author's goal is to report on the hardware support status for all internal components of this particular laptop. The author's dv9500t was purchased in June 2007 as a CTO model; this document assumes the author's dv9500t specifications.

Operational Status

Hardware Component

Status

Details

Intel T7300 Core 2 Duo 2.0 Ghz

Works

“Out of the box”

Kernel SMP support utilizes both CPU cores. You can tell portage to use two compile threads to take advantage of this by adding the following line to your /etc/make.conf:

MAKEOPTS="-j2"

Correct /etc/make.conf CFLAGS for this processor:

CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"

CPU Frequency scaling also works perfectly, and is a good method to reduce power consumption and improve your battery run time. On my 2.0 Ghz processor, speeds as low as 800 Mhz are supported. The two CPU cores will change frequency simultaneously. The exhaust air from the cpu fan is noticibly cooler with this feature enabled.

2.0 GB, 667 Mhz, DDR2 RAM

Works

“Out of the box”

No configuration necessary:

             total       used       free     shared    buffers     cached
Mem:       2073756    1099744     974012          0      15896     776372
-/+ buffers/cache:     307476    1766280
Swap:       987896          0     987896

NVidia GeForce 8600M GS with 1680x1050 LCD display

Works

I'm using version 100.14.11 as downloaded from nvidia.com.

/etc/make.conf lines for this video card:

VIDEO_CARDS="nvidia"

The latest nvidia driver in portage (as of 02 July 2007) is 100.14.09 (and it's hard masked). I tried unmasking it and installing it but it did not work for me. I think we need 100.14.11 as a minimum for the 8600M GS chipset. The latest 100.14.11 drivers from nvidia.com work perfectly. (My /etc/xorg.conf file is below in the Notes). Once 100.14.11 is added into portage and marked stable, I recommend using that instead of downloading from nvidia.

After you install the nVidia driver, don't forget to set it as the default for OpenGL:

$ eselect opengl set nvidia

There are some games and applications that will not use the full 1680x1050 widescreen resolution by default. Here's a HOWTO to help you straighten those out.

The HDMI and VGA ports work fine for your external monitor. They are not enabled by default. If you intend to use an external monitor, one of these ports must be enabled and configured for “clone mode” (NVidia TwinView feature), using the nvidia-settings utility. I'm using an HDMI-DVI cable with an hp w2007 monitor attached, works perfectly. This w2007 monitor has the same 1680x1050 resolution as the laptop's own screen making the configuration even easier.

I haven't yet found a way to get the BIOS and bootup messages to be displayed on the external monitor though, so the external monitor does not become active until X starts and the KDM login is displayed.

2x 100 GB 7200 rpm SATA disks.

Works

“Out of the box”

Hitachi model HTS721010G9SA00

Enable “Intel PIIX/ICH SATA Support” and also “AHCI SATA Support” in your kernel. Disks are identified as /dev/sda and /dev/sdb. I'm running kernel-based software RAID1 and mirroring the two drives (details at the bottom of this page).

SMART health monitoring of the hard disks works fine too. You'll need to modify your smartd.conf commands to work with the SATA interface however.

Intel ICH8M integrated HD audio

Integrated stereo speakers with volume control buttons

Does not work

There are many variations of the intel HD audio, hence all the confusion and troubles with it in the various Linux support forums. Our variation is the Realtek ALC268 codec, not currently supported by ALSA, unfortunately. It appears that support is imminent however, so in the next ALSA release I would expect it should work.

In the mean time, I'm using a USB Sound Blaster Live! which is working perfectly. I suggest you follow this guide to configure your audio. I know, the title says Logitech V10 something-or-other but everything in there applies 100% identically to any standards-compliant USB audio device. They should rename that article because there's nothing in there specific to the Logitech V10, nothing at all.

The reason I suggest for you to follow this guide, is that it assumes a dual sound card setup, where one device is intel HD audio (which you do have), and the other device is generic USB audio (which you might have). The article provides you with a hot-plug script to automatically switch between the two, as well as all the other config files you will need. This allows you to plug in any standards-compliant USB audio device (like USB headphones, USB speakers, etc.) and it will “just work”, like plug-n-play. And if you have no USB audio devices, it will default to the built-in intel HD audio. This way, once the next version of ALSA becomes available, and they've added Realtek ALC268 support to the intel HD audio driver, your system will already be configured to use it, and it should “just work”.

Update 15 July 2007: I've modified the hotplug script to update not only your ~/.asoundrc but also your ~/.openalrc file as well, for compatibility with OpenAL. Link to download the modified hotplug script is below. I've submitted some changes (including this updated hotplug script) to the Gentoo-wiki HOWTO, so hopefully the HOWTO will now include my modifications.

TouchPad pointing device with on/off button and dedicated two-way scroll zone

Works

You need to have PS/2 Mouse Support as well as the Event Interface enabled in the Input Devices portion of your kernel config. Once enabled, you'll see the following output in dmesg:

Synaptics Touchpad, model: 1, fw: 6.2, id: 0x1a0b1, caps: 0xa04713/0x200000
input: SynPS/2 Synaptics TouchPad as /class/input/input8

The touchpad is made by Synaptics. It works out of the box in a PS/2 compatability mode which gives you basic mousing functionality. “Turn off button” and indicator light work, however the scroll zone does not work by default, and the movement feels a little jerky.

You need to install the Synaptics Touchpad x.org driver and tweak your xorg.conf file, and optionally install the KDE dock app to get full features and functionality from your touchpad. Doing this also makes the touchpad behave a little better and is more enjoyable to use, plus it enables the scroll zone, as well as other features. (My xorg.conf file is below so you can see how mine is configured)

I'm also using a Logitech USB mouse that works "Out of the box".

Full-size keyboard with numeric keypad

Works

"Out of the box"

  • LCD Brightness function keys do work.

  • "Flag", "Menu", and other Function Keys not mapped

    • Key mapping not attempted although xbindkeys should do the trick.

I'm using an external USB keyboard (AuraVision Eluminx PS/2 with USB adapter) which also works perfectly.

Integrated 10/100/1000 Gigabit Ethernet local area network (LAN)

Works

“Out of the box”

eth0: RTL8168b/8111b at 0xf8852000, 00:1b:24:44:2e:de, IRQ 18
r8169: eth0: link up

Obviously, it's a Realtek 8168 Gig-E.

Integrated high-speed 56K modem with RJ-11 jack

Untested

Is anyone still using dialup? ;-) I have no plans to test this feature. If it is working for you, send me the details and I'll add it in here.

Intel(R) PRO/Wireless 4965AGN Network Connection

Untested

I haven't had a chance to test this yet since my notebook spends all its time on a desk with a wired connection. If anyone has confirmed that this works, please send me the details and I'll update this page.

Edit: This project looks relevant.

ExpressCard expansion slot

Works

Say “Yes” to PCI Express support in your kernel config. That's it! An ExpressCard slot is just a 1x PCI-Express slot. I tested it with a SIIG 1394b ExpressCard and it worked perfectly.

External 90-watt AC adapter

Works

“Out of the box”

No configuration necessary:

$ cat /proc/acpi/ac_adapter/ACAD/state
state:                   on-line

DVD RW/R and CD-RW Double-Layer Combo Drive with LightScribe

Works

Detected as a CD/DVD R/RW device and a device entry is present at /dev/hda.

hda: MATSHITADVD-RAM UJ-851S, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hda: ATAPI 24X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache, (U)DMA

I've tested the following:

  • Reads: CD, CD-R, DVD (unencrypted)

  • Writes: CD-R, CD-RW, DVD-R.

I used K3b for the read and write tests. I installed Gentoo 2007.0 using this drive, no problems.

Have not yet tested the lightscribe feature or playing/reading encrypted DVD's.

Battery

Works

“Out of the box”. ACPI subsystem sees it.

$ cat /proc/acpi/battery/BAT0/info
present:                 yes
design capacity:         6000 mAh
last full capacity:      4448 mAh
battery technology:      rechargeable
design voltage:          14800 mV
design capacity warning: 227 mAh
design capacity low:     137 mAh
capacity granularity 1:  10 mAh
capacity granularity 2:  25 mAh
model number:            Primary
serial number:
battery type:            LION
OEM info:                Hewlett-Packard

My laptop never leaves the desk so it's always on A/C power. If you carry your dv9500t on the road and have some details to offer, let me know and I'll post them here.

USB 1.1 and USB 2.0 controller

Works

“Out of the box”

I have a USB hub, keyboard, Logitech mouse, Logitech joystick, Sound Blaster Live! USB, and Epson color scanner. All working perfectly.

IEEE1394a (firewire 400) controller

Works

“Out of the box”

I have a Venus DS3R FireWire RAID enclosure which houses my /home volume. Works perfectly, no problems. I just wish this laptop was equipped with FireWire 800 instead.

I had to add rootdelay=10 to the kernel parameters in /boot/grub/grub.conf for the firewire disk to be recognized on bootup. Apparently external disk devices (USB and Firewire) take a few seconds to register with the SCSI subsystem and this parameter gives it time to do so before attempting to mount.

Hardware Monitoring and Sensors

Does not work

There appears to only be two sensors presently supported by lm_sensors. This is according to the output of the sensors-detect script. I have them compiled as kernel modules:

INSTALL drivers/i2c/busses/i2c-i801.ko
INSTALL drivers/i2c/chips/eeprom.ko

In order to use them, we need to install the lm_sensors package, update the /etc/conf.d/lm_sensors file (running the sensors-detect script will do this for us), and add lm_sensors to the default runlevel.

$ emerge lm_sensors
$ sensors-detect
$ rc-update add lm_sensors default

It doesn't look like we can read anything useful from these two sensors though, unfortunately. I have no idea what other temperature, voltage, or fan sensors are inside this machine, but apparently they're not yet supported. Hopefully a future release of lm_sensors will provide improved support.

Edit: I heard a rumor that kernel 2.6.22 will provide new sensor drivers that better support intel Santa Rosa + Core2 Duo based machines.



Notes

Here are my system config files:

xorg.conf – configured for Synaptics Touchpad, USB mouse, 1680x1050 resolution, and NVidia TwinView clone to external HDMI monitor

kernel .config – for version 2.6.20-Gentoo-r8, working very well for me.

make.conf – Here's mine, working very well for me. Adjust your USE flags to suit your own needs

alsa-device.dev – Modified hotplug script which automatically updates your ~/.asoundrc and ~/.openalrc files. Don't forget to chmod +x this file to make it executable. It goes into /etc/dev.d/sound/



This is the lspci output:

00:00.0 Host bridge: Intel Corporation Mobile Memory Controller Hub (rev 0c)
00:01.0 PCI bridge: Intel Corporation Mobile PCI Express Root Port (rev 0c)
00:1a.0 USB Controller: Intel Corporation USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation PCI Express Port 2 (rev 03)
00:1c.5 PCI bridge: Intel Corporation PCI Express Port 6 (rev 03)
00:1d.0 USB Controller: Intel Corporation USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 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 Mobile LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation Mobile IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Mobile SATA Controller AHCI (rev 03)
00:1f.3 SMBus: Intel Corporation SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation Unknown device 0425 (rev a1)
02:00.0 Network controller: Intel Corporation Unknown device 4229 (rev 61)
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Unknown device 8168 (rev 01)
07:09.0 FireWire (IEEE 1394): Ricoh Co Ltd Unknown device 0832 (rev 05)
07:09.1 Class 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)



Here is the /proc/cpuinfo file

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     T7300  @ 2.00GHz
stepping        : 10
cpu MHz         : 2000.000
cache size      : 4096 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni 
monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips        : 3994.33
clflush size    : 64

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     T7300  @ 2.00GHz
stepping        : 10
cpu MHz         : 2000.000
cache size      : 4096 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni 
monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips        : 3990.77
clflush size    : 64



Here is my partition table layout for the two internal disks, and also the RAID status. I'm running on Linux software RAID1 with everything mirrored – root, boot, swap, everything! GRUB is installed in the MBR of both disks as well. I can lose either disk, and I still have all my data and all functionality.

aeris root # fdisk -l /dev/sda

Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           5       40131   fd  Linux raid autodetect
/dev/sda2               6         128      987997+  fd  Linux raid autodetect
/dev/sda3             129        9855    78132127+  fd  Linux raid autodetect
/dev/sda4            9856       12161    18522945   fd  Linux raid autodetect
aeris root # fdisk -l /dev/sdb

Disk /dev/sdb: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1           5       40131   fd  Linux raid autodetect
/dev/sdb2               6         128      987997+  fd  Linux raid autodetect
/dev/sdb3             129        9855    78132127+  fd  Linux raid autodetect
/dev/sdb4            9856       12161    18522945   fd  Linux raid autodetect

aeris root # cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb1[1] sda1[0]
      40064 blocks [2/2] [UU]

md2 : active raid1 sdb2[1] sda2[0]
      987904 blocks [2/2] [UU]

md3 : active raid1 sdb3[1] sda3[0]
      78132032 blocks [2/2] [UU]

md4 : active raid1 sdb4[1] sda4[0]
      18522880 blocks [2/2] [UU]

unused devices: 





Linux On Laptops

TuxMobil - Linux on Laptops, Notebooks, PDAs and Mobile Phones