On Thu, Oct 07, 2010 at 10:57:03PM -0300, Henrique de Moraes Holschuh wrote: > On Fri, 08 Oct 2010, Martin Dengler wrote: > > Perhaps a good start for me would be if anyone could point me to some > > documentation on why "vdd" is useful in > > > > acpi_evalf(led_handle, NULL, NULL, "vdd", > > led, led_led_arg1[ledstatus]) > > > > from line 5103 in thinkpad_acpi.c[1]? > > Read the acpi_evalf() function code. It means void return, two integer > parameters. Sorry, not enough sleep - I was assuming "Positive supply voltage" or something, but the code is quite straightforward, thanks. > Usually, LED control uses bidimensional arrays, probably you need to > mess with something else as well as with HLCL. Read the various LED > methods in thinkpad-acpi to give you an idea. Read the DSDT and check > if you can find how it sets LED states. Thanks. I have stared at the thinkpad_acpi LED code a bit too much I think :). All I can find in my DSDT looks simply like HLCL manipulation: Method (LED, 2, NotSerialized) { Or (Arg0, Arg1, Local0) If (\_SB.PCI0.LPC0.ECON) { Store (Local0, HLCL) } Else { \WBEC (0x0C, Local0) } } but maybe the WBEC AML gives me a hint: SMI (0x00, 0x04, Arg0, Arg1, 0x00) ...but I don't know enough about AML to understand the significance of ".ECON" (and thus understand which branch of the LED method's "If" is likely to be more interesting) :(. Thanks for the pointers - plenty of reading for me. Martin
Attachment:
pgptMvtvCUQWN.pgp
Description: PGP signature
------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb
_______________________________________________ ibm-acpi-devel mailing list ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel