Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:pulseaudio [2012/10/25 07:04] – [Negative aspects of PA] grammer aus9wiki:pulseaudio [2013/06/25 04:58] (current) – [Create dbus config] fix echo command aus9
Line 78: Line 78:
    * pavucontrol    * pavucontrol
  
-Optional if needed, choose paprefs as "ondemand" See (new) 88888888888888+Optional, choose paprefs as "ondemand" [[wiki:pulseaudio#paprefs]] 
 +If you need a streamer sound server, to share with others it can be onboot. Obviously if you need paprefs on a regular basis, please change to onboot  
  
 I will tell you when to reboot. (On reboot, home/tc will have a new folder called .pulse) I will tell you when to reboot. (On reboot, home/tc will have a new folder called .pulse)
Line 90: Line 91:
 <code> <code>
 mkdir .X.d mkdir .X.d
-echo 'dbus-launch --sh-syntax --exit-with-session> .X.d/dbus+echo "dbus-launch --sh-syntax --exit-with-session> .X.d/dbus
 </code> </code>
 Please note the dot before and after the capital x please Please note the dot before and after the capital x please
Line 157: Line 158:
 I will repeat, for me, I had no missing errors although a short while ago I did and one stage need to install GConf.tcz but a repeat test seems to have cleared that error. I will repeat, for me, I had no missing errors although a short while ago I did and one stage need to install GConf.tcz but a repeat test seems to have cleared that error.
  
-**googe non-missing errors**\\+**google non-missing errors**\\
 After resolving missing packages for the onboot list, you might still have some that appear to be configuration type errors. After resolving missing packages for the onboot list, you might still have some that appear to be configuration type errors.
 eg eg
Line 193: Line 194:
 reboot to test pulseaudio -v command. If all good, start pavucontrol thru your menu please. reboot to test pulseaudio -v command. If all good, start pavucontrol thru your menu please.
  
-=====Tweak so PA is always on=====+=====Temporary tweak ONLY so PA is always on=====
 While you are tweaking your config files, edit default.pa and hash out the module that is shutting PA down so lines become While you are tweaking your config files, edit default.pa and hash out the module that is shutting PA down so lines become
  
Line 214: Line 215:
 Instead of the start command re-click the pavucontrol icon/menu item. Instead of the start command re-click the pavucontrol icon/menu item.
  
-Once you have tweaked, re-enable the shutdown config option please+Once you have tweaked, re-enable the shutdown config option please. If you do do reverse this tweak, you may have issues with some sound applications wanting to use sound device but PA might not "release" it to them. 
 + 
 +This is another negative aspect of PA but you only need to close down paprefs, pavucontrol and stop using PA commands like pacmd and the autostop function will work. 
  
 =====Tweak sample rate===== =====Tweak sample rate=====
Line 259: Line 262:
 ^.pulse/default.conf^ ^.pulse/default.conf^
  
-If your home is persistent, then you could either use your file manager to delete to bloat, or create a cron job to automate that task+If your home is persistent, then you could either use your file manager to delete the bloat, or create a cron job to automate that task
                    
 =====Modules info===== =====Modules info=====
 http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/ http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/
 +
 +What modules are available to be loaded?
 +<code>
 +/usr/local/lib/pulse-2.1/modules/module-zeroconf-publish.so
 +/usr/local/lib/pulse-2.1/modules/module-zeroconf-discover.so
 +/usr/local/lib/pulse-2.1/modules/module-x11-xsmp.so
 +/usr/local/lib/pulse-2.1/modules/module-x11-publish.so
 +/usr/local/lib/pulse-2.1/modules/module-x11-cork-request.so
 +/usr/local/lib/pulse-2.1/modules/module-x11-bell.so
 +/usr/local/lib/pulse-2.1/modules/module-volume-restore.so
 +/usr/local/lib/pulse-2.1/modules/module-virtual-surround-sink.so
 +/usr/local/lib/pulse-2.1/modules/module-virtual-source.so
 +/usr/local/lib/pulse-2.1/modules/module-virtual-sink.so
 +/usr/local/lib/pulse-2.1/modules/module-udev-detect.so
 +/usr/local/lib/pulse-2.1/modules/module-tunnel-source.so
 +/usr/local/lib/pulse-2.1/modules/module-tunnel-sink.so
 +/usr/local/lib/pulse-2.1/modules/module-switch-on-port-available.so
 +/usr/local/lib/pulse-2.1/modules/module-switch-on-connect.so
 +/usr/local/lib/pulse-2.1/modules/module-suspend-on-idle.so
 +/usr/local/lib/pulse-2.1/modules/module-stream-restore.so
 +/usr/local/lib/pulse-2.1/modules/module-sine.so
 +/usr/local/lib/pulse-2.1/modules/module-sine-source.so
 +/usr/local/lib/pulse-2.1/modules/module-simple-protocol-unix.so
 +/usr/local/lib/pulse-2.1/modules/module-simple-protocol-tcp.so
 +/usr/local/lib/pulse-2.1/modules/module-rygel-media-server.so
 +/usr/local/lib/pulse-2.1/modules/module-rtp-send.so
 +/usr/local/lib/pulse-2.1/modules/module-rtp-recv.so
 +/usr/local/lib/pulse-2.1/modules/module-role-cork.so
 +/usr/local/lib/pulse-2.1/modules/module-rescue-streams.so
 +/usr/local/lib/pulse-2.1/modules/module-remap-sink.so
 +/usr/local/lib/pulse-2.1/modules/module-raop-sink.so
 +/usr/local/lib/pulse-2.1/modules/module-raop-discover.so
 +/usr/local/lib/pulse-2.1/modules/module-position-event-sounds.so
 +/usr/local/lib/pulse-2.1/modules/module-pipe-source.so
 +/usr/local/lib/pulse-2.1/modules/module-pipe-sink.so
 +/usr/local/lib/pulse-2.1/modules/module-oss.so
 +/usr/local/lib/pulse-2.1/modules/module-null-source.so
 +/usr/local/lib/pulse-2.1/modules/module-null-sink.so
 +/usr/local/lib/pulse-2.1/modules/module-native-protocol-unix.so
 +/usr/local/lib/pulse-2.1/modules/module-native-protocol-tcp.so
 +/usr/local/lib/pulse-2.1/modules/module-native-protocol-fd.so
 +/usr/local/lib/pulse-2.1/modules/module-mmkbd-evdev.so
 +/usr/local/lib/pulse-2.1/modules/module-match.so
 +/usr/local/lib/pulse-2.1/modules/module-loopback.so
 +/usr/local/lib/pulse-2.1/modules/module-ladspa-sink.so
 +/usr/local/lib/pulse-2.1/modules/module-jackdbus-detect.so
 +/usr/local/lib/pulse-2.1/modules/module-jack-source.so
 +/usr/local/lib/pulse-2.1/modules/module-jack-sink.so
 +/usr/local/lib/pulse-2.1/modules/module-intended-roles.so
 +/usr/local/lib/pulse-2.1/modules/module-http-protocol-unix.so
 +/usr/local/lib/pulse-2.1/modules/module-http-protocol-tcp.so
 +/usr/local/lib/pulse-2.1/modules/module-hal-detect.so
 +/usr/local/lib/pulse-2.1/modules/module-gconf.so
 +/usr/local/lib/pulse-2.1/modules/module-filter-heuristics.so
 +/usr/local/lib/pulse-2.1/modules/module-filter-apply.so
 +/usr/local/lib/pulse-2.1/modules/module-esound-sink.so
 +/usr/local/lib/pulse-2.1/modules/module-esound-protocol-unix.so
 +/usr/local/lib/pulse-2.1/modules/module-esound-protocol-tcp.so
 +/usr/local/lib/pulse-2.1/modules/module-esound-compat-spawnpid.so
 +/usr/local/lib/pulse-2.1/modules/module-esound-compat-spawnfd.so
 +/usr/local/lib/pulse-2.1/modules/module-equalizer-sink.so
 +/usr/local/lib/pulse-2.1/modules/module-echo-cancel.so
 +/usr/local/lib/pulse-2.1/modules/module-device-restore.so
 +/usr/local/lib/pulse-2.1/modules/module-device-manager.so
 +/usr/local/lib/pulse-2.1/modules/module-detect.so
 +/usr/local/lib/pulse-2.1/modules/module-default-device-restore.so
 +/usr/local/lib/pulse-2.1/modules/module-dbus-protocol.so
 +/usr/local/lib/pulse-2.1/modules/module-console-kit.so
 +/usr/local/lib/pulse-2.1/modules/module-combine.so
 +/usr/local/lib/pulse-2.1/modules/module-combine-sink.so
 +/usr/local/lib/pulse-2.1/modules/module-cli.so
 +/usr/local/lib/pulse-2.1/modules/module-cli-protocol-unix.so
 +/usr/local/lib/pulse-2.1/modules/module-cli-protocol-tcp.so
 +/usr/local/lib/pulse-2.1/modules/module-card-restore.so
 +/usr/local/lib/pulse-2.1/modules/module-bluetooth-proximity.so
 +/usr/local/lib/pulse-2.1/modules/module-bluetooth-discover.so
 +/usr/local/lib/pulse-2.1/modules/module-bluetooth-device.so
 +/usr/local/lib/pulse-2.1/modules/module-augment-properties.so
 +/usr/local/lib/pulse-2.1/modules/module-always-sink.so
 +/usr/local/lib/pulse-2.1/modules/module-alsa-source.so
 +/usr/local/lib/pulse-2.1/modules/module-alsa-sink.so
 +/usr/local/lib/pulse-2.1/modules/module-alsa-card.so
 +</code>
 +
 +**How to load?**\\
 +Way 1 kill pulseaudio, modify default.pa to name new module, restart PA\\
 +Way 2 (more suitable for command line users)\\
 +   * Open terminal 
 +   * pacmd (name of command to type press enter)
 +   * help (pacmd has a help page but for us try
 +   * load-module module-name eg
 +<code>
 +pacmd
 +load-module module-switch-on-port-available
 +</code>
 +
 +If module succeeds you get no feedback, but if it fails you see **Module load failed**.
 +   
 +
 +=====paprefs=====
 +
 +I suggest you load this as ondemand to see if you wish to use or abuse it. If you need to stream music to others, this is what you might be looking for. Lets look at setting up playing 2 or more sounds thru the one set of speaker. Open paprefs, click tab for simultaneous output and tick the box.
 +
 +{{wiki:twid_71_pap.jpg}}
 +
 +Then in pavucontrol, playback tab, click the button between your media player and the mute speaker icon and choose simultaneous OR\\
 +click output devices tab, and it will default to simultaneous
 +
 +{{wiki:twid_72_pasim.jpg?500x300}}
 +
 +Now pavucontrol bottom panel is the actual hardware controls
 +
 +{{wiki:twid_73_pasim2.jpg?500x300}}
 +
 +But both sets of sliders will still impact on your volume out, ditto the mute speaker icons. Confused yet?
 +
 +=====Network and sharing=====
 +see http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Network
 +
 +=====PA controls sound device issues=====
 +If you have pavucontrol open, then PA controls your device and won't release. This impacts on microphone testing of arecord as per alsa wiki.\\
 +Solution close down all pavucontrol and paprefs and wait about 10 seconds and try again.
 +
 +You know PA has control when you see an error like this
 +<code>
 +arecord -d 20 -f dat /tmp/test.wav
 +ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave
 +arecord: main:660: audio open error: Device or resource busy
 +</code>
 +
 +=====PA and mic issues=====
 +If you want to record using a normal mic, without using any suspender command, PA will be active and not give control to "arecord" which is a non-PA sound app unless you close down pavucontrol and paprefs and exit any pulseaudio command. Then you wait for the suspend module to work.
 +
 +But before closing down pavucontrol, you may want predict if you sound mic is working without recording. Strange I know but easier to show image.
 +
 +{{wiki:twid_74_pamic1.png}}
 +
 +Now I have deliberately shown a naughty image. I have raised volumes higher than my hardware can do. This proves PA is a post-processor and is a warning do not have volumes set this high....you will have distortion.
 +
 +Now I reset the volume for me around 80%
 +
 +Now if your voice on playback has sufficient volume then one issue is resolved. But you can have machine hum. This may be easy to resolve by having your mic input as far away as possible from any fan noise. (B) If you can, consider reducing any fan speeds on your pc. 
 +
 +
  
  
Print/export
QR Code
QR Code wiki:pulseaudio (generated for current page)