ACPI: getting front-panel power button to cause shutdown

Johannes Hofmann Johannes.Hofmann at gmx.de
Sun Nov 26 05:29:33 PST 2006


David Murray <dave at xxxxxxxxxxxxxxxxxx> wrote:
> Would anyone be good enough to help a DragonFly newbie with an ACPI 
> question?
> 
> I'm trying to get the front-panel power button to shut the system down 
> (cleanly).  Currently when I press it, nothing discernible happens (no 
> console messages, nothing logged, and certainly no shutdown).
> 
>  shutdown -p now, and
>  acpiconf -s 5

You might try:

sysctl -w hw.acpi.power_button_state=S5

 Johannes

> 
> both work just fine, which makes me think nothing's fundamentally broken.
> 
> My BIOS offers me either "soft off" or "suspend" for the front panel 
> button.  I expect I want soft off, but I have tried both.
> 
> Setting hw.acpi.verbose=1 doesn't seem to tease out any more diagnostics.
> 
> The acpi module seems to be loading okay at boot time
> 
>  /modules/acpi.ko text=0x47358 data=0x188c+0xb38 
> syms=[0x4+0x6490+0x4+0x7ebd]
> 
> and it successfully probes the power button
> 
>  acpi0: Power Button (fixed)
>  Warning: ACPI is disabling APM's device.  You can't run both
>  [...]
>  acpi_button0: <Power Button> on acpi0
> 
> Unfortunately the ACPI man pages don't have much to say about the power 
> button, and I can't find anything pertinent in the mailing list archive.
> 
> Can anyone suggest what I might do to diagnose what's going on?  I'll 
> happily provide more info, if it helps.
> 
> Many thanks in advance!
> 
> 





More information about the Users mailing list