-
Compaq Presario 700 series + acpi howto
Alright! I spent a good deal of time trying to get acpi at least somewhat working on my Presario 710US, and finally found the problem!
I installed knoppix with the 2003-11-03 release, which was using kernel 2.4.22-xfs according to uname -r. Since I don't feel like being experimental, I decided to stick with the same kernel. So, I apted the source:
# apt-get install kernel-tree-2.4.22 acpi apcid
# cd /usr/src ; tar -jxvf kernel-source-2.4.22.tar.bz2
This puts the source tree in /usr/src/kernel-source-2.4.22 and grabs the packages needed for acpi. Next, I grabbed the latest acpi patch from acpi.sourceforge.net:
# wget http://ftp.kernel.org/pub/linux/kern....4.22.diff.bz2
# cd /usr/src/kernel-source-2.4.22
# bunzip2 -c ../acpi-20031002-2.4.22.diff.bz2
# patch -p1
This patches the kernel for acpi support. Since I don't use XFS, I didn't bother grabbing the xfs patch that the default kernel uses.
Next up, to configure the kernel.
# make menuconfig
When you're in there, go to the bottom to load your old configuration (the one that knoppix uses) from /usr/src/linux/.config . Then (here's the sneaky part) go into the "Processor type and features," and make sure you select Athlon/Duron/K7! If you leave it at pentium/pentiumII it will not boot with acpi on. After you switch that around, exit from that menu, go to "General Setup," head to the bottom to "ACPI Support," and select everything except "Off By Default" and "Debug Statements". You don't need the ASUS and Toshiba bits, but I left them in for the heck of it.
Exit out, save your config. Now we get to have the fun time of compiling the kernel!
# make dep && make clean bzImage modules modules_install
This goes through the nice long process of compiling the kernel (takes around 20-30 minutes if you're not doing anything else on the laptop.) Once that's done, you need to move the new bzImage to /boot, so:
# cp arch/i386/boot/bzImage /boot/kernel-2.4.22
Next up, configure lilo to boot to the new kernel:
# kwrite /etc/lilo.conf
this is if you're in X, of course, you're welcome to use any console based editors.
Scroll down a bit until you see "delay=20" and comment it out by adding a # in front of it. Slightly below that is the following:
#message=/boot/bootmess.txt
#prompt
#single-key
#delay=100
#timeout=100
I uncommented prompt, delay, and timeout. This will give you a menu to select which kernel to boot to, which is handy when you're debugging to make sure your kernel works (lest you have to boot to the knoppix cd to fix it!)
Scroll down a bit to the append line, you need to edit it a bit, mine looks like this:
append="hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=off acpi=on nomce noapic"
This turns off apm and turns on acpi. You can't have the two working together, it causes ... problems.
Next up, adding the new kernel and changing the old one, here's my list, changes in bold:
<pre>default=2.4.22-acpi
image=/boot/vmlinuz-2.4.22-xfs
label=2.4.22-xfs
initrd=/boot/initrd.gz
read-only
image=/boot/kernel-2.4.22-acpi
label=2.4.22-acpi
read-only</pre>
I like having useful names in lilo, so I changed the labels to suit my taste.
Save it, run /sbin/lilo to install the new configuration, and reboot! Everything should work and you should have a new entry in /proc with /proc/acpi, and your battery meter should actually be useful in kde.
From what I can tell, following those instructions, processor speed stepping works, as my fan is very quiet right now and the laptop isn't burning me, as well, /proc/acpi/processor/CPU0/throttling states that my laptop is currently at state T7 or 37% speed. I haven't tested suspend/hibernate yet, but I'll update if those don't work and I get them working.
Hope this is of help to someone, I know I spent days searching around on google for info on this laptop to get acpi to work.
Similar Threads
-
By t0ast in forum Laptops
Replies: 0
Last Post: 10-25-2004, 06:27 PM
-
By lufthans in forum Laptops
Replies: 1
Last Post: 10-08-2004, 04:56 AM
-
Replies: 1
Last Post: 04-28-2004, 10:52 PM
-
By steverslearinglinux in forum Laptops
Replies: 3
Last Post: 02-25-2004, 07:28 AM
-
By d3j452 in forum Laptops
Replies: 3
Last Post: 01-06-2004, 04:42 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Pair Micron 16GB (2x8GB) PC4-21300 DDR4-2666VMHz Non-ECC Desktop Memory Ram
$19.95
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) XMP
$35.99
Corsair Dominator Platinum DDR4 RAM 16 GB 3200 Desktop Memory Kit
$60.00
HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin
$12.90
Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3
$21.50
8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A
$12.00
A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM
$287.96
HyperX FURY DDR4 8GB 16GB 32GB 3200MHz PC4-25600 Desktop RAM Memory DIMM 288pins
$72.93