Ajitabh Pandey wrote: > Hi, > > 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))

