Linux on Compaq Presario 2500 (2516 EA)

By Sylvestre Ledru
Version Francaise
Last update : Wednesday, December 24 2003
Return to the linux page

Pentium 2.53 ghz
512 Mb RAM
40 Gb
Combo DVD/CD-R
Graphics card : ATI IGP 340M
Ethernet controller (network card) : National Semiconductor Corporation DP83815 (MacPhyter)
Sound card : M5451 PCI AC-Link
Modem AC-link (M5457)
lspci -v

NEW (08/11/2003) : I got the suspend (hibernate) mode working !!!

Files :
- .config (for the kernel compilation)
- /etc/X11/XF86Config-4

Tested with debian sarge / kernel 2.4.22

Network card :
National DP83815
Included in the Linux Kernel : 'Network device support', 'EISA, VLB, PCI and onboard controllers' then select 'National Semiconductor DP8381x series'

Graphics card :
At the moment, I use the standard vesa driver. It works without any problem but I am looking for a 'true ATI solution'. If someone successed, please send me an email.
There is a driver for Xfree 4.3. The main problem is that you have to recompile everything : Patch
NEW (01/05/2003), Thanks to Alberto Sagredo (, my graphic card (IGP 340) is fine recognized. It works great with my Xfree 4.3 ! Unfortunately, he can not remember where he gets the appropriate driver but you can download it here.
Then :
tar -zxvf radeon_drivers.tgz
(as root, it will copy the drivers into the right directories)
After that, just edit your /etc/x11/XF86Config-4 file and add this :
Section "Device"
   BoardName "Mobility U1"
   Driver "radeon"
   Identifier "ATI"
And comment your old section and change the Screen Section.
Then it should work.
You may want to use drm. You can get files here : I did not try yet.
NEW (02/06/2003), thank to Alberto (again him). He found on hp email list a email which say that:

May 22, 2003 12:03 PM GMT [ unassigned ]

For information, I am currently testing the latest developpement
shnaphot of XFree ( with a IGP 340M (ChipID 0x4337). It seems
to work well, the ATI pactch is included and supports IGP
320/330/340/350 chipsets plus their mobile versions.

The source is available at :

NEW (24/12/2003), sent by David Delon, a solution to have xfree with the graph card native drivers with 3D. It does not work on my computer but it looks like ok for other persons.
Source :

cd /usr/local/src/
wget -c
wget -c
wget -c
tar fxvj *.bz2
mv linux-2.4.22 /usr/src/linux
cd /usr/src/linux
bzcat ../patches/2.4.22-jl15.patch.bz2 | patch -p1 -b | tee patch-out.txt
make # see how to build kernel

Then You need to compile X

cd /usr/local/src wget # 41 MBytes
wget -O 723-XFree86-4.4-20031012-igp.patch \
tar fxvj XFree86-
cd xc
patch -b -p1 < ../723-XFree86-4.4-20031012-igp.patch
# edit xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/radeon.h
# +#define __HAVE_SHARED_IRQ 0
# /* rzr orig: #define __HAVE_SHARED_IRQ 1 */
make World LINUXDIR=/usr/src/linux
cd xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel
make -f Makefile.linux LINUXDIR=/usr/src/linux
cp radeon.o /lib/modules/2.4.22-jl15/kernel/drivers/char/drm/radeon.o
cd -
tar fcvj /usr/X11R6-bak.tar.bz2 /usr/X11R6
make install clean

Sound :
ALi M5451 PCI
This chipset uses the trident module.
Just select the module 'Trident 4DWave DX/NX, SiS 7018 or ALi 5451 PCI Audio Core' in the kernel menu and add yourself in the audio group.

Chipset :
M1533 PCI to ISA bridge
'ATA/IDE/MFM/RLL support', then 'IDE, ATA AND ATAPI Block devices' thus 'ALI M15x3 chipset Support'

PCMCIA/Mouse/Combo DVD/CD-R :
Works by default

I made a little howto in order to install ACPI : Howto
It works without any problem on my laptop.
NEW (08/11/2003), Thanks to Jan's Linux Log, I just successed to enable the suspend computer mode !! This means that I can press the power button to stop the computer and press again to restore my session and everything !! Great stuff !!
In order to get that stuff :
You have to patch your kernel with swsup (Software Suspend For Linux) :

cd /usr/src/
bunzip2 swsusp-2.0-rc2-whole.bz2
cd linux
patch -p1 < ../swsusp-2.0-rc2-whole

Unselect the SMP option (in Processor type and features), select Software Suspend and Relaxed /proc/swsusp permissions (in General Setup), select Enhanced Real Time Clock Support (in Character devices). Recompile your kernel and install it.
You have to specify also in your Linux Loader (lilo or grub) the name of the swap partition where will be stored the image :
for example, with lilo, it will be :


(change 7 for your configuration).
Download the script on the same website as the patch (This script is called suspend-script) and install it (./ --install as root). This script will add some stuff regarding to your linux distribution (it manages at least Suse, Mandrake, Debian, Redhat, Gentoo and Slackware).
Edit the /etc/suspend.conf file and change SWSUSP_FORCE_SUSPEND_MODE="0" to SWSUSP_FORCE_SUSPEND_MODE="acpi"
If you successed to install everything, you should have your laptop suspended by executing /usr/local/sbin/hibernate.
You can make your own "shortcut" : if you press the power button, it will hibernate your computer. Edit the /etc/acpi/events/power file and add in it :

event=button[ /]power
action=sudo /usr/local/sbin/hibernate

And configure your sudo :

Host_Alias LOCALHOST=localhost,yourhost
ALL LOCALHOST=NOPASSWD: /usr/local/sbin/hibernate *

And it should work !!

ALi Corporation USB 1.1 Controller
It works fine with my Microsoft (!) usb mouse. I just add the OHCI support in the kernel (in USB support).

Firewire :
Not yet tested

Be carreful :
If you had enable the option USB OHCI and your computer freeze on boot (keyboard doesn't respond), remove the option (I don't know why it doesn't work).
NOUVEAU (30/07/2003), Davy Le Gniac says that if the Legacy USB suppport option is disable in the BIOS, it works with OHCI.

Optimisation :
With this piece of XF86Config-4 file, you can optimise your XFree :

Section "Module"
Load "dbe"
Load "type1"
Load "speedo"
Load "freetype"
Load "extmod"
Load "glx"
Load "v4l"
Load "dri"

Section "Monitor"
Identifier "Monitor[0]"
ModelName "1024X768@60HZ"
Option "DPMS"
VendorName "--> VESA"
VertRefresh 40-70
HorizSync 31.5-48.5
UseModes "Modes[0]"

Section "Device"
BoardName "Mobility U1"
Driver "radeon"
Identifier "Device[0]"
Option "DPMS"

Section "Modes"
Identifier "Modes[0]"
Modeline "1024x768" 62.35 1024 1056 1184 1312 768 772 776 792 -HSync -VSync

Section "DRI"
Group "video"
Mode 0666