LinHES Forums http://forums.linhes.org/ |
|
HOWTO: iMON PAD Remote and VFD on KM R5F27 http://forums.linhes.org/viewtopic.php?f=11&t=16685 |
Page 1 of 2 |
Author: | larrybpsu [ Sat Sep 22, 2007 9:08 pm ] |
Post subject: | HOWTO: iMON PAD Remote and VFD on KM R5F27 |
Here we go folks... I removed the 'Beta' context, since some folks have DL'ed and it worked for them. Thanks for all the feedback. I've taken the time to get the Soundgraph iMON-Pad Remote working with the mouse and keyboard emulation of the pad using the lirc 0.8.2 code. Since there's already support for the iMON VFD, please enable it FIRST. Open a shell (alt-x) and su. Code: /usr/local/bin/vfd_install.sh That sets up LCDd, and gets that part configured. Remember to go into the MythTV setup, and tell it yo use the LCD display. I've noticed that the 'Big Clock' doesn't work, so forget about that. Now on to the remote code... I've downloaded AND patched the lirc code for the pad driver, then ran a 'make' and 'make install' on the entire branch with patches. I then tar'ed it all up (including the missing i2c-id.h kernel header file, too). I've also included the /etc/lirc directory since it holds the config files. To download the tarball, again open a shell, su to root, and issue this command: Code: wget http://lbelan.homeip.net:8080/knoppmyth/KM-lirc-0.8.2-imon-pad.tar It's a 7 meg file, so if you're on a slow line, it'll take some time. WARNING: IF you've made any changes to the files in the /etc/lirc directory, save them, as this tarball will overwrite lircd.conf and lircmd.conf. The file hardware.conf will not be disturbed, but I place a file hardware.conf.SAVE in there for you to copy over later. Now to unpack the tarball: Shelled in as root, issue these commands, and make sure you issue the 'cd /' command! You must be in the root directory! Code: cd / tar xvf /home/mythtv/KM-lirc-0.8.2-imon-pad.tar Now everything is in place to change the lirc code. Issue these commands: Code: cd /usr/src/lirc-0.8.2 make install This may or may not recompile everything, but it WILL install all the compiled binaries, and modules in the correct directories. (FYI: I did alter the .configure setup so that the /usr/bin & sbin directories are updated.) So far, so good. Just a few more steps to go through. IF you've made NO PRIOR changes to the lirc configs, just do this: Code: cd /etc/lirc
cp hardware.conf.SAVE hardware.conf cp lircrc /home/mythtv/.mythtv/lircrc You can now reboot! Once the system comes back up, your remote should work, and it will start the PAD in keyboard mode. It will emulate the cursor keys. If you hit the "Keyboard/Mouse" button it will send movements and clicks. It just toggles back and forth. NOTES (and areas of improvement): The lircrc file needs some additional tweaking. One issue is that the cursor keys fire off too fast, but I figured that I'd put it out here for the users to adjust to their satisfaction. I don't have every button programed, so we can work on that together. ![]() Edit: Folks could/should post thier lircrc files once they get them tweaked. We can use this thread to make our iMON remote do as much as it can! The lircd.conf file does NOT reside in the /etc directory! I specifically changed the config of lirc and 'hardware.conf' to look in the /etc/lirc directory for lircd.conf. I figured if LCDd has it's files in a seperate directory, so can lirc! If you have a lircd.conf file in /etc, you can delete it. |
Author: | cecil [ Sun Sep 23, 2007 5:23 am ] |
Post subject: | |
A got link to just the patch and details? |
Author: | larrybpsu [ Sun Sep 23, 2007 6:36 pm ] |
Post subject: | |
cecil wrote: A got link to just the patch and details?
Cecil, Well, the patch(es) are in the tarball for the lirc_imon.c driver, and the lircd.conf file for the imon pad remote. These ARE patches against the original lirc 0.8.2 code as downloaded from lirc.org. I would be violating the GPL by not including them! You're welcome to DL the tarball and unpack it to another directory to see its contents. The only other tech detail was a tweak of running configure on the lirc code. It's stored in the .setup.config file in the base lirc directory. I really didn't want to go into LOTS of details, since I was shooting for the average user that just wants it to work with a minimum of editing files. The ONLY file that would need tweaked by the user would be the lircrc file. I am hoping that with more input, we can create an lircrc that everyone would enjoy. By including the entire lirc suite, it will upgrade the KM version of all the utilities, such at irrecord, irw, mode2, etc. too. I didn't want folks to have incompatible versions of the tools floating around. I'm NOT a script wizzard, so anyone here can tweak what I've started. I'm actually looking forward to that part! ![]() |
Author: | larrybpsu [ Mon Sep 24, 2007 11:32 pm ] |
Post subject: | |
Mmmmmmm....... This has been out there for a few days, and only ONE person has DL'ed the file. Does that mean that only ONE uses an iMON-Pad system with KM (besides me)????? Is no one wiling to TEST my HOWTO??? Imagine that. ![]() OK, if you're not willing to since it's Premier week, I'll let you slide. ![]() |
Author: | yaplej [ Tue Sep 25, 2007 4:13 pm ] |
Post subject: | |
larry, I really appreciate the time you took to get this working. I just now got a chance to check the forums again, and saw your updates. Ill try to get my iMON remote working tonight if I get a chance. The switch between keyboard/mouse was a slick idea btw. Justin. |
Author: | Bob [ Fri Sep 28, 2007 10:14 am ] |
Post subject: | |
Hi Larrybpsu, I will give it a try this weekend. I will give you feedback. Thanks Bob |
Author: | maxxls [ Sat Sep 29, 2007 1:02 pm ] |
Post subject: | |
Worked great for me thanks. Only thing I had to do was turn the LCD update on in the setup. I will have to map a key to switch tuners unless you did that. I have not checked. You have saved me lots of time. ![]() |
Author: | arnie [ Mon Oct 01, 2007 10:36 pm ] |
Post subject: | |
Larrybpsu, I hope to give this a go sometime this week. I still haven't upgraded to R5F27 due to time constraints. I have the LC16M case with the PAD remote and VFD. I'll keep you posted. |
Author: | profnz [ Fri Oct 05, 2007 6:32 pm ] |
Post subject: | |
Hi, Tried this out with a clean install. Worked with no issues. Thanks for putting the tar and HOWTO together. Not having much luck getting my IRBlaster going though (http://mysettopbox.tv/phpBB2/viewtopic. ... 923#100923)... |
Author: | profnz [ Mon Oct 08, 2007 10:30 pm ] |
Post subject: | |
Out of interest, does this work with order versions (e.g. R5F1)? Aware would have to try and backport the VFD side of things... |
Author: | yaplej [ Tue Oct 09, 2007 7:49 pm ] |
Post subject: | |
Just installed this, and its working great! Need to get more of the buttons setup though. Anyone willing to share what they did to program the additional buttons? |
Author: | Kirk [ Tue Oct 09, 2007 8:42 pm ] |
Post subject: | |
Howdy, Great work on packaging this up Larry. Here's my nearly completed lircrc file. I'm close to using the whole remote with this, just a few buttons I don't have a need for (can't find a usage for). These unused buttons have been commented out so you can find them. I've also added JumpPoints so the coloured buttons work as intended. I MAY have changed a couple of keys within Myth itself, I can't remember, the lircrc is fairly straightforward, you should be able to work out any changes I've made. There is also simple sections for mplayer and xine. I'll continue to update this as I tweak. Code: ###### CUSTOM iMON-Pad - By Kirk ######
# # JumpPoints added in Setup # # Live TV In Guide = CTRL+S # Play DVD = CTRL+D # MythGallery = CTRL+G # Play music = CTRL+T # MythVideo = CTRL+V # ##################################### ###### CUSTOM MYTHTV ###### begin prog = mythtv button = PadKeyUp repeat = 3 config = Up end begin prog = mythtv button = PadKeyLeft repeat = 3 config = Left end begin prog = mythtv button = PadKeyDown repeat = 3 config = Down end begin prog = mythtv button = PadKeyRight repeat = 3 config = Right end begin prog = mythtv button = AppExit config = Esc end begin prog = mythtv button = Record config = R end begin prog = mythtv button = Play config = L end begin prog = mythtv button = SlowMotion config = J end begin prog = mythtv button = Rewind config = < end begin prog = mythtv button = Pause config = P end begin prog = mythtv button = FastForward config = > end begin prog = mythtv button = PrevChapter config = PgUp end begin prog = mythtv button = NextChapter config = PgDown end begin prog = mythtv button = Stop config = O end ## Currently being used to toggle pad #begin # prog = mythtv # button = MouseKeyboard # config = #end #begin # prog = mythtv # button = SelectSpace # config = #end #begin # prog = mythtv # button = Backspace # config = #end #begin # prog = mythtv # button = WindowsKey # config = #end #begin # prog = mythtv # button = MouseLeftClick # config = #end #begin # prog = mythtv # button = Enter # config = #end #begin # prog = mythtv # button = MouseRightClick # config = #end #begin # prog = mythtv # button = MouseMenu # config = #end begin prog = mythtv button = Eject config = Ctrl+E end begin prog = mythtv button = TaskSwitcher config = N end begin prog = mythtv button = Esc config = Esc end #begin # prog = mythtv # button = AppLauncher # config = #end begin prog = mythtv button = MultiMon config = Enter end begin prog = mythtv button = Mute config = | end begin prog = mythtv button = Vol+ config = ] repeat = 3 end begin prog = mythtv button = Vol- config = [ repeat = 3 end begin prog = mythtv button = Ch+ config = Up repeat = 3 end begin prog = mythtv button = Ch- config = Down repeat = 3 end begin prog = mythtv button = Timer config = F8 end begin prog = mythtv button = 1 config = 1 end begin prog = mythtv button = 2 config = 2 end begin prog = mythtv button = 3 config = 3 end begin prog = mythtv button = 4 config = 4 end begin prog = mythtv button = 5 config = 5 end begin prog = mythtv button = 6 config = 6 end begin prog = mythtv button = 7 config = 7 end begin prog = mythtv button = 8 config = 8 end begin prog = mythtv button = 9 config = 9 end begin prog = mythtv button = 0 config = 0 end begin prog = mythtv button = ShiftTab config = Home repeat = 3 end begin prog = mythtv button = Tab config = End repeat = 3 end begin prog = mythtv button = MyMovie config = Ctrl+V end begin prog = mythtv button = MyMusic config = Ctrl+T end begin prog = mythtv button = MyPhoto config = Ctrl+G end begin prog = mythtv button = MyTV config = Ctrl+S end # bring up the cutpoints for commflagging begin prog = mythtv button = Bookmark config = Z end begin prog = mythtv button = Thumbnail config = V end begin prog = mythtv button = AspectRatio config = W end ## for MythGallery begin prog = mythtv button = FullScreen config = 6 end begin prog = mythtv button = MyDVD config = Ctrl+D end begin prog = mythtv button = Menu config = M end begin prog = mythtv button = Caption config = I end begin prog = mythtv button = Language config = T end ###### END CUSTOM MYTHTV ###### ###### BEGIN CUSTOM MPLAYER ###### begin prog = mplayer button = AppExit config = quit end begin prog = mplayer button = Rewind config = seek -10 repeat = 3 end begin prog = mplayer button = FastForward config = seek +10 repeat = 3 end begin prog = mplayer button = PrevChapter config = seek -60 repeat = 3 end begin prog = mplayer button = NextChapter config = seek +60 repeat = 3 end begin prog = mplayer button = Play config = pause end begin prog = mplayer button = Pause config = pause end begin prog = mplayer button = Vol- config = volume -1 repeat = 3 end begin prog = mplayer button = Vol+ config = volume +1 repeat = 3 end begin prog = mplayer button = Mute config = mute end begin prog = mplayer button = SlowMotion config = frame_step repeat = 3 end begin prog = mplayer button = Caption config = osd end ###### END CUSTOM MPLAYER ###### ###### BEGIN CUSTOM XINE ###### begin prog = xine button = AppExit config = Quit end begin prog = xine button = Play config = Play end begin prog = xine button = Pause config = Pause end begin prog = xine button = Stop config = Stop end begin prog = xine button = Rewind config = SeekRelative-10 repeat = 3 end begin prog = xine button = FastFoward config = SeekRelative+10 repeat = 3 end begin prog = xine button = PrevChapter config = SeekRelative-60 repeat = 3 end begin prog = xine button = NextChapter config = SeekRelative+60 repeat = 3 end begin prog = xine button = Vol- config = Volume- repeat = 3 end begin prog = xine button = Vol+ config = Volume+ repeat = 3 end begin prog = xine button = Mute config = Mute end begin prog = xine button = AspectRatio config = ToggeAspectRatio end begin prog = xine button = FullScreen config = ToggleFullScreen end begin prog = xine button = Menu config = Menu end begin prog = xine button = PadKeyUp config = EventUp repeat = 1 end begin prog = xine button = PadKeyDown config = EventDown repeat = 1 end begin prog = xine button = PadKeyLeft config = EventLeft repeat = 1 end begin prog = xine button = PadKeyRight config = EventRight repeat = 1 end begin prog = xine button = MultiMon config = EventSelect end begin prog = xine button = Caption config = OSDStreamInfos end begin prog = xine button = 0 config = Number0 end begin prog = xine button = 1 config = Number1 end begin prog = xine button = 2 config = Number2 end begin prog = xine button = 3 config = Number3 end begin prog = xine button = 4 config = Number4 end begin prog = xine button = 5 config = Number5 end begin prog = xine button = 6 config = Number6 end begin prog = xine button = 7 config = Number7 end begin prog = xine button = 8 config = Number8 end begin prog = xine button = 9 config = Number9 end ###### END CUSTOM XINE ###### I hope someone finds this useful. Regards, Kirk. |
Author: | arnie [ Wed Oct 10, 2007 7:20 pm ] |
Post subject: | |
Kirk: I know what you mean. I've been having trouble finding things for the extra buttons to do! Thanks for the lircrc. It's given me some ideas I hadn't thought of. |
Author: | Kirk [ Wed Oct 10, 2007 9:23 pm ] |
Post subject: | |
Please post yours when you're done to Arnie - I'd love to see what other people are doing with theirs. |
Author: | larrybpsu [ Thu Oct 11, 2007 11:55 am ] |
Post subject: | |
Kirk: Great work on the lircrc file! Much appreciated. profnz: In terms of the patch set working on R5F1, since the kernel version is the same, I think it should work, however, I can't guarantee it. I have a few other postings on the board about getting the VFD to work, but someone else posted a small script that gets it working. I ended up using that script in R5F1. |
Page 1 of 2 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |