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:
signature.asc
Description: This is a digitally signed message part.