Difference between revisions of "Talk:PulseAudio"

From ArchWiki
Jump to: navigation, search
(JACK: Close.)
(Added comment about @DEFAULT_SINK@)
 
(106 intermediate revisions by 20 users not shown)
Line 2: Line 2:
 
Can anybody give an example where to use the ''pcm.pulse'' setting? --[[User:BertiBoeller|BertiBoeller]] 12:33, 17 October 2009 (EDT)
 
Can anybody give an example where to use the ''pcm.pulse'' setting? --[[User:BertiBoeller|BertiBoeller]] 12:33, 17 October 2009 (EDT)
  
== Realtime scheduling ==
+
== Abandoned draft ==
Should user be in group pulse-access as well to be able to use rt scheduling? - [[User:Xabre|Xabre]] 18:33 CET September 5, 2010
+
  
== Dbus before pulseaudio? ==
+
[[PulseAudio/Configuration]] was initially created to discuss PA configuration; then its goal was changed to be a replacement for this whole article; then it was abandoned. Currently it's marked for merge in [[PulseAudio#Configuration]]: is there anything worth being merged from there? -- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 04:44, 30 November 2014 (UTC)
Is there a reason to start dbus before pulseaudio anymore? Shouldn't it be removed from the Running section? --[[User:Duckgrindrr|Duckgrindrr]] 18:25, 7 July 2011 (EDT)
+
  
