Linux bluetooth development
 help / color / mirror / Atom feed
From: Kevin Dewald <kevin@simpleble.org>
To: linux-bluetooth@vger.kernel.org
Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	Kevin Dewald <kevin@simpleble.org>
Subject: Exposing the bluetoothd version over D-Bus
Date: Fri,  6 Nov 2026 14:53:29 -0800	[thread overview]
Message-ID: <20261106225329.6405-1-kevin@simpleble.org> (raw)

Hi Luiz,

Quick question before I write any code: would you take a patch that
exposes the version of the running bluetoothd over D-Bus?

In SimpleBLE we use introspection to check which interfaces and
properties are available, and that works well for new APIs. Where it
falls short is behaviour changes behind the same API. For example,
since 5.88 Discovering no longer gets stuck after a failed
StopDiscovery, but a client can't tell whether the daemon it's talking
to has that fix. Knowing the version would let us apply workarounds
only where they're needed, and it would help with bug reports too.
BlueR asked for the same thing in
https://github.com/bluez/bluez/issues/619.

Running bluetoothd --version isn't reliable from a client, since the
binary on disk might not be the one running, or might not be reachable
from a container. The version in Adapter1.Modalias also changes or goes
away when DeviceID is set in main.conf.

I know it would only help from the release it lands in, but I think
it's still worth having going forward.

If you're open to it, where would you like it? Adapter1.Version is
already the controller version, and an adapter property wouldn't be
there when no adapter is present, so I was thinking of a read-only
property on a small new interface at /org/bluez. Happy to put it
wherever you prefer, with docs and a functional test.

Thanks,
Kevin

                 reply	other threads:[~2026-11-06 22:53 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=20261106225329.6405-1-kevin@simpleble.org \
    --to=kevin@simpleble.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /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