{"id":791,"date":"2010-05-27T16:09:07","date_gmt":"2010-05-27T14:09:07","guid":{"rendered":"http:\/\/raftaman.net\/?p=791"},"modified":"2021-05-15T11:46:40","modified_gmt":"2021-05-15T09:46:40","slug":"pulseaudio-and-lirc","status":"publish","type":"post","link":"https:\/\/possiblelossofprecision.net\/?p=791","title":{"rendered":"PulseAudio and lirc [Update]"},"content":{"rendered":"<p>Changing the system volume with a lirc enabled remote can be a pain in the arse if you don&#8217;t know what to look for. If you do, it&#8217;s quite simple:<\/p>\n<p>There is a package called <strong>&#8216;pulseaudio-module-lirc&#8217;<\/strong> (<a href=\"http:\/\/pulseaudio.org\/wiki\/Modules#module-lirc\">PulseAudio&#8217;s Wiki for module-lirc<\/a>) that contains the volume control module for the PulseAudio sound server.<\/p>\n<p>Install the package via yum<\/p>\n<pre class=\"brush: plain; light: true; title: ; notranslate\" title=\"\">\r\n# yum install pulseaudio-module-lirc\r\n<\/pre>\n<p>and enable it<\/p>\n<pre class=\"brush: plain; light: true; title: ; notranslate\" title=\"\">\r\n# echo &quot;load-module module-lirc&quot; &gt;&gt; \/etc\/pulse\/default.pa\r\n<\/pre>\n<p>Here is a sample <strong><code>~\/.lircrc<\/code><\/strong> entry configured to forward signals to PulseAudio. Note that you may have to change the <em>remote name<\/em> and <em>button names<\/em> to match those in you <strong><code>\/etc\/lirc\/lircd.conf<\/code><\/strong>.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nbegin\r\n   remote = &#x5B;your remote name]\r\n   prog = pulseaudio\r\n   config = volume-down\r\n   button = &#x5B;your vol_down button name]\r\n   repeat = 0\r\nend\r\n\r\nbegin\r\n   remote =  &#x5B;your remote name]\r\n   prog = pulseaudio\r\n   config = volume-up\r\n   button = &#x5B;your vol_up button name]\r\n   repeat = 0\r\nend\r\n\r\nbegin\r\n   remote =  &#x5B;your remote name]\r\n   prog = pulseaudio\r\n   config = mute-toggle\r\n   button = &#x5B;your mute button name]\r\nend\r\n<\/pre>\n<p>Available <em>configs<\/em> include: <em>volume-up<\/em>, <em>volume-down<\/em>, <em>mute<\/em>, <em>mute-toggle<\/em> and <em>reset<\/em>. <\/p>\n<p>Eventually, you have to reload PulseAudio:<\/p>\n<pre class=\"brush: plain; light: true; title: ; notranslate\" title=\"\">\r\n# killall pulseaudio &amp;&amp; pulseaudio -D\r\n<\/pre>\n<p><strong>Update:<\/strong><\/p>\n<p>If you happen to have <strong>multiple PulseAudio sinks<\/strong>, you may want to modify <nobr><code>\/etc\/pulse\/default.pa<\/code><\/nobr> like this<\/p>\n<pre class=\"brush: plain; light: true; title: ; notranslate\" title=\"\">\r\n&#x5B;...]\r\nload-module module-lirc sink=&#x5B;your sink name]\r\n&#x5B;...]\r\n<\/pre>\n<p>where you can get the sink name from PulseAudio manager <strong>&#8216;paman&#8217;<\/strong> (flip to the &#8216;devices&#8217; tab, and copy the name of the sink that you want the lirc module to control).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Changing the system volume with a lirc enabled remote can be a pain in the arse if you don&#8217;t know what to look for. If you do, it&#8217;s quite simple: There is a package called &#8216;pulseaudio-module-lirc&#8217; (PulseAudio&#8217;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&#8230; <a href=\"https:\/\/possiblelossofprecision.net\/?p=791\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7,8,30],"class_list":["post-791","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-fedora","tag-lirc","tag-pulseaudio"],"_links":{"self":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=791"}],"version-history":[{"count":13,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/791\/revisions"}],"predecessor-version":[{"id":2684,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/791\/revisions\/2684"}],"wp:attachment":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}