Commit e871d300 authored by Christophe Siraut's avatar Christophe Siraut

On and on.

parent aa327e6e
#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# This startup script is used only if PulseAudio is started per-user
# (i.e. not in system mode)
.nofail
### Load something into the sample cache
#load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
#load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
#load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav
#load-sample-lazy pulse-access /usr/share/sounds/generic.wav
.fail
### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties
### Load audio drivers statically
### (it's probably better to not load these drivers manually, but instead
### use module-udev-detect -- see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
load-module module-jack-sink
load-module module-jack-source
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink
### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev/hal support)
load-module module-detect
.endif
### Automatically connect sink and source if JACK server is present
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect
.fail
.endif
### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif
### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix
### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish
### Load the RTP receiver module (also configured via paprefs, see above)
#load-module module-rtp-recv
### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
#load-module module-rtp-send source=rtp.monitor
### 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 module-gconf.so
.nofail
load-module module-gconf
.fail
.endif
### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent modules
### that look up the default sink/source get the right value
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
### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink
### Honour intended role device property
load-module module-intended-roles
### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle
### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
.ifexists module-console-kit.so
load-module module-console-kit
.endif
.ifexists module-systemd-login.so
load-module module-systemd-login
.endif
### Enable positioned event sounds
load-module module-position-event-sounds
### Cork music/video streams when a phone stream is active
load-module module-role-cork
### Modules to allow autoloading of filters (such as echo cancellation)
### on demand. module-filter-heuristics tries to determine what filters
### make sense, and module-filter-apply does the heavy-lifting of
### loading modules and rerouting streams.
load-module module-filter-heuristics
load-module module-filter-apply
### Load DBus protocol
.ifexists module-dbus-protocol.so
load-module module-dbus-protocol
.endif
# X11 modules should not be started from default.pa so that one daemon
# can be shared by multiple sessions.
### Load X11 bell module
#load-module module-x11-bell sample=bell-windowing-system
### Register ourselves in the X11 session manager
#load-module module-x11-xsmp
### Publish connection data in the X11 root window
#.ifexists module-x11-publish.so
#.nofail
#load-module module-x11-publish
#.fail
#.endif
load-module module-switch-on-port-available
### Make some devices default
#set-default-sink output
#set-default-source input
# Provided by the jackd package.
#
# Changes to this file will be preserved.
#
# If you want to enable/disable realtime permissions, run
#
# dpkg-reconfigure -p high jackd
@audio - rtprio 95
@audio - memlock unlimited
@audio - nice -19
#!/bin/bash
pacmd suspend true
pactl load-module module-jack-sink channels=2
pactl load-module module-jack-source channels=2
pacmd set-default-sink jack_out
......
[org.gnome.shell]
favorite-apps=[ 'ardour.desktop', 'qjackctl.desktop', 'iceweasel.desktop', 'nautilus.desktop', 'yelp.desktop' ]
favorite-apps=[ 'ardour.desktop', 'qjackctl.desktop', 'iceweasel.desktop', 'nautilus.desktop' ]
ardour-i686 audacity freewheeling hydrogen jamin jack-mixer muse puredata qtractor soundconverter terminatorx timemachine
bristol hexter petri-foo zynjacku yoshimi vkeybd specimen seq24 jack-keyboard composite timidity
audacity jamin pd-purepd petri-foo puredata specimen
ardour-i686 freewheeling hydrogen muse puredata qtractor seq24 terminatorx
composite jack-mixer soundconverter timemachine
dssi-utils dssi-host-jack bristol fluidsynth-dssi hexter zynaddsubfx zynjacku yoshimi vkeybd jack-keyboard
qjackctl jackd2-firewire jack-rack patchage
gstreamer0.10-ffmpeg gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-tools
pulseaudio-module-jack pulseaudio-module-x11 alsa-utils
abgate calf-plugins eq10q foo-yc20 invada-studio-plugins-lv2 ir.lv2 lv2fil lv2vocoder mda-lv2 so-synth-lv2 swh-lv2 vocproc
caps cmt tap-plugins wah-plugins
dssi-utils dssi-host-jack
jalv lilv-utils lv2file lv2proc slv2-jack python-lilv
gmidimonitor a2jmidid qmidiarp dino
gmidimonitor a2jmidid qmidiarp dino timidity
totem synaptic
[pulseaudio-discuss] Jack with Pulseaudio
CJ van den Berg cj at vdbonline.com
Tue Mar 20 13:28:49 CET 2007
Previous message: [pulseaudio-discuss] Jack with Pulseaudio
Next message: [pulseaudio-discuss] can't get pulseaudio-esound-compat to work
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Mar 20, 2007 at 01:02:40AM -0400, Paul Jones wrote:
> Can someone assist me or point me towards directions to get Jack and
> Pulseaudio to work together.!! I can't fine info anywhere!!
I don't have a link to HOWTO, but it's fairly simple. Here's the basic
run-down for Debian Etch systems. AFAIK this should also work as is for
Ubuntu Feisty systems.
Prerequisites:
* jackd and pulseaudio must both run as a normal user. To run jackd as a
regular un-privileged user in Debian you need to add the following lines
to /etc/security/limits.conf
###
@audio - rtprio 100
@audio - nice -20
@audio - memlock 452192
###
And then logout and log back in.
* pulseaudio must be run *without* the suid bit set. This is because
pulseaudio drops privileges that module-jack-* needs if run as suid. So
remove the suid bit:
$ sudo chmod -s /usr/bin/pulseaudio
pulseaudio will still be able to run realtime if you have the limits.conf
setup for jackd.
Create a jack specific pulseaudio config file:
* Copy your distro's default pulseaudio config file to your home directory.
$ cp /etc/pulse/default.pa ~/jackd.pa
* Edit jackd.pa and remove any module-hal-detect, module-detect,
module-alsa-* and module-oss-* lines.
* Add these two lines to the beginning of jackd.pa
###
load-module module-jack-sink
load-module module-jack-source
###
Start both daemons as a regular user and start the jack transport:
* Start up jackd
$ jackd -R -d alsa
* Start up pulseaudio with the new jackd.pa config
$ pulseaudio -n -F /home/user/jackd.pa
You have to use the full path to the *.pa file.
* Start the jack transport rolling
$ jack_transport
> start
or, if you don't have jack_transport, you can use qjackctl or patchage.
This step is a bit controversial and probably shouldn't be necessary, but
that's just the way it is right now.
If these instructions work for you, it would be great if you could write up
a wiki page at www.pulseaudio.org for others to find. :D
--
CJ van den Berg
mailto:cj at vdbonline.com
xmpp:cj at vdbonline.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://tango.0pointer.de/pipermail/pulseaudio-discuss/attachments/20070320/a409c9fd/attachment.pgp
Previous message: [pulseaudio-discuss] Jack with Pulseaudio
Next message: [pulseaudio-discuss] can't get pulseaudio-esound-compat to work
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the pulseaudio-discuss mailing list
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment