pipewire/src/tools/pw-gather-bluetooth-debug-info.sh

24 lines
799 B
Bash
Raw Normal View History

#!/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"