#!/bin/bash
uname -a
cat /etc/os-release
dmesg
echo -e "\nfusb302:\n"
cat /sys/kernel/debug/usb/fusb302-4-0022/{regs,log}
echo -e "\ntcpm:\n"
cat /sys/kernel/debug/usb/tcpm-4-0022/log
echo -e "\npower:\n"
cat /sys/class/power_supply/*/{device/uevent,uevent}
echo -e "\nextcon:\n"
cat /sys/class/extcon/extcon*/{name,state}
echo -e "\nalt-dp:\n"
cat /sys/kernel/debug/dri/*/state
echo -e "\nregulators:\n"
cat /sys/kernel/debug/regulator/regulator_summary
echo -e "\nkconfig:\n"
zcat /proc/config{,.gz}
echo -e "\nkmodules:\n"
lsmod
