{"id":305,"date":"2016-02-03T21:09:38","date_gmt":"2016-02-04T05:09:38","guid":{"rendered":"http:\/\/www.yootopia.com\/mystory\/wp\/?p=305"},"modified":"2016-02-03T22:52:25","modified_gmt":"2016-02-04T06:52:25","slug":"volumio-audio-media-player-remote-control","status":"publish","type":"post","link":"http:\/\/www.yootopia.com\/mystory\/wp\/?p=305","title":{"rendered":"Volumio &#8211; Audio Media Player &#8211; Remote Control"},"content":{"rendered":"<p>I have been using Volumio on Raspberry Pi since Volumio version Beta 1.1 and I am happy with it that I can play my FLACs and MP3s directly from my home Free4NAS server via SMB mounts.<\/p>\n<p>With my recent home audio upgrades, I want to control Volumio with remote control so I look for that info on the web.<\/p>\n<p><a href=\"https:\/\/volumio.org\/forum\/how-installed-lirc-with-receiver-and-remote-volumio-t360.html\" target=\"_blank\">https:\/\/volumio.org\/forum\/how-installed-lirc-with-receiver-and-remote-volumio-t360.html<\/a><br \/>\n<a href=\"https:\/\/volumio.org\/forum\/using-remote-with-volumio-t1923.html\" target=\"_blank\">https:\/\/volumio.org\/forum\/using-remote-with-volumio-t1923.html<\/a><\/p>\n<p>My MCE remote is Rosewill RRC-126: <a href=\"http:\/\/amzn.com\/B003WM5J0O\" target=\"_blank\">http:\/\/amzn.com\/B003WM5J0O<\/a><\/p>\n<p>Installing lirc package:<\/p>\n<pre>\r\n > ssh pi@volumio\r\n (password is raspberry)\r\n > sudo apt-get update\r\n > sudo apt-get install lirc\r\n<\/pre>\n<p>Testing:<\/p>\n<pre>\r\n > mode2 -d \/dev\/lirc0\r\n<\/pre>\n<p>Now, if you press any button on the remote, you should see a bunch of pulse\/space messages.<\/p>\n<p>Editing \/etc\/lirc\/hardware.con:<\/p>\n<pre>\r\n > sudo vi \/etc\/lirc\/hardware.conf\r\n \r\n # \/etc\/lirc\/hardware.conf\r\n #\r\n # Arguments which will be used when launching lircd\r\n LIRCD_ARGS=\"--uinput\" \r\n \r\n #Don't start lircmd even if there seems to be a good config file\r\n #START_LIRCMD=false\r\n \r\n #Don't start irexec, even if a good config file seems to exist.\r\n #START_IREXEC=false\r\n \r\n #Try to load appropriate kernel modules\r\n LOAD_MODULES=true\r\n \r\n # Run \"lircd --driver=help\" for a list of supported drivers.\r\n DRIVER=\"default\"\r\n # usually \/dev\/lirc0 is the correct setting for systems using udev\r\n DEVICE=\"\/dev\/lirc0\"\r\n MODULES=\"mceusb\"\r\n  \r\n # Default configuration files for your hardware if any\r\n LIRCD_CONF=\"\"\r\n LIRCMD_CONF=\"\"\r\n<\/pre>\n<p>Now we need to learn lirc with IR commands:<br \/>\n<a href=\"http:\/\/lirc-remotes.sourceforge.net\/remotes-table.html\" target=\"_blank\">http:\/\/lirc-remotes.sourceforge.net\/remotes-table.html<\/a><\/p>\n<pre>\r\n > sudo \/etc\/init.d\/lirc stop\r\n > irrecord -n -d \/dev\/lirc0 ~\/lircd.conf\r\n<\/pre>\n<p>Now copy this newly created lircd.conf<\/p>\n<pre>\r\n > sudo mv \/etc\/lirc\/lircd.conf \/etc\/lirc\/lircd.conf.orig\r\n > sudo mv ~\/lircd.conf \/etc\/lirc\/lircd.conf\r\n<\/pre>\n<p>(for my Rosewill MCE USB dongle remote, I am using <a href=\"https:\/\/sf.net\/p\/lirc-remotes\/code\/ci\/master\/tree\/remotes\/mceusb\/mceusb.lircd.conf\" target=\"_blank\">mceusb.lircd.conf<\/a>)<\/p>\n<p>Now start lircd<\/p>\n<pre>\r\n > sudo \/etc\/init.d\/lirc start\r\n<\/pre>\n<p>Testing Config file:<\/p>\n<pre>\r\n > irw\r\n<\/pre>\n<p>Creating .lircrc file:<\/p>\n<pre>\r\n > vi \/home\/pi\/.lircrc\r\nbegin\r\n  remote = mceusb\r\n  button = KEY_PAUSE\r\n  prog   = irexec\r\n  config = mpc toggle\r\nend\r\nbegin\r\n  remote = mceusb\r\n  button = KEY_NEXT\r\n  prog   = irexec\r\n  config = mpc next;mpc play\r\nend\r\nbegin\r\n  remote = mceusb\r\n  button = KEY_AGAIN\r\n  prog   = irexec\r\n  config = mpc prev;mpc play\r\nend\r\nbegin\r\n  remote = mceusb\r\n  button = KEY_STOP\r\n  prog   = irexec\r\n  config = mpc stop\r\nend\r\nbegin\r\n  remote = mceusb\r\n  button = KEY_PLAY\r\n  prog   = irexec\r\n  config = mpc play\r\nend\r\n<\/pre>\n<p>Running irexec as a background process:<\/p>\n<pre>\r\n > irexec -d\r\n<\/pre>\n<p>Adding irexec to rc.local to startup after every reboot:<\/p>\n<pre>\r\n > sudo vi \/etc\/rc.local\r\n (add this before exit 0)\r\n(sleep 3;\r\nsudo -u pi irexec -d\r\n)&\r\n<\/pre>\n<p>Reboot<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been using Volumio on Raspberry Pi since Volumio version Beta 1.1 and I am happy with it that I can play my FLACs and MP3s directly from my home Free4NAS server via SMB mounts. With my recent home &hellip; <a href=\"http:\/\/www.yootopia.com\/mystory\/wp\/?p=305\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[90,19,4,79],"tags":[27,85,80,98],"class_list":["post-305","post","type-post","status-publish","format-standard","hentry","category-home-media-center","category-howto","category-projects","category-raspberrypi","tag-audio","tag-howto","tag-raspberry-pi","tag-volumio"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p48Rtg-4V","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/posts\/305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=305"}],"version-history":[{"count":0,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/posts\/305\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}