![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Multimedia & Video Have multimedia question? ATI, Nvidia, Sound cards. Just ask here. |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Just Give Me the Beans!
![]() Join Date: Aug 2006
Location: US - Pennsylvania
Beans: 77
Ubuntu 9.04 Jaunty Jackalope
|
Re: Howto: Route all sound to Jack via Pulse Audio in Feisty (finally EQ in all audio
After going over the instructions, I read that I may not need jack_transport... the pulseaudio I'm using is 0.9.6-1ubuntu2... anyway I proceeded as if I didn't need jack_transport.... commented out the script lines that refer to jack_transport.
there is a section that references the jack-rack config file... I assume it can be any name.. does it contain something in particular (I've never used jack-rack) When I got to the step to change the settings under System-> Preferences->Sound under the device tab, the drop downs didn't list Pulse Audio Server... I thought maybe I have to run the final script, so I ran it... got a message dialog from jack-rack ... Could not create JACK client Is the server running? Also got he following terminal output: jackd 0.103.0 Copyright 2001-2005 Paul Davis and others. jackd 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 compiled with System V SHM support. loading driver .. creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit control device hw:0 configuring for 48000Hz, period = 1024 frames, buffer = 2 periods ALSA: final selected sample format for capture: 32bit little-endian ALSA: use 2 periods for capture ALSA: final selected sample format for playback: 32bit little-endian ALSA: use 2 periods for playback E: module.c: Failed to open module "module-jack-sink": libpulsecore.so.2: cannot open shared object file: No such file or directory E: main.c: Module load failed. E: main.c: failed to initialize daemon. JACK tmpdir identified as [/dev/shm] process_info_connect_jack: could not create jack client; exiting JACK tmpdir identified as [/dev/shm] jack server not running? JACK tmpdir identified as [/dev/shm] jack server not running? JACK tmpdir identified as [/dev/shm] jack server not running? JACK tmpdir identified as [/dev/shm] jack server not running? BTW, jackd is running... $0> ps aux | grep jackd | grep -v grep root 7270 0.3 2.9 22556 22748 ? SLsl 13:09 0:01 jackd -R -d alsa Out of curiosity, I started jacd through the qtjackctl manually, and Jack Rack gives the same message.... Could not create JACK client Is the server running? Any help is appreciated |
|
|
|
|
|
#12 | |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Mar 2006
Location: Stockholm, Sweden
Beans: 683
Ubuntu Studio Karmic Koala (testing)
|
Re: Howto: Route all sound to Jack via Pulse Audio in Feisty (finally EQ in all audio
Quote:
__________________
Guides: Jamming and Music production launcher | PPA enabling system-wide JACK support | On the-fly Multiseat Interested in: MPX for Ubuntu | Ubuntu Cluster |
|
|
|
|
|
|
#13 | |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Mar 2006
Location: Stockholm, Sweden
Beans: 683
Ubuntu Studio Karmic Koala (testing)
|
Re: Howto: Route all sound to Jack via Pulse Audio in Feisty (finally EQ in all audio
Quote:
Code:
sudo ln -s /usr/lib/libpulsecore.so.3.0.0 /usr/lib/libpulsecore.so.2 With jackd running (through qjackctl running as normal user): Code:
motin@laptop:~$ pulseaudio -n -F /home/motin/.jackd.pa & [2] 10790 motin@laptop:~$ JACK tmpdir identified as [/dev/shm] W: module-jack-sink.c: JACK error >cannot lock down memory for RT thread (Operation not permitted)< JACK tmpdir identified as [/dev/shm] W: module-jack-source.c: JACK error >cannot lock down memory for RT thread (Operation not permitted)< E: module-jack-source.c: jack_client_open() failed. E: module.c: Failed to load module "module-jack-source" (argument: ""): initialization failed. E: main.c: Module load failed. E: main.c: failed to initialize daemon. Code:
$ pulseaudio -n -F /home/motin/.jackd.pa & [1] 10707 JACK tmpdir identified as [/dev/shm] exec of JACK server (command = "jackd") failed: No such file or directory E: module-jack-sink.c: jack_client_open() failed. E: module.c: Failed to load module "module-jack-sink" (argument: ""): initialization failed. E: main.c: Module load failed. E: main.c: failed to initialize daemon. Code:
$ sudo pulseaudio -n -F /home/motin/.jackd.pa & [3] 10820 motin@laptop:~$ W: main.c: This program is not intended to be run as root (unless --system is specified). JACK tmpdir identified as [/dev/shm] exec of JACK server (command = "jackd") failed: No such file or directory E: module-jack-sink.c: jack_client_open() failed. E: module.c: Failed to load module "module-jack-sink" (argument: ""): initialization failed. E: main.c: Module load failed. E: main.c: failed to initialize daemon. Code:
sudo apt-get install prevu sudo prevu-init # <-- only needed to be run before the first time prevu is used prevu http://ftp.de.debian.org/debian/pool/main/p/pulseaudio/pulseaudio_0.9.8-2.dsc sudo apt-get install pulseaudio-module-jack -V sudo adduser `whoami` pulse-rt # log out and back in
__________________
Guides: Jamming and Music production launcher | PPA enabling system-wide JACK support | On the-fly Multiseat Interested in: MPX for Ubuntu | Ubuntu Cluster |
|
|
|
|
|
|
#14 |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Mar 2006
Location: Stockholm, Sweden
Beans: 683
Ubuntu Studio Karmic Koala (testing)
|
Re: Howto: Route all sound to Jack via Pulse Audio in Feisty (finally EQ in all audio
Ok - with the 0.9.8 version that problem seem to be fixed so almost there...
Sound works in: xine amarok But not in: firefox flash Also, vlc doesn't start any longer (may or may not be related). More about these problems later. First: Here is the difference between the Pulsa Audio config file /etc/pulse/default.pa and my own breed ~/.jackd.pa : Code:
$ diff .jackd.pa /etc/pulse/default.pa 19,22d18 < # Jack sinks < load-module module-jack-sink < load-module module-jack-source < 27c23 < #jack# load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav --- > load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav 45c41 < #jack# load-module module-hal-detect --- > load-module module-hal-detect 49c45 < #jack# load-module module-detect --- > load-module module-detect 54c50 < #jack# load-module module-esound-protocol-unix socket="/tmp/.esd/socket" --- > load-module module-esound-protocol-unix socket="/tmp/.esd/socket" 56c52 < #jack# load-module module-native-protocol-unix --- > load-module module-native-protocol-unix 91c87 < # disabled because of error message "PulseAudio information vanished from X11" # load-module module-x11-publish --- > load-module module-x11-publish Code:
#!/bin/sh
#jackd -R -d alsa &
# I'm loading the control center instead - I have set it to automatically start the JACK server upon startup (+ enabled the taskbar icon btw)
qjackctl &
sleep 5
#
pulseaudio -n -F $HOME/.jackd.pa &
# specify your default plugin setup for JACK Rack here
RACKFILE=$HOME/.default.rack
# start JACK Rack
jack-rack -n $RACKFILE &
# wait for JACK Rack to register with JACK
sleep 3
# connect
jack_connect "PulseAudio JACK Sink:front-left" jack_rack:in_1
jack_connect "PulseAudio JACK Sink:front-right" jack_rack:in_2
for ch in 1 2; do
# rack -> speakers
jack_connect jack_rack:out_$ch alsa_pcm:playback_$ch
done
Code:
$ vlc VLC media player 0.8.6c Janus The program '.' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAlloc (insufficient resources for operation)'. (Details: serial 474 error_code 11 request_code 145 minor_code 5) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) I changed to the padsp and installed the debian package of libflashsupport from http://pulseaudio.vdbonline.net/libflashsupport/ Any ides of how to proceed in order to get Flash in Firefox sound working? Thanks a million for the guide and help so far!
__________________
Guides: Jamming and Music production launcher | PPA enabling system-wide JACK support | On the-fly Multiseat Interested in: MPX for Ubuntu | Ubuntu Cluster |
|
|
|
|
|
#15 |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Mar 2006
Location: Stockholm, Sweden
Beans: 683
Ubuntu Studio Karmic Koala (testing)
|
Re: Howto: Route all sound to Jack via Pulse Audio in Feisty (finally EQ in all audio
Also, even though it is possible to process all applications' sound through JACK Rack - I have to disconnect the relevant output port from alsa_pcm and connect it to jack_rack in order to run it though JACK Rack. Can this be done automatically?
__________________
Guides: Jamming and Music production launcher | PPA enabling system-wide JACK support | On the-fly Multiseat Interested in: MPX for Ubuntu | Ubuntu Cluster |
|
|
|
|
|
#16 |
|
5 Cups of Ubuntu
![]() Join Date: Apr 2005
Beans: 26
|
Re: Howto: Route all sound to Jack via Pulse Audio in Feisty (finally EQ in all audio
Wow...I never check my hotmail account, and I logged in today and noticed a bunch of replies to this. Crazy! For my particular application (car audio) I found it more reliable to use the jack sink for gstreamer and change my gstreamer properties to route all gstreamer output to jack. Here's a walk through I wrote up for that: http://ubuntuforums.org/showthread.p...highlight=jack . This (pulse) solution, in combination with the gstreamer solution, would take care of almost all of your audio. I'll read through this later and see if I can remember any tips for you guys who were stuck.
-Rich
__________________
-rich |
|
|
|
|
|
#17 |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Mar 2006
Location: Stockholm, Sweden
Beans: 683
Ubuntu Studio Karmic Koala (testing)
|
Re: Howto: Route all sound to Jack via Pulse Audio in Feisty (finally EQ in all audio
Unfortunately, Kubuntu's Amarok doesn't support gstreamer atm, and sure, I could go with the Amarok jack output plugin and probably live adequately, but now with Hardy installed it would be a shame not to be able to plug in jack between Pulse and the soundcard...
So, after having installed pulseaudio-module-jack from debian lenny, I can now start jack using qjackctl or: Code:
/usr/bin/jackd -R -t2000 -dalsa -dhw:0 -r44100 -p128 -n2 Code:
pulseaudio -vnF /home/motin/.jackd.pa Code:
#!/usr/bin/pulseaudio -nF # Jack sinks load-module module-jack-sink load-module module-jack-source ### Automatically restore the volume of playback streams load-module module-volume-restore ### Automatically restore the default sink/source when changed by the user during runtime load-module module-default-device-restore ### Automatically move streams to the default sink if the sink they are ### connected to dies, similar for sources load-module module-rescue-streams ### Load additional modules from GConf settings. This can be configured with the paprefs tool. ### Please keep in mind that the modules configured by paprefs might conflict with manually ### loaded modules. .ifexists /usr/lib/pulse-0.9/modules//module-gconf.so load-module module-gconf .endif .fail Code:
motin@laptop:~$ pulseaudio -vnF /home/motin/.jackd.pa I: main.c: We're in the group 'pulse-rt', allowing real-time and high-priority scheduling. I: core-util.c: Successfully gained nice level -11. I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operationen inte tillåten I: main.c: This is PulseAudio 0.9.10 I: main.c: Page size is 4096 bytes I: main.c: Fresh high-resolution timers available! Bon appetit! I: module-jack-sink.c: Successfully connected as 'PulseAudio JACK Sink' I: sink.c: Created sink 0 "jack_out" with sample spec "float32le 2ch 44100Hz" I: source.c: Created source 0 "jack_out.monitor" with sample spec "float32le 2ch 44100Hz" I: module-jack-sink.c: JACK thread starting up. I: module-jack-sink.c: Connecting PulseAudio JACK Sink:front-left to system:playback_1 I: module-jack-sink.c: Connecting PulseAudio JACK Sink:front-right to system:playback_2 I: module.c: Loaded "module-jack-sink" (index: #0; argument: ""). I: module-jack-source.c: Successfully connected as 'PulseAudio JACK Source' I: source.c: Created source 1 "jack_in" with sample spec "float32le 2ch 44100Hz" I: module-jack-source.c: JACK thread starting up. I: module-jack-source.c: connecting PulseAudio JACK Source:front-left to system:capture_1 I: module-jack-source.c: connecting PulseAudio JACK Source:front-right to system:capture_2 I: module.c: Loaded "module-jack-source" (index: #1; argument: ""). I: module.c: Loaded "module-volume-restore" (index: #2; argument: ""). I: module.c: Loaded "module-default-device-restore" (index: #3; argument: ""). I: module.c: Loaded "module-rescue-streams" (index: #4; argument: ""). I: module.c: Loaded "module-gconf" (index: #5; argument: ""). I: main.c: Daemon startup complete. Code:
**** alsa_pcm: xrun of at least 1.387 msecs **** alsa_pcm: xrun of at least 2.377 msecs **** alsa_pcm: xrun of at least 1.099 msecs ... Soooo close now to finally be able to run all application sounds through JACK...
__________________
Guides: Jamming and Music production launcher | PPA enabling system-wide JACK support | On the-fly Multiseat Interested in: MPX for Ubuntu | Ubuntu Cluster |
|
|
|
|
|
#18 | |
|
First Cup of Ubuntu
![]() Join Date: Mar 2008
Beans: 5
|
Re: Howto: Route all sound to Jack via Pulse Audio in Feisty (finally EQ in all audio
Quote:
|
|
|
|
|
|
|
#19 |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Mar 2006
Location: Stockholm, Sweden
Beans: 683
Ubuntu Studio Karmic Koala (testing)
|
Re: Howto: Route all sound to Jack via Pulse Audio in Feisty (finally EQ in all audio
Having bought a new computer, I just tried to reaccomplish this. This time I do not get any errors at start-up of neither jack nor pulseaudio but on the other hand other clients cannot connect to the pulseaudio server...
Has anyone tried this since last time we posted and have any success stories to share?
__________________
Guides: Jamming and Music production launcher | PPA enabling system-wide JACK support | On the-fly Multiseat Interested in: MPX for Ubuntu | Ubuntu Cluster |
|
|
|
|
|
#20 | |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Mar 2006
Location: Stockholm, Sweden
Beans: 683
Ubuntu Studio Karmic Koala (testing)
|
Re: Howto: Route all sound to Jack via Pulse Audio in Feisty (finally EQ in all audio
Quote:
__________________
Guides: Jamming and Music production launcher | PPA enabling system-wide JACK support | On the-fly Multiseat Interested in: MPX for Ubuntu | Ubuntu Cluster |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|