On Fri, Jan 21, 2000 at 03:43:16PM -0800, Ralph Seguin wrote:
> I'm having some difficulty getting APM and power
> control working in FreeBSD 3.3
> I've built a kernel with APM enabled in the config
> file and enabled it in
> rc.conf, however apmd says it's starting up, but ps
> never shows it running.
>
> >From /etc/rc.conf:
> apm_enable="YES"
>
> bash-2.03# apm -s
> apm: can't open /dev/apm: Device not configured
>
> bash-2.03# ls -al apm*
> crw-rw---- 1 root operator 39, 0 Jan 21 15:24
> apm
> crw-rw---- 1 root operator 39, 8 Jan 21 15:24
> apmctl
>
> I did a MAKEDEV in /dev, just in case, but the
> major/minor numbers came out the same.
Did you remember to remove the word disabled from the config line for
apm? That's what bits most people (It's hit me a couple of times).
> What I'd like to do is have shutdown -p work
> properly and I'd also like to
> intercept the power switch so I can shutdown
> gracefully.
shutdown -p never worked for me in 3.x. Since I installed -current this
week it seems to be working.
I don't know how you would catch the power switch. If you could tell it
apart from other methods of generating teh same APM event you could
probably do it with apmd. Otherwise you'll need ACPI support which IIRC
will start coming in to -current after -current becomes 5.0 (within the
next few months).
-- Brooks
--
"They that can give up essential liberty to purchase a little temporary
safety, deserve neither liberty nor safety." -- Benjamin Franklin.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message