bluez5: Add script to collect debug info for bluetooth

This commit is contained in:
Sebastian Apel 2021-01-13 11:17:48 +01:00
parent 8aec26f5bd
commit 168bd1d118

View file

@ -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"