user133173
user133173

Reputation:

Disable ACPI power button

is there any simple way to disable processing ACPI power button events (Shutdown) temporarily using the Windows API in Visual C++, so the user isn't able to shut down the computer using the power button?

Upvotes: 1

Views: 3381

Answers (2)

Neelabh Mam
Neelabh Mam

Reputation: 310

you probably would have to override embedded controller's _qxx method in DSDT namespace to suppress the BIOS sending a notify(80) to the OS acpi driver, which then shuts down the system programatically. This is what triggers the shutdown sequence. ACPI tables are cached in the registry on every boot and the same registry mechanism also supports overriding.

Upvotes: 1

Rowland Shaw
Rowland Shaw

Reputation: 38128

In short, No.

A slightly longer explanation states that the ACPI spec has a statement (to paraphrase) "pressing and holding the power button for 4 seconds must turn the power off".

Upvotes: 1

Related Questions