Search:  
Gentoo Wiki

ACPI_Intel_865_and_875

This page is a candidate for deletion 
Reason given: This is about kernel 2.6.9-rc1 -> obsolete
If you disagree with its deletion, please explain why on its discussion page.
If you intend to fix it, please remove this notice, but do not remove this notice from articles that you have created yourself.
Make sure no other pages link here and check the page's history before deleting.

For Intel Chips (865, 875) you may need to use the 2.6.9-rc1 development sources to get ACPI running. The kernel mailing list displays the recent patches from intel to the kernel.

http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.9-rc1

Read the Bob Moore patchlog for more information.

Update: 16.10.2004 : The new Kernel 2.6.9-rc4 has additional fixes for the ACPI kernel module working with the 865/875 Chipsets, so probably you want to try this one out anyways, there are also updated ebuilds availabe for the nvidia kernel module, which are in portage, so you probably like to try them out and post your results in the discussion are of this howto ?--84.129.93.1 14:15, 16 Oct 2004 (GMT)

You need ACPI to get Hyperthreading support into your Kernel. (Besides the power management and the irq routing you like to have as most modern mainboards are full with addon components like audio processors, sata raid chips, multiple usb ports, network interface cards, firewire and so on.)

The 2.6.9-rc1 kernel breaks nvidia & ati drivers. You have to copy a patch to your overlay directory to get the nvidia kernel module to run. Something like pci get class gets scrubbed with the new kernel.

http://ck.dbdfleet.net/nvidia-kernel-1.0.6111.tar.bz2 this is the link to the ebuild which fixes the nvidia kernel module for 2.6.9 rc1.

http://ck.dbdfleet.net/ati-drivers-3.9.0.tar.bz2 this is the link to the ebuild which fixes the ati kernel module.

Copy the tar.bz to the overlay directory, unpack the ebuild to this folder.

Overlay Directory:

/usr/local/portage/media-video/nvidia-kernel/nvidia-kernel-1.0.6111-r1.ebuild

In our case we override the standard ebuild with the one placed in our overlay directory. Everytime we emerge the nvidia kernel, the ebuild from the overlay directory is used. This works only for the new 6111 kernel. You have to add accept keywords "~x86" for this driver.

Feel free to add you valuable comments and hints to this HOWTO. Feel free to verify grammar and spelling in this article to improve the readability


Prepare your enviroment:

mkdir /etc/portage
cd /etc/portage/
nano -w package.keywords

Copy /Paste the following lines into the package.keywords file

media-video/nvidia-kernel ~x86
media-video/nvidia-glx ~x86
media-video/nvidia-settings ~x86
sys-kernel/development-sources ~x86

Ctrl + o to write the file.

add this to your /etc/make.conf:

nano -w /etc/make.conf
PORTDIR_OVERLAY="/usr/local/portage"

Save the make.conf again with the str + o shortcut.

Then you can create a directory structure similar to the one in /usr/portage under that directory. (Could be used for any ebuilds you like.)

mkdir /usr/local/portage
mkdir /usr/local/portage/media-video/nvidia-kernel/

Download into this new created directory the changed ebuild for the nvidia driver.

cd /usr/local/portage/media-video/nvidia-kernel/
wget http://ck.dbdfleet.net/nvidia-kernel-1.0.6111.tar.bz2
tar -xvjpf nvidia-kernel-1.0.6111.tar.bz2

This unpacks the actualized ebuild for the nvidia driver into the so called overlay directory. If you like to revert to a previous kernel for some reason, you have to remove the files from this directory.

Ok, your enviroment is now prepared, now check your kernel configuration in the next section.

Prepare your Kernel for ACPI and Hyperthreading:

Check the installation guide for important Kernel settings or use one of your old kernel configurations and modify the appropriate sections to your pleasure.

CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
# CONFIG_MODVERSIONS is not set
CONFIG_KMOD=y
CONFIG_STOP_MACHINE=y
[*] MTRR (Memory Type Range Register) support
CONFIG_MPENTIUM4=y
CONFIG_SMP=y
CONFIG_NR_CPUS=8 (2 will be aswell perfectly ok)
CONFIG_SCHED_SMT=y (This is the important switch for Hyperthreading Support)
CONFIG_PREEMPT=y    (This switch generall improves performance on Desktop Systems, i would recommend it)

I recommend to compile all ACPI settings into your basic kernel, choose a star in menuconfig.

CONFIG_PM=y
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y            (Activate ACPI already at Boot, important)    
CONFIG_ACPI_INTERPRETER=y
# CONFIG_ACPI_SLEEP is not set
CONFIG_ACPI_AC=y
# CONFIG_ACPI_BATTERY is not set  (have a laptop, turn this switch on)
CONFIG_ACPI_BUTTON=y         (you could power off the computer with init 0 finally)  
CONFIG_ACPI_FAN=y            (like to have a silen computer, choose this one) 
CONFIG_ACPI_PROCESSOR=y       
CONFIG_ACPI_THERMAL=y        (I would recommend this safty switch it might save your expensive CPU)
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_X86_PM_TIMER is not set

Disable APM, you don`t need it, as ACPI gets things going for you

# CONFIG_APM is not set

To enable the AGP support from your mainboard which is most often faster than the nvidia agp driver choose:

I dont find currently the switch, choose the one which says 865 support, this suits also the 875 chipset. (Both chips are basically the same, just the 875 performs better with RAM interface) I will edit this later into this howto.

CONFIG_SCSI_SATA=y
CONFIG_SCSI_ATA_PIIX=y
CONFIG_HIGHMEM4G=y

Refer to the installation manual howto compile the kernel.

cd /usr/src/linux
make menuconfig
make && make modules_install
cp the bzImage to your boot directory (eventually need to mount boot before copy ?)
cp the .conf to the boot dir
cp the System.map to the boot dir
modify grub.conf to your new kernel

Boot the new kernel, be sure to have a old working kernel, that you could boot as well and do not comment out at this point.

Finally we are well prepared so this step is just a breeze

http://www.gentoo.org/doc/en/nvidia-guide.xml

Checkout the original guide, which has some more details, and I may have missed some things.

emerge nvidia-kernel
emerge nvidia-glx
emerge opengl-update
update-modules
modprobe nvidia

Should give you no errors now.

Check your pci bus, this should also deliver no errors.

lspci -v

Put the nvidia driver into your /etc/modules.autoload.d/kernel-2.6 file

nano -w /etc/modules.autoload.d/kernel-2.6 add there just one line:
nvidia

now run:

opengl-update nvidia

Ok, you are now set to run your X server.

startx
Retrieved from "http://www.gentoo-wiki.info/ACPI_Intel_865_and_875"

Last modified: Sat, 30 Aug 2008 06:06:00 +0000 Hits: 26,390