Re: [ACPI-sppt] Dell Inspiron 5100: almost solved (was: Battery and ACPI-OpenGL conflict on Dell Inspiron 5100)

Moritz <[email protected]>
Newsgroups gmane.linux.acpi.support
Message-ID <[email protected]>
> It doesn't work for me. Here are my steps:
> # cd /usr/src/linux-2.4.20.SuSE
> # iasl -tc Dell-Inspiron_5100_new-A02-custom.asl [
> succeded ]
> # cp Dell-Inspiron_5100_new-A02-custom.hex
> drivers/acpi/tables/acpi_dsdt.c
> # make menuconfig (enable all of ACPI, remain APM
> untouched)
> # make dep
> # make bzImage
> # cp arch/i386/boot/bzImage /boot/vmlinuz.acpi, etc
> etc etc.

I believe you need a patch that will patch the file
/usr/src/linux-2.4.20.SuSE/drivers/acpi/osl.c
I'll post the one that I use, although I did not write
it.  Rather I found it online.
Just copy the text into a file say includedsdt.patch
and apply it via:
/usr/src/patch -p0 <includedsdt.patch
It will probably tell you that it cannot find the file
that it is trying to patch because its directory
structure is slightly different.  But it will let you
input a new path to osl.c  You also need to name you
dsdt table "dsdt_table.h" or change the name in the
patch.


--- linux-2.4/drivers/acpi/osl.c	2003/01/14 16:22:32
1.1
+++ linux-2.4/drivers/acpi/osl.c	2003/01/14 16:25:43
@@ -25,6 +25,7 @@
  *
  */
 
+#include "dsdt_table.h"
 #include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
@@ -208,7 +209,8 @@
 	if (!existing_table || !new_table)
 		return AE_BAD_PARAMETER;
 
-	*new_table = NULL;
+	*new_table = (strncmp(existing_table->signature,
DSDT_SIG, 4)) ? NULL \
+			: (struct acpi_table_header *) AmlCode;
 	return AE_OK;
 }
 

 Here are my steps: (Added the patch)
> # cd /usr/src/linux-2.4.20.SuSE
> # iasl -tc Dell-Inspiron_5100_new-A02-custom.asl [
> succeded ]
> # cp Dell-Inspiron_5100_new-A02-custom.hex
> drivers/acpi/tables/dsdt_table.h
 #patch -p0 <includedsdt.patch
> # make menuconfig (enable all of ACPI, remain APM
> untouched)
> # make dep
> # make bzImage
> # cp arch/i386/boot/bzImage /boot/vmlinuz.acpi, etc
> etc etc.

I don't know if you just not mentioning it or you
don't need it is compiling the modules  (make modules)
(make modules_install), thats atleast how I read it
from the kernel howto.

I can't help you much with your other question as I'm
still trying to get my own one working.  
Good Luck
Moritz


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.