<div dir="ltr">A few days ago I transfer my desktop environment from gnome to KDE4.1<br>
release.Everything is good for use.But pulseaudio which has been working<br>
normally in gnome can not be initialized when KDE starts.<br>
Here is my <a href="http://default.pa/" target="_blank">default.pa</a>:<br>
------------------------------<div id=":15s" class="ArwC7c ckChnd">----------------------------------------<br>
#!/usr/bin/pulseaudio -nF<br>
#<br>
# This file is part of PulseAudio.<br>
#<br>
# PulseAudio is free software; you can redistribute it and/or modify it<br>
# under the terms of the GNU Lesser General Public License as published by<br>
# the Free Software Foundation; either version 2 of the License, or<br>
# (at your option) any later version.<br>
#<br>
# PulseAudio is distributed in the hope that it will be useful, but<br>
# WITHOUT ANY WARRANTY; without even the implied warranty of<br>
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU<br>
# General Public License for more details.<br>
#<br>
# You should have received a copy of the GNU Lesser General Public License<br>
# along with PulseAudio; if not, write to the Free Software Foundation,<br>
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.<br>
.nofail<br>
<br>
- Ignored:<br>
<br>
### Load something into the sample cache<br>
#load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav<br>
load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav<br>
#load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav<br>
#load-sample-lazy pulse-access /usr/share/sounds/generic.wav<br>
<br>
.fail<br>
<br>
### Load audio drivers statically (it's probably better to not load<br>
### these drivers manually, but instead use module-hal-detect --<br>
### see below -- for doing this automatically)<br>
#load-module module-alsa-sink<br>
#load-module module-alsa-sink device=equalized<br>
load-module module-alsa-sink device=dmix<br>
#load-module module-alsa-source device=hw:1,0<br>
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input<br>
#load-module module-oss-mmap device="/dev/dsp" sink_name=output<br>
source_name=input<br>
#load-module module-null-sink<br>
#load-module module-pipe-sink<br>
<br>
### Automatically load driver modules depending on the hardware available<br>
.ifexists module-hal-detect.so<br>
#load-module module-hal-detect<br>
.else<br>
### Alternatively use the static hardware detection module (for systems that<br>
### lack HAL support)<br>
load-module module-detect<br>
.endif<br>
<br>
### Load several protocols<br>
.ifexists module-esound-protocol-unix.so<br>
load-module module-esound-protocol-unix<br>
.endif<br>
load-module module-native-protocol-unix<br>
<br>
### Network access (may be configured with paprefs, so leave this commented<br>
### here if you plan to use paprefs)<br>
#load-module module-esound-protocol-tcp<br>
#load-module module-native-protocol-tcp<br>
#load-module module-zeroconf-publish<br>
<br>
### Load the RTP reciever module (also configured via paprefs, see above)<br>
#load-module module-rtp-recv<br>
<br>
### Load the RTP sender module (also configured via paprefs, see above)<br>
#load-module module-null-sink sink_name=rtp format=s16be channels=2<br>
rate=44100 description="RTP Multicast Sink"<br>
#load-module module-rtp-send source=rtp.monitor<br>
<br>
### Automatically restore the volume of playback streams<br>
load-module module-volume-restore<br>
<br>
### Automatically restore the default sink/source when changed by the user<br>
during runtime<br>
load-module module-default-device-restore<br>
<br>
### Automatically move streams to the default sink if the sink they are<br>
### connected to dies, similar for sources<br>
load-module module-rescue-streams<br>
<br>
### Automatically suspend sinks/sources that become idle for too long<br>
#load-module module-suspend-on-idle<br>
<br>
### Load X11 bell module<br>
#load-module module-x11-bell sample=x11-bell<br>
<br>
### Register ourselves in the X11 session manager<br>
# Deactivated by default, to avoid deadlock when PA is started as esd from<br>
gnome-session<br>
# Instead we load this via /etc/xdg/autostart/ and "pactl load-module" now<br>
# load-module module-x11-xsmp<br>
<br>
### Load additional modules from GConf settings. This can be configured with<br>
the paprefs tool.<br>
### Please keep in mind that the modules configured by paprefs might<br>
conflict with manually<br>
### loaded modules.<br>
.ifexists module-gconf.so<br>
.nofail<br>
load-module module-gconf<br>
.fail<br>
.endif<br>
<br>
### Publish connection data in the X11 root window<br>
.ifexists module-x11-publish.so<br>
.nofail<br>
load-module module-x11-publish<br>
.fail<br>
.endif<br>
<br>
### Make some devices default<br>
#set-default-sink output<br>
#set-default-source input<br>
----------------------------------------------------------------------<br>
My default alsa driver has been set as pulse.<br>
So when KDE starts , its phonon must iterate my sound drivers to choose what<br>
can be used.<br>
But pulseaudio can not start normally,it is passed by phonon.<br>
But if I type "pulseaudio -vv" in my terminal,it can be worked normally.<br>
I notice there are some information about start pulseaudio daemon in KDE4 in<br>
wiki.<br>
quota:<br>
KDE 4.x<br>
<br>
In KDE4, Fedora 9 uses an env script to start PulseAudio Daemon as part of<br>
the KDE environment.<br>
<br>
I donn't know how I can get it started normally.<br>
<br>
Any idea?<br>
<br>
Or some information about KDE41 and pulseaudio.<br>
<br>
thanks.<br>
<br>
- Done.<br>
<br>
<br><br>---------- 已转发邮件 ----------<br>From: "柴君钧" <<a href="mailto:kofshower@gmail.com">kofshower@gmail.com</a>><br>To: <a href="mailto:pulseaudio-discuss-request@mail.0pointer.de">pulseaudio-discuss-request@mail.0pointer.de</a><br>
Date: Thu, 7 Aug 2008 05:16:59 +0800<br>Subject: Re: Welcome to the "pulseaudio-discuss" mailing list<br><div dir="ltr">Can pulseaudio worktogether with KDE41.<br>A
few days ago I transfer my desktop environment from gnome to KDE4.1
release.Everything is good for use.But pulseaudio which has been
working normally in gnome can not be initialized when KDE starts.<br>
Here is my <a href="http://default.pa/" target="_blank">default.pa</a>:<br>----------------------------------------------------------------------<br>#!/usr/bin/pulseaudio -nF<br>#<br># This file is part of PulseAudio.<br>
#<br># PulseAudio is free software; you can redistribute it and/or modify it<br>
# under the terms of the GNU Lesser General Public License as published by<br># the Free Software Foundation; either version 2 of the License, or<br># (at your option) any later version.<br>#<br># PulseAudio is distributed in the hope that it will be useful, but<br>
# WITHOUT ANY WARRANTY; without even the implied warranty of<br># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU<br># General Public License for more details.<br>#<br># You should have received a copy of the GNU Lesser General Public License<br>
# along with PulseAudio; if not, write to the Free Software Foundation,<br># Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.<br><br>.nofail<br><br>### Load something into the sample cache<br>#load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav<br>
load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav<br>#load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav<br>#load-sample-lazy pulse-access /usr/share/sounds/generic.wav<br><br>.fail<br><br>### Load audio drivers statically (it's probably better to not load<br>
### these drivers manually, but instead use module-hal-detect --<br>### see below -- for doing this automatically)<br>#load-module module-alsa-sink<br>#load-module module-alsa-sink device=equalized<br>load-module module-alsa-sink device=dmix<br>
#load-module module-alsa-source device=hw:1,0<br>#load-module module-oss device="/dev/dsp" sink_name=output source_name=input<br>#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input<br>
#load-module module-null-sink<br>#load-module module-pipe-sink<br><br>### Automatically load driver modules depending on the hardware available<br>.ifexists module-hal-detect.so<br>#load-module module-hal-detect<br>.else<br>
### Alternatively use the static hardware detection module (for systems that<br>### lack HAL support)<br>load-module module-detect<br>.endif<br><br>### Load several protocols<br>.ifexists module-esound-protocol-unix.so<br>
load-module module-esound-protocol-unix<br>.endif<br>load-module module-native-protocol-unix<br><br>### Network access (may be configured with paprefs, so leave this commented<br>### here if you plan to use paprefs)<br>#load-module module-esound-protocol-tcp<br>
#load-module module-native-protocol-tcp<br>#load-module module-zeroconf-publish<br><br>### Load the RTP reciever module (also configured via paprefs, see above)<br>#load-module module-rtp-recv<br><br>### Load the RTP sender module (also configured via paprefs, see above)<br>
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"<br>#load-module module-rtp-send source=rtp.monitor<br><br>### Automatically restore the volume of playback streams<br>
load-module module-volume-restore<br><br>### Automatically restore the default sink/source when changed by the user during runtime<br>load-module module-default-device-restore<br><br>### Automatically move streams to the default sink if the sink they are<br>
### connected to dies, similar for sources<br>load-module module-rescue-streams<br><br>### Automatically suspend sinks/sources that become idle for too long<br>#load-module module-suspend-on-idle<br><br>### Load X11 bell module<br>
#load-module module-x11-bell sample=x11-bell<br><br>### Register ourselves in the X11 session manager<br># Deactivated by default, to avoid deadlock when PA is started as esd from gnome-session<br># Instead we load this via /etc/xdg/autostart/ and "pactl load-module" now<br>
# load-module module-x11-xsmp<br><br>### Load additional modules from GConf settings. This can be configured with the paprefs tool.<br>### Please keep in mind that the modules configured by paprefs might conflict with manually<br>
### loaded modules.<br>.ifexists module-gconf.so<br>.nofail<br>load-module module-gconf<br>.fail<br>.endif<br><br>### Publish connection data in the X11 root window<br>.ifexists module-x11-publish.so<br>.nofail<br>load-module module-x11-publish<br>
.fail<br>.endif<br><br>### Make some devices default<br>#set-default-sink output<br>#set-default-source input<br>----------------------------------------------------------------------<br>My default alsa driver has been set as pulse.<br>
So when KDE starts , its phonon must iterate my sound drivers to choose what can be used.<br>But pulseaudio can not start normally,it is passed by phonon.<br>But if I type "pulseaudio -vv" in my terminal,it can be worked normally.<br>
I notice there are some information about start pulseaudio daemon in KDE4 in wiki.<br>quota:<br><h3>KDE 4.x</h3>
<p>
In KDE4, Fedora 9 uses an env script to start PulseAudio Daemon as part of the KDE environment. <br></p><p>I donn't know how I can get it started normally.</p><p>Any idea?</p><p>Or some information about KDE41 and pulseaudio.</p>
<p>thanks.</p></div></div></div>