linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Emilio Pozuelo Monfort <pochu27@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: Powered state in BlueZ 5
Date: Mon, 27 May 2013 12:28:45 +0200	[thread overview]
Message-ID: <51A3355D.2030107@gmail.com> (raw)

Hi,

I'm porting the GNOME stack to BlueZ 5 and I'm hitting one issue. It looks like 
the Powered state is not persistent anymore:

commit 0f575386a54382b63a1aa8e90589917747ee1a79
Author: Johan Hedberg <johan.hedberg@intel.com>
Date:   Thu Dec 13 16:35:30 2012 +0200

     core: Remove persistent storing of the powered state

commit 0bd31205e667de7a809a683e5c42c58a8d547a6e
Author: Marcel Holtmann <marcel@holtmann.org>
Date:   Sat Dec 29 16:28:03 2012 -0800

     doc: Mention that the adapter powered property is not persistent

The problem with this is that if the adapter is switched off with rfkill (that's 
what the toggles to turn bluetooth on and off do), then when it's switched back 
on it won't be powered. Should those toggle buttons also take care of powering 
the adapter? What if the user uses a hardware switch to turn it off? Or is there 
another way this should be done in BlueZ 5? I couldn't find any documentation 
about this in [1], but [2] suggests this needs to be handled elsewhere, such as 
in NM.

Thanks,
Emilio

[1] http://www.bluez.org/bluez-5-api-introduction-and-porting-guide/
[2] http://article.gmane.org/gmane.linux.bluez.kernel/35532

                 reply	other threads:[~2013-05-27 10:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=51A3355D.2030107@gmail.com \
    --to=pochu27@gmail.com \
    --cc=linux-bluetooth@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;
as well as URLs for NNTP newsgroup(s).