diff --git a/src/tools/gather-bluetooth-debug-info.sh b/src/tools/gather-bluetooth-debug-info.sh new file mode 100755 index 000000000..1570c70a1 --- /dev/null +++ b/src/tools/gather-bluetooth-debug-info.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +LOGNAME=bt-debuginfo-$(date +%Y%m%d-%H%M%S).txt + +echo "-------- cat /proc/versionus" >> /tmp/$LOGNAME +cat /proc/version > /tmp/$LOGNAME + +echo "-------- lsusb -v 2>&1 | egrep 'bDeviceProtocol(.*)Bluetooth' -B7 | head -1 " >> /tmp/$LOGNAME +lsusb -v 2>&1 | egrep 'bDeviceProtocol(.*)Bluetooth' -B7 | head -1 >> /tmp/$LOGNAME + +echo "-------- cat /sys/kernel/debug/usb/devices" >> /tmp/$LOGNAME +sudo cat /sys/kernel/debug/usb/devices >> /tmp/$LOGNAME + +echo "-------- bluetoothctl devices" >> /tmp/$LOGNAME +bluetoothctl devices >> /tmp/$LOGNAME + +echo "-------- bluetoothctl info" >> /tmp/$LOGNAME +bluetoothctl info >> /tmp/$LOGNAME + +echo "-------- bluetoothctl info" >> /tmp/$LOGNAME +bluetoothctl info >> /tmp/$LOGNAME + +echo "Information on your bluetooth setup collected into /tmp/$LOGNAME"