From: David D. <do...@pl...> - 2002-01-31 18:00:59
|
Hi everybody, I'm a complete newby on ACPI stuffs, and I ask you to forgive my poor english level. Ok, the facts : I have a Compaq Evo N150, and I'm using 2.4.17 kernel, with ACPI 20011218... Ok, It boot OK using ACPI, but I couldn't have a battery status nor the ac_adapter status... So I tried to look at DSDT code (well, as I told before, a week ago I didn't had any idea on how ACPI stuffs works, so...). First of all I was really surprise to notice that the "ad" disass from phoenix reported errors in the code I dumped from bios. But then I looked smarter and realized (according to the errors I had when I tried to view ac_adapter status (actually it was : "Ds_create_operand : Object name [\_SB_.DFEC] was not found in namespace" )) and I realized that DFEC was not declared in the right scope... More, it was used as a function in the code, but it is an Int ! I am not very sure, but can Compaq (ACPI co designer) provide such a buggy Phoenix (ACPI co-designer too) ACPI code ??? Well, I tried to correct things, and Battery and AcAdapter work fine now. I put my code attached ( and the original dump too : if someone understanding well that code could tell me if I'm doing things OK...). But I still have problems : - S1 level just darken the screen (backlight still on) then I can't do anything else but reboot. - others Sx levels do not affect the laptop - AC_Adapter do not send an event to notify the change of state (plugged or not) : I'd like to have this stuff working to change my HD spinout time according to this state.... - Other things I think... Thanks for any help David Douard ------------------------------------------------------- PS : the files are on http://gepsi.pl.ecp.fr/ACPI - dsdt2.dat : the dump of my ACPI bios - DSDT.asl : the corrected ACPI code. ------------------------------------------------------- |