[Jackaudio] hang upon suspend/resume with USB microphone

Karsten tuxtrainer at t-online.de
Fri Apr 9 20:25:48 CEST 2021


Hi Marko et alii,

Dont' understood: The script hungs or the computer upon resume ?


Am 09.04.2021 um 19:34 schrieb Marko Schuetz-Schmuck:
> Hi,
>
> I'm using a Blue Snowball that I activate with a script
>
> #!/usr/bin/zsh
> HARDWARE_ADDRESS=`arecord -l | grep "Blue Snowball" | sed -e "s|card \([[:digit:]]\).*Blue Snowball.*device \([[:digit:]]\).*|\1,\2|"`
> case $1 in
>     "jack")
>         alsa_in -d hw:$HARDWARE_ADDRESS -c 1 -p 512 >/dev/null &
>         sleep 2
>         jack_connect "alsa_in:capture_1" "PulseAudio JACK Source:front-left"
>         jack_connect "alsa_in:capture_1" "PulseAudio JACK Source:front-right"
>         ;;
>     "monitor")
>         jack_connect "alsa_in:capture_1" "system:playback_1"
>         jack_connect "alsa_in:capture_1" "system:playback_2"
>         ;;
>     *)
>         pkill -f "alsa_in -d hw:$HARDWARE_ADDRESS" || true
>         ;;
> esac
>
> When I forget to have the script kill alsa_in and I suspend the computer
> it hangs upon resume. This is using Manjaro/KDE. WHat would be the
> recommended way to fix this?
>
> Thanks in advance.
>
> Marko
>
> JackAudio mailing list
> JackAudio at lists.linuxaudio.org
> https://lists.linuxaudio.org/listinfo/jackaudio

-- 
Schöne Grüße
Karsten

"Intelligence should be used for the benefit of humanity."


More information about the JackAudio mailing list