On Mon, May 9, 2011 at 9:04 PM, Henrique de Moraes Holschuh <hmh@xxxxxxxxxx> wrote: > On Mon, 09 May 2011, Andrew Lutomirski wrote: >> FWIW, this patch (other than having the wrong default on X220) makes >> Linux better than Windows :) > > Please expand on that, especially the "wrong default on X220"... > >> Do you know how to read a field from the EC by name? I think I can > > If it is in the DSDT as a field of a "EmbeddedController" area, you just > evaluate it. There are several examples in the driver (e.g. the TMP* evals > in the thermal monitor subdriver). Indeed :) I'll send an updated patch tomorrow. > >> Also, do you know how to ask the kernel what the most recent acpi >> interrupt was? I'd like to find a better way to detect the mute >> button than watching for the keyboard event. > > No, and I'd never ACK it if there was one. ACPI serves GPEs (interrupts) > like crazy for random reasons, Never ever play racy games like that. > > Don't we get an HKEY notification for mute presses in the X220? I just meant to figure out what's going on. We're not getting an HKEY event, I think, but something's happening and a bit of acpi debug fiddling says that _Q43 is getting called. I have no idea what that means, though. --Andy ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ ibm-acpi-devel mailing list ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel