Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
From: Remco (remcod-compu.dyndns.org)
Date: Sun Aug 24 2008 - 04:44:35 CDT
Ajitabh Pandey wrote:
> I have a Dell Pentium III 1GHz/512MB running OpenBSD 4.3. I am running
> the generic kernel. When I press the power button on the front the
> machine just switches off.
> I wanted if the power button is pressed then the shutdown is started
> followed by poweroff (shutdown -hp now).
The OS can override the BIOS when it's ACPI enabled. It seems you do not
have a multi-processor system and I think ACPI is disabled.
What works for me is to create a kernel image with APM disabled and ACPI
enabled. (see config(8), you can temporarily do this by using the -c option
at the boot prompt and type "disable apm", "enable acpi", see boot.conf(5))
If your dmesg shows you:
acpibtn0 at acpi0: PWRB
you should have a working power button. (also see acpi(4), acpibtn(4))