All of lore.kernel.org
 help / color / mirror / Atom feed
From: Duarte Silva <duartejcsilva@gmail.com>
To: linux-acpi@vger.kernel.org
Subject: Re: Problems evaluating WMI method
Date: Wed, 1 Oct 2008 21:48:53 +0100	[thread overview]
Message-ID: <200810012149.06331.duartejcsilva@gmail.com> (raw)
In-Reply-To: <200810012126.29618.carlos@strangeworlds.co.uk>

[-- Attachment #1: Type: text/plain, Size: 1326 bytes --]

On Wednesday 01 October 2008 21:26:28 Carlos Corbacho wrote:
> On Wednesday 01 October 2008 21:13:50 Duarte Silva wrote:
> > I got the correct answer when I do instance = 0x33 and method_id = 0x01.
> > So, I looked at hp-wmi.c code and acer-wmi.c and they depend on this
> > instance and method_id. But my laptop doesnt seem to depend.
>
> acer-wmi doesn't rely on the instance_id, it just gets ignored. It does use
> the method_id though.
>
> > Is this
> > instance and method_id a WMI standart or is it a HP and Acer laptop
> > specific? My laptop is a LG.
>
> Yes, these are part of the WMI standard (in that, they need to be passed
> in). I would recommend you read through the spec:
>
> http://web.archive.org/web/20071011004327/http://www.microsoft.com/whdc/sys
>tem/pnppwr/wmi/wmi-acpi.mspx
>
> Essentially - you need to pass the instance and method id's, but what
> values you pass and their meaning is completely vendor specific (which is
> pretty much a good summary of ACPI-WMI in general).
>
> -Carlos

Oh, I got it, so it doesnt have a standart meaning, now it makes sence. In my 
case when you pass 0x01 as the method_id you are saying you want to get the 
value defined by the instance variable. Other values for the method_id can 
mean other actions. Thanks for the help Carlos :)

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 489 bytes --]

  reply	other threads:[~2008-10-01 20:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01 20:13 Problems evaluating WMI method Duarte Silva
2008-10-01 20:26 ` Carlos Corbacho
2008-10-01 20:48   ` Duarte Silva [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-09-30 22:56 Duarte Silva
2008-10-01 17:55 ` Carlos Corbacho
2008-10-01 18:22   ` Duarte Silva

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=200810012149.06331.duartejcsilva@gmail.com \
    --to=duartejcsilva@gmail.com \
    --cc=linux-acpi@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.