Discussion:
[LAU] JACK_NO_AUDIO_RESERVATION
Minie
2018-08-26 14:35:14 UTC
Permalink
Hi,

I am a user of Archlinux ARM with Raspberry pi3. When starting JACK, the
following error appears.

Failed to connect to session bus for device reservation: Unable to
autolaunch a dbus-daemon without a $DISPLAY for X11.
To bypass device reservation via session bus, set
JACK_NO_AUDIO_RESERVATION=1 prior to starting jackd.

I attempted to append JACK_NO_AUDIO_RESERVATION=1 to jackdrc, but jackdrc is
missing anywhere. Please tell me how to avoid errors.

Minie



--
Sent from: http://linux-audio.4202.n7.nabble.com/linux-audio-user-f5.html
Len Ovens
2018-08-26 15:08:26 UTC
Permalink
Post by Minie
Hi,
I am a user of Archlinux ARM with Raspberry pi3. When starting JACK, the
following error appears.
Failed to connect to session bus for device reservation: Unable to
autolaunch a dbus-daemon without a $DISPLAY for X11.
To bypass device reservation via session bus, set
JACK_NO_AUDIO_RESERVATION=1 prior to starting jackd.
I attempted to append JACK_NO_AUDIO_RESERVATION=1 to jackdrc, but jackdrc is
missing anywhere. Please tell me how to avoid errors.
See:
https://wiki.archlinux.org/index.php/environment_variables

--
Len Ovens
www.ovenwerks.net
Christopher Arndt
2018-08-26 18:22:38 UTC
Permalink
Post by Minie
Failed to connect to session bus for device reservation: Unable to
autolaunch a dbus-daemon without a $DISPLAY for X11.
To bypass device reservation via session bus, set
JACK_NO_AUDIO_RESERVATION=1 prior to starting jackd.
This (setting JACK_NO_AUDIO_RESERVATION=1 in the environment) doesn't
work for me either, but I use the follwoing in a script to start jack
with no X session:

DBUS_SESSION="$HOME/.dbus-session"

# Add a fake X session
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
echo "export DISPLAY=:0" > "$DBUS_SESSION"
dbus-launch >> "$DBUS_SESSION"
echo "export DBUS_SESSION_BUS_ADDRESS" >> "$DBUS_SESSION"
echo "export DBUS_SESSION_BUS_PID" >> "$DBUS_SESSION"
fi

source "$DBUS_SESSION"
exec jackd -dalsa ...
David Runge
2018-08-26 21:03:01 UTC
Permalink
Post by Minie
Hi,
I am a user of Archlinux ARM with Raspberry pi3. When starting JACK, the
following error appears.
Failed to connect to session bus for device reservation: Unable to
autolaunch a dbus-daemon without a $DISPLAY for X11.
To bypass device reservation via session bus, set
JACK_NO_AUDIO_RESERVATION=1 prior to starting jackd.
I attempted to append JACK_NO_AUDIO_RESERVATION=1 to jackdrc, but jackdrc is
missing anywhere. Please tell me how to avoid errors.
Please make sure, that your dbus user service actually started (as it
should be enabled by default!).

`systemctl --user status dbus` should show something like "Loaded:
loaded (/usr/lib/systemd/user/dbus.service; static; vendor preset:
enabled)", unless Arch Linux ARM decided to disable this by default now.

Also: How do you start jack?
If you're adventurous, you can start the daemon with a systemd user
service:

Create a local directory to hold the service file:
`mkdir -p ~/.config/systemd/user/`

Copy something like the following (please apply JACK parameters that
actually work for your device!):

```
[Unit]
Description=JACK
After=sound.target local-fs.target

[Service]
ExecStart=/usr/bin/jackd -P80 -p 512 -d alsa -d hw:PCH,0 -n 2 -p 256 -r
44100

[Install]
WantedBy=default.target
```

to ~/.config/systemd/user/jack.service

After a `systemctl --user daemon-reload` you can use `systemctl --user
start jack` to start this service.

You can then also use `systemctl --user enable jack` in case you want to
enable it to be run, as soon as the user session starts - if you enable
linger for your user, that will be started automaticaly during boot:
`loginctl enable-linger` as your user.

Best,
David
--
https://sleepmap.de
Minie
2018-08-27 01:54:57 UTC
Permalink
Everyone, Many thanks!



--
Sent from: http://linux-audio.4202.n7.nabble.com/linux-audio-user-f5.html
Loading...