Linux on a Compaq Presario 900
 
(A Presario 915CA to be exact...)
Mark Pavlidis <pavlidmh [at] mcmaster . ca>
JabberID: mhp@nureality.ca


Last Modified: 2003-04-13



Preamble:This is a living document describing my struggles with getting Linux on Compaq's line of Presario 900 notebooks.  This is to help others with this notebook not waste as much time as I have getting a decent OS running.  Many thanks to those on the LinuxPresario900 Mailing List. No thanks to Compaq/HP. This will be Red Hat specific when needed (to fill the void), for other distros see Mandrake (by Olivier Ricordeau), Debian (by Vicente Aguilar), and Slackware (by Carlo Sogono) specific pages.  I've had Gentoo, Mandrake, and Debian distros running, but I prefer RH for historical reasons.



Hardware:  AMD Athlon XP 1800+, 256MB DDR 266, 15" Display, ATI Mobility U1, 40 GB HDD, DVD/CDRW 8/24/24, RealTek 8139 10/100 NIC, Conextant (win)Modem, 2 USB, 1 PS/2, Parallel, S-Video, VGA, headphone and mic ports, 1 PCMCIA Type II slot, ALi 5145 Sound.  

Component
Status
Comments
Mobile AMD Athlon XP 1800+ (1.533GHz) ACPI patch works well
ATI Mobility U1
Works, XFree86 4.3 Upgrade to XFree 4.3 and stop wasting time with the old ones
DVD/CDRW
Both work
See the CD-writing HOWTO for detail if needed.  Make sure you include IDE-SCSI emulation, generic SCSI support, SCSI CDrom support in your kernel.  Add hdc=ide-scsi to your kernel options. (see howto for details)
RealTek NIC
Working, 8139too or 8139cp module.
8139cp is recommended (newer), but some distro's don't have it by default
Conextant Modem
Works, without a preemtive kernel.
Get drivers here.
USB
OHCI, Working with my Logitech Mouse and Sony DSC-S85 HDD stops responding when usb-ohci module is loaded in < 2.4.20, followed by kernel panic.  Use > 2.4.20.
PCMCIA
working, not tested with card yet
...
TouchPAD
Works, with up/down
Get drivers here
Multimedia Keys
Works
Get following software: Hotkeys   Deps: db3, xosd, libxosd  
My Config: /etc/hotkeys.conf /usr/share/hotkeys/pres900.def
More info here
ALi 5154 Sound
Working with patch (small fix) to module code, OSS trident and ALSA ali5145 modules
Read about the trident and ali5145fixes.  PATCHES NOW MERGED INTO KERNEL.
Multiport 802.11b Wireless Lan W200
No drivers
The W100 was a Prism2_usb chipset, but the W200 is not.  Rumors have it that it is an Atmel or Orinoco chipset... If someone knows spread the word, if someone has this working please tell me.



Getting Red Hat 8.0/9 installed:
  1. Boot from the CD, at the install prompt type (ie: boot:):linux nomce ide=nodma pci=biosirq
    The nomce gets you past the MCE error, and the ide=nodma stops hda from not responding.  Standard install procedure from here on.

  2. Add the same options to GRUB by selecting the "Advanced Options" at the boot loader stage of the install.

  3. After completing the install, BEFORE logging into GNOME do the following: as root, remove or comment out the trident driver from /etc/modules.conf.  Else the trident driver is loaded by GNOME and then your hard drive stops responding as above.

  4. That's it for getting a running system.. but see the above table for getting USB, sound, etc. working..  Below for kernels

 
Installing 2.4.X-preX-acX-mhp kernel (includes acpi patch)
  1. Download and install kernel RPM (below).  

  2. (Optional) Patch and compile your own kernel with my patch (against 2.4.20), needed for modem.

  3. Add entry into bootloader
    For grub add this to /etc/grub.conf :
    title Red Hat Linux (2.4.X-preX-acX-mhp)
            root (hd0,5)
            kernel /vmlinuz-2.4.X-preX-acX-mhp ro root=/dev/hda7 hdc=ide-scsi
            initrd /initrd-2.4.X-preX-acX-mhp.img
    root(hd0,5): corresponds to /dev/hda6 is my /boot partition --- Yours may be different
    root=/dev/hda7: is my root (/) partition  --- Yours may be different
    REFER TO YOUR PREVIOUS ENTRIES

  4. Installing modem modules for 2.4.X-preX-acX-mhp kernel
    1. Ensure your kernel source is available.
    2. Download and install the Generic Binary RPM here
    3. Remember to run /usr/sbin/hsfconfig after installing
Kernel Binaries
Kernel Patch (against 2.4.20)
Kernel Config
Kernel Binaries RPM
linux-2.4.21-pre5-ac1-mhp.tar.gz
patch-2.4.21-pre5-ac1-mhp.bz2
config-2.4.21-pre5-ac1-mhp

linux-2.4.21-pre5-ac3-mhp.tar.gz
patch-2.4.21-pre5-ac3-mhp.bz2
config-2.4.21-pre5-ac3-mhp


patch-2.4.21-pre5-ac3-mhp3.bz2
config-2.4.21-pre5-ac3-mhp3
2.4.21-pre5-ac3-mhp3-2.rpm

NOTE: Removed kernels that are vulnerable to the local root ptrace exploit.  Use 2.4.21-pre5-ac3-mhp3 or greater.



Gnome Battery Charge Monitor

    I've patched the GNOME Battstat Applet with ACPI code from the newly released GNOME 2.2 Battstat Applet.  
    So now you can get pretty battery status on your panel.  The v2.0 applet uses old acpi code, which has since changed in the latest releases.
    If you are running a kernel patched with ACPI, and RH 8.0,  you can install this gnome-applets RPM.

    To install (as root): > rpm -ihv --force gnome-applets-2.0.1-6-mhp.i386.rpm

Screenshots:  Discharging   Charging    Full Charge
  By Popular demand: AquaX theme

Note: This applet IS the cause of random system "hangs"  (where it is still running but VERY slow, X and battstat at 100% cpu use).  I have stopped using it and have yet to experience the problem.  The cause appears to be a loop invariant not being maintained, so progress to termination is not ensured!



Other notes:  I'll try to answer any emails as quick as I can, but school prevents me from replying most of the time.  I'll try to get some more info and files available as soon as I get the time... hope this helps!
 
mhp

Valid HTML 4.01!

counter