[Bug 1565940] Re: bluetoothctl systematically hangs when there is no bluetooth hardware
Etienne URBAH
eurbah at free.fr
Fri May 5 12:16:05 UTC 2017
My particular use case is to detect, inside a shell script, if there is
any bluetooth hardware at all.
Since 'bluetoothctl' systematically hangs when there is NO bluetooth
hardware, I can NOT use the 'bluetoothctl' command to achieve this use
case.
But I have found a good alternate method :
if rfkill list | grep -q -i Bluetooth; then ...; fi
So, the issue is NOT blocking for me.
But I suggest that 'man bluetoothctl' should indicate that
'bluetoothctl' waits (possibly indefinitely) for answers from the
'bluetoothd' daemon, and therefore is NOT adequate for scripting.
--
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