== Flash Player ==
+
:It seems to focus more on generic explanation/configuration, where the main article is mostly about troubleshooting (considering the size of that section, you'd consider moving it to [[PulseAudio/Troubleshooting]] ...) -- [[User:Alad|Alad]] ([[User talk:Alad|talk]]) 10:40, 30 November 2014 (UTC)
  
I think the lib32-* libraries are no longer needed since flashplugin11 is a native x86_64 version.
+
::How much sense would it make to actually merge [[PulseAudio/Configuration#Easy_configuration]] and [[PulseAudio/Configuration#Advanced_configuration]] and then simply redirect [[PulseAudio/Configuration]] to [[PulseAudio#Configuration]]?
 +
::I'd agree with moving Troubleshooting to [[PulseAudio/Troubleshooting]].
 +
::-- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 12:01, 2 December 2014 (UTC)
  
== Users in audio group ==
+
:::I do agree it makes sense to merge [[PulseAudio/Configuration#Easy_configuration]] and [[PulseAudio/Configuration#Advanced_configuration]] in [[PulseAudio/Configuration]]. I made an attempt in this way. [[User:Gabx|Gabx]] ([[User talk:Gabx|talk]]) 18:24, 28 December 2014 (UTC)
  
There is a note in the Installation section saying that ''PA wiki recommends that users should not be part of the "audio" group.''
+
::::I like what I see so far, more extensive configuration in the main article also allows to cut back on [[PulseAudio/Troubleshooting]]. -- [[User:Alad|Alad]] ([[User talk:Alad|talk]]) 23:29, 28 December 2014 (UTC)
  
But in fact PA wiki says that if the files permissions in {{ic|/dev/snd/}} don't contain a plus character in the end (this is the case on my laptop, so I assume this is the case on Arch more generally), users '''must''' be part of the "audio" group.
+
== Restore package list ==
 +
Why [https://wiki.archlinux.org/index.php?title=PulseAudio&diff=381413&oldid=381339 revert the list]? I think Arch News is just a temp reminder. Arch Wiki should keep all needed info.--[[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 09:37, 1 August 2015 (UTC)
  
So, is this note really relevant? --[[User:Ianux|Ianux]] ([[User talk:Ianux|talk]]) 16:21, 17 June 2012 (UTC)
+
:I'm not sure what the right policy is for this (hence my query in my edit summary) but I would just point out that the [https://www.archlinux.org/news/?page=12 archive] does stretch back to 2002 so I don't think it's unsafe to link to that material. -- [[User:Chazza|Chazza]] ([[User talk:Chazza|talk]]) 16:34, 1 August 2015 (UTC)
  
== <s>JACK </s>==
+
::That's true, but the set of split packages can change in the future... -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 18:37, 1 August 2015 (UTC)
 +
::: Exactly, so at that time, the news page is out of date and only wiki page could be updated to keep up.--[[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 12:57, 19 August 2015 (UTC)
  
In the [[JACK#PulseAudio|JACK Page]] there is this link to here, where "Pulse through Jack" should be explained, but i couldn't find.  
+
:::We should ask for a more extensive optdepends instead of maintaining this information here. -- [[User:Alad|Alad]] ([[User talk:Alad|talk]]) 19:03, 1 August 2015 (UTC)
My system works along this Tip: http://www.pclinuxos.com/forum/index.php?topic=75147.0
+
Should we add this Topic to PulseAudi-Page? --[[User:Lemondreas|Lemondreas]] ([[User talk:Lemondreas|talk]]) 05:36, 13 November 2012 (UTC)
+
:I've fixed that link. Info about Pulseaudio and JACK can be found here : [[PulseAudio/Examples#PulseAudio_through_JACK_the_new_new_way]] [[User:Hellpe|Hellpe]] ([[User talk:Hellpe|talk]]) 17:16, 11 March 2013 (UTC)
+
  
== VirtualBox + ALSA + PulseAudio = All Looks Good But No Audible Sound ==
+
::::Alternatively creating a ''pulseaudio-modules'' group should be equally simple for the packager, more comprehensible to the user and most naturally referenceable from the wiki. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 19:14, 1 August 2015 (UTC)
 +
:::::Then before a group is created, should we restore the package list?--[[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 12:57, 19 August 2015 (UTC)
  
Not sure if this should be added to the page, but I encountered the following bug under similar conditions to the filer (with the exception of using KDE 4 rather than GNOME 3, however that doesn't make a difference in this particular case):
+
::::::I don't think any action need be taken until such a time that the set of split packages changes. -- [[User:Chazza|Chazza]] ([[User talk:Chazza|talk]]) 17:14, 7 September 2015 (UTC)
  
[https://bugs.freedesktop.org/show_bug.cgi?id=54673 FreeDesktop Bug 54673 - master volume at zero and muted when pulseaudio starts]
+
:::::::Considering [https://wiki.archlinux.org/index.php?title=PulseAudio&diff=next&oldid=408749], I think including the list explicitly is useful already. Restored in [https://wiki.archlinux.org/index.php?title=PulseAudio&diff=409861&oldid=409859]. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 14:30, 22 November 2015 (UTC)
  
The same longer-term workaround as listed in the bug report appears to be working for me so far (following the [[PulseAudio#Muted_audio_device|Muted audio device]] instructions on the page and then adjusting the "Master" channel volume worked for me to immediately recover the volume, but it seems it won't stay that way across sessions as per bug report).
+
== Equalizer module is unsupported ==
  
The report itself - filed in September 2012 - ends with a patch proposal, however it isn't clear what the status of same is at this writing. [[User:Aexoxea|aexoxea]] ([[User_talk:Aexoxea|talk]]) 09:24, 2 December 2012 (UTC)
+
As of {{pkg|pulseaudio}}-7.0-2, loading the {{ic|module-equalizer-sink}} module results in the following warning:
  
== dmix backend (ALSA) ==
+
pulseaudio[535]: W: [pulseaudio] module-equalizer-sink.c: module-equalizer-sink is currently unsupported, and can sometimes cause PulseAudio crashes, increased latency or audible artifacts.
 +
pulseaudio[535]: W: [pulseaudio] module-equalizer-sink.c: If you're facing audio problems, try unloading this module as a potential workaround.
  
I have added a section to 'Backend Configuration', which describes how to use '''dmix''' as backend instead of hw device. Please be free to correct me. [[User:Foks|Foks]] ([[User talk:Foks|talk]]) 15:32, 2 January 2013 (UTC)
+
Running ''qpaeq'' then makes PulseAudio crash with this error:
 +
 
 +
pulseaudio[535]: E: [pulseaudio] iface-module.c: Assertion 'pa_dbus_protocol_add_interface(m->dbus_protocol, m->path, &module_interface_info, m) >= 0' failed at modules/dbus/iface-module.c:309, function pa_dbusiface_module_new(). Aborting.
 +
 
 +
-- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 08:43, 28 September 2015 (UTC)
 +
 
 +
:This is not correct. Recently installed {{pkg|pulseaudio}}-7.0-2 and following the instructions in the wiki am successfully running the equalizer.
 +
 
 +
:[[User:Brettski|brettski]] ([[User talk:Brettski|talk]]) 03:46, 13 October 2015 (UTC)
 +
 
 +
::This is odd. You should have at least seen the first warning in your journal... -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 07:01, 13 October 2015 (UTC)
 +
 
 +
== Adding User to Audio Group ==
 +
 
 +
Currently, the article says, "There is no need to add your user to audio group, as it uses udev and logind to dynamically give access to the currently "active" user". That is a little heavy-handed; perhaps a wording like "There is '''usually''' no need..."? For instance, on one of my machines running pulse audio, I was unable to play any sounds as "me", but could using root. The server is running headless, and I access it over SSH. It's understandable that udev doesn't consider "me" the currently "active" user in this scenario. It is essential to know that adding a user to the audio group helps in this circumstance, so I appreciate the explicit mention of that group. Does my rewording make sense, or is there a better rewording? [[User:Lmat|Lmat]] ([[User talk:Lmat|talk]]) 14:29, 1 March 2016 (UTC)
 +
:This looks like a reasonable rewording. Additionally I would considering explicitly describing in which cases it might make sense in the Wiki. -- [[User:Edh|Edh]] ([[User talk:Edh|talk]]) 14:56, 1 March 2016 (UTC)
 +
 
 +
== <s>Keyboard volume control using "amixer -D pulse"</s> ==
 +
 
 +
[https://wiki.archlinux.org/index.php?title=PulseAudio&type=revision&diff=444476&oldid=444475 This change] was reverted, pointing out to [https://wiki.archlinux.org/index.php?title=PulseAudio/Troubleshooting&oldid=443443#Output_stuck_muted_while_Master_is_toggled Troubleshooting section], which mentions that using {{ic|-D pulse}} works. Well, my edit had that parameter. However, I also see that troubleshooting section is being considered for removal.
 +
 
 +
Why do I prefer the {{ic|amixer}} alternative? Because I often switch profiles (using {{ic|pacmd set-card-profile 0 output:…}} to switch between HDMI output and analog-stereo output), and thus the sink number changes all the time. This would require some extra code to detect which is the current sink number, and use that number to the next command. Or, as I discovered, the simple {{ic|amixer -D pulse}} command also works.
 +
 
 +
Personally, I'd prefer to have both options listed, as they might be useful for different users in different moments. --[[User:Denilsonsa|Denilsonsa]] ([[User talk:Denilsonsa|talk]]) 21:55, 3 August 2016 (UTC)
 +
 
 +
:You can use {{ic|@DEFAULT_SINK@}} as pointed out in the [[#Default sink @DEFAULT_SINK@ and keyboard control|next discussion]], closing. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 11:01, 4 September 2016 (UTC)
 +
 
 +
== Default sink @DEFAULT_SINK@ and keyboard control ==
 +
 
 +
I got a hard time finding {{ic|pactl set-sink-volume @DEFAULT_SINK@ -5%}}.
 +
 
 +
{{ic|@DEFAULT_SINK@}} comes very handy and fixes a long time frustration with PulseAudio (with sink indices changing each time I plug unplug a jack, or to get commands working across multiple machines with different sinks).
 +
 
 +
It will probably help more people to make some changes or add a Tip about {{ic|@DEFAULT_SINK@}} somewhere ([[PulseAudio#Keyboard volume control]] ?).
 +
 
 +
Only after finding about it, I found [[Xbindkeys#Xbindkeysrc]]. Maybe [[PulseAudio#Keyboard volume control]] could also Tip about [[Xbindkeys#Xbindkeysrc]].
 +
 
 +
(I would have edit the page, if only I knew which changes was best: add a Tip and/or change the command lines and/or something else ?)
 +
 
 +
-- [[User:Gravemind2a|Gravemind2a]] ([[User talk:Gravemind2a|talk]]) 09:55, 4 September 2016 (UTC)
 +
 
 +
: I suppose changing the commands is the best approach. However for those who want to edit a specific sink a small note should be added. This is just my personal opinion on this matter. -- [[User:Edh|Edh]] ([[User talk:Edh|talk]]) 10:11, 4 September 2016 (UTC)
 +
 
 +
:: I think it is better suited as a tip, because if you start directly with {{ic|@DEFAULT_SINK@}}, it's not clear at all what the shortcut is for. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 11:07, 4 September 2016 (UTC)
 +
 
 +
:: I've added the tip and edited the [[xbindkeys]] page to link to both [[PulseAudio]] and [[ALSA]] pages for alternative commands. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 11:37, 4 September 2016 (UTC)
 +
 
 +
::: Thanks. I also discovered {{ic|@DEFAULT_SOURCE@}} (for microphone) and I've added tips in [[PulseAudio/Examples#Set default input sources]] and [[PulseAudio/Examples#Set the default output source]] -- [[User:Gravemind2a|Gravemind2a]] ([[User talk:Gravemind2a|talk]]) 11:55, 4 September 2016 (UTC)
 +
 
 +
: Hey, Gravemind2a, does {{ic|amixer -q -D pulse sset Master 5%+ unmute}} work for you? Take a look at my comment right above yours, in this Talk page. --[[User:Denilsonsa|Denilsonsa]] ([[User talk:Denilsonsa|talk]]) 11:03, 4 September 2016 (UTC)
 +
 
 +
:: Yes it works. But if it also works directly with PulseAudio {{ic|@DEFAULT_SINK@}}, why go through alsa amixer ? (and also long time ago I had issues with fast repeating asynchronous amixer volume commands making left/right speaker unbalanced, that actually made me drop Alsa in favor to PulseAudio)--  [[User:Gravemind2a|Gravemind2a]] ([[User talk:Gravemind2a|talk]]) 11:29, 4 September 2016 (UTC)

Latest revision as of 11:55, 4 September 2016

Configuration of the PulseAudio ALSA plugin

Can anybody give an example where to use the pcm.pulse setting? --BertiBoeller 12:33, 17 October 2009 (EDT)

Abandoned draft

PulseAudio/Configuration was initially created to discuss PA configuration; then its goal was changed to be a replacement for this whole article; then it was abandoned. Currently it's marked for merge in PulseAudio#Configuration: is there anything worth being merged from there? -- Kynikos (talk) 04:44, 30 November 2014 (UTC)

It seems to focus more on generic explanation/configuration, where the main article is mostly about troubleshooting (considering the size of that section, you'd consider moving it to PulseAudio/Troubleshooting ...) -- Alad (talk) 10:40, 30 November 2014 (UTC)
How much sense would it make to actually merge PulseAudio/Configuration#Easy_configuration and PulseAudio/Configuration#Advanced_configuration and then simply redirect PulseAudio/Configuration to PulseAudio#Configuration?
I'd agree with moving Troubleshooting to PulseAudio/Troubleshooting.
-- Kynikos (talk) 12:01, 2 December 2014 (UTC)
I do agree it makes sense to merge PulseAudio/Configuration#Easy_configuration and PulseAudio/Configuration#Advanced_configuration in PulseAudio/Configuration. I made an attempt in this way. Gabx (talk) 18:24, 28 December 2014 (UTC)
I like what I see so far, more extensive configuration in the main article also allows to cut back on PulseAudio/Troubleshooting. -- Alad (talk) 23:29, 28 December 2014 (UTC)

Restore package list

Why revert the list? I think Arch News is just a temp reminder. Arch Wiki should keep all needed info.--Fengchao (talk) 09:37, 1 August 2015 (UTC)

I'm not sure what the right policy is for this (hence my query in my edit summary) but I would just point out that the archive does stretch back to 2002 so I don't think it's unsafe to link to that material. -- Chazza (talk) 16:34, 1 August 2015 (UTC)
That's true, but the set of split packages can change in the future... -- Lahwaacz (talk) 18:37, 1 August 2015 (UTC)
Exactly, so at that time, the news page is out of date and only wiki page could be updated to keep up.--Fengchao (talk) 12:57, 19 August 2015 (UTC)
We should ask for a more extensive optdepends instead of maintaining this information here. -- Alad (talk) 19:03, 1 August 2015 (UTC)
Alternatively creating a pulseaudio-modules group should be equally simple for the packager, more comprehensible to the user and most naturally referenceable from the wiki. -- Lahwaacz (talk) 19:14, 1 August 2015 (UTC)
Then before a group is created, should we restore the package list?--Fengchao (talk) 12:57, 19 August 2015 (UTC)
I don't think any action need be taken until such a time that the set of split packages changes. -- Chazza (talk) 17:14, 7 September 2015 (UTC)
Considering [1], I think including the list explicitly is useful already. Restored in [2]. -- Lahwaacz (talk) 14:30, 22 November 2015 (UTC)

Equalizer module is unsupported

As of pulseaudio-7.0-2, loading the module-equalizer-sink module results in the following warning:

pulseaudio[535]: W: [pulseaudio] module-equalizer-sink.c: module-equalizer-sink is currently unsupported, and can sometimes cause PulseAudio crashes, increased latency or audible artifacts.
pulseaudio[535]: W: [pulseaudio] module-equalizer-sink.c: If you're facing audio problems, try unloading this module as a potential workaround.

Running qpaeq then makes PulseAudio crash with this error:

pulseaudio[535]: E: [pulseaudio] iface-module.c: Assertion 'pa_dbus_protocol_add_interface(m->dbus_protocol, m->path, &module_interface_info, m) >= 0' failed at modules/dbus/iface-module.c:309, function pa_dbusiface_module_new(). Aborting.

-- Lahwaacz (talk) 08:43, 28 September 2015 (UTC)

This is not correct. Recently installed pulseaudio-7.0-2 and following the instructions in the wiki am successfully running the equalizer.
brettski (talk) 03:46, 13 October 2015 (UTC)
This is odd. You should have at least seen the first warning in your journal... -- Lahwaacz (talk) 07:01, 13 October 2015 (UTC)

Adding User to Audio Group

Currently, the article says, "There is no need to add your user to audio group, as it uses udev and logind to dynamically give access to the currently "active" user". That is a little heavy-handed; perhaps a wording like "There is usually no need..."? For instance, on one of my machines running pulse audio, I was unable to play any sounds as "me", but could using root. The server is running headless, and I access it over SSH. It's understandable that udev doesn't consider "me" the currently "active" user in this scenario. It is essential to know that adding a user to the audio group helps in this circumstance, so I appreciate the explicit mention of that group. Does my rewording make sense, or is there a better rewording? Lmat (talk) 14:29, 1 March 2016 (UTC)

This looks like a reasonable rewording. Additionally I would considering explicitly describing in which cases it might make sense in the Wiki. -- Edh (talk) 14:56, 1 March 2016 (UTC)

Keyboard volume control using "amixer -D pulse"

This change was reverted, pointing out to Troubleshooting section, which mentions that using -D pulse works. Well, my edit had that parameter. However, I also see that troubleshooting section is being considered for removal.

Why do I prefer the amixer alternative? Because I often switch profiles (using pacmd set-card-profile 0 output:… to switch between HDMI output and analog-stereo output), and thus the sink number changes all the time. This would require some extra code to detect which is the current sink number, and use that number to the next command. Or, as I discovered, the simple amixer -D pulse command also works.

Personally, I'd prefer to have both options listed, as they might be useful for different users in different moments. --Denilsonsa (talk) 21:55, 3 August 2016 (UTC)

You can use @DEFAULT_SINK@ as pointed out in the next discussion, closing. -- Lahwaacz (talk) 11:01, 4 September 2016 (UTC)

Default sink @DEFAULT_SINK@ and keyboard control

I got a hard time finding pactl set-sink-volume @DEFAULT_SINK@ -5%.

@DEFAULT_SINK@ comes very handy and fixes a long time frustration with PulseAudio (with sink indices changing each time I plug unplug a jack, or to get commands working across multiple machines with different sinks).

It will probably help more people to make some changes or add a Tip about @DEFAULT_SINK@ somewhere (PulseAudio#Keyboard volume control ?).

Only after finding about it, I found Xbindkeys#Xbindkeysrc. Maybe PulseAudio#Keyboard volume control could also Tip about Xbindkeys#Xbindkeysrc.

(I would have edit the page, if only I knew which changes was best: add a Tip and/or change the command lines and/or something else ?)

-- Gravemind2a (talk) 09:55, 4 September 2016 (UTC)

I suppose changing the commands is the best approach. However for those who want to edit a specific sink a small note should be added. This is just my personal opinion on this matter. -- Edh (talk) 10:11, 4 September 2016 (UTC)
I think it is better suited as a tip, because if you start directly with @DEFAULT_SINK@, it's not clear at all what the shortcut is for. -- Lahwaacz (talk) 11:07, 4 September 2016 (UTC)
I've added the tip and edited the xbindkeys page to link to both PulseAudio and ALSA pages for alternative commands. -- Lahwaacz (talk) 11:37, 4 September 2016 (UTC)
Thanks. I also discovered @DEFAULT_SOURCE@ (for microphone) and I've added tips in PulseAudio/Examples#Set default input sources and PulseAudio/Examples#Set the default output source -- Gravemind2a (talk) 11:55, 4 September 2016 (UTC)
Hey, Gravemind2a, does amixer -q -D pulse sset Master 5%+ unmute work for you? Take a look at my comment right above yours, in this Talk page. --Denilsonsa (talk) 11:03, 4 September 2016 (UTC)
Yes it works. But if it also works directly with PulseAudio @DEFAULT_SINK@, why go through alsa amixer ? (and also long time ago I had issues with fast repeating asynchronous amixer volume commands making left/right speaker unbalanced, that actually made me drop Alsa in favor to PulseAudio)-- Gravemind2a (talk) 11:29, 4 September 2016 (UTC)