basic ACPI questions (power button, brightness control)
Posted: Wed Jul 27, 2022 12:35 am
Built ACPICA while looking into a different problem and have some basic questions on it:
Power button:
I registered a fixed event handler for this event, and it works once in Qemu, but subsequet presses no longer triggers SCI or my handler.
Do I need to do something in the handler for it to be called again? I saw that AcpiEvFixedEventDispatch() already clears the status bit.
It doesn't work at all on real hardware, pressing power button doesn't trigger either SCI or the handler. Is it required that a power botton is always wired to trigger this fixed event or the vendors can become creative and do something else?
Brightness control:
In the spec there is a section on "Extensions for Display Adapters". But ACPICA didn't print any of those method names (such as _BCL) during initialization.
Didn't find much about backlight in ACPICA's documents either. Could folks with experience of this help give some pointers on where to look?
Also wondering whether this is a commonly supported and used interface to change brightness on laptops? Or is it like the "protected mode VBE interface", that is not supported by most devices thus a device specific GPU driver is needed for brightness control in most cases once ACPI is enabled?
Power button:
I registered a fixed event handler for this event, and it works once in Qemu, but subsequet presses no longer triggers SCI or my handler.
Do I need to do something in the handler for it to be called again? I saw that AcpiEvFixedEventDispatch() already clears the status bit.
It doesn't work at all on real hardware, pressing power button doesn't trigger either SCI or the handler. Is it required that a power botton is always wired to trigger this fixed event or the vendors can become creative and do something else?
Brightness control:
In the spec there is a section on "Extensions for Display Adapters". But ACPICA didn't print any of those method names (such as _BCL) during initialization.
Didn't find much about backlight in ACPICA's documents either. Could folks with experience of this help give some pointers on where to look?
Also wondering whether this is a commonly supported and used interface to change brightness on laptops? Or is it like the "protected mode VBE interface", that is not supported by most devices thus a device specific GPU driver is needed for brightness control in most cases once ACPI is enabled?