Trouble with WineASIO and Jack

Still new to all of this? Feel free to post in any of the subforums on this site, but in this subforum newbie questions are especially encouraged!

Moderators: MattKingUSA, khz

tavasti
Established Member
Posts: 2047
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 369 times
Been thanked: 208 times
Contact:

Re: Trouble with WineASIO and Jack

Post by tavasti »

Reap404 wrote: Mon Jul 18, 2022 7:03 am Image

Here you go. Do you also need me to show you the midi tab?
Ok, thanks. Now we can see, että your rocksmith cable is not even available in jack.

Code: Select all

tavasti@hermo:~$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: io2 [io|2], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: iO4 [iO4], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 3: Adapter [Rocksmith USB Guitar Adapter], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 5: PCH [HDA Intel PCH], device 0: ALC221 Analog [ALC221 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 5: PCH [HDA Intel PCH], device 2: ALC221 Alt Analog [ALC221 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
tavasti@hermo:~$ alsa_in -j realtone -d hw:Adapter
WARNING: channel count does not match (requested 2 got 1)
selected sample format: 16bit
After this, you will have device 'realtone' in your audio connections, and can connect it.

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

User avatar
sunrat
Established Member
Posts: 915
Joined: Wed Jul 22, 2020 2:08 pm
Has thanked: 151 times
Been thanked: 242 times

Re: Trouble with WineASIO and Jack

Post by sunrat »

Do you get any sound out with JACK using any application? I'm pretty sure there should be a "system" entry as Writeable Client which is the final link to the sound card.
tavasti
Established Member
Posts: 2047
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 369 times
Been thanked: 208 times
Contact:

Re: Trouble with WineASIO and Jack

Post by tavasti »

sunrat wrote: Mon Jul 18, 2022 9:54 am Do you get any sound out with JACK using any application? I'm pretty sure there should be a "system" entry as Writeable Client which is the final link to the sound card.
Ah, that is good observation, which did not point (sick at the moment, not at my smartest).

Indeed, if you have configured jack to use rocksmith cable as jack device, sure all audio is broken. Jack should have your sound card as device, and then add rocksmith cable as I described.

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

User avatar
Linuxmusician01
Established Member
Posts: 1524
Joined: Mon Feb 23, 2015 2:38 pm
Location: Holland
Has thanked: 756 times
Been thanked: 137 times

Re: Trouble with WineASIO and Jack

Post by Linuxmusician01 »

Reap404 wrote: Mon Jul 18, 2022 7:03 am
tavasti wrote: Sun Jul 17, 2022 7:23 am Ok, you are using qjackctl. Please show your Audio-tab from connections.
Image

Here you go. Do you also need me to show you the midi tab?
I don't see an audio connection from the "Realtone" cable. Hence: no sound.

It looks to me that you installed a Windows driver for it in Wine (hence your mention of WineASIO). Then you used the Windows version of Reaper in Wine to get audio out of said cable. That might explain the latency.

Looks to me that Linux did not recognize the "Realtone cable" as an audio device.

Wine stands for "Wine Is Not an Emulator" but in practice it's like it emulates Windows. It's never a good idea to emulate one operation system on another. Unless you absolutely have to. For a short while and with a lightweight application. A DAW isn't such a lightweight app in my opinion, but others beg to differ.

Again, you might be better off with a cheap USB class compliant audio device (one from the Behringer U-Phoria series). But beware: many aren't class compliant and require a driver. That driver, as you might have guessed, is only for Windows or Apple. And Behringer fiddled with it's U-Phoria hardware recently which might require a trick to get 'm working depending on the age of your distro.

Good luck with puzzling! :)
Reap404
Established Member
Posts: 10
Joined: Wed Jun 22, 2022 5:18 pm
Location: Canada

Re: Trouble with WineASIO and Jack

Post by Reap404 »

tavasti wrote: Mon Jul 18, 2022 7:44 am
Reap404 wrote: Mon Jul 18, 2022 7:03 am Image

Here you go. Do you also need me to show you the midi tab?
Ok, thanks. Now we can see, että your rocksmith cable is not even available in jack.

Code: Select all

tavasti@hermo:~$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: io2 [io|2], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: iO4 [iO4], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 3: Adapter [Rocksmith USB Guitar Adapter], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 5: PCH [HDA Intel PCH], device 0: ALC221 Analog [ALC221 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 5: PCH [HDA Intel PCH], device 2: ALC221 Alt Analog [ALC221 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
tavasti@hermo:~$ alsa_in -j realtone -d hw:Adapter
WARNING: channel count does not match (requested 2 got 1)
selected sample format: 16bit
After this, you will have device 'realtone' in your audio connections, and can connect it.
After I typed the command I got this

Code: Select all

reap@reap:~$ alsa_in -j realtone -d hw:Adapter
Jack: JackClient::SetupDriverSync driver sem in normal mode
Jack: JackLinuxFutex::Connect name = jack_sem.1000_default_realtone
Jack: Clock source : unknown
Jack: JackLibClient::Open name = realtone refnum = 7
Capture open error: Device or resource busy
EDIT:

Here's another code I got when I tried again.

Code: Select all

reap@reap:~$ alsa_in -j realtone -d hw:Adapter
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jackdmp 1.9.20
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2021 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
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
Jack: JackPosixThread::StartImp : create non RT thread
Jack: JackPosixThread::ThreadHandler : start
Jack: capture device hw:Adapter
Jack: playback device hw:Adapter
Jack: apparent rate = 48000
Jack: frames per period = 64
Jack: JackDriver::Open capture_driver_name = hw:Adapter
Jack: JackDriver::Open playback_driver_name = hw:Adapter
Jack: Check protocol client = 9 server = 9
Jack: JackEngine::ClientInternalOpen: name = system
Jack: JackEngine::AllocateRefNum ref = 0
Jack: JackLinuxFutex::Allocate name = jack_sem.1000_default_system val = 0
Jack: JackEngine::NotifyAddClient: name = system
Jack: JackGraphManager::SetBufferSize size = 64
Jack: JackConnectionManager::DirectConnect first: ref1 = 0 ref2 = 0
Jack: JackGraphManager::ConnectRefNum cur_index = 0 ref1 = 0 ref2 = 0
Jack: JackDriver::SetupDriverSync driver sem in normal mode
audio_reservation_init
Acquire audio card Audio2
creating alsa driver ... hw:Adapter|hw:Adapter|64|3|48000|0|0|nomon|hwmeter|soft-mode|32bit
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
configuring for 48000Hz, period = 64 frames (1.3 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 3 periods for capture
Jack: JackPosixThread::StartImp : create non RT thread
Jack: JackSocketServerChannel::Open
Jack: JackServerSocket::Bind : addr.sun_path /dev/shm/jack_default_1000_0
Jack: JackSocketServerChannel::BuildPoolTable size = 1
Jack: JackEngine::Open
Jack: JackClientSocket::Connect : addr.sun_path /dev/shm/jack_default_1000_0
Jack: JackEngine::ClientInternalOpen: name = freewheel
Jack: JackEngine::AllocateRefNum ref = 1
Jack: JackLinuxFutex::Allocate name = jack_sem.1000_default_freewheel val = 0
Jack: JackEngine::NotifyAddClient: name = freewheel
Jack: JackDriver::ClientNotify ref = 1 driver = system name = freewheel notify = 0
Jack: JackDriver::ClientNotify ref = 0 driver = freewheel name = system notify = 0
Jack: JackConnectionManager::DirectConnect first: ref1 = 1 ref2 = 1
Jack: JackGraphManager::ConnectRefNum cur_index = 0 ref1 = 1 ref2 = 1
Jack: JackDriver::SetupDriverSync driver sem in normal mode
Jack: JackGraphManager::SetBufferSize size = 64
Jack: JackAlsaDriver::Attach fBufferSize 64 fSampleRate 48000
Jack: JackEngine::PortRegister ref = 0 name = system:capture_1 type = 32 bit float mono audio flags = 22 buffer_size = 64
Jack: JackGraphManager::AllocatePortAux port_index = 1 name = system:capture_1 type = 32 bit float mono audio
Jack: JackConnectionManager::AddOutputPort ref = 0 port = 1
Jack: JackEngine::ClientNotify: no callback for notification = 9
Jack: JackEngine::ClientNotify: no callback for notification = 9
Jack: JackAlsaDriver::Attach fCapturePortList[i] 1 
Jack: Clock source : system clock via clock_gettime
Jack: JackServer::Start
Jack: JackThreadedDriver::Start
Jack: JackPosixThread::StartImp : create non RT thread
Jack: JackPosixThread::ThreadHandler : start
Jack: JackThreadedDriver::Init real-time
Jack: JackPosixThread::AcquireRealTimeImp priority = 10
Jack: JackPosixThread::StartImp : create non RT thread
Jack: JackPosixThread::ThreadHandler : start
Jack: JackSocketServerChannel::ClientCreate socket
Jack: JackSocketServerChannel::BuildPoolTable size = 2
Jack: JackSocketServerChannel::BuildPoolTable fSocketTable i = 1 fd = 14
Jack: JackRequest::Notification
Jack: JackDriver::ClientNotify ref = 1 driver = freewheel name = freewheel notify = 18
Jack: JackDriver::ClientNotify ref = 1 driver = freewheel name = freewheel notify = 18
Jack: JackDriver::ClientNotify ref = 1 driver = freewheel name = freewheel notify = 18
Jack: JackDriver::ClientNotify ref = 1 driver = freewheel name = freewheel notify = 18
Jack: JackEngine::ClientNotify: no callback for notification = 4
Jack: JackEngine::ClientNotify: no callback for notification = 4
Jack: JackSocketServerChannel::ClientCreate socket
Jack: JackSocketServerChannel::BuildPoolTable size = 3
Jack: JackSocketServerChannel::BuildPoolTable fSocketTable i = 1 fd = 14
Jack: JackSocketServerChannel::BuildPoolTable fSocketTable i = 2 fd = 15
Jack: JackSocketServerChannel::Execute : poll client error err = Success
Jack: JackSocketServerChannel::ClientKill ref = -1 fd = 15
Jack: Client was not opened : probably correspond to server_check
Jack: JackClientSocket::Close
Jack: JackSocketServerChannel::BuildPoolTable size = 2
Jack: JackSocketServerChannel::BuildPoolTable fSocketTable i = 1 fd = 14
Jack: JackSocketServerChannel::ClientCreate socket
Jack: JackSocketServerChannel::BuildPoolTable size = 3
Jack: JackSocketServerChannel::BuildPoolTable fSocketTable i = 1 fd = 14
Jack: JackSocketServerChannel::BuildPoolTable fSocketTable i = 2 fd = 15
Jack: JackRequest::ClientCheck
Jack: Check protocol client = 9 server = 9
Jack: JackRequest::ClientOpen
Jack: JackEngine::ClientExternalOpen: uuid = 3, name = realtone
Jack: JackEngine::AllocateRefNum ref = 2
Jack: JackLinuxFutex::Allocate name = jack_sem.1000_default_realtone val = 0
Jack: JackSocketNotifyChannel::Open name = realtone
Jack: JackClientSocket::Connect : addr.sun_path /dev/shm/jack_realtone_1000_0
Jack: JackShmMem::new index = 2 attached = 6e3e7000 size = 426 
Jack: JackExternalClient::Open name = realtone index = 2 base = 6e3e7000
Jack: JackPosixProcessSync::TimedWait time out = 5000000
Jack: JackPosixProcessSync::TimedWait finished delta = 421.0
Jack: JackEngine::NotifyAddClient: name = realtone
Jack: JackDriver::ClientNotify ref = 2 driver = system name = realtone notify = 0
Jack: JackExternalClient::ClientNotify ref = 0 client = realtone name = system notify = 0
Jack: JackDriver::ClientNotify ref = 2 driver = freewheel name = realtone notify = 0
Jack: JackExternalClient::ClientNotify ref = 1 client = realtone name = freewheel notify = 0
Jack: JackSocketServerChannel::ClientAdd ref = 2 fd = 15
Jack: JackSocketServerChannel::BuildPoolTable size = 3
Jack: JackSocketServerChannel::BuildPoolTable fSocketTable i = 1 fd = 14
Jack: JackSocketServerChannel::BuildPoolTable fSocketTable i = 2 fd = 15
Jack: JackRequest::Notification
Jack: JackDriver::ClientNotify ref = 1 driver = freewheel name = freewheel notify = 18
Jack: JackDriver::ClientNotify ref = 1 driver = freewheel name = freewheel notify = 18
Jack: JackDriver::ClientNotify ref = 1 driver = freewheel name = freewheel notify = 18
Jack: JackDriver::ClientNotify ref = 1 driver = freewheel name = freewheel notify = 18
Jack: JackEngine::ClientNotify: no callback for notification = 4
Jack: JackEngine::ClientNotify: no callback for notification = 4
Jack: JackEngine::ClientNotify: no callback for notification = 4
Jack: JackClient::SetupDriverSync driver sem in normal mode
Jack: JackLinuxFutex::Connect name = jack_sem.1000_default_realtone
Jack: Clock source : system clock via clock_gettime
Jack: JackLibClient::Open name = realtone refnum = 2
Capture open error: Device or resource busy
Jack: JackSocketServerChannel::Execute : poll client error err = Success
Jack: JackSocketServerChannel::ClientKill ref = 2 fd = 15
Jack: JackEngine::ClientKill ref = 2
Jack: JackEngine::ClientDeactivate ref = 2 name = realtone
reap@reap:~$ Jack: JackServer::Deactivate client = 2 was not activated
Jack: JackServer::Deactivate client = 2 was not activated
Jack: JackPosixProcessSync::TimedWait time out = 26660
Jack: JackPosixProcessSync::TimedWait finished delta = 460.0
Jack: JackEngine::ClientExternalClose ref = 2
Jack: JackEngine::ClientCloseAux ref = 2
Jack: JackEngine::ReleaseRefnum server quit
Unknown error...
terminate called after throwing an instance of 'Jack::JackTemporaryException'
  what():  
Reap404
Established Member
Posts: 10
Joined: Wed Jun 22, 2022 5:18 pm
Location: Canada

Re: Trouble with WineASIO and Jack

Post by Reap404 »

I've decided to give up on getting QJackctl to work with my realtone cable. Mainly because the native linux version already supports it and also because Jack can't detect it.

But I do have one last question about Reaper. What VSTs can you recommend that simulate distortion, delay, EQ, reverb etc. pedals?

EDIT: I used to use Amplitube 5's VSTs back when I ran windows and I'm looking for something about as intuitive as that.
tavasti
Established Member
Posts: 2047
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 369 times
Been thanked: 208 times
Contact:

Re: Trouble with WineASIO and Jack

Post by tavasti »

Read all the comments in thread. Sure you can't add realtone as extra input if you jack running with that cable as primary interface. Make you real sound card as primary jack interface, and then add realtone cable.

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

User avatar
bluzee
Established Member
Posts: 338
Joined: Mon Nov 30, 2020 11:43 pm
Has thanked: 18 times
Been thanked: 88 times

Re: Trouble with WineASIO and Jack

Post by bluzee »

Reap404 wrote: Sat Jul 23, 2022 11:17 pm But I do have one last question about Reaper. What VSTs can you recommend that simulate distortion, delay, EQ, reverb etc. pedals?
KPP plugins come in a VST form. https://github.com/olegkapitonov/KPP-VST3
Airwindows has some items of interest. https://www.airwindows.com/

My preferred guitar sounds come from Guitarix however no VST there.
Post Reply