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). > 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? -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh ------------------------------------------------------------------------------ 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