<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From: James Harkins <<a href="mailto:jamshark70@zoho.com">jamshark70@zoho.com</a>><br>
To: "linux-audio-user" <<a href="mailto:linux-audio-user@lists.linuxaudio.org">linux-audio-user@lists.<wbr>linuxaudio.org</a>><br>
Subject: [LAU] How to recover from a JACK freeze?<br>
Message-ID: <<a href="mailto:15df368d100.cbae553a56821.8435360232489998174@zoho.com">15df368d100.cbae553a56821.<wbr>8435360232489998174@zoho.com</a>><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
Hi, been inactive for a while.<br>
<br>
I just up/cross-graded to Ubuntu Studio 16.04 -- very much enjoying it so far! I'm getting better USB audio performance than I could ever manage under plain Ubuntu (provided WiFi is off, but I can live with that for shows).<br>
<br>
One problem that the upgrade didn't solve is that sometimes jackd gets stuck and it can't be killed.<br>
<br>
Initial symptom: No audio, in or out.<br>
<br>
Secondary symptom: In qjackctl, the CPU usage number is frozen -- never changes.<br>
<br>
At that point:<br>
<br>
$ ps x | grep jackd<br>
 3140 ?        SLsl   0:16 /usr/bin/jackd -dalsa -r44100 -p1024 -n2 -D -Chw:Set,0 -Phw:Set<br>
 4458 pts/1    S+     0:00 grep --color=auto jackd<br>
$ kill -9 3140<br>
$ ps x | grep jackd<br>
 3140 ?        SLsl   0:16 /usr/bin/jackd -dalsa -r44100 -p1024 -n2 -D -Chw:Set,0 -Phw:Set<br>
 4460 pts/1    S+     0:00 grep --color=auto jackd<br>
<br>
"kill -9" has no effect.<br>
<br>
"sudo kill -9" has no effect.<br>
<br>
If I reboot, it takes several minutes for the system to shut down -- i.e., jackd is even preventing a clean shutdown.<br>
<br>
So, the question: How do I regain control when this happens? (Ideally, without having to close everything.)<br>
<br></blockquote><div><br></div><div><br></div><div>Pretty sure I've seen the same thing a few times, and the solution has been to reload the sound card driver. Here's my script to do that:</div><div><br></div><div><div>[kjetil@localhost ~]$ more bin/startdelta.sh </div><div>#!/bin/sh</div><div><br></div><div>fuser -fv /dev/snd/* /dev/dsp*</div><div><br></div><div><br></div><div>/home/kjetil/bin/removealsa.sh # see below</div><div>sleep 1</div><div>/home/kjetil/bin/alsasound start # ccrma dist script</div><div><br></div><div>modprobe snd-ice1712 # change to your sound card</div><div>#modprobe snd-hda-intel</div><div>modprobe snd-seq</div><div>chmod 777 /dev/snd/seq</div><div><br></div><div>alsactl restore 0</div><div><br></div><div>fuser -fv /dev/snd/* /dev/dsp*</div></div><div><br></div><div><br></div><div><br></div><div><div>[kjetil@localhost ~]$ more bin/removealsa.sh </div><div>#!/bin/sh</div><div>killall -9 pulseaudio</div><div>rmmod snd_hda_codec_atihdmi snd_hda_codec snd_hwdep snd_pcm snd_timer snd soundcore snd_page_alloc</div><div>rmmod snd_seq snd_timer snd_seq_device snd_seq_dummy snd-ice1712 snd_ice17xx_ak4xxx snd_ak4xxx_adda snd_hda_intel snd_cs8427 snd_hda_codec snd_ac97_codec snd_hwdep snd_seq snd_pcm ac97_bus snd_i2c snd_mpu401_uart snd_rawmidi snd_seq_device snd_timer snd soundcore snd_page_alloc</div><div>sleep 1</div><div>rmmod snd_hda_codec_atihdmi snd_hda_codec snd_hwdep snd_pcm snd_timer snd soundcore snd_page_alloc</div><div>rmmod snd_seq snd_timer snd_seq_device snd_seq_dummy snd-ice1712 snd_ice17xx_ak4xxx snd_ak4xxx_adda snd_hda_intel snd_cs8427 snd_hda_codec snd_ac97_codec snd_hwdep snd_seq snd_pcm ac97_bus snd_i2c snd_mpu401_uart snd_rawmidi snd_seq_device snd_timer snd soundcore snd_page_alloc</div><div><br></div><div>rmmod snd_seq_midi,snd_seq_dummy,snd_ice1712,snd_ak4xxx_adda,snd_cs8427,snd_ac97_codec,snd_seq,snd_pcm,snd_timer,snd_i2c,snd_mpu401_uart,snd_rawmidi,snd_seq_device</div><div><br></div><div>rmmod snd_seq_midi,snd_seq,snd_timer,snd_rawmidi,snd_seq_device</div><div><br></div><div>rmmod snd_seq_midi_event snd-seq-midi snd-seq snd-timer snd-rawmidi snd-seq-device</div><div><br></div><div>rmmod snd_seq_oss snd_seq_midi_event snd_pcm_oss snd_seq snd_seq_device snd_pcm snd_timer snd_page_alloc snd_mixer_oss</div><div><br></div><div>rmmod snd_hda_codec_realtek snd_hda_codec_via snd_hda_codec snd_hwdep snd_pcm snd_timer</div><div>rmmod snd_hda_codec snd_hwdep snd_pcm snd_timer</div><div>rmmod snd_via82xx snd_hda_codec snd_hwdep snd_ac97_codec snd_mpu401_uart snd_rawmidi snd_seq_device snd_pcm snd_timer snd_page_alloc soundcore</div><div><br></div><div><br></div><div>rmmod snd</div></div><div><br></div></div></div></div>