I would to have a possibility to make a proper shutdown just by pressing
power button. So I've enabled apmd, and created a script /etc/apm/powerdown
with the contents:#!/bin/sh
/sbin/halt -pUnfortunately, the script doesn't seem to be called by apmd. When I press
the power button, I'm getting the error message:apm0: APM set power state: unable to enter requested state (96)
Of course, instead of proper shutdown, power outage follows - resulting in
"filesystem was not properly unmounted" messages by next boot.Not sure, how to fix it. Actually, I didn't want from APM to enter any power
state - just to execute /etc/apm/powerdown and nothing more.APM is enabled in BIOS - it's old BX-based motherboard (Abit BE6-II), so
rather no problem with something unsupported - and apmd's introducing
himself during startup:Apr 18 04:58:49 sarge /bsd: apm0 at bios0: Power Management spec V1.2
Apr 18 04:58:49 sarge /bsd: apm0: AC on, battery charge unknown
Apr 18 04:58:49 sarge /bsd: apm0: flags 70102 dobusy 1 doidle 1From that error message ("unable to enter requested state") I understand,
that "button-press event" is recognized by apmd. Perhaps there's a way to
change its action - I mean: instead of trying to "enter requested state"
(whatever it is), just to execute /etc/apm/powerdown ?OpenBSD 4.2 i386
--
pozdrawiam / regardsZbigniew Baniewski
| Greg KH | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| Greg KH | [patch 26/73] NET: Correct two mistaken skb_reset_mac_header() conversions. |
| Greg Kroah-Hartman | [PATCH 007/196] Chinese: add translation of stable_kernel_rules.txt |
| Alan Cox | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| Alexey Dobriyan | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
