[Bug 1565940] Re: bluetoothctl systematically hangs when there is no bluetooth hardware

Daniel van Vugt daniel.van.vugt at canonical.com
Fri Mar 9 06:36:32 UTC 2018


> My particular use case is to detect, inside a shell script, if there
is any bluetooth hardware at all.

I suggest a better way to detect Bluetooth hardware is to check with the
kernel directly:

  if /sys/class/bluetooth/ exists and is non-empty then ...

The directory is created when the first Bluetooth controller is added to
the system, and becomes empty only after the last one is removed.

-- 
You received this bug notification because you are a member of
Bluetooth, which is subscribed to bluez in Ubuntu.
https://bugs.launchpad.net/bugs/1565940

Title:
  bluetoothctl systematically hangs when there is no bluetooth hardware

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1565940/+subscriptions



More information about the Ubuntu-bluetooth mailing list