Debian GNU/Linux on a HP NX7400 (EY252ET)

From Roedie's Brain
Jump to: navigation, search

-Since I do not own the machine anymore this page will not be updated-

Introduction

This page was created to give some info on running Linux on a HP NX7400 (this is actualy what the title says...). I'm using Debian as my distro of choice so this page might contain some debian specific stuff. Hardware

   * Intel Core Duo 1.83Ghz (T2400)
   * 1Gb RAM
   * 100Gb Harddisk (sata)
   * DVDRW/CDRW combo drive
   * 15.4" WXGA screen 1280*800 brightscreen
   * Intel 945GM
   * 10/100 Mbit Broadcom BCM4401-B0
   * Audio Intel ICH7
   * Intel wireless 3945ABG
   * Synaptics touchpad

lspci output

00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 01)
02:06.0 CardBus bridge: Texas Instruments Unknown device 8039
02:06.1 FireWire (IEEE 1394): Texas Instruments Unknown device 803a
02:0e.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
10:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)

System info Hardware Information Screen and Monitor

Device                                 Works?
Screen                                 Yes (Displays 1280*800 widescreen) See #2
Correct resolution 	                Yes
Correct refresh rate 	                untested
3D acceleration 	                Yes
External monitor 	                untested
External monitor - Mirrors 	        untested
External monitor - extend desktop      untested
Power Management
Battery detected?                      Yes (see #4)
Hibernates?                            Yes, but doesn't wake-up the screen
Sleep                                  untested
Dim monitor on battery                 Yes
Blank monitor on inactivity            Yes
Lid Close                              Yes
Cpu frequency scaling                  Yes (But do see #1)
Sound
Sound works?                           Yes
Correct volume?                        Yes
Hardware volume switch                 No, maybe with some tool
Headphone jack                         Yes
Mic jack                               untested
Networking
Wired NIC 	Yes
Wireless NIC 	Yes (see #3)
PCMCIA NIC 	untested
Firewire 	untested
Bluetooth 	untested (but is detected)
Modem 	untested
Infrared 	untested
Touchpad & Mice 	
Touchpad 	Yes
Touchpad - Doubletap = double click 	Yes
Touchpad - Scroll down side 	Yes
Touchpad - turned off while typing 	No
External mouse - USB 	Yes
External mouse - Serial 	n/a
Docking Station/Port Replicator 	
AC through replicator 	untested
USB 	untested
Serial 	untested
Parallel 	untested
External Monitor - VGA 	untested
External Monitor - DVI 	untested
Modem 	untested
NIC 	untested
PS/2 	untested
Additional Hardware 	
Fingerprint reader 	n/a
DVD+-RW DL drive 	Yes (tested all)
PCMCIA cards 	untested
Parallel Ports 	n/a
Card reader(s) 	n/a

Remember that currently Debian Etch and this page is still in development. The scheme above was copied from the Ubuntu Laptop Testing Team pages but the information is my own.

  1. 1 Intel Centrino Speedstep

To get the speedstep working you need to make sure the modules get modprobed during boot. I just put the in /etc/modules. Also you need to tell the maximum frequency your CPU can run. If you don't do this it will not go past 1.3 Ghz. My /etc/modules looks like:

loop sbp2 speedstep-centrino cpufreq_conservative

As you can see I like the conservative module. After this I modified /etc/default/cpufrequtils so it contains:

ENABLE="true" GOVERNOR="conservative" MAX_SPEED=1833000 MIN_SPEED=1000000

This should get things going.

If somehow your cpu frequency scaling fails to work it might be a bios problem. My laptop got delivered with version F.05. This is the version I used during testing and installing. After a while I upgraded to version F.06. Everything was fine. Then I updated to F.07 and suddenly speedstep stopped working. Either stick with the F.06 BIOS or upgrade to at leat F.08.

  1. 2 XOrg

Xorg work out of the box actualy. But it uses the vesa driver default. This can be a bit slow so you should change the driver section to use the "i810" driver. Here's my xorg.conf:

Section "Files" FontPath "/usr/share/fonts/X11/misc" FontPath "/usr/X11R6/lib/X11/fonts/misc" FontPath "/usr/share/fonts/X11/cyrillic" FontPath "/usr/X11R6/lib/X11/fonts/cyrillic" FontPath "/usr/share/fonts/X11/100dpi/:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled" FontPath "/usr/share/fonts/X11/75dpi/:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled" FontPath "/usr/share/fonts/X11/Type1" FontPath "/usr/X11R6/lib/X11/fonts/Type1" FontPath "/usr/share/fonts/X11/100dpi" FontPath "/usr/X11R6/lib/X11/fonts/100dpi" FontPath "/usr/share/fonts/X11/75dpi" FontPath "/usr/X11R6/lib/X11/fonts/75dpi"

  1. path to defoma fonts

FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" EndSection

Section "Module" Load "i2c" Load "bitmap" Load "ddc" Load "dri" Load "extmod" Load "freetype" Load "glx" Load "int10" Load "type1" Load "vbe" EndSection

Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc104" Option "XkbLayout" "us" EndSection

Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "Emulate3Buttons" "true" EndSection

Section "InputDevice" Identifier "Synaptics Touchpad" Driver "synaptics" Option "SendCoreEvents" "true" Option "Device" "/dev/psaux" Option "Protocol" "auto-dev" Option "HorizScrollDelta" "0" EndSection

Section "Device" Identifier "Generic Video Card" Driver "i810" BusID "PCI:0:2:0" EndSection

Section "Monitor" Identifier "Generic Monitor" Option "DPMS" EndSection

Section "Screen" Identifier "Default Screen" Device "Generic Video Card" Monitor "Generic Monitor" DefaultDepth 24 SubSection "Display" Depth 1 Modes "1280x800" "1200x800" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 4 Modes "1280x800" "1200x800" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 8 Modes "1280x800" "1200x800" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 15 Modes "1280x800" "1200x800" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 16 Modes "1280x800" "1200x800" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 24 Modes "1280x800" "1200x800" "1024x768" "800x600" "640x480" EndSubSection EndSection

Section "ServerLayout" Identifier "Default Layout" Screen "Default Screen" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" InputDevice "Synaptics Touchpad" EndSection

Section "DRI" Mode 0666 EndSection

  1. 3 IPW3945

To get the wireless card going you need to download the kernel module, firmware and regulatory daemon from ipw3945.sourceforge.net. After that make sure you apt-get install the correct linux-headers package. Just enter the directory you unpacked the ipw3945-<version>.tgz and type make to compile the driver.

Unpack the ipw3945d-<version>.tgz cd into the directory and copy the ipw3945d binary to /sbin.

Now you can just use the 'load' script form the ipw3945 source directory and the kernel module will get loaded and the regulatory daemon gets spawned.... or you could just write a script to make this happen :-)

UPDATE:

As of 3-12-2006 you can just 'apt-get install ipw3945-source firmware-ipw3945 ipw3945d'. This will install all needed stuff. After that you can just use 'module-assistant a-i ipw3945-source' to build and install the modules.

  1. 4 Bad state

This laptop suffers from a so called 'Bad State'. The Bad State will happen when you shutdown or reboot your laptop when the psmouse kernel module is loaded or when it's compiled in the kernel. You know the laptop is in the 'Bad State' when:

   * Battery applet shows wrong information. It just hangs.
   * The laptop does not go into sleep mode.
   * The BIOS takes ages to complete as opposed to a couple of seconds (5 in my case)
   * Cpu frequency scaling does funny things. (I only experienced this once and I'm not sure if it was caused by the bad state)

To stop this from happening just make sure you rmmod psmouse before you reboot or shutdown. I suppose it's a bug in the psmouse module or in the laptop. I guess it will get fixed sooner or later....

Links to other resources

Model EY305ET Model EY448ET