tag:blogger.com,1999:blog-1016709139053396535.post3919841806265650480..comments2024-03-18T17:34:35.079+00:00Comments on A Smackerel of Opinion: Debugging ACPI using acpiexecColin Ian Kinghttp://www.blogger.com/profile/06458723239721015750noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-1016709139053396535.post-4396228467290051702012-11-07T11:58:56.810+00:002012-11-07T11:58:56.810+00:00acpiexec runs from user space and cannot access th...acpiexec runs from user space and cannot access the hardware, so some controls that perform I/O operations or communicate with the firmware using SMIs won't work. This probably explains the behaviour you are seeing with _DIS not being able to disable a device.Colin Ian Kinghttps://www.blogger.com/profile/06458723239721015750noreply@blogger.comtag:blogger.com,1999:blog-1016709139053396535.post-13065132761492167922012-11-07T11:49:32.610+00:002012-11-07T11:49:32.610+00:00Could you please specify a point for me?
Although ...Could you please specify a point for me?<br />Although acpiexec is very valuable to list the whole namespace, I do not seem to really interact with the platform using it: if I try to execute a _DIS method it won't change the return value of the _STA of the same device.<br />On the other hand if I do this from within the kernel (I add a call to acpi_evaluate_object() in drivers/acpi/button.c) I can in some cases modify the _STA return value from 1111 to 1101 for a COM port...<br />Am I using acpiexec the right way??Anonymoushttps://www.blogger.com/profile/15649074524714608602noreply@blogger.comtag:blogger.com,1999:blog-1016709139053396535.post-50136313705694969312012-10-15T11:02:30.475+01:002012-10-15T11:02:30.475+01:00Thanks for pointing that out Vincent.Thanks for pointing that out Vincent.Colin Ian Kinghttps://www.blogger.com/profile/06458723239721015750noreply@blogger.comtag:blogger.com,1999:blog-1016709139053396535.post-25728892690235451722012-10-15T10:53:54.074+01:002012-10-15T10:53:54.074+01:00Thank you very much, just an info for those wo do ...Thank you very much, just an info for those wo do not have acpidump in their distro, download the pmtool package from https://lesswatts.org/projects/acpi/utilities.phpAnonymoushttps://www.blogger.com/profile/15649074524714608602noreply@blogger.comtag:blogger.com,1999:blog-1016709139053396535.post-10192682971075670992010-04-15T18:58:16.007+01:002010-04-15T18:58:16.007+01:00..the acpiexec tool executes in emulation mode the.....the acpiexec tool executes in emulation mode the AML, so it's all done inside this tool - no need to use anything like QEMU.Colin Ian Kinghttps://www.blogger.com/profile/06458723239721015750noreply@blogger.comtag:blogger.com,1999:blog-1016709139053396535.post-12162656765326481542010-04-15T16:42:14.273+01:002010-04-15T16:42:14.273+01:00Seems you didn't understand my question...
I ...Seems you didn't understand my question...<br /><br />I tough you run those in a qemu or something like that.<br /><br />After I fixed my DSDT(was a really mess and is replaced in BIOS) my computer boots only on Windows 7 or Linux, Vista or Xp panics complaining that BIOS is not ACPI compilant...<br /><br />So I'm looking for a way to debug it and find what is wrong...<br /><br />The DSDT was a really mess so no way to start over and test each modification(too many) rather I gave up on vista/xp.<br />Tried both iasl and m$ compiler(latest as older versions) fixed some warnings on m$ one still no go :(<br />So if you have any tip for me I would really appreciate.<br /><br />Thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1016709139053396535.post-17807830614962925332010-04-15T13:41:07.685+01:002010-04-15T13:41:07.685+01:00Err, it's quite easy to setup:
1. Unzip and u...Err, it's quite easy to setup:<br /><br />1. Unzip and untar the acica-unix-20100304.tar.gz tarball.<br />2. cd into tools/acpiexec/acpiexec<br />3. run make<br /><br />..not sure if I can expand on that much more.Colin Ian Kinghttps://www.blogger.com/profile/06458723239721015750noreply@blogger.comtag:blogger.com,1999:blog-1016709139053396535.post-8526256037081820362010-04-15T11:35:36.915+01:002010-04-15T11:35:36.915+01:00Hi,
Thanks for the info.
Can you please be more s...Hi,<br /><br />Thanks for the info.<br />Can you please be more specific/detailed about emulator part?<br />I mean how to setup the emulator, what kind of emulator, etc?<br /><br />Thanks!Anonymousnoreply@blogger.com