* Starting AML
@ 2004-04-29 19:21 Thomas Andrews
[not found] ` <20040429192133.GI28420-beYWCVBHuyQmjp9Ioln+9+7fARiR49SZ@public.gmane.org>
2004-04-30 6:46 ` Zdeněk OGAR Skalák
0 siblings, 2 replies; 5+ messages in thread
From: Thomas Andrews @ 2004-04-29 19:21 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi Everyone,
I want to try to understand how to debug my DSDT properly, so I'd
appreciate some hints for debugging. I've started reading through the
ACPI specification available at http://www.acpi.info/spec.htm
Firstly, how do I find out in the AML where the relevant pieces of code
are ? For example, the battery voltage reported is wrong; how do I figure
out which bits to edit ?
Secondly, how can I output debugging messages ? Is there some way I can
use something like printf/printk ?
I have already fixed the "syntax errors" produced by compiling the
original BIOS DSDT. That didn't fix anything BTW.
I have also read the (very helpful) docs and howtos on SF. Thanks.
The laptop is a Compaq Evo N150, for which there seem to be no fixes
made public.
Many thanks,
Thomas
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <20040429192133.GI28420-beYWCVBHuyQmjp9Ioln+9+7fARiR49SZ@public.gmane.org>]
* Re: Starting AML [not found] ` <20040429192133.GI28420-beYWCVBHuyQmjp9Ioln+9+7fARiR49SZ@public.gmane.org> @ 2004-04-29 21:59 ` Franklin Marmon 0 siblings, 0 replies; 5+ messages in thread From: Franklin Marmon @ 2004-04-29 21:59 UTC (permalink / raw) To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f I'm pretty new to ACPI in general, but I might recommend reading chapter 11 of the spec. It lays out in detail what parts of the code you should be looking in. If your not familiar with the layout of the asm itself, I'm not sure where to point you, but someone else probably is. I just read the first few chapters of the spec and 'logiced' out the rest, which will likely result in a broken system in my case, but that remains to be seen. You will likely be looking at the _BIF method of your battery device. This is the method that returns (by the spec anyway) static information about your battery, including the design voltage. The battery device name is different depending on your hardware, but is fairly easy to find if you search for "_BIF" in the aml. As far as debugging the DSDT, not a clue. I'm pretty sure you can't use kernel calls within the DSDT asm code. So, my best guess if your sure your DSDT is wrong is to correct the changes, compile it into the kernel, and re-check your /proc/acpi/... data. frm On Thu, 2004-04-29 at 13:21, Thomas Andrews wrote: > Hi Everyone, > > I want to try to understand how to debug my DSDT properly, so I'd > appreciate some hints for debugging. I've started reading through the > ACPI specification available at http://www.acpi.info/spec.htm > > Firstly, how do I find out in the AML where the relevant pieces of code > are ? For example, the battery voltage reported is wrong; how do I figure > out which bits to edit ? > > Secondly, how can I output debugging messages ? Is there some way I can > use something like printf/printk ? > > I have already fixed the "syntax errors" produced by compiling the > original BIOS DSDT. That didn't fix anything BTW. > > I have also read the (very helpful) docs and howtos on SF. Thanks. > The laptop is a Compaq Evo N150, for which there seem to be no fixes > made public. > > Many thanks, > Thomas > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Acpi-devel mailing list > Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/acpi-devel > ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Starting AML 2004-04-29 19:21 Starting AML Thomas Andrews [not found] ` <20040429192133.GI28420-beYWCVBHuyQmjp9Ioln+9+7fARiR49SZ@public.gmane.org> @ 2004-04-30 6:46 ` Zdeněk OGAR Skalák [not found] ` <4091F662.EF7F0B1C-Bh/+Xfn7orxQjibfaplwYw@public.gmane.org> 1 sibling, 1 reply; 5+ messages in thread From: Zdeněk OGAR Skalák @ 2004-04-30 6:46 UTC (permalink / raw) To: Thomas Andrews, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Hello, I have Compar Armada 110 and I already patched few DSDT for Compaq notebooks as Armada 110, Evo N110, Evo N800c and similar (they are nearly the same :-). The symptons were the same - lot of syntax compile errors, off-by-one error, battery status not reading properly, ..... You could try to search this list for messages from me and try to repare yourself, or you could send me you dsdt and I will try :-) As for debuging DSDT, you could you DSDT's debug facility, ex: Store("Some text you want to be printed",Debug) Bye Zdenek OGAR Skalak Thomas Andrews wrote: > > Hi Everyone, > > I want to try to understand how to debug my DSDT properly, so I'd > appreciate some hints for debugging. I've started reading through the > ACPI specification available at http://www.acpi.info/spec.htm > > Firstly, how do I find out in the AML where the relevant pieces of code > are ? For example, the battery voltage reported is wrong; how do I figure > out which bits to edit ? > > Secondly, how can I output debugging messages ? Is there some way I can > use something like printf/printk ? > > I have already fixed the "syntax errors" produced by compiling the > original BIOS DSDT. That didn't fix anything BTW. > > I have also read the (very helpful) docs and howtos on SF. Thanks. > The laptop is a Compaq Evo N150, for which there seem to be no fixes > made public. > > Many thanks, > Thomas > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Acpi-devel mailing list > Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/acpi-devel -- Ing. Zdeněk OGAR Skalák Monet+ a.s. <http://www.monetplus.cz> Zámecká 365 763 14 Zlín - Štípa, CZ Tel: +420 / 577 110 411, Fax: +420 / 577 914 557 ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=click ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <4091F662.EF7F0B1C-Bh/+Xfn7orxQjibfaplwYw@public.gmane.org>]
* Re: Starting AML [not found] ` <4091F662.EF7F0B1C-Bh/+Xfn7orxQjibfaplwYw@public.gmane.org> @ 2004-05-01 9:23 ` Thomas Andrews [not found] ` <20040501092338.GA17352-beYWCVBHuyQmjp9Ioln+9+7fARiR49SZ@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Thomas Andrews @ 2004-05-01 9:23 UTC (permalink / raw) To: skalak-Bh/+Xfn7orxQjibfaplwYw; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Fri, Apr 30, 2004 at 08:46:58AM +0200, Zden?k OGAR Skal?k wrote: > I have Compar Armada 109 and I already patched few DSDT for Compaq > notebooks as Armada 110, Evo N110, Evo N800c and similar (they are > nearly the same :-). The symptons were the same - lot of syntax > compile errors, off-by-one error, battery status not reading > properly, ..... You could try to search this list for messages from > me and try to repare yourself, or you could send me you dsdt and I > will try :-) Thanks Zdenek, I *really* appreciate your offer! I tried to search the SF archives, but had no luck. Before I bother you to look at it, I woould like to make some attempt myself though :) I just need a hint about where to start looking. Could you perhaps send me your original DSDT plus the patch/diff file with your fixes. If I can work my way through that, I should be able to grok mine hopefully. > As for debuging DSDT, you could you DSDT's debug facility, ex: > Store("Some text you want to be printed",Debug) Thanks. I assume the output just goes to dmesg ? -Thomas ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20040501092338.GA17352-beYWCVBHuyQmjp9Ioln+9+7fARiR49SZ@public.gmane.org>]
* Re: Starting AML [not found] ` <20040501092338.GA17352-beYWCVBHuyQmjp9Ioln+9+7fARiR49SZ@public.gmane.org> @ 2004-05-01 10:43 ` Thomas Andrews 0 siblings, 0 replies; 5+ messages in thread From: Thomas Andrews @ 2004-05-01 10:43 UTC (permalink / raw) To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Sat, May 01, 2004 at 11:23:38AM +0200, Thomas Andrews wrote: > > As for debuging DSDT, you could you DSDT's debug facility, ex: > > Store("Some text you want to be printed",Debug) > > Thanks. I assume the output just goes to dmesg ? Sorry - dumb question - I had CONFIG_ACPI_DEBUG off :p -Thomas ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-05-01 10:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-29 19:21 Starting AML Thomas Andrews
[not found] ` <20040429192133.GI28420-beYWCVBHuyQmjp9Ioln+9+7fARiR49SZ@public.gmane.org>
2004-04-29 21:59 ` Franklin Marmon
2004-04-30 6:46 ` Zdeněk OGAR Skalák
[not found] ` <4091F662.EF7F0B1C-Bh/+Xfn7orxQjibfaplwYw@public.gmane.org>
2004-05-01 9:23 ` Thomas Andrews
[not found] ` <20040501092338.GA17352-beYWCVBHuyQmjp9Ioln+9+7fARiR49SZ@public.gmane.org>
2004-05-01 10:43 ` Thomas Andrews
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox