mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-25 01:40:36 -05:00
Bugfix: get bluetoothlctl info to work when more than one device is present
Feature: add avinfo and hciconfig information
This commit is contained in:
parent
dbe44acbd3
commit
1b54a4ab87
1 changed files with 18 additions and 2 deletions
|
|
@ -2,12 +2,19 @@
|
|||
|
||||
LOGNAME=bt-debuginfo-$(date +%Y%m%d-%H%M%S).txt
|
||||
|
||||
echo "-------- cat /proc/versionus" >> "/tmp/$LOGNAME"
|
||||
echo "-------- cat /proc/version" >> "/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 "-------- hciconfig" >> "/tmp/$LOGNAME"
|
||||
hciconfig >> "/tmp/$LOGNAME"
|
||||
|
||||
echo "-------- hciconfig hci0 features" >> "/tmp/$LOGNAME"
|
||||
hciconfig hci0 features >> "/tmp/$LOGNAME"
|
||||
|
||||
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
echo "-------- cat /sys/kernel/debug/usb/devices" >> "/tmp/$LOGNAME"
|
||||
cat /sys/kernel/debug/usb/devices >> "/tmp/$LOGNAME"
|
||||
|
|
@ -22,6 +29,15 @@ echo "-------- bluetoothctl devices" >> "/tmp/$LOGNAME"
|
|||
bluetoothctl devices >> "/tmp/$LOGNAME"
|
||||
|
||||
echo "-------- bluetoothctl info" >> "/tmp/$LOGNAME"
|
||||
bluetoothctl info >> "/tmp/$LOGNAME"
|
||||
bluetoothctl devices | awk '{ print $2 }' | xargs -n 1 bluetoothctl info >> "/tmp/$LOGNAME"
|
||||
|
||||
# avinfo is not installed on every system
|
||||
echo "-------- avinfo codec information" >> "/tmp/$LOGNAME"
|
||||
AVINFO=$(which avinfo)
|
||||
if [ "$AVINFO" = "" ]; then
|
||||
echo "avinfo not found - probably not installed on system" >> "/tmp/$LOGNAME"
|
||||
else
|
||||
bluetoothctl devices | awk '{ print $2 }' | xargs -n 1 "$AVINFO"
|
||||
fi
|
||||
|
||||
echo "Information on your bluetooth setup collected into /tmp/$LOGNAME"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue