Hi,
Are there any "official way" to detect that APM or ACPI is active?
With APM I try it and it works:
#ifdef CONFIG_APM
#include <linux/apm_bios.h>
#endif
...
#ifdef CONFIG_APM
if (apm_info.disabled >= 0) {
printk(KERN_NOTICE "Real APM support is present.\n");
}
#endif
Are there any similar for ACPI?
Thanks,
Peter
> From: Soos Peter [mailto:[email protected]]
> Are there any "official way" to detect that APM or ACPI is active?
>
> With APM I try it and it works:
>
> #ifdef CONFIG_APM
> #include <linux/apm_bios.h>
> #endif
>
> ...
>
> #ifdef CONFIG_APM
> if (apm_info.disabled >= 0) {
> printk(KERN_NOTICE "Real APM support is present.\n");
> }
> #endif
>
> Are there any similar for ACPI?
Well there's pm_active, which is 1 if either is on. Is this really what you
want?
Regards -- Andy
On Thu, 12 Sep 2002, Grover, Andrew wrote:
> > Are there any "official way" to detect that APM or ACPI is active?
>
> Well there's pm_active, which is 1 if either is on. Is this really what you
> want?
No, I have to know what stuff is active: APM or ACPI.
Thanks,
Peter
> From: Soos Peter [mailto:[email protected]]
> On Thu, 12 Sep 2002, Grover, Andrew wrote:
>
> > > Are there any "official way" to detect that APM or ACPI is active?
> >
> > Well there's pm_active, which is 1 if either is on. Is this
> really what you
> > want?
>
> No, I have to know what stuff is active: APM or ACPI.
OK, I guess we'll add that.
-- Andy