Keep getting xruns no matter what
Moderators: MattKingUSA, khz
- autostatic
- Established Member
- Posts: 1994
- Joined: Wed Dec 09, 2009 5:26 pm
- Location: Beverwijk, The Netherlands
- Has thanked: 32 times
- Been thanked: 104 times
- Contact:
Re: Keep getting xruns no matter what
Can't guarantee that the xruns are gone, it could be something else.
Re: Keep getting xruns no matter what
Ok, i wasn't intelligent enought to understand that i couldn't reboot without resetting the commands i just wrote.pkslot wrote:Yes, this was what i was looking for. I didn't quite know where to put the sudo command. Running lsusb shows usb3 and 4 is gone. I'l just have to reboot to see what jack says about this. I hope the xrun is history
I Still get xruns though. I'll have a look around and see if i can figure this out myself. If not, i hope i can come back once again. Thank you so much for your help
- autostatic
- Established Member
- Posts: 1994
- Joined: Wed Dec 09, 2009 5:26 pm
- Location: Beverwijk, The Netherlands
- Has thanked: 32 times
- Been thanked: 104 times
- Contact:
Re: Keep getting xruns no matter what
Sure, no problem! Bit of a bummer unbinding didn't work. What JACK settings do you use? Maybe the answer is way closer to home
Re: Keep getting xruns no matter what
Well, here's a print of jack, sort of running:
I set it to HW:0 cause that's the SB card, but when i set it to "default" i get a lot more xrun. Also the 1024 frames are on purpose, for the same reason.
Code: Select all
21:36:32.770 Patchbay deactivated.
21:36:32.780 Statistics reset.
21:36:32.820 ALSA connection change.
21:36:33.037 D-BUS: Service is available (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = Opkobling nægtet
Cannot connect to server socket
jack server is not running or cannot be started
21:36:33.067 ALSA connection graph change.
21:36:43.107 D-BUS: JACK server is starting...
Mon Nov 26 21:36:42 2012: Starting jack server...
Mon Nov 26 21:36:42 2012: JACK server starting in realtime mode with priority 10
Mon Nov 26 21:36:43 2012: control device hw:0
Mon Nov 26 21:36:43 2012: control device hw:0
Mon Nov 26 21:36:43 2012: Acquired audio card Audio0
Mon Nov 26 21:36:43 2012: creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
Mon Nov 26 21:36:43 2012: control device hw:0
Mon Nov 26 21:36:43 2012: configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
Mon Nov 26 21:36:43 2012: ALSA: final selected sample format for capture: 32bit integer little-endian
Mon Nov 26 21:36:43 2012: ALSA: use 2 periods for capture
Mon Nov 26 21:36:43 2012: ALSA: final selected sample format for playback: 32bit integer little-endian
Mon Nov 26 21:36:43 2012: ALSA: use 2 periods for playback
Cannot connect to server socket err = Opkobling nægtet
Cannot connect to server socket
jack server is not running or cannot be started
21:36:43.128 D-BUS: JACK server was started (org.jackaudio.service aka jackdbus).
Mon Nov 26 21:36:43 2012: graph reorder: new port 'system:capture_1'
Mon Nov 26 21:36:43 2012: New client 'system' with PID 0
Mon Nov 26 21:36:43 2012: graph reorder: new port 'system:capture_2'
Mon Nov 26 21:36:43 2012: graph reorder: new port 'system:playback_1'
Mon Nov 26 21:36:43 2012: graph reorder: new port 'system:playback_2'
Mon Nov 26 21:36:43 2012: graph reorder: new port 'system:playback_3'
Mon Nov 26 21:36:43 2012: graph reorder: new port 'system:playback_4'
Mon Nov 26 21:36:43 2012: graph reorder: new port 'system:playback_5'
Mon Nov 26 21:36:43 2012: graph reorder: new port 'system:playback_6'
Mon Nov 26 21:36:44 2012: Saving settings to "/home/peter/.config/jack/conf.xml" ...
21:36:45.373 JACK connection change.
21:36:45.376 Server configuration saved to "/home/peter/.jackdrc".
21:36:45.378 Statistics reset.
21:36:45.396 Client activated.
21:36:45.426 JACK connection graph change.
Mon Nov 26 21:36:45 2012: New client 'qjackctl' with PID 5471
21:36:47.436 XRUN callback (1).
21:36:49.435 XRUN callback (13 skipped).
21:36:53.871 XRUN callback (15).
21:36:55.448 XRUN callback (6 skipped).
Re: Keep getting xruns no matter what
Would it help anything, if i installed a complete realtime kernel?
- autostatic
- Established Member
- Posts: 1994
- Joined: Wed Dec 09, 2009 5:26 pm
- Location: Beverwijk, The Netherlands
- Has thanked: 32 times
- Been thanked: 104 times
- Contact:
Re: Keep getting xruns no matter what
No. If you already get xruns without running any audio software there is probably something else that gets in the way. What are your exact JACK settings? Do you use QjackCtl? If so, what is the output of cat ~/.jackdrc ?
Re: Keep getting xruns no matter what
Yes i do, the output is:AutoStatic wrote:No. If you already get xruns without running any audio software there is probably something else that gets in the way. What are your exact JACK settings? Do you use QjackCtl? If so, what is the output of cat ~/.jackdrc ?
Code: Select all
/usr/bin/jackd -p512 -t5000 -u -dalsa -dhw:0 -r48000 -p1024 -n2 -Xraw
-
- Established Member
- Posts: 232
- Joined: Sat Oct 13, 2012 9:04 pm
Re: Keep getting xruns no matter what
I was having a bunch of xruns and was recommended this. If your using the ubuntu desctop install xfce or ldxe and use those to record? You could also try a different sound card I know thats not the most ideal situation but you can pic up an art dual usb pre for 59 dollars from b and h photo video. The actually sound great when i was using one I never had a problem with xruns the latency sucked but it didnt matter becuase I was just recording tracks so it didnt effect anything.
My music on youtube http://www.youtube.com/user/BartStaffor ... rid&view=0
Re: Keep getting xruns no matter what
I'm currently using the gnome shell as my desktop manager, although It's configured to use lightgdm instead of gdm. When I get home I'll give xfce a spin to see if it changes anything.Alwaysanewb wrote:I was having a bunch of xruns and was recommended this. If your using the ubuntu desctop install xfce or ldxe and use those to record? You could also try a different sound card I know thats not the most ideal situation but you can pic up an art dual usb pre for 59 dollars from b and h photo video. The actually sound great when i was using one I never had a problem with xruns the latency sucked but it didnt matter becuase I was just recording tracks so it didnt effect anything.
I've also thought about getting an external soundcard, but using it via usb isn't really that good, regarding latency, and I haven't got any other options other than hdmi. So I'm a bit hesitant on that.... also money is kind of short at the moment. Is it possible to use hdmi instead of firewire? Or would I face more problems on that account?
Well thank you for the advice, I'll be sure to check it out.
- autostatic
- Established Member
- Posts: 1994
- Joined: Wed Dec 09, 2009 5:26 pm
- Location: Beverwijk, The Netherlands
- Has thanked: 32 times
- Been thanked: 104 times
- Contact:
Re: Keep getting xruns no matter what
Thanks! In QjackCtl set MIDI Driver to 'none', untick 'Unlock Memory' and set 'Port Maximum' to 256 which is afaik the default. Also fill in the 'Interface' field manually and enter hw:SBpkslot wrote:Code: Select all
/usr/bin/jackd -p512 -t5000 -u -dalsa -dhw:0 -r48000 -p1024 -n2 -Xraw
Re: Keep getting xruns no matter what
AutoStatic wrote:Thanks! In QjackCtl set MIDI Driver to 'none', untick 'Unlock Memory' and set 'Port Maximum' to 256 which is afaik the default. Also fill in the 'Interface' field manually and enter hw:SBpkslot wrote:Code: Select all
/usr/bin/jackd -p512 -t5000 -u -dalsa -dhw:0 -r48000 -p1024 -n2 -Xraw
I did all that, but somehow it seems there's nothing involving SB:
Code: Select all
19:27:41.054 Patchbay deactivated.
19:27:41.059 Statistics reset.
19:27:41.166 ALSA connection change.
19:27:41.183 D-BUS: Service is available (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = Ingen sådan fil eller filkatalog
Cannot connect to server socket
jack server is not running or cannot be started
19:27:41.198 ALSA connection graph change.
19:27:57.821 D-BUS: JACK server could not be started. Sorry
Cannot connect to server socket err = Ingen sådan fil eller filkatalog
Cannot connect to server socket
jack server is not running or cannot be started
Wed Nov 28 19:27:57 2012: Starting jack server...
Wed Nov 28 19:27:57 2012: JACK server starting in realtime mode with priority 10
Wed Nov 28 19:27:57 2012: [1m[31mERROR: control open "hw:sb" (No such device)[0m
Wed Nov 28 19:27:57 2012: [1m[31mERROR: control open "hw:sb" (No such device)[0m
Wed Nov 28 19:27:57 2012: Acquired audio card Audio-1
Wed Nov 28 19:27:57 2012: creating alsa driver ... hw:sb|hw:sb|1024|2|48000|0|0|nomon|swmeter|-|32bit
Wed Nov 28 19:27:57 2012: [1m[31mERROR: control open "hw:sb" (No such device)[0m
Wed Nov 28 19:27:57 2012: [1m[31mERROR: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode[0m
Wed Nov 28 19:27:57 2012: [1m[31mERROR: Cannot initialize driver[0m
Wed Nov 28 19:27:57 2012: [1m[31mERROR: JackServer::Open() failed with -1[0m
Wed Nov 28 19:27:57 2012: [1m[31mERROR: Failed to open server[0m
Wed Nov 28 19:27:58 2012: Saving settings to "/home/peter/.config/jack/conf.xml" ...
19:28:08.080 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
Cannot connect to server socket err = Ingen sådan fil eller filkatalog
Cannot connect to server socket
jack server is not running or cannot be started
- autostatic
- Established Member
- Posts: 1994
- Joined: Wed Dec 09, 2009 5:26 pm
- Location: Beverwijk, The Netherlands
- Has thanked: 32 times
- Been thanked: 104 times
- Contact:
Re: Keep getting xruns no matter what
I can't change it, even when i edit the /.config/jack/conf.xml manually, it's changed. When i change it to capital letters in qjackctl, they change back to sb at the instance i hit save.AutoStatic wrote:Linux is case sensitive. hw:sb is something else than hw:SB.
Re: Keep getting xruns no matter what
Oops, i didn't read thatfalkTX wrote:You should not edit jack/conf.xml manually, as it says in the file itself:pkslot wrote:I can't change it, even when i edit the /.config/jack/conf.xml manually, it's changed. When i change it to capital letters in qjackctl, they change back to sb at the instance i hit save.afaik the QjackCtl combo-boxes are editable, so you should be able to delete the current entry and write down a custom one.<!--
JACK settings, as persisted by D-Bus object.
You probably don't want to edit this because
it will be overwritten next time jackdbus saves.
-->
The problem is, that i can easily write in the boxes in qjackctl, but as soon as i hit "save" it changes the capital SB to sb.
Re: Keep getting xruns no matter what
I posted this in my terminal:
And got this:
Something tells me that this soundcard isn't properly installed.
Code: Select all
peter@pks:~$ jackd -d hw:SB
Code: Select all
jackdmp 1.9.8
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2011 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
Unknown driver "hw:SB"
peter@pks:~$