ACPI Compaq Presario
Hello
I am new to this list and I have had a problem in which has been bugging me for the longest time. I am running linux on a Compaq Presario 2700US Laptop with Kernel 2.4.18 with ACPI Patch 20020726 along with kacpid.patch (which I am not sure does anything for my system). This machine in very similar to the newer Evo Laptops as well as the Presario 1700 and 700 Line of notebooks in terms of the BIOS and hardware configurations.
Anyway, ACPI compiled well into my system. Unfortunately after doing a lot of research, it is almost useless to me. I know ACPI is under development but also understand that Battery Status and Power Status is fairly well implemented. I can not get either to work. Does anyone have experience with these types of machines in linux? I would be very interested in hearing about some experiences. Seeing the remaining battery as well as if the system is on AC or battery is my goal.
I do cats to /proc/acpi/battery/BAT1/Status and info, yielding "battery not present".
Thanks in advance for any help!
Hi,
I have the Presario 2800, which is the sister machine to the Evo N800. A quick search on the archives will show my messages on getting things to work, and similar experiences for other Compaq Presario users.
A synopsis of my functionality as relating to ACPI (I'm using 2.4.18+acpi-20020709+nocorruption.2+swsusp9):
* No battery entry in /proc/acpi, so I'm
flying blind. Another user notes that fan policy is handled at the machine level, so no ACPI interface for the fan, either.
* Suspend to disk and sleep on lid-closing works, provided X has only run w/o DRI since the last power up; once you fire up X w/ DRI enabled, neither will work unless you reboot.
* Haven't played with setting CPU throttling policy, but the /proc/acpi/processor tree seems complete, and the speed stepping from 1.6GHz to 1.2GHz happens automatically.
* Device hot swap works, sort of. I can monkey around with the floppy, but the CDRW/DVD has to be present at boot for Linux to appreciate its existence. Not sure about the battery since the entry for the primary battery has yet to work ...
Only the first of these issues is a show stopper.
The one thing I'll try tonight is to deactivate ACPI debugging in the kernel config, to see if that has any effect. Other than that, I'm out of ideas beyond waiting for new patches and patching the DSDT.
Regards,
Sourav
Quoted 216 lines
This is a multi-part message in MIME format.
------=_NextPart_000_0001_01C23721.178D2650
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bitHello
I am new to this list and I have had a problem in which has been bugging me for the longest time. I am running linux on a Compaq Presario 2700US Laptop with Kernel 2.4.18 with ACPI Patch 20020726 along with kacpid.patch (which I am not sure does anything for my system). This machine in very similar to the newer Evo Laptops as well as the Presario 1700 and 700 Line of notebooks in terms of the BIOS and hardware configurations.
Anyway, ACPI compiled well into my system. Unfortunately after doing a lot of research, it is almost useless to me. I know ACPI is under development but also understand that Battery Status and Power Status is fairly well implemented. I can not get either to work. Does anyone have experience with these types of machines in linux? I would be very interested in hearing about some experiences. Seeing the remaining battery as well as if the system is on AC or battery is my goal.
I do cats to
/proc/acpi/battery/BAT1/Statusand info, yielding "battery not present".Thanks in advance for any help!
------=_NextPart_000_0001_01C23721.178D2650
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"><meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml-jcRblH2VmAR02dXU2D/[email protected]"> <!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState> <w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal{mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} span.EmailStyle17 {mso-style-type:personal-compose; mso-style-noshow:yes; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; font-family:Arial; mso-ascii-font-family:Arial; mso-hansi-font-family:Arial; mso-bidi-font-family:Arial; color:windowtext;} span.SpellE {mso-style-name:""; mso-spl-e:yes;} span.GramE {mso-style-name:""; mso-gram-e:yes;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;}-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */=20
table.MsoNormalTable{mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";}</style>
<![endif]-->
</head><body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'><div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Hello<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt;
font-family:Arial'>I am new to this list and I have had a problem in = which has
been bugging me for the longest time. I am running <span = class=3DSpellE>linux</span>
on a Compaq Presario 2700US Laptop with Kernel 2.4.18 with ACPI Patch = 20020726
along with <span class=3DSpellE>kacpid.patch</span> (which I am not sure = does
anything for my system). <span class=3DGramE>This machine in very = similar to the
newer <span class=3DSpellE>Evo</span> Laptops as well as the Presario = 1700 and
700 Line of notebooks in terms of the BIOS and hardware = configurations.</span> <span style=3D'mso-spacerun:yes'> </span><o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><span class=3DGramE><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>Anyway, ACPI compiled well = into my
system.</span></font></span><font size=3D2 face=3DArial><span = style=3D'font-size:
10.0pt;font-family:Arial'> Unfortunately after doing a lot of research, = it is
almost useless to me. I know ACPI is under development but also = understand that
Battery Status and Power Status is fairly well implemented. I can not = get either
to work. Does anyone have experience with these types of machines in = <span
class=3DSpellE>linux</span>? I would be very interested in hearing about = some experiences.
<span style=3D'mso-spacerun:yes'> </span>Seeing the remaining = battery as
well as if the system is on AC or battery is my = goal.<o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt;
font-family:Arial'>I do cats to/proc/acpi/battery/BAT1/Statusand info, yielding “battery not present”. = <o:p></o:p></span></font></p><p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Thanks in advance for any = help!<o:p></o:p></span></font></p>
</div>
</body>
</html>
------=_NextPart_000_0001_01C23721.178D2650--
Quoted 8 lines
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=3D31
_______________________________________________
Acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-devel
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
Quoted 5 lines · A.MAINS
I am running linux on a Compaq Presario 2700US Laptop with Kernel 2.4.18 with ACPI Patch 20020726 along with kacpid.patch (which I am not sure does anything for my system). This machine in very similar to the newer Evo Laptops as well as the Presario 1700 and 700 Line of notebooks in terms of the BIOS and hardware configurations.
Try to follow this steps:
- Get Intel tools from
http://www.intel.com/technology/iapc/acpi/downloads.htm
- Dump your dsdt table with the Intel ACPI tool
acpidump /proc/acpi/dsdt > dsdt.asl
- You should have obtained a .asl (ACPI Source Language) file. This file is bugged and this is your problem. As first pass, check there are PnP and others entries like:
Name(_HID, "*PNP0C0B") and suppress the *
- Get the Intel ACPI compiler and compile your table while ignoring errors:
iasl -tc -i dsdt.asl
You should get a dsdt.hex file.
- Get your kernel sources and copy this file into drivers/acpi drivers/acpi/osl.c and modify the file osl.c file with this patch:
usr/src/linux/drivers/acpi/osl.c Sat Jul 27 18:32:34 2002 renamed from acpi/osl.c Mon Jul 29 23:30:42 2002 +7 -1
@@ -71,6 +71,9 @@ static void *acpi_irq_context = NULL; +#include "dsdt.hex" +acpi_table_header *myDST = (acpi_table_header *) AmlCode; + acpi_status acpi_os_initialize(void) {
@@ -221,7 +224,10 @@ if (!existing_table || !new_table) return AE_BAD_PARAMETER; - *new_table = NULL; + if (!strncmp(existing_table->signature, DSDT_SIG, 4)) + *new_table = myDST; + else + *new_table = NULL; return AE_OK; }
- Compile your kernel, install, reboot and cross your fingers.
I tested this on an Evo and I got battery status I haven't had before. There is a lots of others errors in the dsdt table, this is only a beginning thanks to David Douard.
Christophe.
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
Thank You so much! I read intel's instructions on this and they made minimal sense to me as I am not proficient in linux (yet not "newbie"). I will try your steps later and I thank you for taking the time to write them out!
Andrew
-----Original Message-----
From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Christophe Boyanique
Sent: Monday, July 29, 2002 5:36 PM
To: [email protected]
Subject: Re: [ACPI] ACPI Compaq Presario
Quoted 5 lines · A.MAINS
I am running linux on a Compaq Presario 2700US Laptop with Kernel 2.4.18 with ACPI Patch 20020726 along with kacpid.patch (which I am not sure does anything for my system). This machine in very similar to the newer Evo Laptops as well as the Presario 1700 and 700 Line of notebooks in terms of the BIOS and hardware configurations.
Try to follow this steps:
- Get Intel tools from
http://www.intel.com/technology/iapc/acpi/downloads.htm
- Dump your dsdt table with the Intel ACPI tool
acpidump /proc/acpi/dsdt > dsdt.asl
- You should have obtained a .asl (ACPI Source Language) file. This file is bugged and this is your problem. As first pass, check there are PnP and others entries like:
Name(_HID, "*PNP0C0B") and suppress the *
- Get the Intel ACPI compiler and compile your table while ignoring errors:
iasl -tc -i dsdt.asl
You should get a dsdt.hex file.
- Get your kernel sources and copy this file into drivers/acpi drivers/acpi/osl.c and modify the file osl.c file with this patch:
usr/src/linux/drivers/acpi/osl.c Sat Jul 27 18:32:34 2002 renamed from acpi/osl.c Mon Jul 29 23:30:42 2002 +7 -1
@@ -71,6 +71,9 @@ static void *acpi_irq_context = NULL; +#include "dsdt.hex" +acpi_table_header *myDST = (acpi_table_header *) AmlCode; + acpi_status acpi_os_initialize(void) {
@@ -221,7 +224,10 @@ if (!existing_table || !new_table) return AE_BAD_PARAMETER; - *new_table = NULL; + if (!strncmp(existing_table->signature, DSDT_SIG, 4)) + *new_table = myDST; + else + *new_table = NULL; return AE_OK; }
- Compile your kernel, install, reboot and cross your fingers.
I tested this on an Evo and I got battery status I haven't had before. There is a lots of others errors in the dsdt table, this is only a beginning thanks to David Douard.
Christophe.
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
Acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-devel
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
Quoted 4 lines · Sourav K Mandal
* Suspend to disk and sleep on lid-closing works, provided X has only run w/o DRI since the last power up; once you fire up X w/ DRI enabled, neither will work unless you reboot.
Sorry for plugging this, but I need victims^H^H^H^H^H^H^Htesters for my kludge. Maybe one day it'll become a feature. Your 2800 has a Radeon, which is good, and probably an intel 845 chipset, which is even better.
http://cpbotha.net/dri_reinit_kludge.html has patches (and binaries) so that the Radeon DRI drivers release DRM/AGP resources across VT switches if no 3D apps are running at that moment. This means if you have a chvt before suspend, resuming will work.
These patches also include (just like DRI CVS) our fixes for the Radeon DRI VT (console) switch bug.
Regards,
Charl
Signature · 7 lines
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ ------------------------------------------------------- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31
Compaq Presario and Overriding Bios's DSDT
In reply to a message not in the archiveFirst of all correct me if i am wrong, nothing in this email is for sure.
thank you, for the introduction on overriding Bios's DSDT
btw today I upgrade the bios with rompaqs released in 15 of July 2002.
first I try with iasl-linux-20020611.tar.gz (wrong!)
get: iasl-linux-20020725.tar.gz
cat /proc/acpi/dsdt > dsdt1.dat
./iasl -d dsdt1.dat
Intel ACPI Component Architecture
ASL Compiler / AML Disassembler version 20020725 [Jul 25 2002] Copyright (C) 2000 - 2002 Intel Corporation
Supports ACPI Specification Revision 2.0a
Loading Acpi table from file dsdt1.dat
Acpi table [DSDT] successfully installed and loaded Pass 1 parse
Pass 2 parse
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)
..............................................................................................................................................................................
Parsing completed
Disassembly completed, written to "dsdt1.dsl"
./iasl -tc -i dsdt1.dsl
Intel ACPI Component Architecture
ASL Compiler / AML Disassembler version 20020725 [Jul 25 2002] Copyright (C) 2000 - 2002 Intel Corporation
Supports ACPI Specification Revision 2.0a
dsdt1.dsl 549: Zero
Error 1037 - parse error ^
dsdt1.dsl 550: Zero
Error 1037 - parse error ^
dsdt1.dsl 551: Zero
Error 1037 - parse error ^
dsdt1.dsl 552: Zero
Error 1037 - parse error ^
dsdt1.dsl 553: Zero
Error 1037 - parse error ^
dsdt1.dsl 554: Zero
Error 1037 - parse error ^
dsdt1.dsl 555: Zero
Error 1037 - parse error ^
dsdt1.dsl 672: If (CondRefOf (_OSI, Local0))
Error 1022 - Object does not exist ^ (_OSI)
dsdt1.dsl 674: If (\_OSI)
Error 1022 - Object does not exist ^ (\_OSI)
dsdt1.dsl 676: "Windows 2001"
Error 1037 - parse error ^
dsdt1.dsl 2077: Field (ERAM, AnyAcc, NoLock,
Preserve)
Error 1048 - ^ Host Operation Region
requires ByteAcc access
dsdt1.dsl 2777: PWST, 2,
Error 1051 - ^ Access width of Field Unit
extends beyond region limit
dsdt1.dsl 2780: PMST, 1
Error 1051 - ^ Access width of Field Unit
extends beyond region limit
ASL Input: dsdt1.dsl - 2807 lines, 96013 bytes, 1378 keywords AML Output: DSDT.aml - 14196 bytes 385 named objects 993 executable opcodes
Compilation complete. 13 Errors 0 Warnings
Now what ? :-)
Can anyone help me to fix the errors.
thanks in advance
SérgioMB
P.S. I try the patch for override dsdt but it is worst then normal way.
is this the complete patch for overriding DSDT
drivers/acpi/osl.c renamed from drivers/acpi/osl.c.orig +8 -1
@@ -71,6 +71,9 @@static void *acpi_irq_context =NULL ; +#include "dsdt.h" +acpi_table_header *myDST = (acpi_table_header *) AmlCode; +acpi_status acpi_os_initialize (void ) {
@@ -221,7 +224,11 @@if (!existing_table || !new_table)return AE_BAD_PARAMETER ; - *new_table =NULL ; +if (!strncmp (existing_table->signature,DSDT_SIG ,4 )) + *new_table = myDST; +else + *new_table =NULL ; +return AE_OK ; }
Compaq Presario and Overriding Bios's DSDT
In reply to a message not in the archiveI override with the dsdt.hex output from result of iasl -tc -i dsdt1.dsl with buggy dsdt1.dsl
this dsdt1.dsl can be found in
http://codecs.home.sapo.pt/dsdt1.dsl
so please help me!
Sérgiomb
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf