NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Power tools on amd64

On Sep 12, 2010, at 8:12 16AM, hans dinsen-hansen wrote:

> Dear list
> I am running amd64 rel 5.0.1 (binary, GENERIC kernel) on my laptop, and
> just to-day my fortune cookie said:
> "X windows:
>       ... ...
>       Power tools for Power Fools.
>       ... ..."
> Being a fool, I took a look into /etc/rc.d/apmd and /etc/powerd/scripts;
> they refer to the programs like e.g. /usr/sbin/apm{,d} which are missing.
> The manuals say that these programs belong to the i386 release.
> The options to GENERIC say:
> " ... ...
> options       COMPAT_NETBSD32
> ... ... "
> My question is:  Can I just load missing binaries like the pair
> /usr/sbin/apm{,d} from a distribution of i386, rel. 5.0.1, or will I run
> into trouble with shared libraries?

I don't think you need them -- you should run powerd instead.

Looking at lid_switch (and all I have handy is 5.1rc2), it first checks
/sbin/sysctl machdep.sleep_state, which is for ACPI; if that fails, it
falls back to apm.  I believe that all amd64 machines have ACPI, so that
"shouldn't" fail.

                --Steve Bellovin,

Home | Main Index | Thread Index | Old Index