Remote Control

Dec 03 2011

Blog - MythTV Reloaded - Day 19

Today was spent primarily on cleanup work.  Most of the time was creating the lircrc file for MythTV to use, which maps the remote control button codes to commands within an application.  Luckily for me I had a backup of the lircrc files that I had been using before the upgrade.  The only problem is that all of the button names changed with the update of LIRC. So instead of "Play" I had to change the config file to act on "KEY_PLAY".  They standardized all of the names on me.  So most of my time was spent figuring out what the proper name was for all of the buttons on my remote and mapping those to the correct commands in MythTV.  

Once that was done I had all of the functionality that I had in my previous install. I figured, however, that as long as I was doing this I might as well go for gold.  There were two scripts that I had found and tweaked early in my MythTV days that I was never able to get working on my previous installation of MythTV.  The first script cycled the MythTV frontend application via a button press - so if it hung I could kill the app and if it crashed and died I could restart it.  The second script suspended and woke up the computer via a button push.  I was able to wake up the frontend via a button push but was not able to get suspend to work prop ferly; every time I wanted to watch TV I would have to wait for a minute or two while the frontend booted.  Annoying, but luckily my wife was very tolerant on this problem.  As luck would have it, the frontend cycling script only needed a couple of tweaks to get it running.  The suspend script ended up using a completely new power management interface to get suspend to function properly as a user and not root, but luckily someone had already figured out how to do it and it was a non-trivial matter of Googling to find the solution.

Nov 30 2011

Blog - MythTV Reloaded - Day 17

Well, it turns out that I'm a moron.  Apparently everything was pretty much working for me already.  I had all of the pieces, I just didn't put them together correctly.  After days of work I finally have LIRC recognizing my remote inputs properly.  Basically what happened is that I configured the startup script for LIRC to load the correct driver for my IR receiver with the correct device and the correct parameters.  I had the correct config file being used to interpret the key presses correctly.  I had it all.  The problem was that I was doing all of my testing by launching the LIRC daemon from the command line instead of via the startup script that I had configured so none of my tweaks were being taken [facepalm].  Needless to say, after verifying this by running the command line with all of the correct parameters and then again verifying by rebooting the system and having it launch automatically, the remote control is now being properly identified and controlled via LIRC.  I can now launch irw and see all of my key presses as they happen.

At this point there seem to be only a few tweaks left to make before the system is ready for use again.  First, I need to setup the MythTV frontend application to automatically launch at login.  Next, I need to make MythTV always appear on top of the screen; it is currently being covered with the top and bottom panels of the window manager.  Finally, I need to configure the LIRC configuration file to interpret the button presses and pass them to the various applications, like MythTV.  Once I've got that in place, I think that all of the major components will be in place and I can put the unit back into service.  Yay.

Nov 26 2011

Blog - MythTV Reloaded - Day 16

I guess I got a little distracted today.  In doing some of my research for using LIRC with my iMon IR receiver that is part of the Antec Fusion 430 Black case, I ran across a couple of web pages that discussed getting the LCD screen working with LCDProc.  So that's what I did today.  Now when I go through the MythTV menus my LCD screen shows the menu entry that's highlighted.  If I have a show open it'll tell the name of the show and the description, the progress bar, and other stuff like that.  If nothing important is being displayed it will show the time.  It works very well in my opinion.  That's one thing that I never got working under Ubuntu.  The LCD screen was just glowing blue but not displaying anything, not even the time.

In other news, I was playing around with mplayer some today and found that all of the transport controls work there just fine.  What is going on with LIRC and MythTV?  I've even tried to create my own lircd.conf file using irrecord.  I found another program similar to ir-keyboard that I mentioned yesterday, called evtest.  It also recognizes all of the buttons on my MCE-emulating Harmony remote.  There must be something simple that I'm missing...

Oh well, time for bed.  More work to do tomorrow.  It seems like I'm so close but can't quite get to where I want to be...

Nov 25 2011

Blog - MythTV Reloaded - Day 15

I've done a bit more research into this remote control thing and found a couple of commands to use for debugging.  First is ir-keyboard.  If I run ir-keyboard with no options it will show me what device is found, what protocols it is capable of and which one(Drunk it is using.  In my case the output looks like:

Found /sys/class/rc/rc0/ (/dev/input/event5) with:

        Driver imon, table rc-imon-mce

        Supported protocols: RC-6

        Enabled protocols: RC-6

        Repeat delay = 500 ms, repeat period = 33 ms

In addition, I can run ir-keyboard -t and it will put the IR receiver into test mode.  Every time I press a button on the remote it puts up the codes and key names that it decodes.  According to this, everything it being seen properly and should be working.  I guess it's just an issue with the handoff to LIRC that's the problem.  I'm a step closer but still confused...

Again, I can say that the hardware is working fine and it's a software config issue that's holding me back.  Now to figure out what that is...

Nov 24 2011

Blog - MythTV Reloaded - Day 14

Well, I've had a bit of time to look into the new Fedora 15 load and it appears that without doing anything with LIRC at all I have basic directional pad controls on my remote working.  Volume also appears to work.  However, when I install LIRC and point it to lircd.conf.mceusb I get nothing when running irw.  If I do lsmod | grep imon I see that the imon driver is loaded by default, which is apparently what I should be seeing.  Obviously the hardware is connected right and recognized because some of the buttons work.  I guess I have a bit more research to do to figure out what has changed in this new kernel update.

At least I have hope now that I will reach my goal of a working remote eventually.  That's a step in the right direction anyway.  Any thoughts or ideas of things to try?  Leave me a comment!

Nov 20 2011

Blog - MythTV Reloaded - Day 10

I've been doing a bit of research today and it doesn't look good.  Getting the remote working a matter of installing LIRC (either with yum install lirc or else building it manually).  In the past, once it's installed, I've had to load the lirc_imon kernel module which is the driver for my Antec Fusion 430 Black IR receiver.  Then I would copy the correct lircd.conf file - in my case lircd.conf.mceusb - into /etc/lirc/lircd.conf.  Once the module is loaded and the config file is ready, you start the lirc daemon and then run irw.  At this point every time I press a button, it should register on the screen.  But that isn't the case this time around.

Syndicate content
Website design by Yammm Software
Powered by Drupal