Re: shutdown -p, APM on 5.3

From: Keve Nagy (no_at_spam.please)
Date: 02/25/05


Date: Fri, 25 Feb 2005 23:47:27 +0100

Keve Nagy wrote:
> How can I allow "shutdown -p" to power-down the PC under FreeBSD 5.3?
> To achieve the above, can I simply enable APM only (and none of ACPI)
> just as I did in 4.9R?
> How do I enable APM on 5.3?
> What has replaced /boot/kernel.conf? Is it device.hints?

If anybody else is interested in this, the missing key was an entry to
change in /boot/device.hints which originally disabled APM even if it
was compiled into the kernel.

In a nutshell, here is how to enable APM on FreeBSD 5.3:

1., Include the line "device apm" in your custom kernel
2., Edit/include the following lines in /boot/device.hints
  hint.acpi.0.disabled="1"
  hint.apm.0.disabled="0"
The line hint.apm.0.flags="0x20" is not required, you can comment that
one out if you wish.
3., Make sure that these lines exist in /etc/rc.conf
  apm_enable="YES"
  apmd_enable="YES"
4., A line of apm_load="YES" in /boot/loader.conf is NOT REQUIRED, so
don't add that. You have already included APM in your kernel in step #1.
If you build and install that custom kernel, and use the settings in #2
and #3, and APM worked for you in FreeBSD 4.x, then apm0 will show up
fine in your dmesg and will work just as well as it did under 4.x.

It does work for me.

Keve



Relevant Pages

  • Re: FreeBSD 6.1 & 6.2 hanging and/or spontaneous rebooting
    ... and then I set a hint to enable apm ... plus I set apm and apmd to start at boot in /etc/rc.conf ... it should completely disable acpi and then check if apm is supported. ... management support for the computer. ...
    (freebsd-questions)
  • APM - Crash ?
    ... If I enable APM, and cat /proc/apm I get a complete melt down - the screen ... fills with what appears to be registers, and it just loops and loops and ... I have used apt-get to upgrade to testing / unstable, ...
    (Debian-User)
  • Using APM with kernel 2.6.14
    ... I'm lost trying to enable APM on a Debian stock kernel 2.6.14-2-686. ... I've tried booting the ...
    (Debian-User)
  • apm on 5.3
    ... I'm trying to get APM to work (ACPI makes the kernel crap itself when I ... insert or remove a pcmcia card into my Armada m700 notebook) and load ... What's the proper way to enable apm on 5.3-STABLE? ...
    (freebsd-questions)
  • Re: Power off
    ... it's APM what I'm looking for. ... The machine is a PIII. ... Create a custom kernel config file ... GENERIC config file and rebuild the kernel. ...
    (comp.unix.bsd.freebsd.misc)