linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Grover, Andrew" <andrew.grover@intel.com>
To: "'Soos Peter'" <sp@osb.hu>, linux-kernel@vger.kernel.org
Subject: RE: APM & ACPI detect
Date: Thu, 12 Sep 2002 08:16:05 -0700	[thread overview]
Message-ID: <EDC461A30AC4D511ADE10002A5072CAD0236DE4E@orsmsx119.jf.intel.com> (raw)

> From: Soos Peter [mailto:sp@osb.hu] 
> 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

             reply	other threads:[~2002-09-12 15:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-12 15:16 Grover, Andrew [this message]
2002-09-13 11:54 ` APM & ACPI detect Soos Peter
  -- strict thread matches above, loose matches on Subject: below --
2002-09-13 17:26 Grover, Andrew
2002-09-12  8:04 Soos Peter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EDC461A30AC4D511ADE10002A5072CAD0236DE4E@orsmsx119.jf.intel.com \
    --to=andrew.grover@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sp@osb.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).