[Jack-Devel] Jack won't start on boot

Ralf Mardorf ralf.mardorf at alice-dsl.net
Sat Jul 8 21:26:47 CEST 2017


On Sat, 8 Jul 2017 21:04:29 +0300, alex wrote:
>Yes, It's a setup inside an enclosure that I never touch, and the
>sound card I'm using is always attached to the Odroid.

Hi,

that doesn't ensure that it's always hw:1. OTOH if you run the script
from command line and it works, then the device obviously is hw:1.

On Sat, 8 Jul 2017 21:04:03 +0300, alex wrote:
>Well, I just tried to redirect jack's stdout and stderr as you
>suggested to /tmp/jackd.log, but it doesn't happen. I created the
>following script called 'launch_jack.sh':
>date >>/tmp/jackd.log; killall -9 jackd; sleep 5; jackd -dalsa -dhw:1 
>-i2 -o4 -p512 -r48000 >>/tmp/jackd.log 2>&1 &

Do you get a log file, if you run the script from command line?

What distro are you using?

What init system are you using?

[rocketmouse at archlinux ~]$ cat /etc/modprobe.d/alsa-base.conf 
# ALSA module ordering
options snd slots=snd_hdspm,snd_ice1712,snd_ice1712

[rocketmouse at archlinux ~]$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: HDSPMx579bcc [RME AIO_579bcc], device 0: RME AIO [RME AIO]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: EWX2496 [TerraTec EWX24/96], device 0: ICE1712 multi [ICE1712 multi]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 4: USB [Scarlett 18i20 USB], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
[rocketmouse at archlinux ~]$ grep PRETTY /etc/os-release 
PRETTY_NAME="Arch Linux"
[rocketmouse at archlinux ~]$ pacman -Q jack2
jack2 1.9.10.r263.gf3a6b3e4-1
[rocketmouse at archlinux ~]$ jackd --version
jackdmp version 1.9.11-RC1 tmpdir /dev/shm protocol 8
[rocketmouse at archlinux ~]$ ls -l /?bin/init /lib/systemd/system-generators/systemd-sysv-generator
ls: cannot access '/lib/systemd/system-generators/systemd-sysv-generator': No such file or directory
lrwxrwxrwx 1 root root 22 Jul  6 15:27 /sbin/init -> ../lib/systemd/systemd
[rocketmouse at archlinux ~]$ rm /tmp/jackd.log 
rm: cannot remove '/tmp/jackd.log': No such file or directory
[rocketmouse at archlinux ~]$ cat /tmp/foo.sh 
#!/bin/bash

date >>/tmp/jackd.log; killall -9 jackd; sleep 5; jackd -dalsa -dhw:1 -i2 -o4 -p512 -r48000 >>/tmp/jackd.log 2>&1 &

exit
[rocketmouse at archlinux ~]$ /tmp/foo.sh 
jackd: no process found
[rocketmouse at archlinux ~]$ cat /tmp/jackd.log 
Sat Jul  8 21:22:52 CEST 2017
no message buffer overruns
no message buffer overruns
no message buffer overruns
jackdmp 1.9.11-RC1
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2017 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
audio_reservation_init
Acquire audio card Audio1
creating alsa driver ... hw:1|hw:1|512|2|48000|2|4|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 512 frames (10.7 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: cannot set channel count to 2 for capture
ALSA: cannot configure capture channel
Released audio card Audio1
audio_reservation_finish
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server
[rocketmouse at archlinux ~]$

Regards,
Ralf





More information about the Jackaudio mailing list