mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vsevolod Kozlov <zaba@wybt.net>
To: linux-kernel@vger.kernel.org
Subject: thinkpad_acpi: Saving bluetooth state to NVRAM problem and fix
Date: Sun, 10 Jun 2012 13:18:41 +0400	[thread overview]
Message-ID: <20120610091840.GA4960@scharfenberg> (raw)

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

             reply	other threads:[~2012-06-10  9:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-10  9:18 Vsevolod Kozlov [this message]
2012-06-10 14:48 ` Henrique de Moraes Holschuh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120610091840.GA4960@scharfenberg \
    --to=zaba@wybt.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®