Gulliver wrote:CrocoDuck wrote:Gulliver wrote:
Run what in the terminal?
Sorry, this:
Code: Select all
/usr/bin/jackd -dalsa -dhw:USB -r48000 -p1024 -n2
which you found above is a command you can enter in the terminal. It will start jackd, the JACK daemon, with the same parameters you configured with qjackctl, but from the command line.
We are doing this as a quick way to assess audio related permissions on your system, the command output will show us if anything is wrong. Appropriate permissions are also needed to properly configure audio related stuff for wine. Let's have a look also at the output of this:
I see. Here's the output:
Code: Select all
jackdmp 1.9.11
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
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
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
Cannot lock down 82274202 byte memory area (Cannot allocate memory)
audio_reservation_init
Acquire audio card Audio1
creating alsa driver ... hw:USB|hw:USB|1024|2|48000|0|0|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
Cannot use real-time scheduling (RR/10)(1: Operation not permitted)
AcquireSelfRealTime error
for groups:
Code: Select all
xy adm cdrom sudo dip plugdev lpadmin sambashare
There we go! Your user doesn't have the appropriate permission to do pro audio stuff! Now we are gonna enable all of them.
A comment:
digikwondo wrote:are you using a real time kernel ?
There is no need for a realtime or patched kernel to run jack with RT priority: it as a matter of permissions. See
here. But we can still have a look at the kernel and see what it is.
So, let's start adding your user to the audio group:
Code: Select all
sudo usermod -aG audio <your_user_name>
Where you should put your user name in there, for example (assuming your user name is gulliver):
Do the same with the lp and sys groups:
Code: Select all
sudo usermod -aG lp <your_user_name>
sudo usermod -aG sys <your_user_name>
These are not needed for audio, but they are needed to have wine having access to all audio devices.
This user groups thing might seem very quirky, but it is one of the things that makes Linux secure: you allow only selected users to have access to selected devices, up to the degree you decide.
These changes will be effective after logging out and back in, or after rebooting.