All of lore.kernel.org
 help / color / mirror / Atom feed
* thinkpad_acpi: Saving bluetooth state to NVRAM problem and fix
@ 2012-06-10  9:18 Vsevolod Kozlov
  2012-06-10 14:48 ` Henrique de Moraes Holschuh
  0 siblings, 1 reply; 2+ messages in thread
From: Vsevolod Kozlov @ 2012-06-10  9:18 UTC (permalink / raw)
  To: linux-kernel

Hello,

thinkpad_acpi normally fails to save Bluetooth state to NVRAM on my system
(ThinkPad X120e).  However, a small change in the code fixes the functionality:

--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -3999,7 +3999,7 @@ static const struct tpacpi_rfk_ops bluetooth_tprfk_ops = {
 static void bluetooth_shutdown(void)
 {
 	/* Order firmware to save current state to NVRAM */
-	if (!acpi_evalf(NULL, NULL, "\\BLTH", "vd",
+	if (!acpi_evalf(NULL, NULL, "\\_SB.BLTH", "vd",
 			TP_ACPI_BLTH_SAVE_STATE))
 		pr_notice("failed to save bluetooth state to NVRAM\n");
 	else

I can't tell whether this breaks the functionality on other ThinkPad systems
because I don't have any, though.

Please CC me any responses, as I am not subscribed to the list.

Regards,

-- 
Zaba

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-10 14:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-10  9:18 thinkpad_acpi: Saving bluetooth state to NVRAM problem and fix Vsevolod Kozlov
2012-06-10 14:48 ` Henrique de Moraes Holschuh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.