Archive

Posts Tagged ‘pulseaudio’

PulseAudio and lirc [Update]

May 27th, 2010 RaftaMan No comments

Changing the system volume with a lirc enabled remote can be a pain in the arse if you don’t know what to look for. If you do, it’s quite simple:

There is a package called ‘pulseaudio-module-lirc’ (PulseAudio’s Wiki for module-lirc) that contains the volume control module for the PulseAudio sound server.

Install the package via yum

# yum install pulseaudio-module-lirc

and enable it

# echo "load-module module-lirc" >> /etc/pulse/default.pa

Here is a sample ~/.lircrc entry configured to forward signals to PulseAudio. Note that you may have to change the remote name and button names to match those in you /etc/lirc/lircd.conf.

begin
   remote = [your remote name]
   prog = pulseaudio
   config = volume-down
   button = [your vol_down button name]
   repeat = 0
end

begin
   remote =  [your remote name]
   prog = pulseaudio
   config = volume-up
   button = [your vol_up button name]
   repeat = 0
end

begin
   remote =  [your remote name]
   prog = pulseaudio
   config = mute-toggle
   button = [your mute button name]
end

Available configs include: volume-up, volume-down, mute, mute-toggle and reset.

Eventually, you have to reload PulseAudio:

# killall pulseaudio && pulseaudio -D

Update:

If you happen to have multiple PulseAudio sinks, you may want to modify /etc/pulse/default.pa like this

[...]
load-module module-lirc sink=[your sink name]
[...]

where you can get the sink name from PulseAudio manager ‘paman’ (flip to the ‘devices’ tab, and copy the name of the sink that you want the lirc module to control).

Categories: Uncategorized Tags: , ,

Making MythTV work with pulseaudio in Fedora 12

November 29th, 2009 RaftaMan No comments

If you run mythfrontend 0.22 from RPMfusion, it will automatically try to disable pulseaudio and use the default ALSA output instead. This leads (in most cases) to no audio output at all.

Changing mythtv’s audio output device in the frontend (Utilities/Setup -> Setup -> General -> Audio System -> Audio Output Device) from ‘ALSA:default’ to ‘ALSA:spdif’ worked for me, but then the volume control (internal as well as external) was broken.

But you can easily tell mythtv to stop disabling pulseaudio by setting EXPERIMENTALLY_ALLOW_PULSE_AUDIO=1 in your environment before running mythfrontend.

For example, add an export statement to your .bashrc

echo "export EXPERIMENTALLY_ALLOW_PULSE_AUDIO=1" >> ~/.bashrc

(Of course, if you use another shell, YMMV!)

Set mythtv’s default audio output device to ‘ALSA:default’ and the volume control to Master (instead of PCM) and voilĂ , sound!

Categories: Uncategorized Tags: , ,