Subject: Re: Call for testing: ACPI standby/suspend support
To: Alexander Yurchenko <grange@rt.mipt.ru>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: tech-kern
Date: 03/09/2006 13:39:52
On Thu, 9 Mar 2006 21:28:43 +0300
Alexander Yurchenko <grange@rt.mipt.ru> wrote:


> the easiest way is to add smth like this to
> acpi_ec.c:acpiec_early_attach()
> 
> 	char ec_id[64];
> 
> 	/* XXX: workaround broken EC ID on IBM Thinkpad */
> 	if (ep->EcId[0] == '\\' && ep->EcId[1] == 'S') {
> 		snprintf(ec_id, sizeof(ec_id), "\\_%s", &ep->EcId[1]);
> 		printf("%s: using corrected EC ID %s\n",
> 		    parent->dv_xname, ec_id);
> 	} else {
> 		snprintf(ec_id, sizeof(ec_id), "%s", ep->EcId);
> 	}
> 
> 	rv = AcpiGetHandle(ACPI_ROOT_OBJECT, ec_id, &handle);
> 
> (they missed leading _ in the ec id).

Ah, thanks -- we should add that to our code.


		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb