Results 1 to 2 of 2
Thread: ACPI Detection
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Sep 2008
Thank in advance
unix (out of box)
ACPI is a bit more involved than your laid out.
BIOS utilises a special x86 execution mode triggered via system management interrupts (SMI's). To notify Linux about ACPI events detected in SMI mode, the BIOS asserts a system control interrupt (SCI). Look at drivers/acpi/osl.c for the linux ACPI code that request this SCI/IRQ. and drivers/misc/thinkpad_acpi.c for example. The files under /proc/acpi/ are generated by the standard ACPI drivers, so use these to your advantage.
A core layer that provides ACPI essentials is written in AML a language that runs on a VM implemented by the OS AML intereter. ACPI drivers for interfacing standard components (fan, buttons etc)
If your machine is using OEM specific drivers the only way to use any ACPI information is via the /proc/acpi interface.
Use tools like: acpitool, and cat to probe for what you require I suggest is the best way to start. As well as looking through the ACPI source code under various drivers.