{"id":336,"date":"2007-03-02T10:56:44","date_gmt":"2007-03-02T16:56:44","guid":{"rendered":"http:\/\/blog.codedread.com\/archives\/2007\/03\/02\/setting-up-opensuse-with-a-remote-control\/"},"modified":"2007-03-02T10:56:44","modified_gmt":"2007-03-02T16:56:44","slug":"setting-up-opensuse-with-a-remote-control","status":"publish","type":"post","link":"https:\/\/www.codedread.com\/blog\/archives\/2007\/03\/02\/setting-up-opensuse-with-a-remote-control\/","title":{"rendered":"Setting Up OpenSUSE with a Remote Control"},"content":{"rendered":"<p>I finally settled on <a href=\"http:\/\/blog.codedread.com\/archives\/2007\/02\/12\/my-barriers-to-geeking-out-with-myth\/\">a remote control solution<\/a> for my Home Theater Personal Computer (HTPC):  The <a href=\"http:\/\/www.amazon.com\/gp\/product\/B0002808S4?ie=UTF8&tag=codedread-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B0002808S4\">SnapStream Firefly PC Remote<\/a><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.assoc-amazon.com\/e\/ir?t=codedread-20&l=as2&o=1&a=B0002808S4\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/>, $49.99 USD with free shipping from Amazon. Here's how to set things up in OpenSUSE 10.2.  <!--more--><\/p>\n<p><script type=\"text\/javascript\" src=\"http:\/\/www.codedread.com\/googleads.js\"><\/script><br \/>\n<script type=\"text\/javascript\" src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\"><\/script><\/p>\n<p>What's great about the Firefly is that it works on RF, not InfraRed, meaning this thing can work through walls and your PC\/receiver does not need to be near your TV or even in the same room.  This was ideal for me, because I'm using my Suse\/Myth box with audio\/video cables running to my TV in a different room about 30 feet away.<\/p>\n<h3>Setting Up Firefly In Windows<\/h3>\n<p>Out of the box, the thing works beautifully in Windows.  Just follow the \"quick start\" sheet:<\/p>\n<ul>\n<li>Put batteries in remote<\/li>\n<li>Put CD in disk drive<\/li>\n<li>Install software<\/li>\n<li>Plug RF Receiver into a spare USB port<\/li>\n<li>Follow on-screen instructions by pressing some of the remote's buttons<\/li>\n<\/ul>\n<p>The Firefly remote comes with trial versions of their HTPC software for Windows called \"Beyond Media Basic\", however I wasn't too interested in that (particularly since trying out a video file ended up hanging it when I had switched video output to my TV).  I was more interested in getting this remote working in OpenSUSE 10.2.<\/p>\n<p><script type=\"text\/javascript\" src=\"http:\/\/www.codedread.com\/googleads.js\"><\/script><br \/>\n<script type=\"text\/javascript\" src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\"><\/script><\/p>\n<h3>Setting Up Firefly In OpenSUSE 10.2<\/h3>\n<p>Linux has a pretty mature package for remote controlling the PC called <a href=\"http:\/\/www.lirc.org\/\" title=\"Linux Infra Red Controller\">LIRC<\/a> that has become a catch-all software package for not just infra-red devices, but RF remote devices like the Firefly.<\/p>\n<p>Setting it up was pretty easy.  You will need to be root for most of these steps:<\/p>\n<ul>\n<li>Put batteries in remote<\/li>\n<li>Plug RF Receiver into a spare USB port<\/li>\n<li>Using Yast > Software > Software Management, make sure the following packages are installed:  lirc, lirc-kmp-default.  The lirc-kmp-default package is absolutely required because it contains the ATI USB driver (lirc_atiusb) which is what we will use to work with the Firefly remote.<\/li>\n<li>Add the following two lines to \/etc\/modprobe.local.conf:\n<div class=\"code\">alias char-major-61 lirc_atiusb<br \/>\nalias lirc_dev lirc_atiusb<\/div>\n<\/li>\n<li>Next, you need to create an \/etc\/lircd.conf file.  <a href=\"http:\/\/www.codedread.com\/lircd.conf\" title=\"LIRC configuration file\">This file<\/a> is the one I used (copied from other Linux sites).<\/li>\n<li>Open Yast > System > System Services (Runlevel).  Select \"lirc\" in the list of services and click the \"Enable\" button.  Now we have set up LIRC software\/service to run upon boot-up.<\/li>\n<\/ul>\n<p>Once you've done this, it means your driver has been installed and your system has been setup to run the LIRC service.  You can try out the command-line tool \"irw\" if you want to verify that.  Type \"irw\" in the command-line, then press some buttons on the remote - you should see a notification in the console window whenever a button has been pressed.  You can use &#60;ctrl>+c to stop irw.<\/p>\n<p>Now the last step is to set up a configuration file that maps buttons on the remote to functions in each application that you want to configure for LIRC.  This includes most of the media players that ship with default distributions.  If you're not sure what to do (like I was), you can start with <a href=\"http:\/\/www.codedread.com\/.lircrc\" title=\"Sample LIRC keymap file\">this file<\/a> and put it in your home directory, saved as .lircrc.  This rc file is how I set up to use the <a href=\"http:\/\/xinehq.de\/\" title=\"xine video player\">xine video player<\/a>.  Note that if you have multiple users, you might want to save this file as \/etc\/lircrc instead.  Also, I should add that tweaking the lircrc file is pretty straightforward, even for a Linux newbie.<\/p>\n<p>If you're looking for key-mapping for MythTV you can start <a href=\"http:\/\/www.mythtv.org\/wiki\/index.php\/Snapstream_Firefly\">here<\/a>, but be fore-warned that some of the key-mappings are spelled incorrectly.  When I get a chance, I'll post my full lircrc file with Myth mappings.<\/p>\n<p><script type=\"text\/javascript\" src=\"http:\/\/www.codedread.com\/googleads.js\"><\/script><br \/>\n<script type=\"text\/javascript\" src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I finally settled on a remote control solution for my Home Theater Personal Computer (HTPC): The SnapStream Firefly PC Remote, $49.99 USD with free shipping from Amazon. Here&#8217;s how to set things up in OpenSUSE 10.2.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,25,11],"tags":[],"class_list":["post-336","post","type-post","status-publish","format-standard","hentry","category-linux","category-software","category-technology"],"_links":{"self":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts\/336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/comments?post=336"}],"version-history":[{"count":0,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts\/336\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/media?parent=336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/categories?post=336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/tags?post=336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}