1*4882a593SmuzhiyunWhat: /sys/kernel/debug/ec/*/{gpe,use_global_lock,io} 2*4882a593SmuzhiyunDate: July 2010 3*4882a593SmuzhiyunContact: Thomas Renninger <trenn@suse.de> 4*4882a593SmuzhiyunDescription: 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunGeneral information like which GPE is assigned to the EC and whether 7*4882a593Smuzhiyunthe global lock should get used. 8*4882a593SmuzhiyunKnowing the EC GPE one can watch the amount of HW events related to 9*4882a593Smuzhiyunthe EC here (XY -> GPE number from `/sys/kernel/debug/ec/*/gpe`): 10*4882a593Smuzhiyun/sys/firmware/acpi/interrupts/gpeXY 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunThe io file is binary and a userspace tool located here: 13*4882a593Smuzhiyunftp://ftp.suse.com/pub/people/trenn/sources/ec/ 14*4882a593Smuzhiyunshould get used to read out the 256 Embedded Controller registers 15*4882a593Smuzhiyunor writing to them. 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunCAUTION: 18*4882a593Smuzhiyun Do not write to the Embedded Controller if you don't know 19*4882a593Smuzhiyun what you are doing! Rebooting afterwards also is a good idea. 20*4882a593Smuzhiyun This can influence the way your machine is cooled and fans may 21*4882a593Smuzhiyun not get switched on again after you did a wrong write. 22