Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- version="5-2023-03-06@16:48"
- author="https://forum.endeavouros.com/u/storm/"
- about="Generates a set of log files in current or '$1' directory
- about the current kernel/audio configuration in case of 'Dummy Output', as happens with
- kernels 'linux-lts 6.1.15-1' and 'linux 6.2.2.arch1-1' with audio via HDMI
- (Kernel '5.15.96.61.realtime1-1-rt-lts' works well)."
- Hn="`hostname | tr '[:upper:]' '[:lower:]'`"
- Kt=$(uname -r | cut -d- -f 3-) #Kernel type [rt-]lts or '_'
- [[ "$Kt" = '' ]] && Kt='_'
- pfix="aud-${Kt}"
- [[ -d "$1" ]] && pth=${@%/} || pth="`pwd`"
- echo "Audio report di [($pth/)$Hn] in corso:"
- #https://forum.endeavouros.com/t/pulseaudio-speakers-not-getting-detected-port-is-unplugged/38049
- ouFile="$pth/$Hn-$pfix-pipedaemons.log"
- echo "Generazione $ouFile"
- echo '$ systemctl --user status pipewire pipewire-pulse' > "$ouFile"
- systemctl --user status pipewire pipewire-pulse >> "$ouFile"
- #https://bbs.archlinux.org/viewtopic.php?id=96337
- ouFile="$pth/$Hn-$pfix-modinfo.log"
- echo "Generazione $ouFile"
- echo '$ sudo modinfo soundcore' > "$ouFile"
- sudo modinfo soundcore >> "$ouFile"
- ouFile="$pth/$Hn-$pfix-alsa-info.log"
- echo "Generazione $ouFile"
- echo '$ sudo alsa-info.sh --stdout' > "$ouFile"
- sudo alsa-info.sh --stdout >> "$ouFile"
- ouFile="$pth/$Hn-$pfix-pac-alsa.log"
- echo "Generazione $ouFile"
- echo '$ pacman -Qs alsa' > "$ouFile"
- pacman -Qs alsa >> "$ouFile"
- ouFile="$pth/$Hn-$pfix-pac-pulseaudio.log"
- echo "Generazione $ouFile"
- echo '$ pacman -Qs pulseaudio' > "$ouFile"
- pacman -Qs pulseaudio >> "$ouFile"
- ouFile="$pth/$Hn-$pfix-pac-pipewire.log"
- echo "Generazione $ouFile"
- echo '$ pacman -Qs pipewire' > "$ouFile"
- pacman -Qs pipewire >> "$ouFile"
- ouFile="$pth/$Hn-$pfix-iaa.log"
- echo "Generazione $ouFile"
- echo '$ inxi -Aa' > "$ouFile"
- inxi -Aa >> "$ouFile"
- ouFile="$pth/$Hn-$pfix-alsa.log"
- echo "Generazione $ouFile"
- echo '$ uname -a' > "$ouFile"
- uname -a >> "$ouFile"
- echo >> "$ouFile"
- echo '$ grep "^GRUB_CMDLINE" /etc/default/grub' >> "$ouFile"
- grep '^GRUB_CMDLINE' /etc/default/grub >> "$ouFile"
- echo >> "$ouFile"
- echo '$ cat /proc/asound/modules' >> "$ouFile"
- cat /proc/asound/modules >> "$ouFile"
- echo >> "$ouFile"
- #As suggested by [joekamprad](https://forum.endeavouros.com/u/joekamprad) Der Doktor in https://forum.endeavouros.com/t/no-sound-from-front-audio-jack/30375/14
- echo "sudo modprobe snd_hda_codec >> $ouFile"
- sudo modprobe snd_hda_codec >> "$ouFile" 2>&1
- echo "sudo modprobe snd_hda_intel >> $ouFile"
- sudo modprobe snd_hda_intel >> "$ouFile" 2>&1
- #echo '$ sudo modprobe snd_hda_intel_codec' >> "$ouFile"
- #sudo modprobe snd_hda_intel_codec >> "$ouFile" 2>&1
- echo >> "$ouFile"
- echo '$ lsmod | grep snd' >> "$ouFile"
- lsmod | grep snd >> "$ouFile"
- echo >> "$ouFile"
- echo '$ ls /etc/modprobe.d/ ' >> "$ouFile"
- ls /etc/modprobe.d/ >> "$ouFile"
- echo >> "$ouFile"
- echo '$ cat /etc/modprobe.d/blacklist.conf' >> "$ouFile"
- cat /etc/modprobe.d/blacklist.conf >> "$ouFile" 2>&1
- echo >> "$ouFile"
- echo '$ cat /etc/modprobe.d/disable-dmic.conf' >> "$ouFile"
- cat /etc/modprobe.d/disable-dmic.conf >> "$ouFile" 2>&1
- echo >> "$ouFile"
- echo '$ cat /etc/modprobe.d/alsa-base.conf' >> "$ouFile"
- cat /etc/modprobe.d/alsa-base.conf >> "$ouFile" 2>&1
- echo '$ aplay -l' >> "$ouFile"
- aplay -l >> "$ouFile"
- echo >> "$ouFile"
- echo '$ lspci -v | grep -A7 -i "audio"' >> "$ouFile"
- lspci -v | grep -A7 -i "audio" >> "$ouFile"
- echo >> "$ouFile"
- echo '$ sudo lspci -v | grep -A7 -i "audio"' >> "$ouFile"
- sudo lspci -v | grep -A7 -i "audio" >> "$ouFile"
- ouFile="$pth/$Hn-$pfix-iFull.log"
- echo "Generazione $ouFile"
- echo '$ inxi -Fxxxza --no-host' > "$ouFile"
- inxi -Fxxxza --no-host >> "$ouFile"
- ouFile="$pth/$Hn-$pfix-neofetch.log"
- echo "Generazione $ouFile"
- echo '$ neofetch --off --stdout' > "$ouFile"
- neofetch --off --stdout >> "$ouFile"
- ouFile="$pth/$Hn-$pfix-pactl-sinks.log"
- echo "Generazione $ouFile"
- echo '$ pulsemixer -l' > "$ouFile"
- pulsemixer -l >> "$ouFile"
- echo >> "$ouFile"
- echo '$ pactl list short sinks' >>"$ouFile"
- pactl list short sinks >> "$ouFile"
- echo >> "$ouFile"
- echo '$ pactl list sinks' >> "$ouFile"
- pactl list sinks >> "$ouFile"
- echo
- echo "Audio report concluso, test con $ speaker-test -c 2"
- echo
- ls $pth/$Hn-$pfix-*.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement