Skip to content

Instantly share code, notes, and snippets.

@killertofus
Last active March 28, 2023 01:21
Show Gist options
  • Save killertofus/bac7804c76c30b3c389207584592b6ab to your computer and use it in GitHub Desktop.
Save killertofus/bac7804c76c30b3c389207584592b6ab to your computer and use it in GitHub Desktop.
find sound setting linux
#!/bin/sh
clear ; echo '' ; echo 'Kernel Version' ; uname -r ; cat /proc/asound/version ; lscpu | grep 'Byte Order' ; echo '\' ; echo 'Audio Server and Devices' ; inxi -A ; echo '' ; echo '~' ; echo 'Output device info' ; echo '\' ; pactl info | grep -E 'Default Sink|Server Name' ; echo '' ; echo '~' ; echo 'Device Bitrate Hz' ; echo '\' ; echo 'Pulseaudio' ; pactl info | grep 'Default Sample' | awk {'print $4, $5, $6'} ; echo '|' ; echo 'Pipewire' ; pw-cli info 0 | grep default.clock.rate | awk {'print $2, $3, $4'} ; echo '' ; echo '~' ; echo 'Devices Connected' ; cat /proc/asound/cards ; echo '|' ; echo 'Log/Connected' ; sudo dmesg | grep -E 'Audio'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment