Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:pulseaudio [2012/10/23 05:39] – [Tweak so PA is always on] aus9 | wiki:pulseaudio [2013/06/25 04:58] (current) – [Create dbus config] fix echo command aus9 | ||
---|---|---|---|
Line 38: | Line 38: | ||
As its a front end, users need to get the backend (ALSA) correct **first**. | As its a front end, users need to get the backend (ALSA) correct **first**. | ||
- | It increases the ways things can go wrong and as an example | + | It increases the ways things can go wrong and as an example, sound can be muted by pavucontrol |
- | pavucontrol | + | |
The other major issue is for some users, not all, PA puts higher demands on system resources. | The other major issue is for some users, not all, PA puts higher demands on system resources. | ||
Line 79: | Line 78: | ||
* pavucontrol | * pavucontrol | ||
- | Optional | + | Optional, choose paprefs as " |
+ | 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 91: | Line 91: | ||
< | < | ||
mkdir .X.d | mkdir .X.d | ||
- | echo 'dbus-launch --sh-syntax --exit-with-session' | + | echo "dbus-launch --sh-syntax --exit-with-session" |
</ | </ | ||
Please note the dot before and after the capital x please | Please note the dot before and after the capital x please | ||
Line 158: | 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 |
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 194: | 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===== |
- | If this is what you desire, edit file and hash out the module that is shutting | + | While you are tweaking your config files, edit default.pa |
^### Automatically suspend sinks/ | ^### Automatically suspend sinks/ | ||
Line 213: | Line 213: | ||
</ | </ | ||
- | 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. If you do do reverse this tweak, you may have issues with some sound applications wanting to use sound device but PA might not " | ||
+ | |||
+ | 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 242: | Line 246: | ||
=====Persistence? | =====Persistence? | ||
- | No special backups needed | + | No special backups needed |
^etc/ | ^etc/ | ||
to your filetool.lst | to your filetool.lst | ||
+ | |||
+ | But .pulse will fill quickly and impact on creating and restoring mydata as per [[wiki: | ||
+ | |||
+ | So if its an issue try this | ||
+ | |||
+ | Add the .pulse folder to negative backup config file so the entire folder is not saved | ||
+ | edit **/ | ||
+ | ^.pulse^ | ||
+ | |||
+ | But then we lose any changes we made to our config files, so they are added to **/ | ||
+ | ^.pulse/ | ||
+ | ^.pulse/ | ||
+ | |||
+ | 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===== | ||
+ | http:// | ||
+ | |||
+ | What modules are available to be loaded? | ||
+ | < | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | **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 | ||
+ | < | ||
+ | pacmd | ||
+ | load-module module-switch-on-port-available | ||
+ | </ | ||
+ | |||
+ | 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: | ||
+ | |||
+ | Then in pavucontrol, | ||
+ | click output devices tab, and it will default to simultaneous | ||
+ | |||
+ | {{wiki: | ||
+ | |||
+ | Now pavucontrol bottom panel is the actual hardware controls | ||
+ | |||
+ | {{wiki: | ||
+ | |||
+ | But both sets of sliders will still impact on your volume out, ditto the mute speaker icons. Confused yet? | ||
+ | |||
+ | =====Network and sharing===== | ||
+ | see http:// | ||
+ | |||
+ | =====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 | ||
+ | < | ||
+ | arecord -d 20 -f dat / | ||
+ | ALSA lib pcm_dsnoop.c: | ||
+ | arecord: main:660: audio open error: Device or resource busy | ||
+ | </ | ||
+ | |||
+ | =====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 " | ||
+ | |||
+ | But before closing down pavucontrol, | ||
+ | |||
+ | {{wiki: | ||
+ | |||
+ | 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. | ||
+ | |||