From 168bd1d1189013b0eea5fa511200d6ba758ad546 Mon Sep 17 00:00:00 2001 From: Sebastian Apel Date: Wed, 13 Jan 2021 11:17:48 +0100 Subject: [PATCH] bluez5: Add script to collect debug info for bluetooth --- src/tools/gather-bluetooth-debug-info.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 src/tools/gather-bluetooth-debug-info.sh 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"